---
title: "tree-sitter-highlight 0.27.0 Breaking Changes on crates.io"
description: "What each tree-sitter-highlight release removed, renamed or changed: 15 breaking changes in 2 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/tree-sitter-highlight
last_updated: 2026-12-04
---

# 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

Latest version `0.27.2`, released November 7, 2026. [Source repository](https://github.com/tree-sitter/tree-sitter)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.25.0](#v-0-25-0) to [0.27.0](#v-0-27-0): 7 breaking changes in 1 version.

## tree-sitter-highlight 0.27.0 breaking changes

tree-sitter-highlight 0.27.0, released August 30, 2026: 7 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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.27.0)
- **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](https://github.com/tree-sitter/tree-sitter/commit/5ddf71b9f4a7a88a194e45148b7eabe99fb55090)
- **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](https://crates.io/crates/tree-sitter-highlight/0.27.0)
- **Signature changed** `tree_sitter_highlight::Error::InvalidLanguage`  

Was InvalidLanguage; now InvalidLanguage(#\[from\] tree_sitter::LanguageError). [crates.io](https://crates.io/crates/tree-sitter-highlight/0.27.0)
- **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](https://crates.io/crates/tree-sitter-highlight/0.27.0)

## tree-sitter-highlight 0.25.0 breaking changes

tree-sitter-highlight 0.25.0, released February 1, 2025: 8 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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)
- **Renamed** `QueryMatch.pattern`  

The pattern field of QueryMatch in the web bindings is renamed to patternIndex. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)
- **Behavior changed** `Language.query`  

Python 3.9 support was dropped in the bindings. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)
- **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](https://github.com/tree-sitter/tree-sitter/commit/be7716dfa7b92ccec4869aa81473d2aeb0652a5e)
- **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](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)
- **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](https://crates.io/crates/tree-sitter-highlight/0.25.0)
- **Signature changed** `TSInput`  

TSInput now has a required new DecodeFunction field; pass NULL to use the builtin function. [github.com](https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0)

## Related packages

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

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