diff --git a/.changeset/brave-rooms-rest.md b/.changeset/brave-rooms-rest.md deleted file mode 100644 index 5b64c31c449..00000000000 --- a/.changeset/brave-rooms-rest.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix: prevent unbalanced CSS styles in classDefs diff --git a/.changeset/cold-numbers-taste.md b/.changeset/cold-numbers-taste.md deleted file mode 100644 index 48bac482dc7..00000000000 --- a/.changeset/cold-numbers-taste.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'mermaid': patch ---- - -fix: create CSS styles using the CSSOM - -This removes some invalid CSS and normalizes some CSS formatting. diff --git a/.changeset/cold-snakes-attend.md b/.changeset/cold-snakes-attend.md deleted file mode 100644 index 6e44582dbf4..00000000000 --- a/.changeset/cold-snakes-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix(stateDiagram): `end note` now only closes a note when used on a new line diff --git a/.changeset/common-parents-serve.md b/.changeset/common-parents-serve.md deleted file mode 100644 index a165935fd78..00000000000 --- a/.changeset/common-parents-serve.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix(gantt): add iteration limit for `excludes` field diff --git a/.changeset/curly-rules-flow.md b/.changeset/curly-rules-flow.md deleted file mode 100644 index eac1b961106..00000000000 --- a/.changeset/curly-rules-flow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix: disallow some CSS at-rules in custom CSS diff --git a/.changeset/dark-bats-build.md b/.changeset/dark-bats-build.md deleted file mode 100644 index 1d05d0d6132..00000000000 --- a/.changeset/dark-bats-build.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'mermaid': minor ---- - -feat(sequence): Add support for decimal start and increment values in the `autonumber` directive - -commit: 0aca21739c0d1fcaaa206e04a6cd574ebc415483 diff --git a/.changeset/eager-cobras-slide.md b/.changeset/eager-cobras-slide.md deleted file mode 100644 index ab3683d7470..00000000000 --- a/.changeset/eager-cobras-slide.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'mermaid': minor ---- - -feat(flowchart): add datastore shape - -In Data flow diagrams, a datastore/warehouse/file/database is used to represent data persistence. It is denoted by a rectangle with only top and bottom borders, and can be used in flowcharts with `A@{ shape: datastore, label: "Datastore" }`. diff --git a/.changeset/event-modeling-diagram.md b/.changeset/event-modeling-diagram.md deleted file mode 100644 index e843768f21a..00000000000 --- a/.changeset/event-modeling-diagram.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'mermaid': minor ---- - -feat: add Event Modeling diagram - -author: @yordis -author: @lgazo diff --git a/.changeset/feat-architecture-fcose-config.md b/.changeset/feat-architecture-fcose-config.md deleted file mode 100644 index bd3aec82f14..00000000000 --- a/.changeset/feat-architecture-fcose-config.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': minor ---- - -feat(architecture): expose four fcose layout knobs for `architecture-beta` diagrams (`nodeSeparation`, `idealEdgeLengthMultiplier`, `edgeElasticity`, `numIter`) so authors can tune layout density and spread overlapping siblings without changing diagram source diff --git a/.changeset/feat-nested-namespaces.md b/.changeset/feat-nested-namespaces.md deleted file mode 100644 index 3d73a17021e..00000000000 --- a/.changeset/feat-nested-namespaces.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'mermaid': minor ---- - -feat(class): add nested namespace support for class diagrams via dot notation and syntactic nesting - -If you have namespaces in class diagrams that use `.`s already and want to render them without nesting (≤v11.14.0 behaviour), you can use set `class.hierarchicalNamespaces=false` in your mermaid config: - -```yaml -config: - class: - hierarchicalNamespaces: false -``` diff --git a/.changeset/few-loops-shake.md b/.changeset/few-loops-shake.md deleted file mode 100644 index ba4eb22836d..00000000000 --- a/.changeset/few-loops-shake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix(wardley): fix unnecessary sanitization of text diff --git a/.changeset/fix-7560-self-referential-multiplicity.md b/.changeset/fix-7560-self-referential-multiplicity.md deleted file mode 100644 index 844af4343e0..00000000000 --- a/.changeset/fix-7560-self-referential-multiplicity.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'mermaid': patch ---- - -fix(class): self-referential class multiplicity labels no longer rendered multiple times - -Fixes #7560. Resolves an issue where cardinality labels on self-referential class relationships were rendered three times due to edge splitting in the dagre layout. The fix ensures that each sub-edge only carries its relevant label positions. diff --git a/.changeset/fix-alt-else-label-box.md b/.changeset/fix-alt-else-label-box.md deleted file mode 100644 index 083cd210685..00000000000 --- a/.changeset/fix-alt-else-label-box.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix(sequence): add background box behind alt/else section title labels in sequence diagrams diff --git a/.changeset/fix-block-beta-width.md b/.changeset/fix-block-beta-width.md deleted file mode 100644 index 19bb3b1619f..00000000000 --- a/.changeset/fix-block-beta-width.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix(block): prevent column widths from shrinking when mixing different column spans diff --git a/.changeset/fix-mindmap-tidy-tree-root-edges.md b/.changeset/fix-mindmap-tidy-tree-root-edges.md deleted file mode 100644 index e12c9daccec..00000000000 --- a/.changeset/fix-mindmap-tidy-tree-root-edges.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@mermaid-js/layout-tidy-tree': patch ---- - -fix: keep mindmap edges connected to a non-circular root when using the tidy-tree layout diff --git a/.changeset/fix-sequence-messagealign-rtl-arrows.md b/.changeset/fix-sequence-messagealign-rtl-arrows.md deleted file mode 100644 index afbb7fcbe61..00000000000 --- a/.changeset/fix-sequence-messagealign-rtl-arrows.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix(sequence): correct messageAlign label position for right-to-left arrows in sequence diagrams diff --git a/.changeset/fix-wardley-hyphenated-names.md b/.changeset/fix-wardley-hyphenated-names.md deleted file mode 100644 index e92b062f306..00000000000 --- a/.changeset/fix-wardley-hyphenated-names.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@mermaid-js/parser': patch -'mermaid': patch ---- - -fix(wardley): allow hyphens in unquoted component names - -Multi-word names containing hyphens — e.g. `real-time processing`, `end-user`, `on-call engineer` — now parse without quoting, bringing the grammar in line with the OnlineWardleyMaps (OWM) convention. `A->B` (no-space arrow) still tokenises correctly. diff --git a/.changeset/fix-zenuml-svg-renderer.md b/.changeset/fix-zenuml-svg-renderer.md deleted file mode 100644 index 0d46a34e344..00000000000 --- a/.changeset/fix-zenuml-svg-renderer.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@mermaid-js/mermaid-zenuml': patch ---- - -fix: update @zenuml/core to v3.46.11 with native SVG renderer - -- Fix vertical lifelines disappearing when printing (#6004) -- Fix SVG dimensions exceeding container boundaries (#7266) -- Fix invalid ZenUML syntax freezing the editor (#7154) diff --git a/.changeset/fruity-ghosts-watch.md b/.changeset/fruity-ghosts-watch.md deleted file mode 100644 index b8dc0c372cf..00000000000 --- a/.changeset/fruity-ghosts-watch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix(block): Arrow blocks in block-beta diagrams not spanning the specified number of columns when using `:n` syntax. diff --git a/.changeset/grumpy-singers-cheer.md b/.changeset/grumpy-singers-cheer.md deleted file mode 100644 index d90efb4720d..00000000000 --- a/.changeset/grumpy-singers-cheer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix(block): Ensure block diagram hexagon blocks respect column spanning syntax diff --git a/.changeset/hungry-carrots-chew.md b/.changeset/hungry-carrots-chew.md deleted file mode 100644 index ff516e46df8..00000000000 --- a/.changeset/hungry-carrots-chew.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'mermaid': patch ---- - -fix: loosen `uuid` dependency range to allow v14 - -Mermaid does not use any of the vulnerable code in CVE-2026-41907, -but this allows users to silence any `npm audit` alerts on it. diff --git a/.changeset/olive-signs-pull.md b/.changeset/olive-signs-pull.md deleted file mode 100644 index 2837ae6866b..00000000000 --- a/.changeset/olive-signs-pull.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix(block): add support for all arrow types in block diagrams diff --git a/.changeset/petite-crabs-hide.md b/.changeset/petite-crabs-hide.md deleted file mode 100644 index 3fa49478731..00000000000 --- a/.changeset/petite-crabs-hide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -chore: drop lodash-es in favour of es-toolkit diff --git a/.changeset/petite-things-raise.md b/.changeset/petite-things-raise.md deleted file mode 100644 index 9a48286b0a5..00000000000 --- a/.changeset/petite-things-raise.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@mermaid-js/parser': patch ---- - -fix(parser): bundle langium/chevrotain - -This should silence warnings about lodash-es 4.17.23, which chevrotain@11.1.1 is pinned to, but is not vulnerable to. - -And this avoids warnings when langium v4 is installed on Node.JS v20.0. diff --git a/.changeset/quadrant-chart-unicode-support.md b/.changeset/quadrant-chart-unicode-support.md deleted file mode 100644 index 9436dc4670b..00000000000 --- a/.changeset/quadrant-chart-unicode-support.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'mermaid': patch ---- - -fix(quadrant-chart): allow CJK, emoji, Latin-1 accented characters, and other non-ASCII text in unquoted axis/quadrant/point labels. - -Previously the lexer only matched ASCII `[A-Za-z]+` for text tokens, even though the grammar referenced `UNICODE_TEXT`. Bare Chinese, Japanese, Korean, emoji, and accented Latin characters in labels caused a parse error. Added a `[^\x00-\x7F]+` lexer rule to emit `UNICODE_TEXT` and included it in the `alphaNumToken` grammar rule. - -Fixes #7120. diff --git a/.changeset/salty-taxes-warn.md b/.changeset/salty-taxes-warn.md deleted file mode 100644 index ddcf38d7211..00000000000 --- a/.changeset/salty-taxes-warn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix: improve D3 types for mermaidAPI funcs diff --git a/.changeset/sankey-apple-style.md b/.changeset/sankey-apple-style.md deleted file mode 100644 index 21dccd47e62..00000000000 --- a/.changeset/sankey-apple-style.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': minor ---- - -feat(sankey): add outlined label style, configurable nodeWidth/nodePadding, and custom node colors diff --git a/.changeset/social-masks-visit.md b/.changeset/social-masks-visit.md deleted file mode 100644 index 065d0dce4ec..00000000000 --- a/.changeset/social-masks-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -fix: handle `&` when namespacing CSS rules diff --git a/.changeset/yummy-moose-wait.md b/.changeset/yummy-moose-wait.md deleted file mode 100644 index 7894dedc773..00000000000 --- a/.changeset/yummy-moose-wait.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'mermaid': patch ---- - -fix(stateDiagram): comments starting with one `%` are no longer treated as comments - -Switch to using two `%%` if you want to write a comment. diff --git a/docs/syntax/architecture.md b/docs/syntax/architecture.md index aaccd9292c8..e730bfb1730 100644 --- a/docs/syntax/architecture.md +++ b/docs/syntax/architecture.md @@ -224,7 +224,7 @@ mermaid.initialize({ | ----------- | ------- | ------- | ---------------------------------------------------------------------- | | `randomize` | boolean | `false` | Whether to randomize initial node positions before running the layout. | -### Layout tuning (v\+) +### Layout tuning (v11.15.0+) The following options pass through to the underlying [fcose](https://github.com/iVis-at-Bilkent/cytoscape.js-fcose) layout so you can adjust spacing and density without changing your diagram source: diff --git a/docs/syntax/classDiagram.md b/docs/syntax/classDiagram.md index 49fcd435e3d..896a26937b4 100644 --- a/docs/syntax/classDiagram.md +++ b/docs/syntax/classDiagram.md @@ -498,7 +498,7 @@ namespace BaseShapes { } ``` -### Namespace Labels (v\+) +### Namespace Labels (v11.15.0+) A namespace can be given a display label using square bracket syntax, similar to class labels: diff --git a/docs/syntax/eventmodeling.md b/docs/syntax/eventmodeling.md index b3e179d72fc..d971397e930 100644 --- a/docs/syntax/eventmodeling.md +++ b/docs/syntax/eventmodeling.md @@ -4,7 +4,7 @@ > > ## Please edit the corresponding file in [/packages/mermaid/src/docs/syntax/eventmodeling.md](../../packages/mermaid/src/docs/syntax/eventmodeling.md). -# Event Modeling Diagram (v\+) +# Event Modeling Diagram (v11.15.0+) ## Introduction diff --git a/docs/syntax/sankey.md b/docs/syntax/sankey.md index 713a678f011..9270f8d551a 100644 --- a/docs/syntax/sankey.md +++ b/docs/syntax/sankey.md @@ -302,7 +302,7 @@ Graph layout can be changed by setting `nodeAlignment` to: - `left` - `right` -### Label Style (v\+) +### Label Style (v11.15.0+) You can change how node labels are rendered by setting `labelStyle`: diff --git a/docs/syntax/sequenceDiagram.md b/docs/syntax/sequenceDiagram.md index 7b4621236b2..3915aa17071 100644 --- a/docs/syntax/sequenceDiagram.md +++ b/docs/syntax/sequenceDiagram.md @@ -971,7 +971,7 @@ sequenceDiagram Bob-->>John: Jolly good! ``` -### Start and Increment values (v\+) +### Start and Increment values (v11.15.0+) It is possible to specify a starting value and an increment value for automatic numbering. Both the starting value and increment value can include decimals up to the hundredths place. diff --git a/packages/mermaid-layout-tidy-tree/CHANGELOG.md b/packages/mermaid-layout-tidy-tree/CHANGELOG.md index 68a7044eee2..c987198f222 100644 --- a/packages/mermaid-layout-tidy-tree/CHANGELOG.md +++ b/packages/mermaid-layout-tidy-tree/CHANGELOG.md @@ -1,5 +1,14 @@ # @mermaid-js/layout-tidy-tree +## 0.2.2 + +### Patch Changes + +- [#7639](https://github.com/mermaid-js/mermaid/pull/7639) [`5ab4693`](https://github.com/mermaid-js/mermaid/commit/5ab4693820dbb7eea004b311ce7948d23aa51341) Thanks [@knsv-bot](https://github.com/knsv-bot)! - fix: keep mindmap edges connected to a non-circular root when using the tidy-tree layout + +- Updated dependencies [[`e9b0f34`](https://github.com/mermaid-js/mermaid/commit/e9b0f34d8d82a6260077764ee45e1d7d90957a0f), [`37ff937`](https://github.com/mermaid-js/mermaid/commit/37ff937f1da2e19f882fd1db01235db4d01f4056), [`bfe60cc`](https://github.com/mermaid-js/mermaid/commit/bfe60cc67b9a6dec64f9161f58e4d24a06c42b65), [`faafb5d`](https://github.com/mermaid-js/mermaid/commit/faafb5d49106dd32c367f3882505f2dd625aa30e), [`65f8be2`](https://github.com/mermaid-js/mermaid/commit/65f8be2a42faf869b811469571983cba7eeeca99), [`50b2166`](https://github.com/mermaid-js/mermaid/commit/50b216679582347e5f0765c950124ee660416c4c), [`8e17492`](https://github.com/mermaid-js/mermaid/commit/8e17492f7365ba50896382feb69a23efd9d8a22d), [`9ad8dde`](https://github.com/mermaid-js/mermaid/commit/9ad8dde6d049adde85d8ed2d476c09b5820f3f4b), [`27db774`](https://github.com/mermaid-js/mermaid/commit/27db774627be1cee881961dfd0d2cb21cd01b79d), [`bf9502f`](https://github.com/mermaid-js/mermaid/commit/bf9502fb6012a4b724679b401ac928f5ee55161c), [`1502f32`](https://github.com/mermaid-js/mermaid/commit/1502f32f3c5fb944925b0c527fbbde3c4f041824), [`1f98db8`](https://github.com/mermaid-js/mermaid/commit/1f98db8e326299ac97a2fa60abfd509d8f5f16e2), [`2343e38`](https://github.com/mermaid-js/mermaid/commit/2343e38498a3b31f8ce5e79f1f009e0b56fbe086), [`7fb9509`](https://github.com/mermaid-js/mermaid/commit/7fb9509b8b5cb1dc48519dc60cf6cdc6afba0462), [`3f9e0f1`](https://github.com/mermaid-js/mermaid/commit/3f9e0f15bedc1e2c71ddb6b34192d1a21124cfc2), [`7a8fb85`](https://github.com/mermaid-js/mermaid/commit/7a8fb8532c57ecc55b3711454ab0e505a4291445), [`5144ed4`](https://github.com/mermaid-js/mermaid/commit/5144ed4b138ae0f4836bab4c163c575e0a767dd3), [`13d9bfa`](https://github.com/mermaid-js/mermaid/commit/13d9bfa4748e845a9eec7d6265ba496d2278f26e), [`e14bb88`](https://github.com/mermaid-js/mermaid/commit/e14bb88bdb940124cdb0a107025653bf93745c99), [`9217c0d`](https://github.com/mermaid-js/mermaid/commit/9217c0d8b221b423af80e420b7adae901acf6c8c), [`5e7eb62`](https://github.com/mermaid-js/mermaid/commit/5e7eb62e3aba6b5df559f5c839a868e5b7f40e72), [`afaf306`](https://github.com/mermaid-js/mermaid/commit/afaf3062381d115d66744413151b642f124dd9ba), [`4755553`](https://github.com/mermaid-js/mermaid/commit/4755553d5fb6d1217809e43ffb8fc54d6a73e482), [`88cdd3d`](https://github.com/mermaid-js/mermaid/commit/88cdd3dc0aab9577174561b04e14760c565a232b), [`6476973`](https://github.com/mermaid-js/mermaid/commit/64769738d5b59211e1decb471ffbaca8afec51aa), [`8c1a0c1`](https://github.com/mermaid-js/mermaid/commit/8c1a0c1fd19587c6772d6966fe9d217e5cd1356c)]: + - mermaid@11.15.0 + ## 0.2.1 ### Patch Changes diff --git a/packages/mermaid-layout-tidy-tree/package.json b/packages/mermaid-layout-tidy-tree/package.json index ebaa5371190..dd773557ea1 100644 --- a/packages/mermaid-layout-tidy-tree/package.json +++ b/packages/mermaid-layout-tidy-tree/package.json @@ -1,6 +1,6 @@ { "name": "@mermaid-js/layout-tidy-tree", - "version": "0.2.1", + "version": "0.2.2", "description": "Tidy-tree layout engine for mermaid", "module": "dist/mermaid-layout-tidy-tree.core.mjs", "types": "dist/layouts.d.ts", diff --git a/packages/mermaid-zenuml/CHANGELOG.md b/packages/mermaid-zenuml/CHANGELOG.md index a7fe35c78aa..7ed6e32ef01 100644 --- a/packages/mermaid-zenuml/CHANGELOG.md +++ b/packages/mermaid-zenuml/CHANGELOG.md @@ -1,5 +1,17 @@ # @mermaid-js/mermaid-zenuml +## 0.2.3 + +### Patch Changes + +- [#7647](https://github.com/mermaid-js/mermaid/pull/7647) [`45a9498`](https://github.com/mermaid-js/mermaid/commit/45a949817511bf1d70af5ead184c871e9de6a4f2) Thanks [@MrCoder](https://github.com/MrCoder)! - fix: update @zenuml/core to v3.46.11 with native SVG renderer + - Fix vertical lifelines disappearing when printing (#6004) + - Fix SVG dimensions exceeding container boundaries (#7266) + - Fix invalid ZenUML syntax freezing the editor (#7154) + +- Updated dependencies [[`e9b0f34`](https://github.com/mermaid-js/mermaid/commit/e9b0f34d8d82a6260077764ee45e1d7d90957a0f), [`37ff937`](https://github.com/mermaid-js/mermaid/commit/37ff937f1da2e19f882fd1db01235db4d01f4056), [`bfe60cc`](https://github.com/mermaid-js/mermaid/commit/bfe60cc67b9a6dec64f9161f58e4d24a06c42b65), [`faafb5d`](https://github.com/mermaid-js/mermaid/commit/faafb5d49106dd32c367f3882505f2dd625aa30e), [`65f8be2`](https://github.com/mermaid-js/mermaid/commit/65f8be2a42faf869b811469571983cba7eeeca99), [`50b2166`](https://github.com/mermaid-js/mermaid/commit/50b216679582347e5f0765c950124ee660416c4c), [`8e17492`](https://github.com/mermaid-js/mermaid/commit/8e17492f7365ba50896382feb69a23efd9d8a22d), [`9ad8dde`](https://github.com/mermaid-js/mermaid/commit/9ad8dde6d049adde85d8ed2d476c09b5820f3f4b), [`27db774`](https://github.com/mermaid-js/mermaid/commit/27db774627be1cee881961dfd0d2cb21cd01b79d), [`bf9502f`](https://github.com/mermaid-js/mermaid/commit/bf9502fb6012a4b724679b401ac928f5ee55161c), [`1502f32`](https://github.com/mermaid-js/mermaid/commit/1502f32f3c5fb944925b0c527fbbde3c4f041824), [`1f98db8`](https://github.com/mermaid-js/mermaid/commit/1f98db8e326299ac97a2fa60abfd509d8f5f16e2), [`2343e38`](https://github.com/mermaid-js/mermaid/commit/2343e38498a3b31f8ce5e79f1f009e0b56fbe086), [`7fb9509`](https://github.com/mermaid-js/mermaid/commit/7fb9509b8b5cb1dc48519dc60cf6cdc6afba0462), [`3f9e0f1`](https://github.com/mermaid-js/mermaid/commit/3f9e0f15bedc1e2c71ddb6b34192d1a21124cfc2), [`7a8fb85`](https://github.com/mermaid-js/mermaid/commit/7a8fb8532c57ecc55b3711454ab0e505a4291445), [`5144ed4`](https://github.com/mermaid-js/mermaid/commit/5144ed4b138ae0f4836bab4c163c575e0a767dd3), [`13d9bfa`](https://github.com/mermaid-js/mermaid/commit/13d9bfa4748e845a9eec7d6265ba496d2278f26e), [`e14bb88`](https://github.com/mermaid-js/mermaid/commit/e14bb88bdb940124cdb0a107025653bf93745c99), [`9217c0d`](https://github.com/mermaid-js/mermaid/commit/9217c0d8b221b423af80e420b7adae901acf6c8c), [`5e7eb62`](https://github.com/mermaid-js/mermaid/commit/5e7eb62e3aba6b5df559f5c839a868e5b7f40e72), [`afaf306`](https://github.com/mermaid-js/mermaid/commit/afaf3062381d115d66744413151b642f124dd9ba), [`4755553`](https://github.com/mermaid-js/mermaid/commit/4755553d5fb6d1217809e43ffb8fc54d6a73e482), [`88cdd3d`](https://github.com/mermaid-js/mermaid/commit/88cdd3dc0aab9577174561b04e14760c565a232b), [`6476973`](https://github.com/mermaid-js/mermaid/commit/64769738d5b59211e1decb471ffbaca8afec51aa), [`8c1a0c1`](https://github.com/mermaid-js/mermaid/commit/8c1a0c1fd19587c6772d6966fe9d217e5cd1356c)]: + - mermaid@11.15.0 + ## 0.2.2 ### Patch Changes diff --git a/packages/mermaid-zenuml/package.json b/packages/mermaid-zenuml/package.json index f10626f4444..4b06cf965e0 100644 --- a/packages/mermaid-zenuml/package.json +++ b/packages/mermaid-zenuml/package.json @@ -1,6 +1,6 @@ { "name": "@mermaid-js/mermaid-zenuml", - "version": "0.2.2", + "version": "0.2.3", "description": "MermaidJS plugin for ZenUML integration", "module": "dist/mermaid-zenuml.core.mjs", "types": "dist/detector.d.ts", diff --git a/packages/mermaid/CHANGELOG.md b/packages/mermaid/CHANGELOG.md index 0a1c2267cb1..57490db8914 100644 --- a/packages/mermaid/CHANGELOG.md +++ b/packages/mermaid/CHANGELOG.md @@ -1,5 +1,91 @@ # mermaid +## 11.15.0 + +### Minor Changes + +- [#7174](https://github.com/mermaid-js/mermaid/pull/7174) [`0aca217`](https://github.com/mermaid-js/mermaid/commit/0aca21739c0d1fcaaa206e04a6cd574ebc415483) Thanks [@milesspencer35](https://github.com/milesspencer35)! - feat(sequence): Add support for decimal start and increment values in the `autonumber` directive + +- [#7512](https://github.com/mermaid-js/mermaid/pull/7512) [`8e17492`](https://github.com/mermaid-js/mermaid/commit/8e17492f7365ba50896382feb69a23efd9d8a22d) Thanks [@aruncveli](https://github.com/aruncveli)! - feat(flowchart): add datastore shape + + In Data flow diagrams, a datastore/warehouse/file/database is used to represent data persistence. It is denoted by a rectangle with only top and bottom borders, and can be used in flowcharts with `A@{ shape: datastore, label: "Datastore" }`. + +- [#6440](https://github.com/mermaid-js/mermaid/pull/6440) [`9ad8dde`](https://github.com/mermaid-js/mermaid/commit/9ad8dde6d049adde85d8ed2d476c09b5820f3f4b) Thanks [@yordis](https://github.com/yordis), [@lgazo](https://github.com/lgazo)! - feat: add Event Modeling diagram + +- [#7707](https://github.com/mermaid-js/mermaid/pull/7707) [`27db774`](https://github.com/mermaid-js/mermaid/commit/27db774627be1cee881961dfd0d2cb21cd01b79d) Thanks [@txmxthy](https://github.com/txmxthy)! - feat(architecture): expose four fcose layout knobs for `architecture-beta` diagrams (`nodeSeparation`, `idealEdgeLengthMultiplier`, `edgeElasticity`, `numIter`) so authors can tune layout density and spread overlapping siblings without changing diagram source + +- [#7604](https://github.com/mermaid-js/mermaid/pull/7604) [`bf9502f`](https://github.com/mermaid-js/mermaid/commit/bf9502fb6012a4b724679b401ac928f5ee55161c) Thanks [@M-a-c](https://github.com/M-a-c)! - feat(class): add nested namespace support for class diagrams via dot notation and syntactic nesting + + If you have namespaces in class diagrams that use `.`s already and want to render them without nesting (≤v11.14.0 behaviour), you can use set `class.hierarchicalNamespaces=false` in your mermaid config: + + ```yaml + config: + class: + hierarchicalNamespaces: false + ``` + +- [#7272](https://github.com/mermaid-js/mermaid/pull/7272) [`88cdd3d`](https://github.com/mermaid-js/mermaid/commit/88cdd3dc0aab9577174561b04e14760c565a232b) Thanks [@xinbenlv](https://github.com/xinbenlv)! - feat(sankey): add outlined label style, configurable nodeWidth/nodePadding, and custom node colors + +### Patch Changes + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`e9b0f34`](https://github.com/mermaid-js/mermaid/commit/e9b0f34d8d82a6260077764ee45e1d7d90957a0f) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix: prevent unbalanced CSS styles in classDefs + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`37ff937`](https://github.com/mermaid-js/mermaid/commit/37ff937f1da2e19f882fd1db01235db4d01f4056) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix: create CSS styles using the CSSOM + + This removes some invalid CSS and normalizes some CSS formatting. + +- [#7508](https://github.com/mermaid-js/mermaid/pull/7508) [`bfe60cc`](https://github.com/mermaid-js/mermaid/commit/bfe60cc67b9a6dec64f9161f58e4d24a06c42b65) Thanks [@biiab](https://github.com/biiab)! - fix(stateDiagram): `end note` now only closes a note when used on a new line + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`faafb5d`](https://github.com/mermaid-js/mermaid/commit/faafb5d49106dd32c367f3882505f2dd625aa30e) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix(gantt): add iteration limit for `excludes` field + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`65f8be2`](https://github.com/mermaid-js/mermaid/commit/65f8be2a42faf869b811469571983cba7eeeca99) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix: disallow some CSS at-rules in custom CSS + +- [#7726](https://github.com/mermaid-js/mermaid/pull/7726) [`1502f32`](https://github.com/mermaid-js/mermaid/commit/1502f32f3c5fb944925b0c527fbbde3c4f041824) Thanks [@aloisklink](https://github.com/aloisklink)! - fix(wardley): fix unnecessary sanitization of text + +- [#7578](https://github.com/mermaid-js/mermaid/pull/7578) [`1f98db8`](https://github.com/mermaid-js/mermaid/commit/1f98db8e326299ac97a2fa60abfd509d8f5f16e2) Thanks [@Gaston202](https://github.com/Gaston202)! - fix(class): self-referential class multiplicity labels no longer rendered multiple times + + Fixes #7560. Resolves an issue where cardinality labels on self-referential class relationships were rendered three times due to edge splitting in the dagre layout. The fix ensures that each sub-edge only carries its relevant label positions. + +- [#7592](https://github.com/mermaid-js/mermaid/pull/7592) [`2343e38`](https://github.com/mermaid-js/mermaid/commit/2343e38498a3b31f8ce5e79f1f009e0b56fbe086) Thanks [@knsv-bot](https://github.com/knsv-bot)! - fix(sequence): add background box behind alt/else section title labels in sequence diagrams + +- [#7589](https://github.com/mermaid-js/mermaid/pull/7589) [`7fb9509`](https://github.com/mermaid-js/mermaid/commit/7fb9509b8b5cb1dc48519dc60cf6cdc6afba0462) Thanks [@NYCU-Chung](https://github.com/NYCU-Chung)! - fix(block): prevent column widths from shrinking when mixing different column spans + +- [#7632](https://github.com/mermaid-js/mermaid/pull/7632) [`3f9e0f1`](https://github.com/mermaid-js/mermaid/commit/3f9e0f15bedc1e2c71ddb6b34192d1a21124cfc2) Thanks [@ekiauhce](https://github.com/ekiauhce)! - fix(sequence): correct messageAlign label position for right-to-left arrows in sequence diagrams + +- [#7642](https://github.com/mermaid-js/mermaid/pull/7642) [`7a8fb85`](https://github.com/mermaid-js/mermaid/commit/7a8fb8532c57ecc55b3711454ab0e505a4291445) Thanks [@tractorjuice](https://github.com/tractorjuice)! - fix(wardley): allow hyphens in unquoted component names + + Multi-word names containing hyphens — e.g. `real-time processing`, `end-user`, `on-call engineer` — now parse without quoting, bringing the grammar in line with the OnlineWardleyMaps (OWM) convention. `A->B` (no-space arrow) still tokenises correctly. + +- [#7523](https://github.com/mermaid-js/mermaid/pull/7523) [`5144ed4`](https://github.com/mermaid-js/mermaid/commit/5144ed4b138ae0f4836bab4c163c575e0a767dd3) Thanks [@darshanr0107](https://github.com/darshanr0107)! - fix(block): Arrow blocks in block-beta diagrams not spanning the specified number of columns when using `:n` syntax. + +- [#7262](https://github.com/mermaid-js/mermaid/pull/7262) [`13d9bfa`](https://github.com/mermaid-js/mermaid/commit/13d9bfa4748e845a9eec7d6265ba496d2278f26e) Thanks [@darshanr0107](https://github.com/darshanr0107)! - fix(block): Ensure block diagram hexagon blocks respect column spanning syntax + +- [#7684](https://github.com/mermaid-js/mermaid/pull/7684) [`e14bb88`](https://github.com/mermaid-js/mermaid/commit/e14bb88bdb940124cdb0a107025653bf93745c99) Thanks [@aloisklink](https://github.com/aloisklink)! - fix: loosen `uuid` dependency range to allow v14 + + Mermaid does not use any of the vulnerable code in CVE-2026-41907, + but this allows users to silence any `npm audit` alerts on it. + +- [#7633](https://github.com/mermaid-js/mermaid/pull/7633) [`9217c0d`](https://github.com/mermaid-js/mermaid/commit/9217c0d8b221b423af80e420b7adae901acf6c8c) Thanks [@Felix-Garci](https://github.com/Felix-Garci)! - fix(block): add support for all arrow types in block diagrams + +- [#7587](https://github.com/mermaid-js/mermaid/pull/7587) [`5e7eb62`](https://github.com/mermaid-js/mermaid/commit/5e7eb62e3aba6b5df559f5c839a868e5b7f40e72) Thanks [@MaddyGuthridge](https://github.com/MaddyGuthridge)! - chore: drop lodash-es in favour of es-toolkit + +- [#7693](https://github.com/mermaid-js/mermaid/pull/7693) [`afaf306`](https://github.com/mermaid-js/mermaid/commit/afaf3062381d115d66744413151b642f124dd9ba) Thanks [@dull-bird](https://github.com/dull-bird)! - fix(quadrant-chart): allow CJK, emoji, Latin-1 accented characters, and other non-ASCII text in unquoted axis/quadrant/point labels. + + Previously the lexer only matched ASCII `[A-Za-z]+` for text tokens, even though the grammar referenced `UNICODE_TEXT`. Bare Chinese, Japanese, Korean, emoji, and accented Latin characters in labels caused a parse error. Added a `[^\x00-\x7F]+` lexer rule to emit `UNICODE_TEXT` and included it in the `alphaNumToken` grammar rule. + + Fixes #7120. + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`4755553`](https://github.com/mermaid-js/mermaid/commit/4755553d5fb6d1217809e43ffb8fc54d6a73e482) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix: improve D3 types for mermaidAPI funcs + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`6476973`](https://github.com/mermaid-js/mermaid/commit/64769738d5b59211e1decb471ffbaca8afec51aa) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix: handle `&` when namespacing CSS rules + +- [#7520](https://github.com/mermaid-js/mermaid/pull/7520) [`8c1a0c1`](https://github.com/mermaid-js/mermaid/commit/8c1a0c1fd19587c6772d6966fe9d217e5cd1356c) Thanks [@RodrigojndSantos](https://github.com/RodrigojndSantos)! - fix(stateDiagram): comments starting with one `%` are no longer treated as comments + + Switch to using two `%%` if you want to write a comment. + +- Updated dependencies [[`7a8fb85`](https://github.com/mermaid-js/mermaid/commit/7a8fb8532c57ecc55b3711454ab0e505a4291445), [`675a64c`](https://github.com/mermaid-js/mermaid/commit/675a64ca0e3cde8728ca715991623c3fc055ce88)]: + - @mermaid-js/parser@1.1.1 + ## 11.14.0 ### Minor Changes diff --git a/packages/mermaid/package.json b/packages/mermaid/package.json index 9a6cb3d2cdb..1b819c03f79 100644 --- a/packages/mermaid/package.json +++ b/packages/mermaid/package.json @@ -1,6 +1,6 @@ { "name": "mermaid", - "version": "11.14.0", + "version": "11.15.0", "description": "Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.", "type": "module", "module": "./dist/mermaid.core.mjs", diff --git a/packages/mermaid/src/docs/syntax/architecture.md b/packages/mermaid/src/docs/syntax/architecture.md index bfb8527a1bd..a7849c4eef2 100644 --- a/packages/mermaid/src/docs/syntax/architecture.md +++ b/packages/mermaid/src/docs/syntax/architecture.md @@ -186,7 +186,7 @@ mermaid.initialize({ | ----------- | ------- | ------- | ---------------------------------------------------------------------- | | `randomize` | boolean | `false` | Whether to randomize initial node positions before running the layout. | -### Layout tuning (v+) +### Layout tuning (v11.15.0+) The following options pass through to the underlying [fcose](https://github.com/iVis-at-Bilkent/cytoscape.js-fcose) layout so you can adjust spacing and density without changing your diagram source: diff --git a/packages/mermaid/src/docs/syntax/classDiagram.md b/packages/mermaid/src/docs/syntax/classDiagram.md index 3fdafaa9dc2..237542112f0 100644 --- a/packages/mermaid/src/docs/syntax/classDiagram.md +++ b/packages/mermaid/src/docs/syntax/classDiagram.md @@ -320,7 +320,7 @@ namespace BaseShapes { } ``` -### Namespace Labels (v+) +### Namespace Labels (v11.15.0+) A namespace can be given a display label using square bracket syntax, similar to class labels: diff --git a/packages/mermaid/src/docs/syntax/eventmodeling.md b/packages/mermaid/src/docs/syntax/eventmodeling.md index 5a0464a8005..80f3abfeef4 100644 --- a/packages/mermaid/src/docs/syntax/eventmodeling.md +++ b/packages/mermaid/src/docs/syntax/eventmodeling.md @@ -1,4 +1,4 @@ -# Event Modeling Diagram (v+) +# Event Modeling Diagram (v11.15.0+) ## Introduction diff --git a/packages/mermaid/src/docs/syntax/sankey.md b/packages/mermaid/src/docs/syntax/sankey.md index 993b605e9fc..0675d8fad9d 100644 --- a/packages/mermaid/src/docs/syntax/sankey.md +++ b/packages/mermaid/src/docs/syntax/sankey.md @@ -186,7 +186,7 @@ Graph layout can be changed by setting `nodeAlignment` to: - `left` - `right` -### Label Style (v+) +### Label Style (v11.15.0+) You can change how node labels are rendered by setting `labelStyle`: diff --git a/packages/mermaid/src/docs/syntax/sequenceDiagram.md b/packages/mermaid/src/docs/syntax/sequenceDiagram.md index 098994964ab..276e4e109b8 100644 --- a/packages/mermaid/src/docs/syntax/sequenceDiagram.md +++ b/packages/mermaid/src/docs/syntax/sequenceDiagram.md @@ -653,7 +653,7 @@ sequenceDiagram Bob-->>John: Jolly good! ``` -### Start and Increment values (v+) +### Start and Increment values (v11.15.0+) It is possible to specify a starting value and an increment value for automatic numbering. Both the starting value and increment value can include decimals up to the hundredths place. diff --git a/packages/parser/CHANGELOG.md b/packages/parser/CHANGELOG.md index 274165d1813..89e4cfabcd3 100644 --- a/packages/parser/CHANGELOG.md +++ b/packages/parser/CHANGELOG.md @@ -1,5 +1,19 @@ # @mermaid-js/parser +## 1.1.1 + +### Patch Changes + +- [#7642](https://github.com/mermaid-js/mermaid/pull/7642) [`7a8fb85`](https://github.com/mermaid-js/mermaid/commit/7a8fb8532c57ecc55b3711454ab0e505a4291445) Thanks [@tractorjuice](https://github.com/tractorjuice)! - fix(wardley): allow hyphens in unquoted component names + + Multi-word names containing hyphens — e.g. `real-time processing`, `end-user`, `on-call engineer` — now parse without quoting, bringing the grammar in line with the OnlineWardleyMaps (OWM) convention. `A->B` (no-space arrow) still tokenises correctly. + +- [#7658](https://github.com/mermaid-js/mermaid/pull/7658) [`675a64c`](https://github.com/mermaid-js/mermaid/commit/675a64ca0e3cde8728ca715991623c3fc055ce88) Thanks [@aloisklink](https://github.com/aloisklink)! - fix(parser): bundle langium/chevrotain + + This should silence warnings about lodash-es 4.17.23, which chevrotain@11.1.1 is pinned to, but is not vulnerable to. + + And this avoids warnings when langium v4 is installed on Node.JS v20.0. + ## 1.1.0 ### Minor Changes diff --git a/packages/parser/package.json b/packages/parser/package.json index 26937b1a481..5717084ead4 100644 --- a/packages/parser/package.json +++ b/packages/parser/package.json @@ -1,6 +1,6 @@ { "name": "@mermaid-js/parser", - "version": "1.1.0", + "version": "1.1.1", "description": "MermaidJS parser", "author": "Yokozuna59", "contributors": [ diff --git a/packages/tiny/CHANGELOG.md b/packages/tiny/CHANGELOG.md index 0a1c2267cb1..57490db8914 100644 --- a/packages/tiny/CHANGELOG.md +++ b/packages/tiny/CHANGELOG.md @@ -1,5 +1,91 @@ # mermaid +## 11.15.0 + +### Minor Changes + +- [#7174](https://github.com/mermaid-js/mermaid/pull/7174) [`0aca217`](https://github.com/mermaid-js/mermaid/commit/0aca21739c0d1fcaaa206e04a6cd574ebc415483) Thanks [@milesspencer35](https://github.com/milesspencer35)! - feat(sequence): Add support for decimal start and increment values in the `autonumber` directive + +- [#7512](https://github.com/mermaid-js/mermaid/pull/7512) [`8e17492`](https://github.com/mermaid-js/mermaid/commit/8e17492f7365ba50896382feb69a23efd9d8a22d) Thanks [@aruncveli](https://github.com/aruncveli)! - feat(flowchart): add datastore shape + + In Data flow diagrams, a datastore/warehouse/file/database is used to represent data persistence. It is denoted by a rectangle with only top and bottom borders, and can be used in flowcharts with `A@{ shape: datastore, label: "Datastore" }`. + +- [#6440](https://github.com/mermaid-js/mermaid/pull/6440) [`9ad8dde`](https://github.com/mermaid-js/mermaid/commit/9ad8dde6d049adde85d8ed2d476c09b5820f3f4b) Thanks [@yordis](https://github.com/yordis), [@lgazo](https://github.com/lgazo)! - feat: add Event Modeling diagram + +- [#7707](https://github.com/mermaid-js/mermaid/pull/7707) [`27db774`](https://github.com/mermaid-js/mermaid/commit/27db774627be1cee881961dfd0d2cb21cd01b79d) Thanks [@txmxthy](https://github.com/txmxthy)! - feat(architecture): expose four fcose layout knobs for `architecture-beta` diagrams (`nodeSeparation`, `idealEdgeLengthMultiplier`, `edgeElasticity`, `numIter`) so authors can tune layout density and spread overlapping siblings without changing diagram source + +- [#7604](https://github.com/mermaid-js/mermaid/pull/7604) [`bf9502f`](https://github.com/mermaid-js/mermaid/commit/bf9502fb6012a4b724679b401ac928f5ee55161c) Thanks [@M-a-c](https://github.com/M-a-c)! - feat(class): add nested namespace support for class diagrams via dot notation and syntactic nesting + + If you have namespaces in class diagrams that use `.`s already and want to render them without nesting (≤v11.14.0 behaviour), you can use set `class.hierarchicalNamespaces=false` in your mermaid config: + + ```yaml + config: + class: + hierarchicalNamespaces: false + ``` + +- [#7272](https://github.com/mermaid-js/mermaid/pull/7272) [`88cdd3d`](https://github.com/mermaid-js/mermaid/commit/88cdd3dc0aab9577174561b04e14760c565a232b) Thanks [@xinbenlv](https://github.com/xinbenlv)! - feat(sankey): add outlined label style, configurable nodeWidth/nodePadding, and custom node colors + +### Patch Changes + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`e9b0f34`](https://github.com/mermaid-js/mermaid/commit/e9b0f34d8d82a6260077764ee45e1d7d90957a0f) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix: prevent unbalanced CSS styles in classDefs + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`37ff937`](https://github.com/mermaid-js/mermaid/commit/37ff937f1da2e19f882fd1db01235db4d01f4056) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix: create CSS styles using the CSSOM + + This removes some invalid CSS and normalizes some CSS formatting. + +- [#7508](https://github.com/mermaid-js/mermaid/pull/7508) [`bfe60cc`](https://github.com/mermaid-js/mermaid/commit/bfe60cc67b9a6dec64f9161f58e4d24a06c42b65) Thanks [@biiab](https://github.com/biiab)! - fix(stateDiagram): `end note` now only closes a note when used on a new line + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`faafb5d`](https://github.com/mermaid-js/mermaid/commit/faafb5d49106dd32c367f3882505f2dd625aa30e) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix(gantt): add iteration limit for `excludes` field + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`65f8be2`](https://github.com/mermaid-js/mermaid/commit/65f8be2a42faf869b811469571983cba7eeeca99) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix: disallow some CSS at-rules in custom CSS + +- [#7726](https://github.com/mermaid-js/mermaid/pull/7726) [`1502f32`](https://github.com/mermaid-js/mermaid/commit/1502f32f3c5fb944925b0c527fbbde3c4f041824) Thanks [@aloisklink](https://github.com/aloisklink)! - fix(wardley): fix unnecessary sanitization of text + +- [#7578](https://github.com/mermaid-js/mermaid/pull/7578) [`1f98db8`](https://github.com/mermaid-js/mermaid/commit/1f98db8e326299ac97a2fa60abfd509d8f5f16e2) Thanks [@Gaston202](https://github.com/Gaston202)! - fix(class): self-referential class multiplicity labels no longer rendered multiple times + + Fixes #7560. Resolves an issue where cardinality labels on self-referential class relationships were rendered three times due to edge splitting in the dagre layout. The fix ensures that each sub-edge only carries its relevant label positions. + +- [#7592](https://github.com/mermaid-js/mermaid/pull/7592) [`2343e38`](https://github.com/mermaid-js/mermaid/commit/2343e38498a3b31f8ce5e79f1f009e0b56fbe086) Thanks [@knsv-bot](https://github.com/knsv-bot)! - fix(sequence): add background box behind alt/else section title labels in sequence diagrams + +- [#7589](https://github.com/mermaid-js/mermaid/pull/7589) [`7fb9509`](https://github.com/mermaid-js/mermaid/commit/7fb9509b8b5cb1dc48519dc60cf6cdc6afba0462) Thanks [@NYCU-Chung](https://github.com/NYCU-Chung)! - fix(block): prevent column widths from shrinking when mixing different column spans + +- [#7632](https://github.com/mermaid-js/mermaid/pull/7632) [`3f9e0f1`](https://github.com/mermaid-js/mermaid/commit/3f9e0f15bedc1e2c71ddb6b34192d1a21124cfc2) Thanks [@ekiauhce](https://github.com/ekiauhce)! - fix(sequence): correct messageAlign label position for right-to-left arrows in sequence diagrams + +- [#7642](https://github.com/mermaid-js/mermaid/pull/7642) [`7a8fb85`](https://github.com/mermaid-js/mermaid/commit/7a8fb8532c57ecc55b3711454ab0e505a4291445) Thanks [@tractorjuice](https://github.com/tractorjuice)! - fix(wardley): allow hyphens in unquoted component names + + Multi-word names containing hyphens — e.g. `real-time processing`, `end-user`, `on-call engineer` — now parse without quoting, bringing the grammar in line with the OnlineWardleyMaps (OWM) convention. `A->B` (no-space arrow) still tokenises correctly. + +- [#7523](https://github.com/mermaid-js/mermaid/pull/7523) [`5144ed4`](https://github.com/mermaid-js/mermaid/commit/5144ed4b138ae0f4836bab4c163c575e0a767dd3) Thanks [@darshanr0107](https://github.com/darshanr0107)! - fix(block): Arrow blocks in block-beta diagrams not spanning the specified number of columns when using `:n` syntax. + +- [#7262](https://github.com/mermaid-js/mermaid/pull/7262) [`13d9bfa`](https://github.com/mermaid-js/mermaid/commit/13d9bfa4748e845a9eec7d6265ba496d2278f26e) Thanks [@darshanr0107](https://github.com/darshanr0107)! - fix(block): Ensure block diagram hexagon blocks respect column spanning syntax + +- [#7684](https://github.com/mermaid-js/mermaid/pull/7684) [`e14bb88`](https://github.com/mermaid-js/mermaid/commit/e14bb88bdb940124cdb0a107025653bf93745c99) Thanks [@aloisklink](https://github.com/aloisklink)! - fix: loosen `uuid` dependency range to allow v14 + + Mermaid does not use any of the vulnerable code in CVE-2026-41907, + but this allows users to silence any `npm audit` alerts on it. + +- [#7633](https://github.com/mermaid-js/mermaid/pull/7633) [`9217c0d`](https://github.com/mermaid-js/mermaid/commit/9217c0d8b221b423af80e420b7adae901acf6c8c) Thanks [@Felix-Garci](https://github.com/Felix-Garci)! - fix(block): add support for all arrow types in block diagrams + +- [#7587](https://github.com/mermaid-js/mermaid/pull/7587) [`5e7eb62`](https://github.com/mermaid-js/mermaid/commit/5e7eb62e3aba6b5df559f5c839a868e5b7f40e72) Thanks [@MaddyGuthridge](https://github.com/MaddyGuthridge)! - chore: drop lodash-es in favour of es-toolkit + +- [#7693](https://github.com/mermaid-js/mermaid/pull/7693) [`afaf306`](https://github.com/mermaid-js/mermaid/commit/afaf3062381d115d66744413151b642f124dd9ba) Thanks [@dull-bird](https://github.com/dull-bird)! - fix(quadrant-chart): allow CJK, emoji, Latin-1 accented characters, and other non-ASCII text in unquoted axis/quadrant/point labels. + + Previously the lexer only matched ASCII `[A-Za-z]+` for text tokens, even though the grammar referenced `UNICODE_TEXT`. Bare Chinese, Japanese, Korean, emoji, and accented Latin characters in labels caused a parse error. Added a `[^\x00-\x7F]+` lexer rule to emit `UNICODE_TEXT` and included it in the `alphaNumToken` grammar rule. + + Fixes #7120. + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`4755553`](https://github.com/mermaid-js/mermaid/commit/4755553d5fb6d1217809e43ffb8fc54d6a73e482) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix: improve D3 types for mermaidAPI funcs + +- [#7737](https://github.com/mermaid-js/mermaid/pull/7737) [`6476973`](https://github.com/mermaid-js/mermaid/commit/64769738d5b59211e1decb471ffbaca8afec51aa) Thanks [@ashishjain0512](https://github.com/ashishjain0512)! - fix: handle `&` when namespacing CSS rules + +- [#7520](https://github.com/mermaid-js/mermaid/pull/7520) [`8c1a0c1`](https://github.com/mermaid-js/mermaid/commit/8c1a0c1fd19587c6772d6966fe9d217e5cd1356c) Thanks [@RodrigojndSantos](https://github.com/RodrigojndSantos)! - fix(stateDiagram): comments starting with one `%` are no longer treated as comments + + Switch to using two `%%` if you want to write a comment. + +- Updated dependencies [[`7a8fb85`](https://github.com/mermaid-js/mermaid/commit/7a8fb8532c57ecc55b3711454ab0e505a4291445), [`675a64c`](https://github.com/mermaid-js/mermaid/commit/675a64ca0e3cde8728ca715991623c3fc055ce88)]: + - @mermaid-js/parser@1.1.1 + ## 11.14.0 ### Minor Changes diff --git a/packages/tiny/package.json b/packages/tiny/package.json index 72dbbdce54b..64694f21ec4 100644 --- a/packages/tiny/package.json +++ b/packages/tiny/package.json @@ -1,6 +1,6 @@ { "name": "@mermaid-js/tiny", - "version": "11.14.0", + "version": "11.15.0", "description": "Tiny version of mermaid", "type": "commonjs", "main": "./dist/mermaid.tiny.js",