Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/add-inline-katex-completion.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-animation-stagger.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-code-block-horizontal-scroll.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/fix-code-block-memo.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/fix-csv-utf8-bom-excel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-custom-tag-inline-blank-lines.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-dropdown-z-index.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-shadcn-css-vars-docs.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-single-tilde-strikethrough.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-tailwind-v3-caret.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-unknown-language-fallback.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/line-numbers-option.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/meta-custom-renderer-prop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/update-remark-cjk-friendly-v2.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/remend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# remend

## 1.3.0

### Minor Changes

- e50b0c4: Add opt-in inline KaTeX completion (`$formula` → `$formula$`) via a new `inlineKatex` option that defaults to `false` to avoid ambiguity with currency symbols. Also fixes block KaTeX completion when streaming produces a partial closing `$`.
- 716a5f0: Escape single `~` between word characters to prevent false strikethrough rendering (e.g. `20~25°C` no longer renders as strikethrough). Adds a new `singleTilde` option (enabled by default) that can be disabled via `{ singleTilde: false }`.

## 1.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/remend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remend",
"version": "1.2.2",
"version": "1.3.0",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/streamdown-cjk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @streamdown/cjk

## 1.0.3

### Patch Changes

- 6f1ea07: Updated `remark-cjk-friendly` and `remark-cjk-friendly-gfm-strikethrough` from v1.x to v2.x. The only breaking change in v2.0.0 is dropping Node.js 16 support, which Streamdown has already dropped (requires Node.js ≥18), so there is no actual impact. The actual code is identical to the latest v1.x release (v2.0.1 only added the ability to import package.json).

## 1.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/streamdown-cjk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamdown/cjk",
"version": "1.0.2",
"version": "1.0.3",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/streamdown-code/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @streamdown/code

## 1.1.1

### Patch Changes

- 651873d: Fall back to plain text highlighting when the code block language identifier is unknown or truncated mid-stream, preventing Shiki from throwing on unsupported language names.

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/streamdown-code/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamdown/code",
"version": "1.1.0",
"version": "1.1.1",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
32 changes: 32 additions & 0 deletions packages/streamdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# streamdown

## 2.5.0

### Minor Changes

- d6666b6: Add `lineNumbers` prop to disable line numbers in code blocks
- d4ec6c0: Add `meta` prop to `CustomRendererProps`. Custom renderers now receive the raw metastring from the code fence (everything after the language identifier, e.g. ` ```rust {1} title="foo" ` → `meta = '{1} title="foo"'`). The prop is optional (`meta?: string`) and is `undefined` when no metastring is present. Existing custom renderers are unaffected.

### Patch Changes

- ac8d839: Add staggered `animation-delay` to streaming word/character animations so new content cascades in sequentially instead of all animating simultaneously. Configurable via the new `stagger` option (default 40ms). Set `stagger: 0` to restore the previous behavior.
- add5374: Enable horizontal scrolling on code blocks so long lines are accessible instead of being clipped by `overflow-hidden`.
- 75845c0: Fix unnecessary re-renders of code blocks during streaming updates.

**Problem:** In streaming mode, when new content arrives (e.g. a paragraph is appended), completed code blocks that haven't changed were still re-rendering. This happened because the `Streamdown` component used inline object literals as default parameter values for `linkSafety` (`{ enabled: true }`). Every time `children` changed and `Streamdown` re-rendered, these inline defaults created new references, which caused the `contextValue` useMemo to recompute a new `StreamdownContext` object. Since React propagates context changes through `memo` boundaries, any context consumer inside a memoized `Block` (such as `CodeBlock`) would re-render even though the block's own props were unchanged.

**Fix:** Extract the inline default values for `linkSafety` into module-level constants (`defaultLinkSafetyConfig`). This ensures referential stability across renders, so `contextValue` only recomputes when the actual values change — not just because `children` updated.

- 8b1c262: fix: prepend UTF-8 BOM to CSV downloads for Excel compatibility

- `save()` now prepends `\uFEFF` for `text/csv` string content so Excel on
Windows detects UTF-8 encoding instead of falling back to ANSI.
- `TableDownloadButton` refactored to use `save()` instead of inline Blob
creation, ensuring the public API also gets the BOM fix.

- b105c64: Fix custom tag content being prematurely split when content follows the opening tag on the same line and contains double newlines (`\n\n`). The preprocessor now ensures proper HTML block structure so the parser treats the entire tag as a single unit.
- 9e6f991: Increase dropdown z-index for table copy and download menus to prevent clipping by surrounding elements.
- 9c18748: docs: document required CSS custom properties (shadcn/ui design tokens) in README
- 7b62e9a: Replace Tailwind v4-only `*:last:` and `*:first:` variant syntax with `[&>*:last-child]:` and `[&>*:first-child]:` arbitrary variants for compatibility with both Tailwind CSS v3 and v4. Fixes caret rendering on every line instead of only the last child in v3.
- Updated dependencies [e50b0c4]
- Updated dependencies [716a5f0]
- remend@1.3.0

## 2.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/streamdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "streamdown",
"version": "2.4.0",
"version": "2.5.0",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
Loading