Skip to content

Commit

Permalink
fix: fix d3 bundled multiple times
Browse files Browse the repository at this point in the history
* update `d3` version to `7.8.5` exclude the `7.4.0` version
* override `d3-sankey` and `@types/d3-sankey` dependencies versions
* move `@types/d3-scale` and `@types/d3-scale-chromatic` to devDependencies
* update all `d3` related dependencies
  • Loading branch information
Yokozuna59 committed Sep 27, 2023
1 parent 2049915 commit 4980084
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 101 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,12 @@
},
"nyc": {
"report-dir": "coverage/cypress"
},
"pnpm": {
"overrides": {
"d3-sankey>d3-array": "^3.2.4",
"d3-sankey>d3-shape": "^3.2.0",
"@types/d3-sankey>@types/d3-shape": "^3.1.3"
}
}
}
2 changes: 1 addition & 1 deletion packages/mermaid-example-diagram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"cytoscape": "^3.23.0",
"cytoscape-cose-bilkent": "^4.1.0",
"cytoscape-fcose": "^2.1.0",
"d3": "^7.0.0",
"d3": "^7.8.5",
"khroma": "^2.0.0",
"non-layered-tidy-tree-layout": "^2.0.2"
},
Expand Down
15 changes: 7 additions & 8 deletions packages/mermaid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@
},
"dependencies": {
"@braintree/sanitize-url": "^6.0.1",
"@types/d3-scale": "^4.0.3",
"@types/d3-scale-chromatic": "^3.0.0",
"cytoscape": "^3.23.0",
"cytoscape-cose-bilkent": "^4.1.0",
"cytoscape-fcose": "^2.1.0",
"d3": "^7.4.0",
"d3": "^7.8.5",
"d3-sankey": "^0.12.3",
"dagre-d3-es": "7.0.10",
"dayjs": "^1.11.7",
Expand All @@ -83,11 +81,12 @@
"devDependencies": {
"@adobe/jsonschema2md": "^7.1.4",
"@types/cytoscape": "^3.19.9",
"@types/d3": "^7.4.0",
"@types/d3-sankey": "^0.12.1",
"@types/d3-scale": "^4.0.3",
"@types/d3-selection": "^3.0.5",
"@types/d3-shape": "^3.1.1",
"@types/d3": "^7.4.1",
"@types/d3-sankey": "^0.12.2",
"@types/d3-scale": "^4.0.5",
"@types/d3-scale-chromatic": "^3.0.0",
"@types/d3-selection": "^3.0.7",
"@types/d3-shape": "^3.1.3",
"@types/dompurify": "^3.0.2",
"@types/jsdom": "^21.1.1",
"@types/lodash-es": "^4.17.7",
Expand Down
Loading

0 comments on commit 4980084

Please sign in to comment.