---
title: "chroma 3.0.0 Breaking Changes on Homebrew | Since.dev"
description: "What each chroma release removed, renamed or changed: 28 breaking changes in 1 version on Homebrew, each with its source."
canonical_url: https://since.dev/packages/homebrew/chroma
last_updated: 2026-12-04
---

# 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

Latest version `3.1.0`, released November 29, 2026. MIT license. [Source repository](https://github.com/alecthomas/chroma)

## chroma 3.0.0 breaking changes

chroma 3.0.0, released November 28, 2026: 28 breaking changes.

- **Removed** `ANSI2RGB`  

ANSI2RGB map unexported in chroma 3.0.0 [github.com](https://github.com/alecthomas/chroma/commit/c7f47444750bafb0b1de647094e547690294bb23)
- **Removed** `chroma.Analyser`  

Use Lexer, which already declares AnalyseText. [github.com](https://github.com/alecthomas/chroma/commit/67e1502d9e4733f916f6b1cb23f18bbb2b5af288)
- **Removed** `chroma.Tokenise`  

chroma.Tokenise and Token.Clone removed [github.com](https://github.com/alecthomas/chroma/commit/1f6fe0dab9f5bdac6f6af92b704103942c44c843)
- **Removed** `Colours`  

Use slices.Sort if sorting is needed. [github.com](https://github.com/alecthomas/chroma/commit/ecca99e96805fb7b7c16521e99c31fd980e56380)
- **Removed** `Emitters`  

Emitters type unexported in chroma 3.0.0 [github.com](https://github.com/alecthomas/chroma/commit/db59bc6b287c993ddf0b1ed3a90140c8c432f868)
- **Removed** `LexerRegistry.Lexers`  

Use All(), which returns a sorted copy, instead of ranging over the exported Lexers slice. [github.com](https://github.com/alecthomas/chroma/commit/fde058abbf99b02b89cb004bd1b25ee5a1b1b022)
- **Removed** `lexers.Haxe`  

Reach lexers through the registry instead of these exported variables. [github.com](https://github.com/alecthomas/chroma/commit/6799e7317abcc277e03f11b7e11a6ef5d3f99d41)
- **Removed** `lexers.HTTP`  

Reach lexers through the registry instead of these exported variables. [github.com](https://github.com/alecthomas/chroma/commit/6799e7317abcc277e03f11b7e11a6ef5d3f99d41)
- **Removed** `lexers.Plan9RC`  

Reach lexers through the registry instead of these exported variables. [github.com](https://github.com/alecthomas/chroma/commit/6799e7317abcc277e03f11b7e11a6ef5d3f99d41)
- **Removed** `lexers.Raku`  

Reach lexers through the registry instead of these exported variables. [github.com](https://github.com/alecthomas/chroma/commit/6799e7317abcc277e03f11b7e11a6ef5d3f99d41)
- **Removed** `LexerState.MutatorContext`  

Use the Set and Get methods to reach the per-tokenisation context. [github.com](https://github.com/alecthomas/chroma/commit/3ad5a8055b1543da8eb0bd6bf7ce7e3ee43933c8)
- **Removed** `PlaintextRules`  

PlaintextRules unexported in chroma 3.0.0 [github.com](https://github.com/alecthomas/chroma/commit/6799e7317abcc277e03f11b7e11a6ef5d3f99d41)
- **Removed** `PrioritisedLexers`  

PrioritisedLexers removed in chroma 3.0.0 [github.com](https://github.com/alecthomas/chroma/commit/1afcf986c9e6b9d089f1bfa6338274437db3c0ef)
- **Removed** `RecoveringFormatter`  

Unused RecoveringFormatter removed in chroma 3.0.0 [github.com](https://github.com/alecthomas/chroma/commit/651478f64fcff3448c1e3cf5fb73bf860a8f6038)
- **Removed** `RegexLexer.MustRules`  

Unused Rules and RegexLexer helpers removed in chroma 3.0.0 [github.com](https://github.com/alecthomas/chroma/commit/9449c1644153a602de4dd09074d83d3a7169de6f)
- **Removed** `RegexLexer.SetConfig`  

Unused Rules and RegexLexer helpers removed in chroma 3.0.0 [github.com](https://github.com/alecthomas/chroma/commit/9449c1644153a602de4dd09074d83d3a7169de6f)
- **Removed** `RegexLexer.SetTracing`  

Pass WithTrace per call instead of setting tracing on shared lexers. [github.com](https://github.com/alecthomas/chroma/commit/08b9fbf0f224f07549ff9451547e46d22fa9bcdf)
- **Removed** `Rules.Merge`  

Unused Rules and RegexLexer helpers removed in chroma 3.0.0 [github.com](https://github.com/alecthomas/chroma/commit/9449c1644153a602de4dd09074d83d3a7169de6f)
- **Removed** `Rules.Rename`  

Unused Rules and RegexLexer helpers removed in chroma 3.0.0 [github.com](https://github.com/alecthomas/chroma/commit/9449c1644153a602de4dd09074d83d3a7169de6f)
- **Removed** `svg.EmbedFontProvider`  

EmbedFontProvider removed in chroma 3.0.0 [github.com](https://github.com/alecthomas/chroma/commit/802b7dcbcafb1b546e74de3197aa863b249fdc4d)
- **Removed** `Token.Clone`  

chroma.Tokenise and Token.Clone removed [github.com](https://github.com/alecthomas/chroma/commit/1f6fe0dab9f5bdac6f6af92b704103942c44c843)
- **Removed** `TracingLexer`  

Pass WithTrace per call instead of setting tracing on shared lexers. [github.com](https://github.com/alecthomas/chroma/commit/08b9fbf0f224f07549ff9451547e46d22fa9bcdf)
- **Renamed** `svg.TRUETYPE`  

Update references from svg.TRUETYPE to svg.TrueType. [github.com](https://github.com/alecthomas/chroma/commit/90ad972fa41706055b58cea60982175d2ace8a6b)
- **Behavior changed**  

Generated CSS declarations are reformatted; golden files comparing the output will need updating. [github.com](https://github.com/alecthomas/chroma/commit/6e44271ae53e7ac05c58feb1cb67270a82889e76)
- **Behavior changed** `Token.GoString`  

GoString now prints Token{...} rather than &Token{...}, which changes tokens formatter output. [github.com](https://github.com/alecthomas/chroma/commit/1f6fe0dab9f5bdac6f6af92b704103942c44c843)
- **Behavior changed** `WithPreWrapper`  

A custom wrapper wins, then PreventSurroundingPre, then InlineCode; option order no longer matters, so output may differ. [github.com](https://github.com/alecthomas/chroma/commit/4dd55d619012032429d6d074bec797263d095eb1)
- **Signature changed** `Lexer.Tokenise`  

Lexer.Tokenise no longer takes a TokeniseOptions struct; pass functional options instead. [github.com](https://github.com/alecthomas/chroma/commit/e46ef6791fce51f177fed9974840dd2cdbb11118)
- **Signature changed** `svg.EmbedFont`  

Pass the font file's bytes rather than a base64-encoded string. [github.com](https://github.com/alecthomas/chroma/commit/802b7dcbcafb1b546e74de3197aa863b249fdc4d)

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