mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Update CHANGELOG.md
This commit is contained in:
parent
ca97210d67
commit
8910ecb463
@ -2,9 +2,10 @@
|
||||
|
||||
## [10.0.0](https://github.com/mermaid-js/mermaid/releases/tag/v10.0.0)
|
||||
|
||||
|
||||
### Mermaid is ESM only!
|
||||
|
||||
We've dropped the CJS support. So you will have to update your import scripts as follows.
|
||||
We've dropped CJS support. So, you will have to update your import scripts as follows.
|
||||
|
||||
```html
|
||||
<script type="module">
|
||||
@ -13,6 +14,12 @@ We've dropped the CJS support. So you will have to update your import scripts as
|
||||
</script>
|
||||
```
|
||||
|
||||
You can keep using v9 by adding the `@9` in the CDN URL.
|
||||
```diff
|
||||
- <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.js"></script>
|
||||
+ <script src="https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.js"></script>
|
||||
```
|
||||
|
||||
### mermaid.render is async and doesn't accept callbacks
|
||||
|
||||
```js
|
||||
|
Loading…
x
Reference in New Issue
Block a user