Skip to content

Commit 9994ea6

Browse files
authored
Upgrade D3 to v5 (#1308)
1 parent b323f77 commit 9994ea6

File tree

6 files changed

+60
-52
lines changed

6 files changed

+60
-52
lines changed

.changeset/friendly-coats-trade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
- Remove UMD build.
66
- Split `style` option into `chartStyles`, `nodeStyleOptions`, `textStyleOptions`, and `linkStyles`.
7-
- The shape of the argument passed to the option `onClickText` has been updated to match the d3 v4 node.
7+
- The shape of the argument passed to the `onClickText` option has been updated.
88
- Rename `InputOptions` to `Options`, `Primitive` to `StyleValue`, and `NodeWithId` to `HierarchyPointNode<Node>`.

.changeset/slimy-elephants-flash.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
---
44

55
- Split `style` option into `chartStyles`, `nodeStyleOptions`, `textStyleOptions`, and `linkStyles`.
6-
- The shape of the argument passed to the option `onClickText` has been updated to match the d3 v4 node.
6+
- The shape of the argument passed to the `onClickText` option has been updated.

.changeset/spicy-olives-compete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
---
44

55
- Remove UMD build.
6-
- Upgrade d3 peer dependency from v3 to v4.
6+
- Upgrade d3 peer dependency from v3 to v5.
77
- Remove `attr` configuration method.
88
- Rename `style` configuration method to `styles` and move to options.
99
- Move `text` configuration method to options.

packages/d3-state-visualizer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
},
4242
"dependencies": {
4343
"@babel/runtime": "^7.20.6",
44-
"@types/d3": "^4.13.12",
45-
"d3": "^4.13.0",
44+
"@types/d3": "^5.16.4",
45+
"d3": "^5.16.0",
4646
"d3tooltip": "^2.1.0",
4747
"deepmerge": "^4.2.2",
4848
"map2tree": "^2.1.0",

packages/d3tooltip/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@
4444
"@babel/eslint-parser": "^7.19.1",
4545
"@babel/preset-env": "^7.20.2",
4646
"@babel/preset-typescript": "^7.18.6",
47-
"@types/d3": "^4.13.12",
47+
"@types/d3": "^5.16.4",
4848
"@typescript-eslint/eslint-plugin": "^5.47.0",
4949
"@typescript-eslint/parser": "^5.47.0",
50-
"d3": "^4.13.0",
50+
"d3": "^5.16.0",
5151
"eslint": "^8.30.0",
5252
"eslint-config-prettier": "^8.5.0",
5353
"rimraf": "^3.0.2",
5454
"typescript": "~4.9.4"
5555
},
5656
"peerDependencies": {
57-
"@types/d3": "^4.13.12",
58-
"d3": "^4.13.0"
57+
"@types/d3": "^5.16.4",
58+
"d3": "^5.16.0"
5959
}
6060
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)