Sourced from mermaid's releases.
mermaid@12.1.0
Minor Changes
#8303
9140716Thanks@filipsajdak! - feat: add theelk.orientFeedbackEdgesoption, enabled by default. With the ELK layout, an edge from a node that a subgraph feeds back into that subgraph is now routed downstream instead of around the subgraph. This changes the layout of existing ELK diagrams that contain such edges; setelk.orientFeedbackEdges: falseto keep the previous routing.#8250
fd4f5f2Thanks@kartben! - feat: add abitOrderoption to packet diagrams. It defaults toascending, which is the current behaviour, anddescendingmirrors every row so it reads from that row's highest bit down to its lowest. Fields are still declared lowest bit first and keep their width, so switching a diagram between the two conventions only means changingbitOrder.Patch Changes
#8330
50c9e55Thanks@ashishjain0512! - fix: upgrade chevrotain to 13 so mermaid no longer pulls in vulnerablelodash-es@4.17.23#8259
4c90f5cThanks@afonsojanu! - fix(sequence): allow whitespace between an actor name and its@{ ... }config object
participant Bob@{ "type" : "database" }parsed fine, but adding a single space before the config object (participant Bob @{ "type" : "database" }) failed with a confusing parse error, even though the plain form without a config object tolerates trailing whitespace just fine.#8339
c7fa1a5Thanks@ashishjain0512! - fix: keep ELK class-diagram cardinalities off namespace frames#8334
d67331dThanks@ashishjain0512! - fix(class): place cardinality labels beside their relation ends on dagre's sides with ELK, centre dagre's end labels, and stop clipping their text#8344
99a050bThanks@pbrolin47! - fix: with the ELK layout, an edge label could sit up to 16px beside its edge instead of centred on it, when the edge's terminal jog was straightened after the label's position was computed. The label is now re-projected onto the straightened route#8276
3101c7dThanks@mir-ashiq! - fix(error): show the actual error message in the error diagramWhen a diagram fails to parse, the error diagram now draws the real error message below the "Syntax error in text" headline, wrapped to at most four lines. Hosts that only show the SVG (GitHub, GitLab, Obsidian, exported images) no longer hide what actually went wrong, e.g. that the flowchart edge limit was exceeded and
maxEdgesneeds raising viamermaid.initialize.#8296
aa29345Thanks@pentaoa! - fix: preserve explicit source relations on event modeling reset frames#8297
967bbdeThanks@pentaoa! - fix: reject duplicate event modeling frame IDs before rendering#8337
147f343Thanks@knsv-bot! - fix: a flowchart that declares the same subgraph id more than once now renders as one merged subgraph with the ELK layout instead of producing NaN geometry. Classes andview: collapsedset on a repeated subgraph now apply to it, whichever declaration they follow.#8203
40ef7b4Thanks@MFA-G! - perf(frontmatter): replace the quadratic front matter regex on hot paths
frontMatterRegexbacktracks polynomially on whitespace-heavy input, so a diagram well inside the defaultmaxTextSizecould stall parsing for over a second.detectTypeandextractFrontMatternow use a linear scanner that matches the regex result exactly, leaving no document stripped differently.#8254
351d7d2Thanks@galshir! - fix: warn when a gantt task references an unknownafter/untiltask id, or when its end value is neither a valid date nor a valid duration#8249
b657a2cThanks@mir-ashiq! - fix(sequence): allow hyphenated actor and participant names when a config object is attached
... (truncated)
21f72f0
Merge pull request #8360
from mermaid-js/changeset-release/master3f89f7b
Version Packages4ef0218
Merge pull request #8358
from mermaid-js/release/12.0.1f45c691
Fix error from build docsd9cb282
Fix label overlap bug47fffa0
Merge pull request #8297
from pentaoa/fix/eventmodeling-duplicate-frame-ids12c280e
Merge develop and preserve eventmodeling regression testsc0f7052
Merge pull request #8296
from pentaoa/fix/eventmodeling-reset-explicit-relations4f6ac96
Merge pull request #8345
from mermaid-js/bug/8283_xychart-legend-clip-title-h...679093a
Merge pull request #8344
from mermaid-js/pebr/issue-8292-elk-label