---
title: "tree-sitter 0.27.1 Breaking Changes on vcpkg | Since.dev"
description: "What each tree-sitter release removed, renamed or changed: 83 breaking changes in 12 versions on vcpkg, each with its source."
canonical_url: https://since.dev/packages/vcpkg/tree-sitter
last_updated: 2026-12-04
---

# tree-sitter breaking changes

tree-sitter 0.27.1 is its newest release with breaking changes, 18 of them. The first: Package.swift build script removed in tree-sitter 0.27.1. Every breaking API change we have recorded in tree-sitter on vcpkg: 83 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 `0.27.2`. [Source repository](https://github.com/tree-sitter/tree-sitter)

Its 0.25.0 release drops [Python 3.9](https://since.dev/calendar/python/3.9.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.21.0](#v-0-21-0) to [0.27.1](#v-0-27-1): 80 breaking changes in 11 versions.

## tree-sitter 0.27.1 breaking changes

tree-sitter 0.27.1: 18 breaking changes.

- **Removed**  

Package.swift is removed. Downstream tools should use the swift-tree-sitter bindings or their own build scripts. [github.com](https://github.com/tree-sitter/tree-sitter/commit/277f53f886de938bb686703ce593b36184ef5470)
- **Renamed** `QueryMatch.captures`  

In the Rust bindings, the captures field is now a method. Replace m.captures with m.captures(). [github.com](https://github.com/tree-sitter/tree-sitter/commit/5ddf71b9f4a7a88a194e45148b7eabe99fb55090)
- **Behavior changed**  

Grammar regex patterns with non-ASCII byte classes under (?-u:...) are now rejected instead of being silently converted. [github.com](https://github.com/tree-sitter/tree-sitter/commit/721b2111688a1e2fb72d48b6058808dc06d45495)
- **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](https://github.com/tree-sitter/tree-sitter/commit/7be497a14e80b3edd75eaa5797d7ccc3919f16ff)
- **Behavior changed** `currentTypeId`  

currentTypeId now returns null before the first step, after exhaustion, and after reset. [github.com](https://github.com/tree-sitter/tree-sitter/commit/7be497a14e80b3edd75eaa5797d7ccc3919f16ff)
- **Behavior changed** `generate_parser_in_directory`  

Passing a nonexistent file path to generate_parser_in_directory now produces an error. [github.com](https://github.com/tree-sitter/tree-sitter/commit/cde84508acd604caaf45087cfd3dab6dbecf1cc1)
- **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](https://github.com/tree-sitter/tree-sitter/commit/7bf4a10995660a1d48914620258778425c9c307e)
- **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](https://github.com/tree-sitter/tree-sitter/commit/664e9a678667302fee9c705103072119b4fd4845)
- **Signature changed**  

A public error enum in the generate crate was altered. Code matching on it may need updating. [github.com](https://github.com/tree-sitter/tree-sitter/commit/f9dcb005cd5d37e995adafab3a09570083003814)
- **Signature changed**  

Public error types for tree-sitter-generate were modified. Code matching on them may need updating. [github.com](https://github.com/tree-sitter/tree-sitter/commit/74b7d0c951ebdab16a8a4d64e7cf81e56046408a)
- **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](https://github.com/tree-sitter/tree-sitter/commit/9111e317196d72be408644eec117bb574b31511d)
- **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](https://github.com/tree-sitter/tree-sitter/commit/081929092f32463fd1f9106ec4f71b0adcb9ff82)
- **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](https://github.com/tree-sitter/tree-sitter/commit/081929092f32463fd1f9106ec4f71b0adcb9ff82)
- **Signature changed** `GenerateError.GrammarPath`  

GenerateError::GrammarPath now holds an IoError inside it. Update code that constructs or matches this variant. [github.com](https://github.com/tree-sitter/tree-sitter/commit/baad4174e551e527bde1b069f4b41082e4abd085)
- **Signature changed** `iter_names`  

The item of iter_names is now a borrowed &str rather than &'static str. [github.com](https://github.com/tree-sitter/tree-sitter/commit/081929092f32463fd1f9106ec4f71b0adcb9ff82)
- **Signature changed** `Node.grammar_name`  

Node::grammar_name now returns a string tied to the tree rather than static lifetime. [github.com](https://github.com/tree-sitter/tree-sitter/commit/c68605f18d0e46a653f2ed89b02a6fab93dffac0)
- **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](https://github.com/tree-sitter/tree-sitter/commit/c68605f18d0e46a653f2ed89b02a6fab93dffac0)
- **Signature changed** `TreeCursor.field_name`  

TreeCursor::field_name now returns a string tied to the tree rather than static lifetime. [github.com](https://github.com/tree-sitter/tree-sitter/commit/c68605f18d0e46a653f2ed89b02a6fab93dffac0)

## tree-sitter 0.27.0 breaking changes

tree-sitter 0.27.0: 13 breaking changes.

- **Removed** `Package.swift`  

Package.swift is no longer shipped, so Swift Package Manager users lose this entry point. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **Behavior changed**  

Wasm toolchain and stdlib updates change how wasm parsers are built. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **Behavior changed** `generate_parser_in_directory`  

Passing a nonexistent file path now returns an error instead of proceeding. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **Behavior changed** `Language.load`  

Rust parser loggers must now be Send and have a static lifetime. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **Behavior changed** `LookaheadIterator`  

LookaheadIterator was reworked with breaking changes; existing usage may need updates. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **Behavior changed** `query iterators`  

Query iterators are now tied to the options lifetime, which can break code that held them longer. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **Behavior changed** `tree-sitter init`  

When a lib path is passed, languages are no longer all loaded via config. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **Behavior changed** `tree-sitter test`  

Corpus test updates and malformed test warnings change CLI behavior. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)

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

## tree-sitter 0.26.2 breaking changes

tree-sitter 0.26.2: 5 breaking changes.

- **Behavior changed**  

Supertype syntax that contains whitespace is now rejected, so existing grammars or queries using it must be updated. [github.com](https://github.com/tree-sitter/tree-sitter/commit/00e394f0f18101c10e3dec8e42e2b6c215e68c16)
- **Behavior changed**  

Config error handling changed from anyhow to thiserror, so code that depends on the previous error types may need updating. [github.com](https://github.com/tree-sitter/tree-sitter/commit/7eb23d9f3cae0876dec541f06da633b066f583e7)
- **Behavior changed**  

Loader error handling changed from anyhow to thiserror, so code that depends on the previous error types may need updating. [github.com](https://github.com/tree-sitter/tree-sitter/commit/67cb3cb88146dd9ce3a098e33ac0374b5ce1e22d)
- **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](https://github.com/tree-sitter/tree-sitter/commit/61c21aa408710019fc81c14a9b213dd762d5c5bd)
- **Signature changed** `select_language`  

The arguments passed to select_language were corrected, so callers must update the arguments they pass. [github.com](https://github.com/tree-sitter/tree-sitter/commit/bec7c3272b7b05bc316e179f5eb0db1a3792ff59)

## tree-sitter 0.26.1 breaking changes

tree-sitter 0.26.1: 14 breaking changes.

- **Removed**  

Deprecated C library functions were removed. Check your code for calls to deprecated functions and stop using them. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.1)
- **Removed** `--emit=lib`  

The --emit=lib option for the generate command was removed. Stop passing it. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.1)
- **Removed** `--no-bindings`  

The deprecated --no-bindings flag was removed from the generate command. Stop passing it. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.1)
- **Renamed** `DecodeFunction`  

The C type DecodeFunction is now named TSDecodeFunction. Update references to the new name. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.1)
- **Renamed** `stage`  

The generate command's stage flag is now called emit. Update scripts that pass the old flag name. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.1)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.1)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.1)
- **Behavior changed**  

The build.zig file now targets Zig 0.15. Use Zig 0.15 to build the package. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.1)
- **Default changed** `--grammar-path`  

When --grammar-path is passed, parsers are now rebuilt by default. Expect rebuilds where none happened before. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.1)
- **Configuration changed**  

APIs for generating grammars from a file are now behind a feature flag. Enable that feature to keep using them. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.26.1)

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

## tree-sitter 0.25.1 breaking changes

tree-sitter 0.25.1: 8 breaking changes.

- **Removed**  

The CLI no longer migrates older tree-sitter.json files. Migrate such files by hand before upgrading. [github.com](https://github.com/tree-sitter/tree-sitter/commit/24f51518d11760b0ec84fd9b8bd6b989832964c8)
- **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](https://github.com/tree-sitter/tree-sitter/commit/344a88c4fb968cc789049a378e0cc988c4253751)
- **Renamed** `QueryMatch.pattern`  

The pattern field of QueryMatch is renamed to patternIndex in the web bindings. Update code that reads pattern. [github.com](https://github.com/tree-sitter/tree-sitter/commit/d60c6f163deac02e2765f0e53197dafc16f2b2ec)
- **Behavior changed**  

The Swift bindings were updated in a breaking way. Check Swift code that uses the bindings after upgrading. [github.com](https://github.com/tree-sitter/tree-sitter/commit/51acdf97236bc5d2da159d4fa716ddbe4cf0aa70)
- **Behavior changed**  

The generator now uses regex_syntax::Hir to expand regexes, which may change generated grammars. [github.com](https://github.com/tree-sitter/tree-sitter/commit/c8cf75fd301cad23b6fc5fe83307d31fb43dc8c1)
- **Behavior changed**  

The internal ABI moves to version 15, so grammars built against older ABIs may need regenerating. [github.com](https://github.com/tree-sitter/tree-sitter/commit/ce93d8fd9b73fe586cf6c42ca3988051a7952623)
- **Behavior changed**  

The web bindings library was rewritten in TypeScript, which may change its types and behavior. Check web code after upgrading. [github.com](https://github.com/tree-sitter/tree-sitter/commit/2cae67892ed0dff4f8fe1ed6933fd4f0e612af12)
- **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](https://github.com/tree-sitter/tree-sitter/commit/be7716dfa7b92ccec4869aa81473d2aeb0652a5e)

## tree-sitter 0.25.0 breaking changes

tree-sitter 0.25.0: 6 breaking changes.

- **Removed**  

The CLI no longer migrates older tree-sitter.json files automatically. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)
- **Removed**  

The Python bindings no longer support Python 3.9. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)
- **Behavior changed**  

UTF-16 input endianness is now handled differently, so code that relied on the old behavior may parse differently. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)

## 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)

### tree-sitter 0.24.2 breaking changes

tree-sitter 0.24.2: 1 breaking change.

- **Removed**  

The legacy binding update path has been removed. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.24.2)

### tree-sitter 0.24.0 breaking changes

tree-sitter 0.24.0: 7 breaking changes.

- **Removed**  

Commands no longer accept the filter flag; use include and exclude instead. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.24.0)
- **Removed**  

External scanners can no longer be written in C++; they must be written in C. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.24.0)

And 5 more in this version.

### tree-sitter 0.23.0 breaking changes

tree-sitter 0.23.0: 5 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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.23.0)
- **Behavior changed**  

The Python binding switched to capsules, which changes how language objects are passed to the library. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.23.0)

And 3 more in this version.

### tree-sitter 0.22.2 breaking changes

tree-sitter 0.22.2: 1 breaking change.

- **Behavior changed**  

Parser compilation is now a separate build command rather than part of generate. Run build to compile parsers. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.22.2)

### tree-sitter 0.22.0 breaking changes

tree-sitter 0.22.0: 2 breaking changes.

- **Removed**  

The bindings no longer ship a dsl types file. Stop importing it. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.22.0)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.22.0)

### tree-sitter 0.21.0 breaking changes

tree-sitter 0.21.0: 3 breaking changes.

- **Removed**  

The previously deprecated query parsing mechanism has been removed. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.21.0)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.21.0)

And 1 more in this version.

## Related packages

- [tree-sitter-highlight](https://since.dev/packages/crates/tree-sitter-highlight.md):  on crates.io
- [tree-sitter](https://since.dev/packages/crates/tree-sitter.md):  on crates.io
- [github.com/tree-sitter/tree-sitter](https://since.dev/packages/swift/github.com/tree-sitter/tree-sitter.md):  on Swift Package Index
- [tree-sitter-cli](https://since.dev/packages/vcpkg/tree-sitter-cli.md)

## 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.
