Skip to content

Commit

Permalink
Migrate from d3 v3.5.17 to d3-collection v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Jan 4, 2023
1 parent acf91cd commit c901e5f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test": "yarn jest"
},
"dependencies": {
"d3": "3.5.17",
"d3-collection": "^1.0.7",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-milestones-vis": "^0.5.0"
Expand All @@ -34,6 +34,7 @@
"minimist": "^1.2.6"
},
"devDependencies": {
"@types/d3-collection": "^1.0.7",
"@types/jest": "^26.0.14",
"jest": "^26.6.3",
"ts-jest": "^26.5.6",
Expand Down
5 changes: 2 additions & 3 deletions public/milestones_visualization.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react';
import d3 from 'd3';
import { nest } from 'd3-collection';
import { Milestones } from 'react-milestones-vis';

import { MilestonesVisParams } from './types';
Expand Down Expand Up @@ -76,8 +76,7 @@ export const MilestonesVisualization: FC<MilestonesVisualizationProps> = (props)
<Milestones
data={
isUsingCategories(data)
? d3
.nest<Required<DataItem>>()
? nest<Required<DataItem>>()
.key((d) => d.category)
.entries(data)
: data
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,11 @@
dependencies:
"@babel/types" "^7.3.0"

"@types/d3-collection@^1.0.7":
version "1.0.10"
resolved "https://registry.yarnpkg.com/@types/d3-collection/-/d3-collection-1.0.10.tgz#bca161e336156968f267c077f7f2bfa8ff224e58"
integrity sha512-54Fdv8u5JbuXymtmXm2SYzi1x/Svt+jfWBU5junkhrCewL92VjqtCBDn97coBRVwVFmYNnVTNDyV8gQyPYfm+A==

"@types/graceful-fs@^4.1.2":
version "4.1.5"
resolved "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz"
Expand Down Expand Up @@ -1062,9 +1067,9 @@ d3-array@^1.2.0:
resolved "https://registry.npmjs.org/d3-array/-/d3-array-1.2.4.tgz"
integrity sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==

d3-collection@1, d3-collection@^1.0.4:
d3-collection@1, d3-collection@^1.0.4, d3-collection@^1.0.7:
version "1.0.7"
resolved "https://registry.npmjs.org/d3-collection/-/d3-collection-1.0.7.tgz"
resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.7.tgz#349bd2aa9977db071091c13144d5e4f16b5b310e"
integrity sha512-ii0/r5f4sjKNTfh84Di+DpztYwqKhEyUlKoPrzUFfeSkWxjW49xU2QzO9qrPrNkpdI0XJkfzvmTu8V2Zylln6A==

d3-color@1:
Expand Down Expand Up @@ -1125,11 +1130,6 @@ d3-time@1:
resolved "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz"
integrity sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==

d3@3.5.17:
version "3.5.17"
resolved "https://registry.yarnpkg.com/d3/-/d3-3.5.17.tgz#bc46748004378b21a360c9fc7cf5231790762fb8"
integrity sha1-vEZ0gAQ3iyGjYMn8fPUjF5B2L7g=

data-urls@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz"
Expand Down

0 comments on commit c901e5f

Please sign in to comment.