Skip to content

Commit

Permalink
chore!: bump @mermaid-js/mermaid-cli to v11
Browse files Browse the repository at this point in the history
Puppeteer has also been bumped to v23.
  • Loading branch information
aloisklink committed Oct 12, 2024
1 parent 8a58ebc commit cbeb23f
Show file tree
Hide file tree
Showing 12 changed files with 2,865 additions and 554 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### BREAKING CHANGES

- Bump required Node.JS version to 18.19
- Updated `@mermaid-js/mermaid-cli` to `^11`

### Dependencies

- Updated `puppeteer` to `^23`

## [2.1.1] - 2023-05-11

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async function transformMermaidNode(
await convertMermaidKwargsToParseMMDOpts(mermaidCli),
);

let svgString = data.toString("utf8");
let svgString = new TextDecoder().decode(data);

// attempts to convert the whatever mermaid-cli returned into a valid SVG
// or throws an error if it can't
Expand Down
Loading

0 comments on commit cbeb23f

Please sign in to comment.