From 18bc36f88b21a886bfe3324e2ba9a85f1e4a4432 Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Thu, 9 Jun 2022 22:57:45 +0100 Subject: [PATCH] chore: publish v1.1.0 of remark-mermaid-dataurl Added - Allow passing in a mermaid `configFile` as an object to `mermaid-cli`. - Allow passing in a puppeteer `puppeteerConfigFile` as an object to `mermaid-cli`. This allows increasing puppeteer's timeout, or using `firefox` instead of `chrome`. Fixed - Fix wide SVGs (e.g. gitgraphs) being cut at 300px. Automatically replaces SVG `width=100%` to the width in pixels. Most browsers will cut SVGs to 300px. (closes #7) - An error is now thrown if mermaid-cli fails to render an SVG. Previously, the `Promise` returned by `renderMermaidFile` would stall forever if `mermaid-cli` exited without an error code, and without rendering an SVG. Dependencies - Updated `husky` to v6.0.0 (v7.0.0 held back due to Node v10 support) - Limit `mermaid-cli` version to `<=8.10.1`. This is because [mermaid-cli 8.10.2](https://github.com/mermaid-js/mermaid-cli/releases/tag/8.10.2) upgrades to [puppeteer v10.0.0](https://github.com/mermaid-js/mermaid-cli/pull/128), which drops Node v10 support. --- 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 85b2ef3..da02f2b 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.10] - 2022-06-09 + ### Added - Allow passing in a mermaid `configFile` as an object to `mermaid-cli`. diff --git a/package-lock.json b/package-lock.json index 3daad48..6eb051a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "remark-mermaid-dataurl", - "version": "1.0.2", + "version": "1.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "remark-mermaid-dataurl", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "dependencies": { "@mermaid-js/mermaid-cli": ">=8.9.2 <=8.10.1", diff --git a/package.json b/package.json index b6aa7de..03692a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "remark-mermaid-dataurl", - "version": "1.0.2", + "version": "1.1.0", "description": "A remark plugin for Markdown that replaces mermaid graphs with dataurls", "main": "index.js", "scripts": {