diff --git a/.changeset/custom-tag-code-blank-lines.md b/.changeset/custom-tag-code-blank-lines.md deleted file mode 100644 index b95a8a98..00000000 --- a/.changeset/custom-tag-code-blank-lines.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"streamdown": patch ---- - -Keep blank lines inside fenced code blocks in custom tags instead of rendering `` placeholders in the code. diff --git a/.changeset/exact-optional-property-types.md b/.changeset/exact-optional-property-types.md deleted file mode 100644 index 16a3b71d..00000000 --- a/.changeset/exact-optional-property-types.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"streamdown": patch -"remend": patch ---- - -Support `exactOptionalPropertyTypes`: add `| undefined` to optional props in the public types so possibly-`undefined` values can be forwarded to `` and `remend` without type errors diff --git a/.changeset/logical-rtl-classes.md b/.changeset/logical-rtl-classes.md deleted file mode 100644 index 53a6a8e8..00000000 --- a/.changeset/logical-rtl-classes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"streamdown": patch ---- - -fix: use logical Tailwind classes (`ps-*`, `border-s-*`, `text-start`, `start-*`, `end-*`, `ms-*`) instead of physical left/right classes so layout mirrors in RTL text. `cn` now treats logical and physical utilities on the same axis as conflicting, so a consumer `className="pl-8"` still overrides the built-in padding. The code block keeps physical classes because it is pinned `dir="ltr"`. diff --git a/.changeset/mermaid-stable-svg-html.md b/.changeset/mermaid-stable-svg-html.md deleted file mode 100644 index bd1a62b0..00000000 --- a/.changeset/mermaid-stable-svg-html.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"streamdown": patch ---- - -perf: stop re-parsing a Mermaid diagram's SVG every time it re-renders with the same chart diff --git a/.changeset/plugin-exact-optional-property-types.md b/.changeset/plugin-exact-optional-property-types.md deleted file mode 100644 index b954c0be..00000000 --- a/.changeset/plugin-exact-optional-property-types.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@streamdown/code": patch -"@streamdown/math": patch -"@streamdown/mermaid": patch ---- - -Support `exactOptionalPropertyTypes`: add `| undefined` to optional props in the plugin option types so possibly-`undefined` values can be forwarded to `createCodePlugin`, `createMathPlugin` and `createMermaidPlugin` without type errors diff --git a/.changeset/prefix-raw-html-ids.md b/.changeset/prefix-raw-html-ids.md deleted file mode 100644 index 280f051d..00000000 --- a/.changeset/prefix-raw-html-ids.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"streamdown": patch ---- - -fix: restore `user-content-` clobberPrefix on sanitize so raw HTML ids cannot clobber `window`, and strip the doubled prefix on footnote ids that remark-rehype already prefixed. diff --git a/.changeset/quiet-partial-mermaid.md b/.changeset/quiet-partial-mermaid.md deleted file mode 100644 index 16003cc6..00000000 --- a/.changeset/quiet-partial-mermaid.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"streamdown": patch ---- - -fix(mermaid): stop showing "Mermaid Error" for a partial chart while its fence streams - -- Keep the loader while a Mermaid fence is still streaming instead of showing the error for a partial chart -- Show the error once the fence closes, including when the final chart text is unchanged from the last partial render diff --git a/.changeset/quiet-plugins-render.md b/.changeset/quiet-plugins-render.md deleted file mode 100644 index 5ada25f2..00000000 --- a/.changeset/quiet-plugins-render.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"streamdown": patch ---- - -Distinguish remark and rehype plugins by function identity when caching processors, so same-name plugins with different closures do not reuse each other's behavior. diff --git a/.changeset/raw-code-block-languages.md b/.changeset/raw-code-block-languages.md deleted file mode 100644 index f6a70895..00000000 --- a/.changeset/raw-code-block-languages.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"streamdown": minor ---- - -feat: add `codeBlockRawLanguages` option to render selected code fence languages (e.g. ASCII / box-drawing diagrams) verbatim as monospace text without syntax highlighting diff --git a/packages/remend/CHANGELOG.md b/packages/remend/CHANGELOG.md index b7943be3..82521f73 100644 --- a/packages/remend/CHANGELOG.md +++ b/packages/remend/CHANGELOG.md @@ -1,5 +1,11 @@ # remend +## 1.4.1 + +### Patch Changes + +- ae6fa3b: Support `exactOptionalPropertyTypes`: add `| undefined` to optional props in the public types so possibly-`undefined` values can be forwarded to `` and `remend` without type errors + ## 1.4.0 ### Minor Changes diff --git a/packages/remend/package.json b/packages/remend/package.json index 5980db26..1fc8453c 100644 --- a/packages/remend/package.json +++ b/packages/remend/package.json @@ -1,6 +1,6 @@ { "name": "remend", - "version": "1.4.0", + "version": "1.4.1", "description": "Self-healing markdown. Intelligently parses and styles incomplete Markdown blocks.", "homepage": "https://streamdown.ai/docs/termination", "repository": { diff --git a/packages/streamdown-code/CHANGELOG.md b/packages/streamdown-code/CHANGELOG.md index 05dd1372..896e8fa1 100644 --- a/packages/streamdown-code/CHANGELOG.md +++ b/packages/streamdown-code/CHANGELOG.md @@ -1,5 +1,11 @@ # @streamdown/code +## 2.0.1 + +### Patch Changes + +- 7dcabc6: Support `exactOptionalPropertyTypes`: add `| undefined` to optional props in the plugin option types so possibly-`undefined` values can be forwarded to `createCodePlugin`, `createMathPlugin` and `createMermaidPlugin` without type errors + ## 2.0.0 ### Major Changes diff --git a/packages/streamdown-code/package.json b/packages/streamdown-code/package.json index e63c76fd..8125bfde 100644 --- a/packages/streamdown-code/package.json +++ b/packages/streamdown-code/package.json @@ -1,6 +1,6 @@ { "name": "@streamdown/code", - "version": "2.0.0", + "version": "2.0.1", "description": "Shiki syntax highlighting plugin for Streamdown", "repository": { "type": "git", diff --git a/packages/streamdown-math/CHANGELOG.md b/packages/streamdown-math/CHANGELOG.md index 9b8dbc96..b5feb5dc 100644 --- a/packages/streamdown-math/CHANGELOG.md +++ b/packages/streamdown-math/CHANGELOG.md @@ -1,5 +1,11 @@ # @streamdown/math +## 1.0.4 + +### Patch Changes + +- 7dcabc6: Support `exactOptionalPropertyTypes`: add `| undefined` to optional props in the plugin option types so possibly-`undefined` values can be forwarded to `createCodePlugin`, `createMathPlugin` and `createMermaidPlugin` without type errors + ## 1.0.3 ### Patch Changes diff --git a/packages/streamdown-math/package.json b/packages/streamdown-math/package.json index 98e9de4a..ecb88474 100644 --- a/packages/streamdown-math/package.json +++ b/packages/streamdown-math/package.json @@ -1,6 +1,6 @@ { "name": "@streamdown/math", - "version": "1.0.3", + "version": "1.0.4", "description": "KaTeX math rendering plugin for Streamdown", "repository": { "type": "git", diff --git a/packages/streamdown-mermaid/CHANGELOG.md b/packages/streamdown-mermaid/CHANGELOG.md index aa2678db..4c4ddfc6 100644 --- a/packages/streamdown-mermaid/CHANGELOG.md +++ b/packages/streamdown-mermaid/CHANGELOG.md @@ -1,5 +1,11 @@ # @streamdown/mermaid +## 1.0.4 + +### Patch Changes + +- 7dcabc6: Support `exactOptionalPropertyTypes`: add `| undefined` to optional props in the plugin option types so possibly-`undefined` values can be forwarded to `createCodePlugin`, `createMathPlugin` and `createMermaidPlugin` without type errors + ## 1.0.3 ### Patch Changes diff --git a/packages/streamdown-mermaid/package.json b/packages/streamdown-mermaid/package.json index f94e1bb5..cc282ebb 100644 --- a/packages/streamdown-mermaid/package.json +++ b/packages/streamdown-mermaid/package.json @@ -1,6 +1,6 @@ { "name": "@streamdown/mermaid", - "version": "1.0.3", + "version": "1.0.4", "description": "Mermaid diagram plugin for Streamdown", "repository": { "type": "git", diff --git a/packages/streamdown/CHANGELOG.md b/packages/streamdown/CHANGELOG.md index 7a871dcf..7ae5fa83 100644 --- a/packages/streamdown/CHANGELOG.md +++ b/packages/streamdown/CHANGELOG.md @@ -1,5 +1,27 @@ # streamdown +## 2.8.0 + +### Minor Changes + +- 8b0ca9f: feat: add `codeBlockRawLanguages` option to render selected code fence languages (e.g. ASCII / box-drawing diagrams) verbatim as monospace text without syntax highlighting + +### Patch Changes + +- a9fb2a2: Keep blank lines inside fenced code blocks in custom tags instead of rendering `` placeholders in the code. +- ae6fa3b: Support `exactOptionalPropertyTypes`: add `| undefined` to optional props in the public types so possibly-`undefined` values can be forwarded to `` and `remend` without type errors +- 8aaf182: fix: use logical Tailwind classes (`ps-*`, `border-s-*`, `text-start`, `start-*`, `end-*`, `ms-*`) instead of physical left/right classes so layout mirrors in RTL text. `cn` now treats logical and physical utilities on the same axis as conflicting, so a consumer `className="pl-8"` still overrides the built-in padding. The code block keeps physical classes because it is pinned `dir="ltr"`. +- c6f5905: perf: stop re-parsing a Mermaid diagram's SVG every time it re-renders with the same chart +- 66779a8: fix: restore `user-content-` clobberPrefix on sanitize so raw HTML ids cannot clobber `window`, and strip the doubled prefix on footnote ids that remark-rehype already prefixed. +- 97c1f87: fix(mermaid): stop showing "Mermaid Error" for a partial chart while its fence streams + + - Keep the loader while a Mermaid fence is still streaming instead of showing the error for a partial chart + - Show the error once the fence closes, including when the final chart text is unchanged from the last partial render + +- ec1489a: Distinguish remark and rehype plugins by function identity when caching processors, so same-name plugins with different closures do not reuse each other's behavior. +- Updated dependencies [ae6fa3b] + - remend@1.4.1 + ## 2.7.1 ### Patch Changes diff --git a/packages/streamdown/package.json b/packages/streamdown/package.json index 1dd470dd..c6254ec8 100644 --- a/packages/streamdown/package.json +++ b/packages/streamdown/package.json @@ -1,6 +1,6 @@ { "name": "streamdown", - "version": "2.7.1", + "version": "2.8.0", "description": "A drop-in replacement for react-markdown, designed for AI-powered streaming.", "homepage": "https://streamdown.ai", "repository": {