Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
* master:
  Update CHANGELOG.md
  Update CHANGELOG.md
  • Loading branch information
sidharthv96 committed Feb 23, 2023
2 parents f3b313e + 8910ecb commit 378e6b5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,24 @@

## [10.0.0](https://github.com/mermaid-js/mermaid/releases/tag/v10.0.0)


### Mermaid is ESM only!

We've dropped CJS support. So, you will have to update your import scripts as follows.

```html
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</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
Expand Down

0 comments on commit 378e6b5

Please sign in to comment.