mermaid-js / mermaid-cli

Command line tool for the Mermaid library
MIT License
2.52k stars 238 forks source link

fix: return SVGs as UInt8Array instead of `Buffer` #767

Closed aloisklink closed 3 weeks ago

aloisklink commented 1 month ago

:bookmark_tabs: 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: https://github.com/mermaid-js/mermaid-cli/pull/746

This should resolve the CI failure in https://github.com/mermaid-js/mermaid-cli/pull/746

:straight_ruler: Design Decisions

N/A

:clipboard: Tasks

Make sure you