chroma breaking changes
chroma 3.0.0 (November 28, 2026) is its newest release with breaking changes, 28 of them. The first: Removed ANSI2RGB. Every breaking API change we have recorded in chroma on Homebrew: 28 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.1.0, released November 29, 2026. MIT license. Source repository
chroma 3.0.0 breaking changes
- Removed
ANSI2RGB
ANSI2RGB map unexported in chroma 3.0.0 github.com - Removed
chroma.Analyser
Use Lexer, which already declares AnalyseText. github.com - Removed
chroma.Tokenise
chroma.Tokenise and Token.Clone removed github.com - Removed
Colours
Use slices.Sort if sorting is needed. github.com - Removed
Emitters
Emitters type unexported in chroma 3.0.0 github.com - Removed
LexerRegistry.Lexers
Use All(), which returns a sorted copy, instead of ranging over the exported Lexers slice. github.com - Removed
lexers.Haxe
Reach lexers through the registry instead of these exported variables. github.com - Removed
lexers.HTTP
Reach lexers through the registry instead of these exported variables. github.com - Removed
lexers.Plan9RC
Reach lexers through the registry instead of these exported variables. github.com - Removed
lexers.Raku
Reach lexers through the registry instead of these exported variables. github.com - Removed
LexerState.MutatorContext
Use the Set and Get methods to reach the per-tokenisation context. github.com - Removed
PlaintextRules
PlaintextRules unexported in chroma 3.0.0 github.com - Removed
PrioritisedLexers
PrioritisedLexers removed in chroma 3.0.0 github.com - Removed
RecoveringFormatter
Unused RecoveringFormatter removed in chroma 3.0.0 github.com - Removed
RegexLexer.MustRules
Unused Rules and RegexLexer helpers removed in chroma 3.0.0 github.com - Removed
RegexLexer.SetConfig
Unused Rules and RegexLexer helpers removed in chroma 3.0.0 github.com - Removed
RegexLexer.SetTracing
Pass WithTrace per call instead of setting tracing on shared lexers. github.com - Removed
Rules.Merge
Unused Rules and RegexLexer helpers removed in chroma 3.0.0 github.com - Removed
Rules.Rename
Unused Rules and RegexLexer helpers removed in chroma 3.0.0 github.com - Removed
svg.EmbedFontProvider
EmbedFontProvider removed in chroma 3.0.0 github.com - Removed
Token.Clone
chroma.Tokenise and Token.Clone removed github.com - Removed
TracingLexer
Pass WithTrace per call instead of setting tracing on shared lexers. github.com - Renamed
svg.TRUETYPE
Update references from svg.TRUETYPE to svg.TrueType. github.com - Behavior changed
Generated CSS declarations are reformatted; golden files comparing the output will need updating. github.com - Behavior changed
Token.GoString
GoString now prints Token{...} rather than &Token{...}, which changes tokens formatter output. github.com - Behavior changed
WithPreWrapper
A custom wrapper wins, then PreventSurroundingPre, then InlineCode; option order no longer matters, so output may differ. github.com - Signature changed
Lexer.Tokenise
Lexer.Tokenise no longer takes a TokeniseOptions struct; pass functional options instead. github.com - Signature changed
svg.EmbedFont
Pass the font file's bytes rather than a base64-encoded string. github.com
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.