chore(deps): update dependency streamdown to v2.5.0#446
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency streamdown to v2.5.0#446renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.4.0→2.5.0Release Notes
vercel/streamdown (streamdown)
v2.5.0Compare Source
Minor Changes
d6666b6: AddlineNumbersprop to disable line numbers in code blocksd4ec6c0: Addmetaprop toCustomRendererProps. 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 isundefinedwhen no metastring is present. Existing custom renderers are unaffected.Patch Changes
ac8d839: Add staggeredanimation-delayto streaming word/character animations so new content cascades in sequentially instead of all animating simultaneously. Configurable via the newstaggeroption (default 40ms). Setstagger: 0to restore the previous behavior.add5374: Enable horizontal scrolling on code blocks so long lines are accessible instead of being clipped byoverflow-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
Streamdowncomponent used inline object literals as default parameter values forlinkSafety({ enabled: true }). Every timechildrenchanged andStreamdownre-rendered, these inline defaults created new references, which caused thecontextValueuseMemo to recompute a newStreamdownContextobject. Since React propagates context changes throughmemoboundaries, any context consumer inside a memoizedBlock(such asCodeBlock) would re-render even though the block's own props were unchanged.Fix: Extract the inline default values for
linkSafetyinto module-level constants (defaultLinkSafetyConfig). This ensures referential stability across renders, socontextValueonly recomputes when the actual values change — not just becausechildrenupdated.8b1c262: fix: prepend UTF-8 BOM to CSV downloads for Excel compatibilitysave()now prepends\uFEFFfortext/csvstring content so Excel onWindows detects UTF-8 encoding instead of falling back to ANSI.
TableDownloadButtonrefactored to usesave()instead of inline Blobcreation, 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 README7b62e9a: 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]Configuration
📅 Schedule: Branch creation - "after 01:00 and before 07:00 every weekday" in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.