diff --git a/.changeset/brave-shiki-four.md b/.changeset/brave-shiki-four.md deleted file mode 100644 index 6f220213..00000000 --- a/.changeset/brave-shiki-four.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@streamdown/code": major ---- - -Upgrade Shiki to v4. Node.js 20 or newer is now required when using `@streamdown/code`. diff --git a/.changeset/shared-overlay-portal.md b/.changeset/shared-overlay-portal.md deleted file mode 100644 index de14e3b3..00000000 --- a/.changeset/shared-overlay-portal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"streamdown": patch ---- - -Add a top-level `portal` prop for configuring the container used by Mermaid fullscreen, table fullscreen, and the built-in link safety modal. diff --git a/.changeset/update-marked-v18.md b/.changeset/update-marked-v18.md deleted file mode 100644 index 17b139a3..00000000 --- a/.changeset/update-marked-v18.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"streamdown": patch ---- - -Update `marked` from `^17.0.1` to `^18.0.11`. - -marked v18 no longer folds a block token's trailing blank line(s) into its own `raw`; that whitespace now surfaces as a separate `space` token immediately following the block (e.g. after `html`, `heading`, and `table` tokens). This changed the token stream shape that `parseMarkdownIntoBlocks` consumes, causing a dangling `space` token after a closed custom-tag HTML block to be emitted as its own standalone block. `parseMarkdownIntoBlocks` now folds a `space` token into the preceding block instead of pushing it as a new one, restoring v17-identical block boundaries and counts. The lossless `token.raw` concatenation invariant is preserved. diff --git a/packages/streamdown-code/CHANGELOG.md b/packages/streamdown-code/CHANGELOG.md index 503432ac..497fac89 100644 --- a/packages/streamdown-code/CHANGELOG.md +++ b/packages/streamdown-code/CHANGELOG.md @@ -1,5 +1,11 @@ # @streamdown/code +## 2.0.0 + +### Major Changes + +- db6fefc: Upgrade Shiki to v4. Node.js 20 or newer is now required when using `@streamdown/code`. + ## 1.1.1 ### Patch Changes diff --git a/packages/streamdown-code/package.json b/packages/streamdown-code/package.json index 489a3606..dafde6f2 100644 --- a/packages/streamdown-code/package.json +++ b/packages/streamdown-code/package.json @@ -1,6 +1,6 @@ { "name": "@streamdown/code", - "version": "1.1.1", + "version": "2.0.0", "description": "Shiki syntax highlighting plugin for Streamdown", "repository": { "type": "git", diff --git a/packages/streamdown/CHANGELOG.md b/packages/streamdown/CHANGELOG.md index 247d48f9..08401f6e 100644 --- a/packages/streamdown/CHANGELOG.md +++ b/packages/streamdown/CHANGELOG.md @@ -1,5 +1,14 @@ # streamdown +## 2.6.1 + +### Patch Changes + +- 18dcb20: Add a top-level `portal` prop for configuring the container used by Mermaid fullscreen, table fullscreen, and the built-in link safety modal. +- a155a9e: Update `marked` from `^17.0.1` to `^18.0.11`. + + marked v18 no longer folds a block token's trailing blank line(s) into its own `raw`; that whitespace now surfaces as a separate `space` token immediately following the block (e.g. after `html`, `heading`, and `table` tokens). This changed the token stream shape that `parseMarkdownIntoBlocks` consumes, causing a dangling `space` token after a closed custom-tag HTML block to be emitted as its own standalone block. `parseMarkdownIntoBlocks` now folds a `space` token into the preceding block instead of pushing it as a new one, restoring v17-identical block boundaries and counts. The lossless `token.raw` concatenation invariant is preserved. + ## 2.6.0 ### Minor Changes diff --git a/packages/streamdown/package.json b/packages/streamdown/package.json index 577934c6..a8e55f59 100644 --- a/packages/streamdown/package.json +++ b/packages/streamdown/package.json @@ -1,6 +1,6 @@ { "name": "streamdown", - "version": "2.6.0", + "version": "2.6.1", "description": "A drop-in replacement for react-markdown, designed for AI-powered streaming.", "homepage": "https://streamdown.ai", "repository": {