Skip to content

Build your personal knowledge base with Trilium Notes

fix(mermaid): crashing due to this.atn.decisionMap[key]

Elian Doranc95d0891e436
diff --git a/apps/client/package.json b/apps/client/package.json
index d9892e99a3..c4ebb4cfd9 100644
--- a/apps/client/package.json
+++ b/apps/client/package.json
@@ -64,7 +64,7 @@
"leaflet-gpx": "2.2.0",
"mark.js": "8.11.1",
"marked": "18.0.3",
- "mermaid": "11.14.0",
+ "mermaid": "11.15.0",
"mind-elixir": "5.11.0",
"panzoom": "9.4.4",
"preact": "10.29.1",
diff --git a/package.json b/package.json
index 48a44af98c..a4f7fa290a 100644
--- a/package.json
+++ b/package.json
@@ -106,7 +106,7 @@
"@codemirror/language": "6.12.3",
"@lezer/highlight": "1.2.3",
"@lezer/common": "1.5.2",
- "mermaid": "11.14.0",
+ "mermaid": "11.15.0",
"preact": "10.29.1",
"roughjs": "4.6.6",
"@types/express-serve-static-core": "5.1.1",
diff --git a/packages/share-theme/package.json b/packages/share-theme/package.json
index a2e0f69f1f..1de3287673 100644
--- a/packages/share-theme/package.json
+++ b/packages/share-theme/package.json
@@ -26,7 +26,7 @@
"dependencies": {
"fuse.js": "7.3.0",
"katex": "0.16.45",
- "mermaid": "11.14.0"
+ "mermaid": "11.15.0"
},
"devDependencies": {
"@digitak/esrun": "3.2.26",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d5e0ba0b74..42e428a29f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,7 +8,7 @@ overrides:
'@codemirror/language': 6.12.3
'@lezer/highlight': 1.2.3
'@lezer/common': 1.5.2
- mermaid: 11.14.0
+ mermaid: 11.15.0
preact: 10.29.1
roughjs: 4.6.6
'@types/express-serve-static-core': 5.1.1
@@ -236,7 +236,7 @@ importers:
'@mermaid-js/layout-elk':
specifier: 0.2.1
- version: 0.2.1([email protected])
+ version: 0.2.1([email protected])
'@mind-elixir/node-menu':
specifier: 5.0.1
version: 5.0.1([email protected])
@@ -349,8 +349,8 @@ importers:
specifier: 18.0.3
version: 18.0.3
mermaid:
- specifier: 11.14.0
- version: 11.14.0
+ specifier: 11.15.0
+ version: 11.15.0
mind-elixir:
specifier: 5.11.0
version: 5.11.0
@@ -1424,8 +1424,8 @@ importers:
specifier: 0.16.45
version: 0.16.45
mermaid:
- specifier: 11.14.0
- version: 11.14.0
+ specifier: 11.15.0
+ version: 11.15.0
devDependencies:
'@digitak/esrun':
specifier: 3.2.26
@@ -1738,21 +1738,12 @@ packages:
'@chevrotain/[email protected]':
resolution: {integrity: sha512-BvIKpRLeS/8UbfxXxgC33xOumsacaeCKAjAeLyOn7Pcp95HiRbrpl14S+9vaZLolnbssPIUuiUd8IvgkRyt6NQ==}
- '@chevrotain/[email protected]':
- resolution: {integrity: sha512-fRHyv6/f542qQqiRGalrfJl/evD39mAvbJLCekPazhiextEatq1Jx1K/i9gSd5NNO0ds03ek0Cbo/4uVKmOBcw==}
-
'@chevrotain/[email protected]':
resolution: {integrity: sha512-+qNfcoNk70PyS/uxmj3li5NiECO+2YKZZQMbmjTqRI3Qchu8Hig/Q9vgkHpI3alNjr7M+a2St5pw5w5F6NL5/Q==}
- '@chevrotain/[email protected]':
- resolution: {integrity: sha512-Ko/5vPEYy1vn5CbCjjvnSO4U7GgxyGm+dfUZZJIWTlQFkXkyym0jFYrWEU10hyCjrA7rQtiHtBr0EaZqvHFZvg==}
-
'@chevrotain/[email protected]':
resolution: {integrity: sha512-1fMHaBZxLFvWI067AVbGJav1eRY7N8DDvYCTwGBiE/ytKBgP8azTdgyrKyWZ9Mfh09eHWb5PgTSO8wi7U824RA==}
- '@chevrotain/[email protected]':
- resolution: {integrity: sha512-ctRw1OKSXkOrR8VTvOxrQ5USEc4sNrfwXHa1NuTcR7wre4YbjPcKw+82C2uylg/TEwFRgwLmbhlln4qkmDyteg==}
-
'@chevrotain/[email protected]':
resolution: {integrity: sha512-gsiM3G8b58kZC2HaWR50gu6Y1440cHiJ+i3JUvcp/35JchYejb2+5MVeJK0iKThYpAa/P2PYFV4hoi44HD+aHQ==}
@@ -1762,9 +1753,6 @@ packages:
'@chevrotain/[email protected]':
resolution: {integrity: sha512-YslZMgtJUyuMbZ+aKvfF3x1f5liK4mWNxghFRv7jqRR9C3R3fAOGTTKvxXDa2Y1s9zSbcpuO0cAxDYsc9SrXoQ==}
- '@chevrotain/[email protected]':
- resolution: {integrity: sha512-71eTYMzYXYSFPrbg/ZwftSaSDld7UYlS8OQa3lNnn9jzNtpFbaReRRyghzqS7rI3CDaorqpPJJcXGHK+FE1TVQ==}
-
'@ckeditor/[email protected]':
resolution: {integrity: sha512-RQ6tz0A+OAth16EPO0eCKFZAQWDch1jSk+E+xEs6vmpzEuSdS9M7x4FjIcj5U3yBmrmqzV0gkNK2QC5cwIiRiw==}
peerDependencies:
@@ -3814,13 +3802,13 @@ packages:
'@mermaid-js/[email protected]':
resolution: {integrity: sha512-MX9jwhMyd5zDcFsYcl3duDUkKhjVRUCGEQrdCeNV5hCIR6+3FuDDbRbFmvVbAu15K1+juzsYGG+K8MDvCY1Amg==}
peerDependencies:
- mermaid: 11.14.0
+ mermaid: 11.15.0
'@mermaid-js/[email protected]':
resolution: {integrity: sha512-lnjOhe7zyHjc+If7yT4zoedx2vo4sHaTmtkl1+or8BRTnCtDmcTpAjpzDSfCZrshM5bCoz0GyidzadJAH1xobA==}
- '@mermaid-js/[email protected]':
- resolution: {integrity: sha512-gxK9ZX2+Fex5zu8LhRQoMeMPEHbc73UKZ0FQ54YrQtUxE1VVhMwzeNtKRPAu5aXks4FasbMe4xB4bWrmq6Jlxw==}
+ '@mermaid-js/[email protected]':
+ resolution: {integrity: sha512-VuHdsYMK1bT6X2JbcAaWAhugTRvRBRyuZgd+c22swUeI9g/ntaxF7CY7dYarhZovofCbUNO0G7JesfmNtjYOCw==}
'@microsoft/[email protected]':
resolution: {integrity: sha512-znmFn69wf/AIrwHya3fxX6uB5etSIn6vg4Q4RB/tb5VDDs1rqREc+AvMC/p19MUN13CZ7+V/8pkYPTj7q8tftg==}
@@ -7311,9 +7299,6 @@ packages:
resolution: {integrity: sha512-ci2iJH6LeIkvP9eJW6gpueU8cnZhv85ELY8w8WiFtNjMHA5ad6pQLaJo9mEly/9qUyCpvqX8/POVUTf18/HFdw==}
- resolution: {integrity: sha512-f0yv5CPKaFxfsPTBzX7vGuim4oIC1/gcS7LUGdBSwl2dU6+FON6LVUksdOo1qJjoUvXNn45urgh8C+0a24pACQ==}
-
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
engines: {node: '>= 8.10.0'}
@@ -10125,10 +10110,6 @@ packages:
resolution: {integrity: sha512-QJv/h939gDpvT+9SiLVlY7tZC3xB2qK57v0J04Sh9wpMb6MP1q8gB21L3WIo8T5P1MSMg3Ep14L7KkDCFG3y4w==}
engines: {node: '>=16.0.0'}
- resolution: {integrity: sha512-zu9QWmjpzJcomzdJQAHgDVhLGq5bLosVak1KVa40NzQHXfqr4eAHupvnPOVXEoLkg6Ocefvf/93d//SB7du4YQ==}
- engines: {node: '>=20.10.0', npm: '>=10.2.3'}
-
resolution: {integrity: sha512-7W0vV3rqv5tokqkBAFV1LbR7HPOWzXQDpDgEuib/aJ1jsZZx6x3c2mBI+TJhJzOhkGeaLbCKEHXEXLfirtG2JA==}
engines: {node: '>=18'}
@@ -10590,8 +10571,8 @@ packages:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
- resolution: {integrity: sha512-GSGloRsBs+JINmmhl0JDwjpuezCsHB4WGI4NASHxL3fHo3o/BRXTxhDLKnln8/Q0lRFRyDdEjmk1/d5Sn1Xz8g==}
+ resolution: {integrity: sha512-pTMbcf3rWdtLiYGpmoTjHEpeY8seiy6sR+9nD7LOs8KfUbHE4lOUAprTRqRAcWSQ6MQpdX+YEsxShtGsINtPtw==}
resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==}
@@ -13616,10 +13597,6 @@ packages:
resolution: {integrity: sha512-uWRZJMjSWt/A1J1exfqz7xiKx2kVpAHR5qIDr6WwwBMQHDoKbo2I1kQN62iA2uXHxOSVpZRDvbm8do+4ijfkNA==}
- resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==}
- hasBin: true
-
resolution: {integrity: sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==}
hasBin: true
@@ -14563,34 +14540,19 @@ snapshots:
'@chevrotain/types': 11.0.3
lodash-es: 4.18.1
- '@chevrotain/[email protected]':
- dependencies:
- '@chevrotain/gast': 11.1.1
- '@chevrotain/types': 11.1.1
- lodash-es: 4.18.1
-
'@chevrotain/[email protected]':
dependencies:
'@chevrotain/types': 11.0.3
lodash-es: 4.18.1
- '@chevrotain/[email protected]':
- dependencies:
- '@chevrotain/types': 11.1.1
- lodash-es: 4.18.1
-
'@chevrotain/[email protected]': {}
- '@chevrotain/[email protected]': {}
-
'@chevrotain/[email protected]': {}
'@chevrotain/[email protected]': {}
'@chevrotain/[email protected]': {}
- '@chevrotain/[email protected]': {}
-
dependencies:
'@ckeditor/ckeditor5-utils': 48.0.1
@@ -16638,7 +16600,7 @@ snapshots:
dependencies:
'@excalidraw/markdown-to-text': 0.1.2
'@mermaid-js/parser': 0.6.3
- mermaid: 11.14.0
+ mermaid: 11.15.0
nanoid: 5.1.7
'@excalidraw/[email protected]': {}
@@ -17607,19 +17569,19 @@ snapshots:
'@mdn/[email protected]': {}
dependencies:
d3: 7.9.0
elkjs: 0.9.3
- mermaid: 11.14.0
+ mermaid: 11.15.0
'@mermaid-js/[email protected]':
dependencies:
langium: 3.3.1
- '@mermaid-js/[email protected]':
+ '@mermaid-js/[email protected]':
dependencies:
- langium: 4.2.1
+ '@chevrotain/types': 11.1.1
'@microsoft/[email protected](@types/[email protected])':
dependencies:
@@ -22224,11 +22186,6 @@ snapshots:
chevrotain: 11.0.3
lodash-es: 4.18.1
- dependencies:
- chevrotain: 11.1.1
- lodash-es: 4.18.1
-
dependencies:
'@chevrotain/cst-dts-gen': 11.0.3
@@ -22238,15 +22195,6 @@ snapshots:
'@chevrotain/utils': 11.0.3
lodash-es: 4.18.1
- dependencies:
- '@chevrotain/cst-dts-gen': 11.1.1
- '@chevrotain/gast': 11.1.1
- '@chevrotain/regexp-to-ast': 11.1.1
- '@chevrotain/types': 11.1.1
- '@chevrotain/utils': 11.1.1
- lodash-es: 4.18.1
-
dependencies:
anymatch: 3.1.3
@@ -25582,14 +25530,6 @@ snapshots:
vscode-languageserver-textdocument: 1.0.12
vscode-uri: 3.0.8
- dependencies:
- chevrotain: 11.1.1
- chevrotain-allstar: 0.3.1([email protected])
- vscode-languageserver: 9.0.1
- vscode-languageserver-textdocument: 1.0.12
- vscode-uri: 3.1.0
-
dependencies:
package-json: 10.0.1
@@ -26162,11 +26102,11 @@ snapshots:
dependencies:
'@braintree/sanitize-url': 7.1.2
'@iconify/utils': 3.1.0
- '@mermaid-js/parser': 1.1.0
+ '@mermaid-js/parser': 1.1.1
'@types/d3': 7.4.3
'@upsetjs/venn.js': 2.0.0
cytoscape: 3.33.1
@@ -26177,14 +26117,14 @@ snapshots:
dagre-d3-es: 7.0.14
dayjs: 1.11.20
dompurify: 3.4.2
+ es-toolkit: 1.45.1
katex: 0.16.45
khroma: 2.1.0
- lodash-es: 4.18.1
marked: 16.4.2
roughjs: 4.6.6
stylis: 4.3.6
ts-dedent: 2.2.0
- uuid: 11.1.0
+ uuid: 13.0.0
@@ -29659,8 +29599,6 @@ snapshots:
dependencies:
object.getownpropertydescriptors: 2.1.8
-