---
title: "lizard 1.26.0 Breaking Changes on PyPI | Since.dev"
description: "What each lizard release removed, renamed or changed: 221 breaking changes in 12 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/lizard
last_updated: 2026-12-04
---

# lizard breaking changes

lizard 1.26.0 (November 10, 2026) is its newest release with breaking changes, 8 of them. The first: Signature changed lizard_languages.code_reader.tokens_in_span. Every breaking API change we have recorded in lizard on PyPI: 221 breaking changes in 12 versions. Below, its 12 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.26.1`, released November 16, 2026. [Source repository](https://github.com/terryyin/lizard)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [1.17.29](#v-1-17-29) to [1.26.0](#v-1-26-0): 220 breaking changes in 11 versions.

## lizard 1.26.0 breaking changes

lizard 1.26.0, released November 10, 2026: 8 breaking changes.

- **Signature changed** `lizard_languages.code_reader.tokens_in_span`  

Was def tokens_in_span(pattern, source, start, end, token_class=None); now def tokens_in_span(pattern, source, start, end, token_class=None, macros=True). [pypi.org](https://pypi.org/project/lizard/1.26.0/)
- **Signature changed** `lizard_languages.java_body_states.JavaClassBodyStates.__init__`  

Was def \_\_init\_\_(self, class_name, is_record, context); now def \_\_init\_\_(self, class_name, is_record, context, is_enum=False). [pypi.org](https://pypi.org/project/lizard/1.26.0/)
- **Signature changed** `lizard_languages.javascript_templates.template_tokens`  

Was def template_tokens(source, addition='', token_class=None, split=True); now def template_tokens(source, addition='', token_class=None, split=True, macros=True). [pypi.org](https://pypi.org/project/lizard/1.26.0/)
- **Signature changed** `lizard_languages.javascript_templates.tokens_in_span`  

Was def tokens_in_span(pattern, source, start, end, token_class=None); now def tokens_in_span(pattern, source, start, end, token_class=None, macros=True). [pypi.org](https://pypi.org/project/lizard/1.26.0/)
- **Signature changed** `lizard_languages.swift.tokens_in_span`  

Was def tokens_in_span(pattern, source, start, end, token_class=None); now def tokens_in_span(pattern, source, start, end, token_class=None, macros=True). [pypi.org](https://pypi.org/project/lizard/1.26.0/)
- **Signature changed** `lizard_languages.token_pattern.tokens_in_span`  

Was def tokens_in_span(pattern, source, start, end, token_class=None); now def tokens_in_span(pattern, source, start, end, token_class=None, macros=True). [pypi.org](https://pypi.org/project/lizard/1.26.0/)
- **Signature changed** `lizard_languages.tsx.template_tokens`  

Was def template_tokens(source, addition='', token_class=None, split=True); now def template_tokens(source, addition='', token_class=None, split=True, macros=True). [pypi.org](https://pypi.org/project/lizard/1.26.0/)
- **Signature changed** `lizard_languages.typescript.template_tokens`  

Was def template_tokens(source, addition='', token_class=None, split=True); now def template_tokens(source, addition='', token_class=None, split=True, macros=True). [pypi.org](https://pypi.org/project/lizard/1.26.0/)

## lizard 1.25.1 breaking changes

lizard 1.25.1, released November 7, 2026: 20 breaking changes.

- **Removed** `lizard_ext.lizardduplicate.NestingStackWithUnifiedTokens.constant_count`  

NestingStackWithUnifiedTokens.constant_count was removed in lizard 1.25.1 [pypi.org](https://pypi.org/project/lizard/1.25.1/)
- **Renamed** `lizard_core.options.get_extensions`  

Use lizard_core.option_resolution.get_extensions instead. [pypi.org](https://pypi.org/project/lizard/1.25.1/)
- **Renamed** `lizard_core.options.infer_printer_from_file_ext`  

Use lizard_core.option_resolution.infer_printer_from_file_ext instead. [pypi.org](https://pypi.org/project/lizard/1.25.1/)
- **Renamed** `lizard_core.options.OutputScheme`  

Use lizard_core.option_resolution.OutputScheme instead. [pypi.org](https://pypi.org/project/lizard/1.25.1/)
- **Renamed** `lizard_core.options.parse_args`  

Use lizard_core.option_resolution.parse_args instead. [pypi.org](https://pypi.org/project/lizard/1.25.1/)
- **Renamed** `lizard_ext.lizardduplicate.Sequence`  

Use lizard_ext.duplicate_unified_tokens.Sequence instead. [pypi.org](https://pypi.org/project/lizard/1.25.1/)
- **Behavior changed**  

Words and punctuation inside JSX element text no longer count as decisions, so CCN for such files changes. Element text is now reported as text tokens, which changes token counts. [github.com](https://github.com/terryyin/lizard/blob/1.25.1/CHANGELOG.md)
- **Behavior changed**  

A Swift string literal with interpolation is now reported as several tokens instead of one, so token counts for such strings change. [github.com](https://github.com/terryyin/lizard/blob/1.25.1/CHANGELOG.md)
- **Behavior changed**  

case declarations in a Swift enum body are no longer counted as decisions, so CCN for the global scope and for functions with local enums goes down. case inside a switch still counts. [github.com](https://github.com/terryyin/lizard/blob/1.25.1/CHANGELOG.md)
- **Behavior changed**  

The || of a parameterless Rust closure is no longer counted as a logical or, so CCN for such code goes down. || after an expression is still counted. [github.com](https://github.com/terryyin/lizard/blob/1.25.1/CHANGELOG.md)

And 10 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## lizard 1.25.0 breaking changes

lizard 1.25.0, released November 2, 2026: 10 breaking changes.

- **Removed** `lizard_languages.javascript_bindings.JavaScriptBindings.__call__`  

JavaScriptBindings.\_\_call\_\_ was removed in lizard 1.25.0 [pypi.org](https://pypi.org/project/lizard/1.25.0/)
- **Removed** `lizard_languages.typescript_declarations.CodeStateMachine`  

lizard_languages.typescript_declarations.CodeStateMachine was removed in lizard 1.25.0 [pypi.org](https://pypi.org/project/lizard/1.25.0/)
- **Behavior changed**  

The parameter count for TypeScript functions now excludes the \`this\` receiver, and text, CSV, HTML and Checkstyle output use the same count. Check any thresholds or reports that depend on the old parameter count. [github.com](https://github.com/terryyin/lizard/releases/tag/1.25.0)
- **Behavior changed** `-ENS`  

The -ENS option now counts nested control structures by indentation, including async statements and match, and no longer counts comprehensions or conditional expressions. Reported nesting values may change for existing code. [github.com](https://github.com/terryyin/lizard/releases/tag/1.25.0)
- **Signature changed** `lizard_languages.javascript_bindings.JavaScriptBindings.__init__`  

Was def \_\_init\_\_(self, closing); now def \_\_init\_\_(self, closing, function=None, parameters=None). [pypi.org](https://pypi.org/project/lizard/1.25.0/)
- **Signature changed** `lizard_languages.javascript_bindings.JavaScriptBindings.read_token`  

Was def read_token(self, token); now def read_token(self, token, report=True). [pypi.org](https://pypi.org/project/lizard/1.25.0/)
- **Signature changed** `lizard_languages.js_style_regex_expression.js_style_regex_expression`  

Was def js_style_regex_expression(func); now def js_style_regex_expression(func=None, \*, language='js'). [pypi.org](https://pypi.org/project/lizard/1.25.0/)
- **Signature changed** `lizard_languages.ruby.js_style_regex_expression`  

Was def js_style_regex_expression(func); now def js_style_regex_expression(func=None, \*, language='js'). [pypi.org](https://pypi.org/project/lizard/1.25.0/)
- **Signature changed** `lizard_languages.tsx.js_style_regex_expression`  

Was def js_style_regex_expression(func); now def js_style_regex_expression(func=None, \*, language='js'). [pypi.org](https://pypi.org/project/lizard/1.25.0/)
- **Signature changed** `lizard_languages.typescript.js_style_regex_expression`  

Was def js_style_regex_expression(func); now def js_style_regex_expression(func=None, \*, language='js'). [pypi.org](https://pypi.org/project/lizard/1.25.0/)

## lizard 1.24.3 breaking changes

lizard 1.24.3, released October 24, 2026: 136 breaking changes.

- **Removed** `lizard_languages.tsx.CodeReader`  

lizard_languages.tsx.CodeReader was removed in lizard 1.24.3 [pypi.org](https://pypi.org/project/lizard/1.24.3/)
- **Removed** `lizard_languages.tsx.TEMPLATE_LITERAL`  

lizard_languages.tsx.TEMPLATE_LITERAL was removed in lizard 1.24.3 [pypi.org](https://pypi.org/project/lizard/1.24.3/)
- **Removed** `lizard_languages.typescript.TEMPLATE_LITERAL`  

lizard_languages.typescript.TEMPLATE_LITERAL was removed in lizard 1.24.3 [pypi.org](https://pypi.org/project/lizard/1.24.3/)
- **Removed** `lizard.AllResult.__init__`  

AllResult() was removed in lizard 1.24.3 [pypi.org](https://pypi.org/project/lizard/1.24.3/)
- **Removed** `lizard.AllResult.all_fun`  

AllResult.all_fun was removed in lizard 1.24.3 [pypi.org](https://pypi.org/project/lizard/1.24.3/)
- **Removed** `lizard.AllResult.as_fileinfo`  

AllResult.as_fileinfo was removed in lizard 1.24.3 [pypi.org](https://pypi.org/project/lizard/1.24.3/)
- **Removed** `lizard.AllResult.function_count`  

AllResult.function_count was removed in lizard 1.24.3 [pypi.org](https://pypi.org/project/lizard/1.24.3/)
- **Removed** `lizard.AllResult.nloc_in_functions`  

AllResult.nloc_in_functions was removed in lizard 1.24.3 [pypi.org](https://pypi.org/project/lizard/1.24.3/)
- **Removed** `lizard.AllResult.result`  

AllResult.result was removed in lizard 1.24.3 [pypi.org](https://pypi.org/project/lizard/1.24.3/)
- **Removed** `lizard.FileAnalyzer.__call__`  

FileAnalyzer.\_\_call\_\_ was removed in lizard 1.24.3 [pypi.org](https://pypi.org/project/lizard/1.24.3/)

And 126 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## lizard 1.24.2 breaking changes

lizard 1.24.2, released October 22, 2026: 11 breaking changes.

- **Removed** `lizard_ext.lizardcognitive.PythonReader`  

lizard_ext.lizardcognitive.PythonReader was removed in lizard 1.24.2 [pypi.org](https://pypi.org/project/lizard/1.24.2/)
- **Removed** `lizard_languages.fortran.CodeStateMachine`  

lizard_languages.fortran.CodeStateMachine was removed in lizard 1.24.2 [pypi.org](https://pypi.org/project/lizard/1.24.2/)
- **Removed** `lizard_languages.python.CodeStateMachine`  

lizard_languages.python.CodeStateMachine was removed in lizard 1.24.2 [pypi.org](https://pypi.org/project/lizard/1.24.2/)
- **Removed** `lizard_languages.typescript.CodeStateMachine`  

lizard_languages.typescript.CodeStateMachine was removed in lizard 1.24.2 [pypi.org](https://pypi.org/project/lizard/1.24.2/)
- **Removed** `lizard.get_map_method`  

lizard.get_map_method was removed in lizard 1.24.2 [pypi.org](https://pypi.org/project/lizard/1.24.2/)
- **Behavior changed**  

Each nullish coalescing operator now adds 1 to CCN for JavaScript, TypeScript, JSX and TSX, so existing scores may decrease. [github.com](https://github.com/terryyin/lizard/releases/tag/1.24.2)
- **Behavior changed**  

Each default parameter and destructuring initializer, including nested ones, now adds 1 to CCN, so existing scores and threshold warnings may increase. [github.com](https://github.com/terryyin/lizard/releases/tag/1.24.2)
- **Behavior changed**  

HTML report generation now returns a non-zero exit status when functions exceed warning thresholds, which can fail CI pipelines that previously passed. [github.com](https://github.com/terryyin/lizard/releases/tag/1.24.2)
- **Behavior changed**  

Optional chaining is no longer counted as a ternary operator in TypeScript and Swift, which changes their complexity scores. [github.com](https://github.com/terryyin/lizard/releases/tag/1.24.2)
- **Behavior changed**  

Rust let-else statements now add to cyclomatic complexity, so existing Rust scores may increase. [github.com](https://github.com/terryyin/lizard/releases/tag/1.24.2)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## lizard 1.24.1 breaking changes

lizard 1.24.1, released October 5, 2026: 1 breaking change.

- **Signature changed** `lizard_languages.rust.RustStates.__init__`  

Was def \_\_init\_\_(self, context); now def \_\_init\_\_(self, context, in_match_arms=False). [pypi.org](https://pypi.org/project/lizard/1.24.1/)

## Older versions

6 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### lizard 1.24.0 breaking changes

lizard 1.24.0, released August 19, 2026: 4 breaking changes.

- **Removed** `lizard_languages.php.CodeStateMachine`  

lizard_languages.php.CodeStateMachine was removed in lizard 1.24.0 [pypi.org](https://pypi.org/project/lizard/1.24.0/)
- **Signature changed** `lizard_languages.java.JavaFunctionBodyStates.__init__`  

Was def \_\_init\_\_(self, context); now def \_\_init\_\_(self, context, exit_with_brace_depth=True). [pypi.org](https://pypi.org/project/lizard/1.24.0/)

And 2 more in this version.

### lizard 1.23.0 breaking changes

lizard 1.23.0, released June 2, 2026: 1 breaking change.

- **Behavior changed**  

Python match/case statements now contribute to cyclomatic complexity scores, including in --modified mode, so reported complexity numbers may increase for code using them. [github.com](https://github.com/terryyin/lizard/releases/tag/1.23.0)

### lizard 1.22.0 breaking changes

lizard 1.22.0, released April 22, 2026: 8 breaking changes.

- **Removed** `lizard_languages.tsx.CodeStateMachine`  

lizard_languages.tsx.CodeStateMachine was removed in lizard 1.22.0 [pypi.org](https://pypi.org/project/lizard/1.22.0/)
- **Removed** `lizard_languages.tsx.JSXTypeAnnotationHandler`  

lizard_languages.tsx.JSXTypeAnnotationHandler was removed in lizard 1.22.0 [pypi.org](https://pypi.org/project/lizard/1.22.0/)

And 6 more in this version.

### lizard 1.21.2 breaking changes

lizard 1.21.2, released March 2, 2026: 1 breaking change.

- **Behavior changed**  

Nesting depth for C++ \`else if\` chains is now calculated as the same level as \`if\` instead of nested, so reported nesting metrics for such code will change. [github.com](https://github.com/terryyin/lizard/blob/1.21.2/CHANGELOG.md)

### lizard 1.18.0 breaking changes

lizard 1.18.0, released September 30, 2025: 20 breaking changes.

- **Removed** `lizard_languages.js_style_language_states`  

lizard_languages.js_style_language_states was removed in lizard 1.18.0 [pypi.org](https://pypi.org/project/lizard/1.18.0/)
- **Removed** `lizard_languages.jsx`  

lizard_languages.jsx was removed in lizard 1.18.0 [pypi.org](https://pypi.org/project/lizard/1.18.0/)

And 18 more in this version.

### lizard 1.17.29 breaking changes

lizard 1.17.29, released May 10, 2025: 1 breaking change.

- **Removed** `lizard_languages.php.JavaScriptStyleLanguageStates`  

lizard_languages.php.JavaScriptStyleLanguageStates was removed in lizard 1.17.29 [pypi.org](https://pypi.org/project/lizard/1.17.29/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
