v11.0.0
版本发布时间: 2024-08-23 20:49:42
mermaid-js/mermaid最新发布版本:mermaid@11.2.1(2024-09-17 00:41:38)
Release Notes
Major Update
Refactored the Mermaid rendering engine to support new features, including customizable layout algorithms and visual styles. This update enhances diagram flexibility, starting with flowcharts and state diagrams, with plans to extend to all diagram types by @knsv, @ashishjain0512, @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5604
🚨 Breaking Changes
- refactor!(git): default to
useMaxWidth
true (#5723) @aloisklink - refactor!(sankey): default to
useMaxWidth
true (#5724) @aloisklink - Use ESBuild (replaces UMD with IIFE bundle) by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/4729
🚀 Features
- feat: add
@mermaid-js/parser
package andinfo
langium parser by @Yokozuna59 in https://github.com/mermaid-js/mermaid/pull/4727 - Allow registered diagrams to be overridden. by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5050
- feat: Add diagramType to RenderResult and ParseResult by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5118
- feat: Add packet diagram by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/4839
- feat: add
pie
langium parser by @Yokozuna59 in https://github.com/mermaid-js/mermaid/pull/4751 - feat: add name attribute and class "actor-line" to line by @ad1992 in https://github.com/mermaid-js/mermaid/pull/5338
- Feature/4661 gantt customize days of weekend by @Ronid1 in https://github.com/mermaid-js/mermaid/pull/5358
- Feature/5245 sequence diagram add classes to actors text by @Ronid1 in https://github.com/mermaid-js/mermaid/pull/5272
- Add
suppressErrorRendering
option to avoid inserting 'Syntax error' message to DOM directly by @rhysd in https://github.com/mermaid-js/mermaid/pull/4359 - Flowchart: Apply
nodeSpacing
/rankSpacing
config to subgraphs by @rowanfr in https://github.com/mermaid-js/mermaid/pull/5183 - feat(git-graph): GitGraph Bottom-to-Top Orientation by @JingyuMarcelLee in https://github.com/mermaid-js/mermaid/pull/5259
- Feature/support fa kit custom icons by @jakobskrym in https://github.com/mermaid-js/mermaid/pull/5430
- Adds 'Switch' as an Alias for 'Checkout` by @FutzMonitor in https://github.com/mermaid-js/mermaid/pull/5445
- feat: Add point styling for quadrant chart by @ilyes-ced in https://github.com/mermaid-js/mermaid/pull/5173
- feat(state): add from, to ids for edge by @igorwessel in https://github.com/mermaid-js/mermaid/pull/5503
- Feature/4051 sequence diagram multi directional arrow by @Ronid1 in https://github.com/mermaid-js/mermaid/pull/5209
- feat: Add threshold to argos test by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5633
- feat: Use marked instead of mdast-util-from-markdown by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5636
- feat(3801): Multiple Tags support for Git Graph by @Yash-Singh1 in https://github.com/mermaid-js/mermaid/pull/5647
- Allow Hashtags in Timeline Titles, Sections, and Events by @FutzMonitor in https://github.com/mermaid-js/mermaid/pull/5399
- Allow Semicolons in Timeline Titles, Sections, Periods, and Events by @FutzMonitor in https://github.com/mermaid-js/mermaid/pull/5335
🐛 Bug Fixes
- bug/5133 sequence diagram fix arrow corner by @Ronid1 in https://github.com/mermaid-js/mermaid/pull/5309
- fix: remove unused import by @ad1992 in https://github.com/mermaid-js/mermaid/pull/5421
- fix: make sequenceDB typesafe by @ad1992 in https://github.com/mermaid-js/mermaid/pull/5426
- fix: simply from and to in message to string type by @ad1992 in https://github.com/mermaid-js/mermaid/pull/5471
- fix: inconsistent MathML rendering & erroneous
s being added by @NicolasNewman in https://github.com/mermaid-js/mermaid/pull/5483 - fix: move from objects to Maps by @Yash-Singh1 in https://github.com/mermaid-js/mermaid/pull/5468
- Bug/5525 sequence diagram fix note z position by @Ronid1 in https://github.com/mermaid-js/mermaid/pull/5564
- Fix
sandbox
mode with UTF-16 characters by @iansan5653 in https://github.com/mermaid-js/mermaid/pull/5520 - [XYChart] fixed incorrect spacing between data points by @OG-NI in https://github.com/mermaid-js/mermaid/pull/5556
- fix: prevent escaping label styles by @Yash-Singh1 in https://github.com/mermaid-js/mermaid/pull/5598
- fix(class): #5624 Reset direction to default in classDiagram by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5625
- fix: double space in wrapped sequence diagram messages by @Yash-Singh1 in https://github.com/mermaid-js/mermaid/pull/5649
- Fix Requirement overflow by @Mikek16 in https://github.com/mermaid-js/mermaid/pull/5305
- fix: Create a copy of config passed in initialize, so that theme variables are not leaked to the object by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5725
- Bug/4391 make markdown auto wrapping optional by @dreathed in https://github.com/mermaid-js/mermaid/pull/4856
- Fixed styling for lines for ELK flowchart by @itsalam in https://github.com/mermaid-js/mermaid/pull/4844
- Correct the System_Boundary stereotype by @jonmcewen in https://github.com/mermaid-js/mermaid/pull/5243
- Remove
elkjs
dependency from mermaid package by @Gusted in https://github.com/mermaid-js/mermaid/pull/5654 - Aligning doctype so that mermaid renders in the same way with or without it by @knsv in https://github.com/mermaid-js/mermaid/pull/5727
🧰 Maintenance
- chore: Cleanup layoutelk by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5730
- chore: Fix peer dependencies by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5737
- chore: remove repetitive words by @welfuture in https://github.com/mermaid-js/mermaid/pull/5476
- chore: remove unrefSubSchemas by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5514
- chore: setup Argos Visual Testing by @gregberge in https://github.com/mermaid-js/mermaid/pull/5577
- chore: fix Argos parallel by @gregberge in https://github.com/mermaid-js/mermaid/pull/5581
- chore: Deprecate mermaidAPI by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/4821
- chore: Log granular rebuild times by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5609
- chore: Update @zenuml/core dependency to version 3.23.27 by @dontry in https://github.com/mermaid-js/mermaid/pull/5607
- chore: 5237 Cleanup by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5606
- chore: Update pnpm and lockfile by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5728
- Split chunks into individual dirs by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/4733
- remove duplicate
@types/d3-scale
dev dependency by @Yokozuna59 in https://github.com/mermaid-js/mermaid/pull/4749 - [v11] Limit
MermaidConfig
enum TypesScript types to certain values by @aloisklink in https://github.com/mermaid-js/mermaid/pull/4803 - Move ELK to standalone package by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5049
- Remove default properties before generating the config types by @disog in https://github.com/mermaid-js/mermaid/pull/5126
- refactor: Convert flowDB to TS by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5077
- refactor: Support async parsers [internal] by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5233
- build(deps): update
langium
tov3
and apply the required changes by @Yokozuna59 in https://github.com/mermaid-js/mermaid/pull/5345 - ci(e2e): avoid commenting on PRs in CI, fixing PRs from forks by @aloisklink in https://github.com/mermaid-js/mermaid/pull/5365
- [PR#5468] refactor: remove TypeScript non null assertions by @aloisklink in https://github.com/mermaid-js/mermaid/pull/5518
- Fixed entrypoint path by @nirname in https://github.com/mermaid-js/mermaid/pull/5566
- Fixed wrong ELK detector by @nirname in https://github.com/mermaid-js/mermaid/pull/5579
- Cleanup Cypress tests by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5586
- ESLint V9 - Typed by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5608
- Update eslint to v9 by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5603
- ci: upgrade to pnpm/action-setup@v4 to avoid CI failures by @frantic1048 in https://github.com/mermaid-js/mermaid/pull/5621
- test: Argos parallel by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5635
- Add autofix.ci by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5651
- 5237 Review Updates by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5670
- Support flowchart-elk to use layout: elk by @sidharthv96 in https://github.com/mermaid-js/mermaid/pull/5729
📚 Documentation
- Update docs to properly showcase participant ordering by @loucadufault in https://github.com/mermaid-js/mermaid/pull/5306
- DOCS: Add blog post - Official Mermaid Chart for Confluence app by @huynhicode in https://github.com/mermaid-js/mermaid/pull/5536
- docs: fix node version in CONTRIBUTING.md by @exoego in https://github.com/mermaid-js/mermaid/pull/5573
- docs: Added demo diagram of bidirectional arrows for sequence diagrams by @Justin-Garey in https://github.com/mermaid-js/mermaid/pull/5589
- DOCS: Product Hunt by @huynhicode in https://github.com/mermaid-js/mermaid/pull/5602
- Adds Doctave to list of integrations by @begleynk in https://github.com/mermaid-js/mermaid/pull/5614
- docs: fix the classDef example in stateDiagram not display as code block, and long text display overflows by @ScriptBloom in https://github.com/mermaid-js/mermaid/pull/5640
- Add LLM integration section in productivity tools and add HueHive by @kamalkishor1991 in https://github.com/mermaid-js/mermaid/pull/5351
- Update integrations-community: add Drupal and module. by @swirtSJW in https://github.com/mermaid-js/mermaid/pull/5389
- Update entityRelationshipDiagram.md by @anlai46 in https://github.com/mermaid-js/mermaid/pull/5413
- Add named composite state example to stateDiagram-v2 by @cbugk in https://github.com/mermaid-js/mermaid/pull/5485
- Update integrations-community: Add MarkChart, a macOS app to preview … by @Timac in https://github.com/mermaid-js/mermaid/pull/5490
- Added to "others" section on integration with Astro by @conradagramont in https://github.com/mermaid-js/mermaid/pull/5506
- Updated Mermaid Chart ChatGPT plugin link by @Abrifq in https://github.com/mermaid-js/mermaid/pull/5509
- Tiny improvements to Diagram Syntax sidebar by @TWiStErRob in https://github.com/mermaid-js/mermaid/pull/5532
- Update flowchart.md by @GRASBOCK in https://github.com/mermaid-js/mermaid/pull/5517
- Explain line breaks in
sequenceDiagram.md
by @abitrolly in https://github.com/mermaid-js/mermaid/pull/5570 - Add Slidev to the list of integrations by @KermanX in https://github.com/mermaid-js/mermaid/pull/5629
- Add Madness to integrations-community.md by @DannyBen in https://github.com/mermaid-js/mermaid/pull/5591
- typo by @inverted-capital in https://github.com/mermaid-js/mermaid/pull/5641
- add MonsterWriter to list of community integrations by @wolfoo2931 in https://github.com/mermaid-js/mermaid/pull/5719
New Contributors
- @disog made their first contribution in https://github.com/mermaid-js/mermaid/pull/5126
- @kamalkishor1991 made their first contribution in https://github.com/mermaid-js/mermaid/pull/5351
- @github-actions made their first contribution in https://github.com/mermaid-js/mermaid/pull/5375
- @swirtSJW made their first contribution in https://github.com/mermaid-js/mermaid/pull/5389
- @loucadufault made their first contribution in https://github.com/mermaid-js/mermaid/pull/5306
- @itsalam made their first contribution in https://github.com/mermaid-js/mermaid/pull/4844
- @JingyuMarcelLee made their first contribution in https://github.com/mermaid-js/mermaid/pull/5259
- @anlai46 made their first contribution in https://github.com/mermaid-js/mermaid/pull/5413
- @jakobskrym made their first contribution in https://github.com/mermaid-js/mermaid/pull/5430
- @ilyes-ced made their first contribution in https://github.com/mermaid-js/mermaid/pull/5173
- @welfuture made their first contribution in https://github.com/mermaid-js/mermaid/pull/5476
- @cbugk made their first contribution in https://github.com/mermaid-js/mermaid/pull/5485
- @Timac made their first contribution in https://github.com/mermaid-js/mermaid/pull/5490
- @conradagramont made their first contribution in https://github.com/mermaid-js/mermaid/pull/5506
- @igorwessel made their first contribution in https://github.com/mermaid-js/mermaid/pull/5503
- @GRASBOCK made their first contribution in https://github.com/mermaid-js/mermaid/pull/5517
- @TWiStErRob made their first contribution in https://github.com/mermaid-js/mermaid/pull/5532
- @exoego made their first contribution in https://github.com/mermaid-js/mermaid/pull/5573
- @gregberge made their first contribution in https://github.com/mermaid-js/mermaid/pull/5577
- @jonmcewen made their first contribution in https://github.com/mermaid-js/mermaid/pull/5243
- @abitrolly made their first contribution in https://github.com/mermaid-js/mermaid/pull/5570
- @iansan5653 made their first contribution in https://github.com/mermaid-js/mermaid/pull/5520
- @OG-NI made their first contribution in https://github.com/mermaid-js/mermaid/pull/5556
- @Justin-Garey made their first contribution in https://github.com/mermaid-js/mermaid/pull/5589
- @begleynk made their first contribution in https://github.com/mermaid-js/mermaid/pull/5614
- @frantic1048 made their first contribution in https://github.com/mermaid-js/mermaid/pull/5621
- @KermanX made their first contribution in https://github.com/mermaid-js/mermaid/pull/5629
- @ScriptBloom made their first contribution in https://github.com/mermaid-js/mermaid/pull/5640
- @DannyBen made their first contribution in https://github.com/mermaid-js/mermaid/pull/5591
- @inverted-capital made their first contribution in https://github.com/mermaid-js/mermaid/pull/5641
- @wolfoo2931 made their first contribution in https://github.com/mermaid-js/mermaid/pull/5719
- @Mikek16 made their first contribution in https://github.com/mermaid-js/mermaid/pull/5305 Full Changelog: https://github.com/mermaid-js/mermaid/compare/v10.9.1...v11.0.0
🎉 Thanks to all contributors helping with this release! 🎉