unstale

npm / @streamdown/code

@streamdown/code

What changed in @streamdown/code 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.

1 breaking1 new APIs and options1 performance1 behavior and defaults1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

@streamdown/code 23 changes

Breaking changes 1

  • Node.js 20 or newer is now required when using @streamdown/code.

    2.0.0release notes

Performance 1

  • Streaming code blocks tokenize only new lines instead of re-tokenizing the whole block on every update.

    2.0.0release notes

Behavior and default changes 1

  • Streaming results are no longer cached; finished blocks use a size-bounded LRU cache of up to 5,000 results, compare full code, and ignore results for code already passed.

    2.0.0release notes

@streamdown/code 12 changes

New APIs and options 1

  • Adds a themes option accepting a [light, dark] pair of bundled theme names or full theme registration objects, enabling custom Shiki themes.

    1.1.0release notes

Fixes and other changes 1

  • Unknown or mid-stream truncated code block language identifiers now fall back to plain text highlighting, preventing Shiki from throwing on unsupported language names.

    1.1.1release notes