From acc7c51a87d6a97999ffe243eee115c26734cf9a Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Sun, 7 Apr 2024 11:43:00 +0530 Subject: [PATCH] =?UTF-8?q?docs:=20release=20v0.3.0=20=F0=9F=9A=80=20(#49)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: release v0.3.0 * update changelog --- CHANGELOG.md | 12 ++++++++++++ package.json | 2 +- src/parser/class.ts | 1 + src/parser/flowchart.ts | 1 + src/parser/sequence.ts | 1 + 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39bec2fa..61ba1787 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 0.3.0 (2023-12-10) + +## Library + +### Features + +- Support sequence elements creation and destruction and upgrade mermaid to 10.9.0 [#46](https://github.com/excalidraw/mermaid-to-excalidraw/pull/46) by [@ad1992](https://github.com/ad1992). + +### Fixes + +- Fix double rendering of class diagrams when name space present and also fix grouping [#46](https://github.com/excalidraw/mermaid-to-excalidraw/pull/46) by [@ad1992](https://github.com/ad1992). + ## 0.2.0 (2023-12-06) ## Library diff --git a/package.json b/package.json index c70ad193..3733e66f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@excalidraw/mermaid-to-excalidraw", - "version": "0.2.0", + "version": "0.3.0", "description": "Mermaid to Excalidraw Diagrams", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/parser/class.ts b/src/parser/class.ts index 4390d728..dce38e66 100644 --- a/src/parser/class.ts +++ b/src/parser/class.ts @@ -417,6 +417,7 @@ export const parseMermaidClassDiagram = ( containerEl: Element ): Class => { diagram.parse(); + //@ts-ignore const mermaidParser = diagram.parser.yy; const direction = mermaidParser.getDirection(); diff --git a/src/parser/flowchart.ts b/src/parser/flowchart.ts index cf7a04d0..ab1a6d86 100644 --- a/src/parser/flowchart.ts +++ b/src/parser/flowchart.ts @@ -222,6 +222,7 @@ export const parseMermaidFlowChartDiagram = ( diagram.parse(); // Get mermaid parsed data from parser shared variable `yy` + //@ts-ignore const mermaidParser = diagram.parser.yy; const vertices = mermaidParser.getVertices(); Object.keys(vertices).forEach((id) => { diff --git a/src/parser/sequence.ts b/src/parser/sequence.ts index a82effb6..ff2eb560 100644 --- a/src/parser/sequence.ts +++ b/src/parser/sequence.ts @@ -470,6 +470,7 @@ export const parseMermaidSequenceDiagram = ( diagram.parse(); // Get mermaid parsed data from parser shared variable `yy` + //@ts-ignore const mermaidParser = diagram.parser.yy; const nodes: Array = []; const groups = mermaidParser.getBoxes();