Skip to content

Commit

Permalink
chore: publish v1.1.1 of remark-mermaid-dataurl
Browse files Browse the repository at this point in the history
Fixed
=====

- Tries to automatically fix invalid SVGs returned by `mermaid-cli`.
  Somtimes `mermaid-cli` returns an SVG wrapped in a `<div>`,
  which caused a confusing error to occur.
- Allow `@mermaid-js/mermaid-cli` version to be `^8.10.1`
  (fixes `[#20](#20))

  In `v1.10`, we limited `@mermaid-js/mermaid-cli` to be <=8.10.1,
  as 8.10.2 officially dropped Node v10 support.
  However, this causes breaking changes for people using mermaid
  8.10.2+ features.

Deprecated
==========

- **Node v10 support is officially dropped in mermaid-cli 8.10.2**,
  but unofficially, it stills seems to work.

  Our `dependencies` contain `"@mermaid-js/mermaid-cli":  ^8.9.2"`,
  however v8.10.2 of mermaid-cli updated to
  [puppeteer v10.0.0](mermaid-js/mermaid-cli#128),
  which officially dropped Node v10 support. However,
  it still seems to work with Node v10, it's just unsupported.

  If you encounter issues while running on Node v10, please pin
  `remark-mermaid-dataurl` to `1.1.0`.
  • Loading branch information
aloisklink committed Jun 16, 2022
1 parent 8b229df commit 24bc410
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.1] - 2022-06-16

### Fixed

- Tries to automatically fix invalid SVGs returned by `mermaid-cli`.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remark-mermaid-dataurl",
"version": "1.1.0",
"version": "1.1.1",
"description": "A remark plugin for Markdown that replaces mermaid graphs with dataurls",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 24bc410

Please sign in to comment.