Skip to content

Commit 72d60d2

Browse files
committed
Fix TypeScript dependencies
The Mermaid type definitions depend on `@types/d3` and `@types/dompurify`. Without these dependencies, the Mermaid types cause a type error for users.
1 parent ddf18dd commit 72d60d2

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.changeset/dry-students-act.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+
Add missing TypeScript dependencies

packages/mermaid/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
"@braintree/sanitize-url": "^7.0.1",
7171
"@iconify/utils": "^2.1.32",
7272
"@mermaid-js/parser": "workspace:^",
73+
"@types/d3": "^7.4.3",
74+
"@types/dompurify": "^3.0.5",
7375
"cytoscape": "^3.29.2",
7476
"cytoscape-cose-bilkent": "^4.1.0",
7577
"cytoscape-fcose": "^2.2.0",
@@ -92,13 +94,11 @@
9294
"@iconify/types": "^2.0.0",
9395
"@types/cytoscape": "^3.21.4",
9496
"@types/cytoscape-fcose": "^2.2.4",
95-
"@types/d3": "^7.4.3",
9697
"@types/d3-sankey": "^0.12.4",
9798
"@types/d3-scale": "^4.0.8",
9899
"@types/d3-scale-chromatic": "^3.0.3",
99100
"@types/d3-selection": "^3.0.10",
100101
"@types/d3-shape": "^3.1.6",
101-
"@types/dompurify": "^3.0.5",
102102
"@types/jsdom": "^21.1.6",
103103
"@types/katex": "^0.16.7",
104104
"@types/lodash-es": "^4.17.12",

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)