npm / @alcalzone/ansi-tokenize
@alcalzone/ansi-tokenize
What changed in @alcalzone/ansi-tokenize 0.2 to 0.4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking1 performance12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@alcalzone/ansi-tokenize 0.43 changes
Breaking changes 2
Node.js 22 or newer is now required.
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.
Fixes and other changes 1
SGR sequences with colon subparameters are now parsed correctly.
@alcalzone/ansi-tokenize 0.37 changes
Performance 1
Avoids repeated style allocations and diffs within character runs, improving performance.
Fixes and other changes 6
Keeps extended underline color codes together.
Correctly handles hyperlinks whose end code uses a different terminator.
Keeps dim or bold active when the other intensity style is turned off.
Prevents OSC hyperlink end codes from leaking into following styled characters.
Tokenization now preserves non-hyperlink OSC sequences.
OSC hyperlinks terminated with ST are now supported.
@alcalzone/ansi-tokenize 0.25 changes
Fixes and other changes 5
Tokenization now preserves grapheme clusters.
Support hyperlinks with parameters.
Fixes a regression when rendering adjacent dim and bold styles.
Support compound SGR sequences with multiple attributes.
Prevents dim and bold modifiers from canceling each other.