tree-sitter breaking changes
Updated December 4, 2026
On this page
Latest version 0.27.2. Source repository
Its 0.25.0 release drops Python 3.9. Python end of life dates.
tree-sitter 0.27.1 breaking changes
- Removed
Package.swift is removed. Downstream tools should use the swift-tree-sitter bindings or their own build scripts. github.com - Renamed
QueryMatch.captures
In the Rust bindings, the captures field is now a method. Replace m.captures with m.captures(). github.com - Behavior changed
Grammar regex patterns with non-ASCII byte classes under (?-u:...) are now rejected instead of being silently converted. github.com - Behavior changed
currentType
currentType now returns null before the first step, after exhaustion, and after reset, and falls back to the language name table instead of 'ERROR'. github.com - Behavior changed
currentTypeId
currentTypeId now returns null before the first step, after exhaustion, and after reset. github.com - Behavior changed
generate_parser_in_directory
Passing a nonexistent file path to generate_parser_in_directory now produces an error. github.com - Behavior changed
ts_lookahead_iterator_current_symbol_name
ts_lookahead_iterator_current_symbol_name now returns NULL when the iterator is not on a symbol, and exhaustion is sticky. github.com - Configuration changed
LLVM 23 replaces the wasm32-wasi target with wasm32-wasip1, so build flags used by tree-sitter build --wasm must be updated. github.com - Signature changed
A public error enum in the generate crate was altered. Code matching on it may need updating. github.com - Signature changed
Public error types for tree-sitter-generate were modified. Code matching on them may need updating. github.com - Signature changed
assert_expected_captures
The signature of assert_expected_captures changed for users consuming tree-sitter-cli as a library. Update callers to the new signature. github.com - Signature changed
current_symbol
current_symbol returns None when the iterator is not positioned on a symbol. Update callers to handle the Option. github.com - Signature changed
current_symbol_name
current_symbol_name returns None when the iterator is not positioned on a symbol. Update callers to handle the Option. github.com - Signature changed
GenerateError.GrammarPath
GenerateError::GrammarPath now holds an IoError inside it. Update code that constructs or matches this variant. github.com - Signature changed
iter_names
The item of iter_names is now a borrowed &str rather than &'static str. github.com - Signature changed
Node.grammar_name
Node::grammar_name now returns a string tied to the tree rather than static lifetime. github.com - Signature changed
Node.kind
Node::kind now returns a string tied to the tree rather than static lifetime. Code relying on a 'static lifetime may fail to compile. github.com - Signature changed
TreeCursor.field_name
TreeCursor::field_name now returns a string tied to the tree rather than static lifetime. github.com
tree-sitter 0.27.0 breaking changes
- Removed
Package.swift
Package.swift is no longer shipped, so Swift Package Manager users lose this entry point. github.com - Behavior changed
Wasm toolchain and stdlib updates change how wasm parsers are built. github.com - Behavior changed
generate_parser_in_directory
Passing a nonexistent file path now returns an error instead of proceeding. github.com - Behavior changed
Language.load
Rust parser loggers must now be Send and have a static lifetime. github.com - Behavior changed
LookaheadIterator
LookaheadIterator was reworked with breaking changes; existing usage may need updates. github.com - Behavior changed
Node.child_count
Rust Node::child_count returns u32 instead of the previous type. Code that uses the result as usize may need a cast. github.com - Behavior changed
query iterators
Query iterators are now tied to the options lifetime, which can break code that held them longer. github.com - Behavior changed
tree-sitter init
When a lib path is passed, languages are no longer all loaded via config. github.com - Behavior changed
tree-sitter test
Corpus test updates and malformed test warnings change CLI behavior. github.com - Behavior changed
Tree.changed_ranges
The must_use attribute was removed from changed_ranges, so callers ignoring the result no longer get a warning. github.com
And 3 more in this version. Sign up to see every change
tree-sitter 0.26.2 breaking changes
- Behavior changed
Supertype syntax that contains whitespace is now rejected, so existing grammars or queries using it must be updated. github.com - Behavior changed
Config error handling changed from anyhow to thiserror, so code that depends on the previous error types may need updating. github.com - Behavior changed
Loader error handling changed from anyhow to thiserror, so code that depends on the previous error types may need updating. github.com - Behavior changed
IO errors raised by generate now include the file path when it is available, so code that inspects these errors may see different output. github.com - Signature changed
select_language
The arguments passed to select_language were corrected, so callers must update the arguments they pass. github.com
tree-sitter 0.26.1 breaking changes
- Removed
Deprecated C library functions were removed. Check your code for calls to deprecated functions and stop using them. github.com - Removed
--emit=lib
The --emit=lib option for the generate command was removed. Stop passing it. github.com - Removed
--no-bindings
The deprecated --no-bindings flag was removed from the generate command. Stop passing it. github.com - Renamed
DecodeFunction
The C type DecodeFunction is now named TSDecodeFunction. Update references to the new name. github.com - Renamed
stage
The generate command's stage flag is now called emit. Update scripts that pass the old flag name. github.com - Renamed
tree-sitter.js
The web bindings file tree-sitter.js is renamed to web-tree-sitter.js. Update imports that reference the old file. github.com - Behavior changed
Query predicates without a trailing ! or ? are now rejected by an assertion. Rename predicates in existing queries to end with ! or ?. github.com - Behavior changed
The build.zig file now targets Zig 0.15. Use Zig 0.15 to build the package. github.com - Default changed
--grammar-path
When --grammar-path is passed, parsers are now rebuilt by default. Expect rebuilds where none happened before. github.com - Configuration changed
APIs for generating grammars from a file are now behind a feature flag. Enable that feature to keep using them. github.com
And 4 more in this version. Sign up to see every change
tree-sitter 0.25.1 breaking changes
- Removed
The CLI no longer migrates older tree-sitter.json files. Migrate such files by hand before upgrading. github.com - Removed
ts_node_child_containing_descendant
ts_node_child_containing_descendant was removed after being deprecated in 0.24. Code using it must change. github.com - Renamed
QueryMatch.pattern
The pattern field of QueryMatch is renamed to patternIndex in the web bindings. Update code that reads pattern. github.com - Behavior changed
The Swift bindings were updated in a breaking way. Check Swift code that uses the bindings after upgrading. github.com - Behavior changed
The generator now uses regex_syntax::Hir to expand regexes, which may change generated grammars. github.com - Behavior changed
The internal ABI moves to version 15, so grammars built against older ABIs may need regenerating. github.com - Behavior changed
The web bindings library was rewritten in TypeScript, which may change its types and behavior. Check web code after upgrading. github.com - Behavior changed
Parser
Parser is no longer the default export in the web bindings. Import it by name, and still call Parser.init() before use. github.com
tree-sitter 0.25.0 breaking changes
- Removed
The CLI no longer migrates older tree-sitter.json files automatically. github.com - Removed
The Python bindings no longer support Python 3.9. github.com - Removed
ts_node_child_containing_descendant
The function was removed. Use ts_node_child_with_descendant instead, which has nearly the same behavior and can also return the descendant. github.com - Behavior changed
UTF-16 input endianness is now handled differently, so code that relied on the old behavior may parse differently. github.com - Configuration changed
Parsers built with ABI 15 read language name, version and related data from a tree-sitter.json file, so the repository must contain one. github.com - Signature changed
TSInput
Code that builds a TSInput must now set the new DecodeFunction field. Pass NULL to use the built-in decoder. github.com
Older versions
6 older versions, each with its first changes. Sign up to see every change
Show 6 older versions
tree-sitter 0.24.2 breaking changes
- Removed
The legacy binding update path has been removed. github.com
tree-sitter 0.24.0 breaking changes
- Removed
Commands no longer accept the filter flag; use include and exclude instead. github.com - Removed
External scanners can no longer be written in C++; they must be written in C. github.com
And 5 more in this version.
tree-sitter 0.23.0 breaking changes
- Removed
Grammar crates are expected to depend on the new tree-sitter-language crate instead of the main tree-sitter crate; code relying on the old dependency must migrate. github.com - Behavior changed
The Python binding switched to capsules, which changes how language objects are passed to the library. github.com
And 3 more in this version.
tree-sitter 0.22.2 breaking changes
- Behavior changed
Parser compilation is now a separate build command rather than part of generate. Run build to compile parsers. github.com
tree-sitter 0.22.0 breaking changes
- Removed
The bindings no longer ship a dsl types file. Stop importing it. github.com - Behavior changed
The CLI now only looks for tests in test/corpus. Move any tests from a top-level corpus directory into test/corpus. github.com
tree-sitter 0.21.0 breaking changes
- Removed
The previously deprecated query parsing mechanism has been removed. github.com - Behavior changed
The apply-all-captures flag is gone and the last matching query now wins. If highlight tests break, flip the order of the relevant queries. github.com
And 1 more in this version.
Related packages
- tree-sitter-highlight on crates.io
- tree-sitter on crates.io
- github.com/tree-sitter/tree-sitter on Swift Package Index
- tree-sitter-cli
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.