Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return SVGs as UInt8Array instead of Buffer #767

Merged

Conversation

aloisklink
Copy link
Member

📑 Summary

Currently, SVGs are returned as Buffers from renderMermaid(), which is almost compatible with UInt8Array, but not 100%, which was causing TypeScript 5.6 to throw an error.

See: #746

This should resolve the CI failure in #746

📏 Design Decisions

N/A

📋 Tasks

Make sure you

Currently, SVGs are returned as `Buffer`s from `renderMermaid()`, which
is almost compatible with `UInt8Array`, but not 100%, which was causing
TypeScript 5.6 to throw an error.

See: mermaid-js#746
@aloisklink aloisklink added the bug Something isn't working label Oct 12, 2024
@github-actions github-actions bot added the fix label Oct 12, 2024
@aloisklink aloisklink merged commit 35c779e into mermaid-js:master Oct 29, 2024
6 checks passed
@aloisklink aloisklink deleted the fix/make-svg-return-uint8array branch October 29, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants