Download Latest Version streamdown@2.7.0 source code.zip (1.4 MB) Google Add to Preferred Sources
Home / @streamdown_code@2.0.0
Name Modified Size InfoDownloads / Week
Parent folder
@streamdown_code@2.0.0 source code.tar.gz 2026-09-30 1.2 MB
@streamdown_code@2.0.0 source code.zip 2026-09-30 1.4 MB
README.md 2026-09-30 732 Bytes
Totals: 3 Items   2.5 MB 0

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.
Source: README.md, updated 2026-09-30