From 24bc410393bb1039bcb3edc0ed5556fd4e743628 Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Thu, 16 Jun 2022 22:47:12 +0100 Subject: [PATCH] chore: publish v1.1.1 of remark-mermaid-dataurl Fixed ===== - Tries to automatically fix invalid SVGs returned by `mermaid-cli`. Somtimes `mermaid-cli` returns an SVG wrapped in a `
`, which caused a confusing error to occur. - Allow `@mermaid-js/mermaid-cli` version to be `^8.10.1` (fixes `[#20](https://github.com/aloisklink/remark-mermaid-dataurl/issues/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](https://github.com/mermaid-js/mermaid-cli/pull/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`. --- CHANGELOG.md | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e29c0b..cbf03c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`. diff --git a/package-lock.json b/package-lock.json index 9a12cc8..8431868 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "remark-mermaid-dataurl", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "remark-mermaid-dataurl", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "dependencies": { "@mermaid-js/mermaid-cli": "^8.9.2", diff --git a/package.json b/package.json index 40088b9..f9e8fd4 100644 --- a/package.json +++ b/package.json @@ -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": {