mermaid-js/mermaid
### [`v10.0.0`](https://togithub.com/mermaid-js/mermaid/releases/tag/v10.0.0)
[Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v9.4.0...v10.0.0)
#### What's Changed
##### Breaking changes in v10
- Switch to ESM only for v10? by [@sidharthv96](https://togithub.com/sidharthv96) [#3590](https://togithub.com/mermaid-js/mermaid/issues/3590)
- Break type of mermaid.render in v10 by [@sidharthv96](https://togithub.com/sidharthv96) [#3577](https://togithub.com/mermaid-js/mermaid/issues/3577)
- Improve init function and how selector and nodes are passed by [@sidharthv96](https://togithub.com/sidharthv96) [#3394](https://togithub.com/mermaid-js/mermaid/issues/3394)
- mermaid.init is not using the config that's passed by [@sidharthv96](https://togithub.com/sidharthv96) [#3406](https://togithub.com/mermaid-js/mermaid/issues/3406)
- Configurable HTML class for initialisation by [@sidharthv96](https://togithub.com/sidharthv96) [#3055](https://togithub.com/mermaid-js/mermaid/issues/3055)
##### Features
- fix(api): tree shaking package.json import by [@AielloChan](https://togithub.com/AielloChan) in [https://github.com/mermaid-js/mermaid/pull/4101](https://togithub.com/mermaid-js/mermaid/pull/4101)
- splitDiagrams by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4110](https://togithub.com/mermaid-js/mermaid/pull/4110)
- Adding the ability to use invisible edges by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/4113](https://togithub.com/mermaid-js/mermaid/pull/4113)
##### Docs
- Add logo to readme by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4076](https://togithub.com/mermaid-js/mermaid/pull/4076)
- docs: minor fix on markdown by [@Jeff-Tian](https://togithub.com/Jeff-Tian) in [https://github.com/mermaid-js/mermaid/pull/4015](https://togithub.com/mermaid-js/mermaid/pull/4015)
- Fix typos by [@fkohrt](https://togithub.com/fkohrt) in [https://github.com/mermaid-js/mermaid/pull/4118](https://togithub.com/mermaid-js/mermaid/pull/4118)
##### Chores
- chore(deps): update all non-major dependencies (minor) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4044](https://togithub.com/mermaid-js/mermaid/pull/4044)
- chore(deps): update dependency [@types/uuid](https://togithub.com/types/uuid) to v9 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4067](https://togithub.com/mermaid-js/mermaid/pull/4067)
- build(lint:fix): cache eslint in pnpm run lint:fix by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4073](https://togithub.com/mermaid-js/mermaid/pull/4073)
- chore(deps): update dependency rimraf to v4 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4070](https://togithub.com/mermaid-js/mermaid/pull/4070)
- chore(deps): update dependency jsdom to v21 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4069](https://togithub.com/mermaid-js/mermaid/pull/4069)
- chore(deps): update timonvs/pr-labeler-action action to v4 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4072](https://togithub.com/mermaid-js/mermaid/pull/4072)
- chore(deps): update actions/configure-pages action to v3 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4065](https://togithub.com/mermaid-js/mermaid/pull/4065)
- chore(deps): update actions/dependency-review-action action to v3 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4066](https://togithub.com/mermaid-js/mermaid/pull/4066)
- chore(deps): update dependency vite to v4 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4071](https://togithub.com/mermaid-js/mermaid/pull/4071)
- chore(deps): update dependency cypress to v12 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4068](https://togithub.com/mermaid-js/mermaid/pull/4068)
#### New Contributors
- [@Jeff-Tian](https://togithub.com/Jeff-Tian) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4015](https://togithub.com/mermaid-js/mermaid/pull/4015)
- [@AielloChan](https://togithub.com/AielloChan) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4101](https://togithub.com/mermaid-js/mermaid/pull/4101)
- [@fkohrt](https://togithub.com/fkohrt) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4118](https://togithub.com/mermaid-js/mermaid/pull/4118)
**Full Changelog**: https://github.com/mermaid-js/mermaid/compare/v9.4.0...v10.0.0
### [`v9.4.0`](https://togithub.com/mermaid-js/mermaid/releases/tag/v9.4.0)
[Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v9.3.0...v9.4.0)
#### What's Changed
##### Features
- Timeline Diagram by [@ashishjain0512](https://togithub.com/ashishjain0512) in [https://github.com/mermaid-js/mermaid/pull/4014](https://togithub.com/mermaid-js/mermaid/pull/4014)
- feat: Flowchart layout using elkjs by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3984](https://togithub.com/mermaid-js/mermaid/pull/3984)
- Layout v3 continued by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3938](https://togithub.com/mermaid-js/mermaid/pull/3938)
- feat(er): add unique key by [@tomperr](https://togithub.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/3917](https://togithub.com/mermaid-js/mermaid/pull/3917)
- feat: Set svg role to 'graphics-document document' by [@weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3897](https://togithub.com/mermaid-js/mermaid/pull/3897)
- feat: Wait for rendering to finish before taking image snapshots by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3995](https://togithub.com/mermaid-js/mermaid/pull/3995)
- feat(er): add multiple key constraints by [@tomperr](https://togithub.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/4030](https://togithub.com/mermaid-js/mermaid/pull/4030)
- Add support for YAML frontmatter in Markdown docs (used for Vitepress config) by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3962](https://togithub.com/mermaid-js/mermaid/pull/3962)
- feat(er): allow leading underscore for attributes name by [@tomperr](https://togithub.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/4033](https://togithub.com/mermaid-js/mermaid/pull/4033)
- Add links to theme listing by [@BD103](https://togithub.com/BD103) in [https://github.com/mermaid-js/mermaid/pull/3890](https://togithub.com/mermaid-js/mermaid/pull/3890)
- Adding support for parenthesis in the er diagram attribute types. by [@mahomedalid](https://togithub.com/mahomedalid) in [https://github.com/mermaid-js/mermaid/pull/3892](https://togithub.com/mermaid-js/mermaid/pull/3892)
- Support parsing indented mermaid/YAML only from HTML by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3859](https://togithub.com/mermaid-js/mermaid/pull/3859)
- Parse style string and number font size values from configuration inputs by [@jonabc](https://togithub.com/jonabc) in [https://github.com/mermaid-js/mermaid/pull/3993](https://togithub.com/mermaid-js/mermaid/pull/3993)
- Mindmaps: differentiate the colors between the root node and the first section [#4017](https://togithub.com/mermaid-js/mermaid/issues/4017) by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/4018](https://togithub.com/mermaid-js/mermaid/pull/4018)
- Add Box support in Sequence Diagrams by [@oleveau](https://togithub.com/oleveau) in [https://github.com/mermaid-js/mermaid/pull/3965](https://togithub.com/mermaid-js/mermaid/pull/3965)
##### Breaking changes
- Mind map and timeline diagrams are lazy loaded by mermaid. In order to use these diagrams you need to use the renderAsync method of rendering. The [@mermaid-js/mermaid-mindmap](https://togithub.com/mermaid-js/mermaid-mindmap) package is deprecated by this.
##### Documentation
- doc: remove links from atom.io; add note Atom has been archived by [@weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3899](https://togithub.com/mermaid-js/mermaid/pull/3899)
- docs(README.zh-CN): fix book image src by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3920](https://togithub.com/mermaid-js/mermaid/pull/3920)
- docs: fix typo by [@Foo-x](https://togithub.com/Foo-x) in [https://github.com/mermaid-js/mermaid/pull/3925](https://togithub.com/mermaid-js/mermaid/pull/3925)
- docs: update navbar by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/3906](https://togithub.com/mermaid-js/mermaid/pull/3906)
- docs: fix text overflow by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/3907](https://togithub.com/mermaid-js/mermaid/pull/3907)
- docs: Remove duplicate example in ER-diagram documentation by [@guilhermgonzaga](https://togithub.com/guilhermgonzaga) in [https://github.com/mermaid-js/mermaid/pull/3964](https://togithub.com/mermaid-js/mermaid/pull/3964)
- Docs: Too many `primaryBorderColor` field by [@LiHowe](https://togithub.com/LiHowe) in [https://github.com/mermaid-js/mermaid/pull/3986](https://togithub.com/mermaid-js/mermaid/pull/3986)
- docs(sequenceDiagram): subvert prettification of arrow types by [@cakemanny](https://togithub.com/cakemanny) in [https://github.com/mermaid-js/mermaid/pull/3988](https://togithub.com/mermaid-js/mermaid/pull/3988)
- Add Swimm to the list of integrations by [@Omerr](https://togithub.com/Omerr) in [https://github.com/mermaid-js/mermaid/pull/3936](https://togithub.com/mermaid-js/mermaid/pull/3936)
- Website/homepage updates by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/3945](https://togithub.com/mermaid-js/mermaid/pull/3945)
- Update sequenceDiagram.md to include line break by [@Odogwudozilla](https://togithub.com/Odogwudozilla) in [https://github.com/mermaid-js/mermaid/pull/3960](https://togithub.com/mermaid-js/mermaid/pull/3960)
- Support GitHub Flavored Markdown in markdown documentation by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3954](https://togithub.com/mermaid-js/mermaid/pull/3954)
- Update integrations.md by [@Barry1](https://togithub.com/Barry1) in [https://github.com/mermaid-js/mermaid/pull/4011](https://togithub.com/mermaid-js/mermaid/pull/4011)
- docs(readme): update broken twitter badge by [@LeoDog896](https://togithub.com/LeoDog896) in [https://github.com/mermaid-js/mermaid/pull/4032](https://togithub.com/mermaid-js/mermaid/pull/4032)
- Update mindmap.md by [@GavinPen](https://togithub.com/GavinPen) in [https://github.com/mermaid-js/mermaid/pull/4042](https://togithub.com/mermaid-js/mermaid/pull/4042)
- Showcase section to the docs - keepings docs up to date by [@Omerr](https://togithub.com/Omerr) in [https://github.com/mermaid-js/mermaid/pull/4055](https://togithub.com/mermaid-js/mermaid/pull/4055)
##### Bug Fixes
- fix(docs): remove duplicate section by [@Joxtacy](https://togithub.com/Joxtacy) in [https://github.com/mermaid-js/mermaid/pull/3908](https://togithub.com/mermaid-js/mermaid/pull/3908)
- fix: Typescript error in usage by [@tommoor](https://togithub.com/tommoor) in [https://github.com/mermaid-js/mermaid/pull/3914](https://togithub.com/mermaid-js/mermaid/pull/3914)
- fix: dev server watch mode by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/3904](https://togithub.com/mermaid-js/mermaid/pull/3904)
- fix(er): switch to deterministic UUIDs in ER by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3916](https://togithub.com/mermaid-js/mermaid/pull/3916)
- fixed Composition arrow by [@Frank-Mayer](https://togithub.com/Frank-Mayer) in [https://github.com/mermaid-js/mermaid/pull/3930](https://togithub.com/mermaid-js/mermaid/pull/3930)
- fix(generic): fix generic type detection by [@tomperr](https://togithub.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/3921](https://togithub.com/mermaid-js/mermaid/pull/3921)
- fix typos accessing techn property in drawC4Shape function by [@nekikara](https://togithub.com/nekikara) in [https://github.com/mermaid-js/mermaid/pull/3943](https://togithub.com/mermaid-js/mermaid/pull/3943)
- fix(deps): update dependency dompurify to v2.4.3 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3977](https://togithub.com/mermaid-js/mermaid/pull/3977)
- Fix nonstandard syntax by [@atmikeguo](https://togithub.com/atmikeguo) in [https://github.com/mermaid-js/mermaid/pull/3972](https://togithub.com/mermaid-js/mermaid/pull/3972)
- Fix failing tests due to semantic merge conflict by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3985](https://togithub.com/mermaid-js/mermaid/pull/3985)
- fix(deps): update dependency dagre-d3-es to v7.0.6 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3996](https://togithub.com/mermaid-js/mermaid/pull/3996)
- fix([#4003](https://togithub.com/mermaid-js/mermaid/issues/4003)): Remove unhandled promises by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4004](https://togithub.com/mermaid-js/mermaid/pull/4004)
- Bug/3858 \[state] trailing whitespace in ids for named state container by [@weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3902](https://togithub.com/mermaid-js/mermaid/pull/3902)
- fix: moment-mini default exporter by [@emersonbottero](https://togithub.com/emersonbottero) in [https://github.com/mermaid-js/mermaid/pull/4034](https://togithub.com/mermaid-js/mermaid/pull/4034)
- fix(deps): update dependency dagre-d3-es to v7.0.8 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4058](https://togithub.com/mermaid-js/mermaid/pull/4058)
- bugfix: add missing d3 curves to flowchart and docs by [@natasha-jarus](https://togithub.com/natasha-jarus) in [https://github.com/mermaid-js/mermaid/pull/4038](https://togithub.com/mermaid-js/mermaid/pull/4038)
- Bug/3865 C4Context: $borderColor has no effect by [@nekikara](https://togithub.com/nekikara) in [https://github.com/mermaid-js/mermaid/pull/3947](https://togithub.com/mermaid-js/mermaid/pull/3947)
- Mindmaps: Handling rows with only spaces in them ([#4012](https://togithub.com/mermaid-js/mermaid/issues/4012)) by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/4013](https://togithub.com/mermaid-js/mermaid/pull/4013)
##### Chores
- ci: disable checking twitter links by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3973](https://togithub.com/mermaid-js/mermaid/pull/3973)
- chore(deps): update all non-major dependencies (minor) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3905](https://togithub.com/mermaid-js/mermaid/pull/3905)
- chore(deps): update pnpm to v7.18.2 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3929](https://togithub.com/mermaid-js/mermaid/pull/3929)
- chore(pr): add documentation task in PR template by [@tomperr](https://togithub.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/3935](https://togithub.com/mermaid-js/mermaid/pull/3935)
- (chore) Docs: add tag to produce only a diagram, not code example by [@weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3946](https://togithub.com/mermaid-js/mermaid/pull/3946)
- chore(deps): update all non-major dependencies (minor) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3944](https://togithub.com/mermaid-js/mermaid/pull/3944)
- chore(deps): update all non-major dependencies (minor) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3997](https://togithub.com/mermaid-js/mermaid/pull/3997)
- chore(deps): update pnpm to v7.25.1 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4024](https://togithub.com/mermaid-js/mermaid/pull/4024)
- build(lint): cache prettier on `pnpm run lint` by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4035](https://togithub.com/mermaid-js/mermaid/pull/4035)
- Cache `eslint` in pre-commit script (makes `git commit` 5x faster) by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4057](https://togithub.com/mermaid-js/mermaid/pull/4057)
#### New Contributors
- [@Joxtacy](https://togithub.com/Joxtacy) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3908](https://togithub.com/mermaid-js/mermaid/pull/3908)
- [@BD103](https://togithub.com/BD103) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3890](https://togithub.com/mermaid-js/mermaid/pull/3890)
- [@mahomedalid](https://togithub.com/mahomedalid) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3892](https://togithub.com/mermaid-js/mermaid/pull/3892)
- [@tomperr](https://togithub.com/tomperr) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3917](https://togithub.com/mermaid-js/mermaid/pull/3917)
- [@Foo-x](https://togithub.com/Foo-x) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3925](https://togithub.com/mermaid-js/mermaid/pull/3925)
- [@Frank-Mayer](https://togithub.com/Frank-Mayer) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3930](https://togithub.com/mermaid-js/mermaid/pull/3930)
- [@Omerr](https://togithub.com/Omerr) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3936](https://togithub.com/mermaid-js/mermaid/pull/3936)
- [@nekikara](https://togithub.com/nekikara) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3943](https://togithub.com/mermaid-js/mermaid/pull/3943)
- [@guilhermgonzaga](https://togithub.com/guilhermgonzaga) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3964](https://togithub.com/mermaid-js/mermaid/pull/3964)
- [@Odogwudozilla](https://togithub.com/Odogwudozilla) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3960](https://togithub.com/mermaid-js/mermaid/pull/3960)
- [@atmikeguo](https://togithub.com/atmikeguo) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3972](https://togithub.com/mermaid-js/mermaid/pull/3972)
- [@LiHowe](https://togithub.com/LiHowe) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3986](https://togithub.com/mermaid-js/mermaid/pull/3986)
- [@cakemanny](https://togithub.com/cakemanny) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3988](https://togithub.com/mermaid-js/mermaid/pull/3988)
- [@jonabc](https://togithub.com/jonabc) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3993](https://togithub.com/mermaid-js/mermaid/pull/3993)
- [@MermaidChart](https://togithub.com/MermaidChart) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4013](https://togithub.com/mermaid-js/mermaid/pull/4013)
- [@Barry1](https://togithub.com/Barry1) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4011](https://togithub.com/mermaid-js/mermaid/pull/4011)
- [@LeoDog896](https://togithub.com/LeoDog896) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4032](https://togithub.com/mermaid-js/mermaid/pull/4032)
- [@GavinPen](https://togithub.com/GavinPen) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4042](https://togithub.com/mermaid-js/mermaid/pull/4042)
- [@oleveau](https://togithub.com/oleveau) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3965](https://togithub.com/mermaid-js/mermaid/pull/3965)
- [@natasha-jarus](https://togithub.com/natasha-jarus) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4038](https://togithub.com/mermaid-js/mermaid/pull/4038)
**Full Changelog**: https://github.com/mermaid-js/mermaid/compare/v9.3.0...v9.4.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^9.1.4
->^10.0.0
Release Notes
mermaid-js/mermaid
### [`v10.0.0`](https://togithub.com/mermaid-js/mermaid/releases/tag/v10.0.0) [Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v9.4.0...v10.0.0) #### What's Changed ##### Breaking changes in v10 - Switch to ESM only for v10? by [@sidharthv96](https://togithub.com/sidharthv96) [#3590](https://togithub.com/mermaid-js/mermaid/issues/3590) - Break type of mermaid.render in v10 by [@sidharthv96](https://togithub.com/sidharthv96) [#3577](https://togithub.com/mermaid-js/mermaid/issues/3577) - Improve init function and how selector and nodes are passed by [@sidharthv96](https://togithub.com/sidharthv96) [#3394](https://togithub.com/mermaid-js/mermaid/issues/3394) - mermaid.init is not using the config that's passed by [@sidharthv96](https://togithub.com/sidharthv96) [#3406](https://togithub.com/mermaid-js/mermaid/issues/3406) - Configurable HTML class for initialisation by [@sidharthv96](https://togithub.com/sidharthv96) [#3055](https://togithub.com/mermaid-js/mermaid/issues/3055) ##### Features - fix(api): tree shaking package.json import by [@AielloChan](https://togithub.com/AielloChan) in [https://github.com/mermaid-js/mermaid/pull/4101](https://togithub.com/mermaid-js/mermaid/pull/4101) - splitDiagrams by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4110](https://togithub.com/mermaid-js/mermaid/pull/4110) - Adding the ability to use invisible edges by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/4113](https://togithub.com/mermaid-js/mermaid/pull/4113) ##### Docs - Add logo to readme by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4076](https://togithub.com/mermaid-js/mermaid/pull/4076) - docs: minor fix on markdown by [@Jeff-Tian](https://togithub.com/Jeff-Tian) in [https://github.com/mermaid-js/mermaid/pull/4015](https://togithub.com/mermaid-js/mermaid/pull/4015) - Fix typos by [@fkohrt](https://togithub.com/fkohrt) in [https://github.com/mermaid-js/mermaid/pull/4118](https://togithub.com/mermaid-js/mermaid/pull/4118) ##### Chores - chore(deps): update all non-major dependencies (minor) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4044](https://togithub.com/mermaid-js/mermaid/pull/4044) - chore(deps): update dependency [@types/uuid](https://togithub.com/types/uuid) to v9 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4067](https://togithub.com/mermaid-js/mermaid/pull/4067) - build(lint:fix): cache eslint in pnpm run lint:fix by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4073](https://togithub.com/mermaid-js/mermaid/pull/4073) - chore(deps): update dependency rimraf to v4 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4070](https://togithub.com/mermaid-js/mermaid/pull/4070) - chore(deps): update dependency jsdom to v21 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4069](https://togithub.com/mermaid-js/mermaid/pull/4069) - chore(deps): update timonvs/pr-labeler-action action to v4 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4072](https://togithub.com/mermaid-js/mermaid/pull/4072) - chore(deps): update actions/configure-pages action to v3 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4065](https://togithub.com/mermaid-js/mermaid/pull/4065) - chore(deps): update actions/dependency-review-action action to v3 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4066](https://togithub.com/mermaid-js/mermaid/pull/4066) - chore(deps): update dependency vite to v4 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4071](https://togithub.com/mermaid-js/mermaid/pull/4071) - chore(deps): update dependency cypress to v12 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4068](https://togithub.com/mermaid-js/mermaid/pull/4068) #### New Contributors - [@Jeff-Tian](https://togithub.com/Jeff-Tian) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4015](https://togithub.com/mermaid-js/mermaid/pull/4015) - [@AielloChan](https://togithub.com/AielloChan) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4101](https://togithub.com/mermaid-js/mermaid/pull/4101) - [@fkohrt](https://togithub.com/fkohrt) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4118](https://togithub.com/mermaid-js/mermaid/pull/4118) **Full Changelog**: https://github.com/mermaid-js/mermaid/compare/v9.4.0...v10.0.0 ### [`v9.4.0`](https://togithub.com/mermaid-js/mermaid/releases/tag/v9.4.0) [Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v9.3.0...v9.4.0) #### What's Changed ##### Features - Timeline Diagram by [@ashishjain0512](https://togithub.com/ashishjain0512) in [https://github.com/mermaid-js/mermaid/pull/4014](https://togithub.com/mermaid-js/mermaid/pull/4014) - feat: Flowchart layout using elkjs by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3984](https://togithub.com/mermaid-js/mermaid/pull/3984) - Layout v3 continued by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3938](https://togithub.com/mermaid-js/mermaid/pull/3938) - feat(er): add unique key by [@tomperr](https://togithub.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/3917](https://togithub.com/mermaid-js/mermaid/pull/3917) - feat: Set svg role to 'graphics-document document' by [@weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3897](https://togithub.com/mermaid-js/mermaid/pull/3897) - feat: Wait for rendering to finish before taking image snapshots by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3995](https://togithub.com/mermaid-js/mermaid/pull/3995) - feat(er): add multiple key constraints by [@tomperr](https://togithub.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/4030](https://togithub.com/mermaid-js/mermaid/pull/4030) - Add support for YAML frontmatter in Markdown docs (used for Vitepress config) by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3962](https://togithub.com/mermaid-js/mermaid/pull/3962) - feat(er): allow leading underscore for attributes name by [@tomperr](https://togithub.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/4033](https://togithub.com/mermaid-js/mermaid/pull/4033) - Add links to theme listing by [@BD103](https://togithub.com/BD103) in [https://github.com/mermaid-js/mermaid/pull/3890](https://togithub.com/mermaid-js/mermaid/pull/3890) - Adding support for parenthesis in the er diagram attribute types. by [@mahomedalid](https://togithub.com/mahomedalid) in [https://github.com/mermaid-js/mermaid/pull/3892](https://togithub.com/mermaid-js/mermaid/pull/3892) - Support parsing indented mermaid/YAML only from HTML by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3859](https://togithub.com/mermaid-js/mermaid/pull/3859) - Parse style string and number font size values from configuration inputs by [@jonabc](https://togithub.com/jonabc) in [https://github.com/mermaid-js/mermaid/pull/3993](https://togithub.com/mermaid-js/mermaid/pull/3993) - Mindmaps: differentiate the colors between the root node and the first section [#4017](https://togithub.com/mermaid-js/mermaid/issues/4017) by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/4018](https://togithub.com/mermaid-js/mermaid/pull/4018) - Add Box support in Sequence Diagrams by [@oleveau](https://togithub.com/oleveau) in [https://github.com/mermaid-js/mermaid/pull/3965](https://togithub.com/mermaid-js/mermaid/pull/3965) ##### Breaking changes - Mind map and timeline diagrams are lazy loaded by mermaid. In order to use these diagrams you need to use the renderAsync method of rendering. The [@mermaid-js/mermaid-mindmap](https://togithub.com/mermaid-js/mermaid-mindmap) package is deprecated by this. ##### Documentation - doc: remove links from atom.io; add note Atom has been archived by [@weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3899](https://togithub.com/mermaid-js/mermaid/pull/3899) - docs(README.zh-CN): fix book image src by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3920](https://togithub.com/mermaid-js/mermaid/pull/3920) - docs: fix typo by [@Foo-x](https://togithub.com/Foo-x) in [https://github.com/mermaid-js/mermaid/pull/3925](https://togithub.com/mermaid-js/mermaid/pull/3925) - docs: update navbar by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/3906](https://togithub.com/mermaid-js/mermaid/pull/3906) - docs: fix text overflow by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/3907](https://togithub.com/mermaid-js/mermaid/pull/3907) - docs: Remove duplicate example in ER-diagram documentation by [@guilhermgonzaga](https://togithub.com/guilhermgonzaga) in [https://github.com/mermaid-js/mermaid/pull/3964](https://togithub.com/mermaid-js/mermaid/pull/3964) - Docs: Too many `primaryBorderColor` field by [@LiHowe](https://togithub.com/LiHowe) in [https://github.com/mermaid-js/mermaid/pull/3986](https://togithub.com/mermaid-js/mermaid/pull/3986) - docs(sequenceDiagram): subvert prettification of arrow types by [@cakemanny](https://togithub.com/cakemanny) in [https://github.com/mermaid-js/mermaid/pull/3988](https://togithub.com/mermaid-js/mermaid/pull/3988) - Add Swimm to the list of integrations by [@Omerr](https://togithub.com/Omerr) in [https://github.com/mermaid-js/mermaid/pull/3936](https://togithub.com/mermaid-js/mermaid/pull/3936) - Website/homepage updates by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/3945](https://togithub.com/mermaid-js/mermaid/pull/3945) - Update sequenceDiagram.md to include line break by [@Odogwudozilla](https://togithub.com/Odogwudozilla) in [https://github.com/mermaid-js/mermaid/pull/3960](https://togithub.com/mermaid-js/mermaid/pull/3960) - Support GitHub Flavored Markdown in markdown documentation by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3954](https://togithub.com/mermaid-js/mermaid/pull/3954) - Update integrations.md by [@Barry1](https://togithub.com/Barry1) in [https://github.com/mermaid-js/mermaid/pull/4011](https://togithub.com/mermaid-js/mermaid/pull/4011) - docs(readme): update broken twitter badge by [@LeoDog896](https://togithub.com/LeoDog896) in [https://github.com/mermaid-js/mermaid/pull/4032](https://togithub.com/mermaid-js/mermaid/pull/4032) - Update mindmap.md by [@GavinPen](https://togithub.com/GavinPen) in [https://github.com/mermaid-js/mermaid/pull/4042](https://togithub.com/mermaid-js/mermaid/pull/4042) - Showcase section to the docs - keepings docs up to date by [@Omerr](https://togithub.com/Omerr) in [https://github.com/mermaid-js/mermaid/pull/4055](https://togithub.com/mermaid-js/mermaid/pull/4055) ##### Bug Fixes - fix(docs): remove duplicate section by [@Joxtacy](https://togithub.com/Joxtacy) in [https://github.com/mermaid-js/mermaid/pull/3908](https://togithub.com/mermaid-js/mermaid/pull/3908) - fix: Typescript error in usage by [@tommoor](https://togithub.com/tommoor) in [https://github.com/mermaid-js/mermaid/pull/3914](https://togithub.com/mermaid-js/mermaid/pull/3914) - fix: dev server watch mode by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/3904](https://togithub.com/mermaid-js/mermaid/pull/3904) - fix(er): switch to deterministic UUIDs in ER by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3916](https://togithub.com/mermaid-js/mermaid/pull/3916) - fixed Composition arrow by [@Frank-Mayer](https://togithub.com/Frank-Mayer) in [https://github.com/mermaid-js/mermaid/pull/3930](https://togithub.com/mermaid-js/mermaid/pull/3930) - fix(generic): fix generic type detection by [@tomperr](https://togithub.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/3921](https://togithub.com/mermaid-js/mermaid/pull/3921) - fix typos accessing techn property in drawC4Shape function by [@nekikara](https://togithub.com/nekikara) in [https://github.com/mermaid-js/mermaid/pull/3943](https://togithub.com/mermaid-js/mermaid/pull/3943) - fix(deps): update dependency dompurify to v2.4.3 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3977](https://togithub.com/mermaid-js/mermaid/pull/3977) - Fix nonstandard syntax by [@atmikeguo](https://togithub.com/atmikeguo) in [https://github.com/mermaid-js/mermaid/pull/3972](https://togithub.com/mermaid-js/mermaid/pull/3972) - Fix failing tests due to semantic merge conflict by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3985](https://togithub.com/mermaid-js/mermaid/pull/3985) - fix(deps): update dependency dagre-d3-es to v7.0.6 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3996](https://togithub.com/mermaid-js/mermaid/pull/3996) - fix([#4003](https://togithub.com/mermaid-js/mermaid/issues/4003)): Remove unhandled promises by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4004](https://togithub.com/mermaid-js/mermaid/pull/4004) - Bug/3858 \[state] trailing whitespace in ids for named state container by [@weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3902](https://togithub.com/mermaid-js/mermaid/pull/3902) - fix: moment-mini default exporter by [@emersonbottero](https://togithub.com/emersonbottero) in [https://github.com/mermaid-js/mermaid/pull/4034](https://togithub.com/mermaid-js/mermaid/pull/4034) - fix(deps): update dependency dagre-d3-es to v7.0.8 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4058](https://togithub.com/mermaid-js/mermaid/pull/4058) - bugfix: add missing d3 curves to flowchart and docs by [@natasha-jarus](https://togithub.com/natasha-jarus) in [https://github.com/mermaid-js/mermaid/pull/4038](https://togithub.com/mermaid-js/mermaid/pull/4038) - Bug/3865 C4Context: $borderColor has no effect by [@nekikara](https://togithub.com/nekikara) in [https://github.com/mermaid-js/mermaid/pull/3947](https://togithub.com/mermaid-js/mermaid/pull/3947) - Mindmaps: Handling rows with only spaces in them ([#4012](https://togithub.com/mermaid-js/mermaid/issues/4012)) by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/4013](https://togithub.com/mermaid-js/mermaid/pull/4013) ##### Chores - ci: disable checking twitter links by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3973](https://togithub.com/mermaid-js/mermaid/pull/3973) - chore(deps): update all non-major dependencies (minor) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3905](https://togithub.com/mermaid-js/mermaid/pull/3905) - chore(deps): update pnpm to v7.18.2 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3929](https://togithub.com/mermaid-js/mermaid/pull/3929) - chore(pr): add documentation task in PR template by [@tomperr](https://togithub.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/3935](https://togithub.com/mermaid-js/mermaid/pull/3935) - (chore) Docs: add tag to produce only a diagram, not code example by [@weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3946](https://togithub.com/mermaid-js/mermaid/pull/3946) - chore(deps): update all non-major dependencies (minor) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3944](https://togithub.com/mermaid-js/mermaid/pull/3944) - chore(deps): update all non-major dependencies (minor) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3997](https://togithub.com/mermaid-js/mermaid/pull/3997) - chore(deps): update pnpm to v7.25.1 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4024](https://togithub.com/mermaid-js/mermaid/pull/4024) - build(lint): cache prettier on `pnpm run lint` by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4035](https://togithub.com/mermaid-js/mermaid/pull/4035) - Cache `eslint` in pre-commit script (makes `git commit` 5x faster) by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4057](https://togithub.com/mermaid-js/mermaid/pull/4057) #### New Contributors - [@Joxtacy](https://togithub.com/Joxtacy) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3908](https://togithub.com/mermaid-js/mermaid/pull/3908) - [@BD103](https://togithub.com/BD103) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3890](https://togithub.com/mermaid-js/mermaid/pull/3890) - [@mahomedalid](https://togithub.com/mahomedalid) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3892](https://togithub.com/mermaid-js/mermaid/pull/3892) - [@tomperr](https://togithub.com/tomperr) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3917](https://togithub.com/mermaid-js/mermaid/pull/3917) - [@Foo-x](https://togithub.com/Foo-x) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3925](https://togithub.com/mermaid-js/mermaid/pull/3925) - [@Frank-Mayer](https://togithub.com/Frank-Mayer) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3930](https://togithub.com/mermaid-js/mermaid/pull/3930) - [@Omerr](https://togithub.com/Omerr) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3936](https://togithub.com/mermaid-js/mermaid/pull/3936) - [@nekikara](https://togithub.com/nekikara) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3943](https://togithub.com/mermaid-js/mermaid/pull/3943) - [@guilhermgonzaga](https://togithub.com/guilhermgonzaga) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3964](https://togithub.com/mermaid-js/mermaid/pull/3964) - [@Odogwudozilla](https://togithub.com/Odogwudozilla) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3960](https://togithub.com/mermaid-js/mermaid/pull/3960) - [@atmikeguo](https://togithub.com/atmikeguo) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3972](https://togithub.com/mermaid-js/mermaid/pull/3972) - [@LiHowe](https://togithub.com/LiHowe) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3986](https://togithub.com/mermaid-js/mermaid/pull/3986) - [@cakemanny](https://togithub.com/cakemanny) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3988](https://togithub.com/mermaid-js/mermaid/pull/3988) - [@jonabc](https://togithub.com/jonabc) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3993](https://togithub.com/mermaid-js/mermaid/pull/3993) - [@MermaidChart](https://togithub.com/MermaidChart) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4013](https://togithub.com/mermaid-js/mermaid/pull/4013) - [@Barry1](https://togithub.com/Barry1) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4011](https://togithub.com/mermaid-js/mermaid/pull/4011) - [@LeoDog896](https://togithub.com/LeoDog896) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4032](https://togithub.com/mermaid-js/mermaid/pull/4032) - [@GavinPen](https://togithub.com/GavinPen) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4042](https://togithub.com/mermaid-js/mermaid/pull/4042) - [@oleveau](https://togithub.com/oleveau) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3965](https://togithub.com/mermaid-js/mermaid/pull/3965) - [@natasha-jarus](https://togithub.com/natasha-jarus) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4038](https://togithub.com/mermaid-js/mermaid/pull/4038) **Full Changelog**: https://github.com/mermaid-js/mermaid/compare/v9.3.0...v9.4.0Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.