Skip to content

Commit

Permalink
docs: release v0.3.0 🚀 (#49)
Browse files Browse the repository at this point in the history
* docs: release v0.3.0

* update changelog
  • Loading branch information
ad1992 committed Apr 7, 2024
1 parent 3251d2f commit acc7c51
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/parser/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ export const parseMermaidClassDiagram = (
containerEl: Element
): Class => {
diagram.parse();
//@ts-ignore
const mermaidParser = diagram.parser.yy;
const direction = mermaidParser.getDirection();

Expand Down
1 change: 1 addition & 0 deletions src/parser/flowchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
1 change: 1 addition & 0 deletions src/parser/sequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node[]> = [];
const groups = mermaidParser.getBoxes();
Expand Down

0 comments on commit acc7c51

Please sign in to comment.