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