@streamdown/code@2.0.0
vectorize-io/hindsight@streamdown/code@2.0.0Sep 30, 2026by github-actions[bot]
Upgrading?
AI Summary
@streamdown/code@2.0.0 upgrades to Shiki v4 and optimizes streaming performance by only tokenizing new lines and implementing a bounded code highlight cache.
Key Highlights
- Upgrade to Shiki v4
- Node.js 20 or newer is now required
- Tokenize only new lines of a code block during streaming
- Code highlight cache size limits (LRU)
Breaking Changes
- Node.js 20 or newer is now required when using @streamdown/code
New Features
- Shiki v4 upgrade
- Streaming tokenization optimization
- 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
public-apis/public-apis★ 491,128
A collective list of free APIs
NousResearch/hermes-agent★ 255,903
The agent that grows with you
yt-dlp/yt-dlp★ 200,002
A feature-rich command-line audio/video downloader
microsoft/markitdown★ 191,481
Python tool for converting files and office documents to Markdown.
Significant-Gravitas/AutoGPT★ 187,700
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.