# What changed in @alcalzone/ansi-tokenize

> 15 changes in @alcalzone/ansi-tokenize 0.2 to 0.4 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@alcalzone/ansi-tokenize/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @alcalzone/ansi-tokenize 0.4

### Breaking changes

- Node.js 22 or newer is now required. (0.4.0) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.4.0)
- styles is now readonly, and characters in the same style run share one array. Assign a new array to change a character’s styles; sharing also makes conversion faster. (0.4.0) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.4.0)

### Fixes and other changes

- SGR sequences with colon subparameters are now parsed correctly. (0.4.0) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.4.0)

## @alcalzone/ansi-tokenize 0.3

### Performance

- Avoids repeated style allocations and diffs within character runs, improving performance. (0.3.2) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.3.2)

### Fixes and other changes

- Keeps extended underline color codes together. (0.3.2) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.3.2)
- Correctly handles hyperlinks whose end code uses a different terminator. (0.3.2) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.3.2)
- Keeps dim or bold active when the other intensity style is turned off. (0.3.2) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.3.2)
- Prevents OSC hyperlink end codes from leaking into following styled characters. (0.3.1) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.3.1)
- Tokenization now preserves non-hyperlink OSC sequences. (0.3.0) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.3.0)
- OSC hyperlinks terminated with ST are now supported. (0.3.0) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.3.0)

## @alcalzone/ansi-tokenize 0.2

### Fixes and other changes

- Tokenization now preserves grapheme clusters. (0.2.5) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.2.5)
- Support hyperlinks with parameters. (0.2.4) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.2.4)
- Fixes a regression when rendering adjacent dim and bold styles. (0.2.3) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.2.3)
- Support compound SGR sequences with multiple attributes. (0.2.2) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.2.2)
- Prevents dim and bold modifiers from canceling each other. (0.2.1) — [release notes](https://github.com/AlCalzone/ansi-tokenize/releases/tag/v0.2.1)
