v9.4.0
What's Changed
Features
- Timeline Diagram by @ashishjain0512 in #4014
- feat: Flowchart layout using elkjs by @knsv in #3984
- Layout v3 continued by @knsv in #3938
- feat(er): add unique key by @tomperr in #3917
- feat: Set svg role to 'graphics-document document' by @weedySeaDragon in #3897
- feat: Wait for rendering to finish before taking image snapshots by @sidharthv96 in #3995
- feat(er): add multiple key constraints by @tomperr in #4030
- Add support for YAML frontmatter in Markdown docs (used for Vitepress config) by @aloisklink in #3962
- feat(er): allow leading underscore for attributes name by @tomperr in #4033
- Add links to theme listing by @BD103 in #3890
- Adding support for parenthesis in the er diagram attribute types. by @mahomedalid in #3892
- Support parsing indented mermaid/YAML only from HTML by @aloisklink in #3859
- Parse style string and number font size values from configuration inputs by @jonabc in #3993
- Mindmaps: differentiate the colors between the root node and the first section #4017 by @knsv in #4018
- Add Box support in Sequence Diagrams by @oleveau in #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 package is deprecated by this.
Documentation
- doc: remove links from atom.io; add note Atom has been archived by @weedySeaDragon in #3899
- docs(README.zh-CN): fix book image src by @aloisklink in #3920
- docs: fix typo by @Foo-x in #3925
- docs: update navbar by @huynhicode in #3906
- docs: fix text overflow by @huynhicode in #3907
- docs: Remove duplicate example in ER-diagram documentation by @guilhermgonzaga in #3964
- Docs: Too many
primaryBorderColor
field by @LiHowe in #3986 - docs(sequenceDiagram): subvert prettification of arrow types by @cakemanny in #3988
- Add Swimm to the list of integrations by @Omerr in #3936
- Website/homepage updates by @huynhicode in #3945
- Update sequenceDiagram.md to include line break by @Odogwudozilla in #3960
- Support GitHub Flavored Markdown in markdown documentation by @aloisklink in #3954
- Update integrations.md by @Barry1 in #4011
- docs(readme): update broken twitter badge by @LeoDog896 in #4032
- Update mindmap.md by @GavinPen in #4042
- Showcase section to the docs - keepings docs up to date by @Omerr in #4055
Bug Fixes
- fix(docs): remove duplicate section by @Joxtacy in #3908
- fix: Typescript error in usage by @tommoor in #3914
- fix: dev server watch mode by @huynhicode in #3904
- fix(er): switch to deterministic UUIDs in ER by @aloisklink in #3916
- fixed Composition arrow by @Frank-Mayer in #3930
- fix(generic): fix generic type detection by @tomperr in #3921
- fix typos accessing techn property in drawC4Shape function by @nekikara in #3943
- fix(deps): update dependency dompurify to v2.4.3 by @renovate in #3977
- Fix nonstandard syntax by @atmikeguo in #3972
- Fix failing tests due to semantic merge conflict by @aloisklink in #3985
- fix(deps): update dependency dagre-d3-es to v7.0.6 by @renovate in #3996
- fix(#4003): Remove unhandled promises by @sidharthv96 in #4004
- Bug/3858 [state] trailing whitespace in ids for named state container by @weedySeaDragon in #3902
- fix: moment-mini default exporter by @emersonbottero in #4034
- fix(deps): update dependency dagre-d3-es to v7.0.8 by @renovate in #4058
- bugfix: add missing d3 curves to flowchart and docs by @natasha-jarus in #4038
- Bug/3865 C4Context: $borderColor has no effect by @nekikara in #3947
- Mindmaps: Handling rows with only spaces in them (#4012) by @knsv in #4013
Chores
- ci: disable checking twitter links by @aloisklink in #3973
- chore(deps): update all non-major dependencies (minor) by @renovate in #3905
- chore(deps): update pnpm to v7.18.2 by @renovate in #3929
- chore(pr): add documentation task in PR template by @tomperr in #3935
- (chore) Docs: add tag to produce only a diagram, not code example by @weedySeaDragon in #3946
- chore(deps): update all non-major dependencies (minor) by @renovate in #3944
- chore(deps): update all non-major dependencies (minor) by @renovate in #3997
- chore(deps): update pnpm to v7.25.1 by @renovate in #4024
- build(lint): cache prettier on
pnpm run lint
by @aloisklink in #4035 - Cache
eslint
in pre-commit script (makesgit commit
5x faster) by @aloisklink in #4057
New Contributors
- @Joxtacy made their first contribution in #3908
- @BD103 made their first contribution in #3890
- @mahomedalid made their first contribution in #3892
- @tomperr made their first contribution in #3917
- @Foo-x made their first contribution in #3925
- @Frank-Mayer made their first contribution in #3930
- @Omerr made their first contribution in #3936
- @nekikara made their first contribution in #3943
- @guilhermgonzaga made their first contribution in #3964
- @Odogwudozilla made their first contribution in #3960
- @atmikeguo made their first contribution in #3972
- @LiHowe made their first contribution in #3986
- @cakemanny made their first contribution in #3988
- @jonabc made their first contribution in #3993
- @MermaidChart made their first contribution in #4013
- @Barry1 made their first contribution in #4011
- @LeoDog896 made their first contribution in #4032
- @GavinPen made their first contribution in #4042
- @oleveau made their first contribution in #3965
- @natasha-jarus made their first contribution in #4038
Full Changelog: v9.3.0...v9.4.0