Skip to content

Commit

Permalink
build: restrict supported mermaid versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sjwall committed Jan 8, 2022
1 parent ce8a106 commit 0746bc3
Show file tree
Hide file tree
Showing 4 changed files with 1,839 additions and 499 deletions.
11 changes: 11 additions & 0 deletions doc/docs/mermaid-versions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
sidebar_position: 4
---

# Supported Mermaid versions

This library supports Mermaid versions `>= 8.11.0 < 8.12.0`

The version needs to be at least `8.11.0` due to this issue: https://github.com/sjwall/mdx-mermaid/issues/20

The version needs to be less than `8.12.0` due to the `d3` version upgrade to modules https://github.com/mermaid-js/mermaid/issues/2559

This comment has been minimized.

Copy link
@prince-chrismc

prince-chrismc Jun 1, 2022

Thank you very much for writing this down 💟

2 changes: 1 addition & 1 deletion doc/docs/theme.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 2
sidebar_position: 3
---

# Theme
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"jsx"
],
"peerDependencies": {
"mermaid": "^8.0.0",
"mermaid": ">= 8.11.0 < 8.12.0",
"react": "^16.8.4 || ^17.0.0",
"unist-util-visit": "^2.0.0"
},
Expand Down
Loading

0 comments on commit 0746bc3

Please # to comment.