@streamdown/code@2.0.0
googleworkspace/cli@streamdown/code@2.0.0Sep 30, 2026by github-actions[bot]
Upgrading?
AI Summary
A major version upgrade for the code highlighting library, requiring Node.js 20+ and upgrading to Shiki v4.
Key Highlights
- Upgraded to Shiki v4
- Requires Node.js 20 or newer
- Tokenize only new lines while streaming instead of full block re-tokenization
- Code highlight cache bounded by size and token limits
Breaking Changes
- Requires Node.js 20 or newer
- Upgraded to Shiki v4
New Features
- Efficient streaming tokenization
- Bounded code highlight cache
Full Release Notes
### Major Changes - db6fefc: Upgrade Shiki to v4. Node.js 20 or newer is now required when using `@streamdown/code`. ### Patch Changes - 0ea9e64: Tokenize only the new lines of a code block while it streams instead of re-tokenizing the whole block on every update. - 4ec5639: Bound the code highlight cache. Results of streaming code blocks are no longer cached (each is superseded by the next update), and finished code blocks are kept in a least-recently-used cache bounded by their size (tokens, lines and characters) and by a limit of 5,000 results. Lookups compare the full code, so blocks that differ only in the middle no longer share tokens. A code block also ignores highlight results for code it has already moved past.
Related Repositories
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io
An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one