Skip to content

Commit a937544

Browse files
authored
Merge branch 'develop' into test/revert-v8-coverage
2 parents dcbbcd1 + d93e9c8 commit a937544

110 files changed

Lines changed: 4596 additions & 3027 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@mermaid-js/parser': patch
3+
---
4+
5+
fix(architecture): allow non-ASCII characters and punctuation in unquoted titles
6+
7+
Unquoted `architecture-beta` bracket titles (e.g. `service a(server)[采集器]`) previously
8+
only accepted `[a-zA-Z0-9_ ]`, because the `ARCH_TITLE` terminal used `\w` without the
9+
`u` flag. Chinese, Cyrillic, accented Latin characters and common punctuation (`-`, `+`,
10+
`,`, `:`, `/`) therefore triggered lexer errors. The unquoted alternative now accepts any
11+
character except square brackets and line breaks, so these titles parse correctly. Quoted
12+
titles and previously-valid labels are unchanged.

.changeset/c4-unified-shapes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mermaid': minor
3+
---
4+
5+
feat(c4): render C4 elements through the unified shape system, using the new person shape

.changeset/general-shapes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mermaid': minor
3+
---
4+
5+
feat: add `folder`, `bucket`, `console` (terminal window) and `browser` shapes for flowcharts
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'mermaid': patch
3+
---
4+
5+
fix(layout): let a diagram's own nodeSpacing/rankSpacing take effect in the unified dagre layout
6+
7+
The spacing resolution read the flowchart config before the value the diagram's
8+
renderer set on the layout data - and since the flowchart keys have schema
9+
defaults that always exist, every diagram's own spacing (class, state,
10+
requirement, ...) was silently ignored in favour of flowchart's defaults. The
11+
diagram-provided value now wins over the flowchart fallback; an explicit
12+
top-level `nodeSpacing`/`rankSpacing` config override still takes precedence
13+
over both.

.changeset/person-shape.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mermaid': minor
3+
---
4+
5+
feat: add `person` shape (circular head above a rounded body), usable in flowcharts via `A@{ shape: person }`
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@mermaid-js/parser': patch
3+
---
4+
5+
fix(parser): pin langium to 4.2.1 to keep chevrotain v11 and restore Node 20 support

.changeset/revert-pr-7672.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mermaid': patch
3+
---
4+
5+
Reverts the behavior change from #7672 (fix/4648-directions), since arrows between subgraphs are broken

.changeset/tangy-regions-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mermaid': patch
3+
---
4+
5+
perf: use `fastdom` to batch DOM measurements (up to 25% speedup)

.cspell/libraries.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Doctave
2424
DokuWiki
2525
dompurify
2626
elkjs
27+
fastdom
2728
fcose
2829
fontawesome
2930
Fonticons

.cspell/mermaid-terms.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ sandboxed
4242
sentencepiece
4343
siebling
4444
statediagram
45+
Structurizr
4546
substate
4647
treeview
4748
unfixable

0 commit comments

Comments
 (0)