tree-sitter-highlight breaking changes
tree-sitter-highlight 0.27.0 (August 30, 2026) is its newest release with breaking changes, 7 of them. The first: Highlight HTML output modes were reworked in tree-sitter-highlight 0.27.0. Every breaking API change we have recorded in tree-sitter-highlight on crates.io: 15 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.27.2, released November 7, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
tree-sitter-highlight 0.27.0 breaking changes
- Behavior changed
The HTML output modes of the highlight command were reworked, so code relying on the previous HTML output must be updated. github.com - Behavior changed
Highlight positions and offsets are now handled as UTF-16 in breaking form, so code that assumed the previous byte-based positions must be checked. github.com - Signature changed
The error enums of the highlight and tag crates gained the underlying LanguageError, so exhaustive matches on these enums must handle the new variant. github.com - Signature changed
QueryMatch.captures
In the Rust bindings, the captures field became an accessor method. Callers must change m.captures to m.captures(). github.com - Signature changed
tree_sitter_highlight::_QueryCaptures
Was struct _QueryCaptures<'query, 'tree: 'query, T: TextProvider<I>, I: AsRef<[u8]>>; now struct _QueryCaptures<'query, 'tree, T: TextProvider<I>, I: AsRef<[u8]>>. crates.io - Signature changed
tree_sitter_highlight::Error::InvalidLanguage
Was InvalidLanguage; now InvalidLanguage(#[from] tree_sitter::LanguageError). crates.io - Signature changed
tree_sitter_highlight::Highlighter::highlight
Was fn highlight<'a>(&'a mut self, config: &'a HighlightConfiguration, source: &'a [u8], cancellation_flag: Option<&'a AtomicUsize>, mut injection_callback: impl FnMut(&str) -> Option<&'a HighlightConfiguration> + 'a) -> Result<impl... crates.io
tree-sitter-highlight 0.25.0 breaking changes
- Removed
ts_node_child_containing_descendant
The function ts_node_child_containing_descendant was removed; use ts_node_child_with_descendant instead, which has nearly the same behavior but can also return the descendant. github.com - Renamed
QueryMatch.pattern
The pattern field of QueryMatch in the web bindings is renamed to patternIndex. github.com - Behavior changed
Parsers now use ABI 15, which requires a tree-sitter.json file in the repository for version information; code relying on the old ABI must be regenerated. github.com - Behavior changed
Language.query
Python 3.9 support was dropped in the bindings. github.com - Behavior changed
Parser
Parser is no longer the default export of the web bindings. Import it by name and call Parser.init() before use. github.com - Behavior changed
web-tree-sitter
The web library was rewritten in TypeScript and now uses the WASM module from the bindings; code depending on previous internals may need adjustment. github.com - Signature changed
tree_sitter_highlight::HtmlRenderer::render
Was fn render<'a, F>(&mut self, highlighter: impl Iterator<Item = Result<HighlightEvent, Error>>, source: &'a [u8], attribute_callback: &F) -> Result<(), Error> where F: Fn(Highlight) -> &'a [u8],; now fn render<F>(&mut self, highlighter... crates.io - Signature changed
TSInput
TSInput now has a required new DecodeFunction field; pass NULL to use the builtin function. github.com
Related packages
- tree-sitter
- github.com/tree-sitter/tree-sitter on Swift Package Index
- tree-sitter on vcpkg
- tree-sitter-cli on vcpkg
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.