Update CHANGELOG.md

This commit is contained in:
Sidharth Vinod
2023-02-23 13:13:36 +05:30
committed by GitHub
parent 8f830a1698
commit ca97210d67

View File

@@ -2,6 +2,17 @@
## [10.0.0](https://github.com/mermaid-js/mermaid/releases/tag/v10.0.0) ## [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.
```html
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
```
### mermaid.render is async and doesn't accept callbacks ### mermaid.render is async and doesn't accept callbacks
```js ```js