From 932432c8514b907571121d67735685d3d2f18f5f Mon Sep 17 00:00:00 2001 From: josh <144584931+dancer@users.noreply.github.com> Date: Mon, 1 Sep 2025 11:11:12 +0100 Subject: [PATCH] fix(streamdown): update to latest fixes mermaid error (#1146) --- components/elements/response.tsx | 7 ------- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/components/elements/response.tsx b/components/elements/response.tsx index 57992ce..c1b4e85 100644 --- a/components/elements/response.tsx +++ b/components/elements/response.tsx @@ -13,13 +13,6 @@ export const Response = memo( 'size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0', className, )} - components={{ - code: ({ children, className, ...props }) => ( - - {children} - - ), - }} {...props} /> ), diff --git a/package.json b/package.json index 576765d..7cf8381 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "server-only": "^0.0.1", "shiki": "^3.12.0", "sonner": "^1.5.0", - "streamdown": "^1.1.4", + "streamdown": "^1.1.6", "swr": "^2.2.5", "tailwind-merge": "^2.5.2", "tailwindcss-animate": "^1.0.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 097f339..8a7fd4b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -225,8 +225,8 @@ importers: specifier: ^1.5.0 version: 1.7.4(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021) streamdown: - specifier: ^1.1.4 - version: 1.1.4(@types/react@18.3.18)(react@19.0.0-rc-45804af1-20241021) + specifier: ^1.1.6 + version: 1.1.6(@types/react@18.3.18)(react@19.0.0-rc-45804af1-20241021) swr: specifier: ^2.2.5 version: 2.3.3(react@19.0.0-rc-45804af1-20241021) @@ -4527,8 +4527,8 @@ packages: stable-hash@0.0.4: resolution: {integrity: sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==} - streamdown@1.1.4: - resolution: {integrity: sha512-GBp+slOLS67nNFMdfObhaSJjl4+aNKWOtDQEEGCfFz2R3E2VhxrynC6dL//nutT2Vg9N34uotQt4iUCv9IjorA==} + streamdown@1.1.6: + resolution: {integrity: sha512-uv9AvZmZGC02DvC7FgUhYGmLGhVpMmVMTEBWiMrqEZj/Pj8D4VuPbnoD+pxHkxQOs36gT9gdnGA/j3b5nXWVKQ==} peerDependencies: react: ^18.0.0 || ^19.0.0 @@ -9487,7 +9487,7 @@ snapshots: stable-hash@0.0.4: {} - streamdown@1.1.4(@types/react@18.3.18)(react@19.0.0-rc-45804af1-20241021): + streamdown@1.1.6(@types/react@18.3.18)(react@19.0.0-rc-45804af1-20241021): dependencies: clsx: 2.1.1 harden-react-markdown: 1.0.4(react-markdown@10.1.0(@types/react@18.3.18)(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)