unstale

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

@unstale/cli on npm

@alcalzone/ansi-tokenize 0.43 changes

Breaking changes 2

  • Node.js 22 or newer is now required.

    0.4.0release notes

  • 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.0release notes

Fixes and other changes 1

  • SGR sequences with colon subparameters are now parsed correctly.

    0.4.0release notes

@alcalzone/ansi-tokenize 0.37 changes

Performance 1

  • Avoids repeated style allocations and diffs within character runs, improving performance.

    0.3.2release notes

Fixes and other changes 6

  • Keeps extended underline color codes together.

    0.3.2release notes

  • Correctly handles hyperlinks whose end code uses a different terminator.

    0.3.2release notes

  • Keeps dim or bold active when the other intensity style is turned off.

    0.3.2release notes

  • Prevents OSC hyperlink end codes from leaking into following styled characters.

    0.3.1release notes

  • Tokenization now preserves non-hyperlink OSC sequences.

    0.3.0release notes

  • OSC hyperlinks terminated with ST are now supported.

    0.3.0release notes

@alcalzone/ansi-tokenize 0.25 changes

Fixes and other changes 5

  • Tokenization now preserves grapheme clusters.

    0.2.5release notes

  • Support hyperlinks with parameters.

    0.2.4release notes

  • Fixes a regression when rendering adjacent dim and bold styles.

    0.2.3release notes

  • Support compound SGR sequences with multiple attributes.

    0.2.2release notes

  • Prevents dim and bold modifiers from canceling each other.

    0.2.1release notes