-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade D3 6.3.1 #276
Upgrade D3 6.3.1 #276
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm all for using the modules, just curious if there's any performance improvements to using them (eg tree shaking, reduced bundle size)
I wonder if it might be good to introduce a lint rule for using d3 modules over d3: https://eslint.org/docs/rules/no-restricted-imports
Also I wonder if now is a good time to run prettier over the entire codebase, I saw some formatting changes in some of your files. Maybe there are others that could use a format, too. |
@ekh64 Thanks for taking a look! To answer your questions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look great!
* add CODEOWNERS file (#262) * Bump elliptic from 6.5.2 to 6.5.3 (#266) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](indutny/elliptic@v6.5.2...v6.5.3) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bar chart gradient example in docs (#268) Co-authored-by: Isaac Ezer <isaace@spotify.com> * Sankey sorting (#269) * remove deprecated refs definition This old usage of defining refs via a string is deprecated and seems to break when debugging reactochart using `npm link` locally. * add Sankey Sorting Function hooks Co-authored-by: Isaac Ezer <isaace@spotify.com> * 3.2.0 * v3.2.0 release * Fix YAxisLabels formatting example (#271) The current example did not demonstrate label color/weight change, since the final label (`label.text`) never was `20.00`. * 3.2.1 * 3.2.1 release * [A11y] add aria-hidden attributes to XYPlot (#273) * add aria-hidden attributes to XYPlot elements * more granual application of aria-hidden * 3.2.2 * Add changelog edit for 3.2.2 * v3.2.2 release * v3.2.2 release * Upgrade D3 6.3.1 (#276) * d3 6.0 * update imports * make all the things prettier * restrict d3 import * remove global d3 imports from specs Co-authored-by: Isaac Ezer <isaace@spotify.com> * 4.0.0 * v4.0.0 release * remove old node versions. Support >=12 (#287) * remove old node versions. Support >=12 * auto fix audit errors * remove node 16, build failing * update package-lock.json Co-authored-by: Isaac Ezer <isaace@spotify.com> * Bump lodash from 4.17.15 to 4.17.21 (#285) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.15...4.17.21) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump elliptic from 6.5.3 to 6.5.4 (#278) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](indutny/elliptic@v6.5.3...v6.5.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * 5.0.0 * v5.0.0 release Co-authored-by: Anita <acmei@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Isaac Ezer <isaace@spotify.com> Co-authored-by: Marko Bonaći <mbonaci@users.noreply.github.com> Co-authored-by: Erica Hyman <ekhyman@gmail.com> Co-authored-by: Anita Wang <anitaw@spotify.com>
* add CODEOWNERS file (#262) * Bump elliptic from 6.5.2 to 6.5.3 (#266) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](indutny/elliptic@v6.5.2...v6.5.3) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bar chart gradient example in docs (#268) Co-authored-by: Isaac Ezer <isaace@spotify.com> * Sankey sorting (#269) * remove deprecated refs definition This old usage of defining refs via a string is deprecated and seems to break when debugging reactochart using `npm link` locally. * add Sankey Sorting Function hooks Co-authored-by: Isaac Ezer <isaace@spotify.com> * 3.2.0 * v3.2.0 release * Fix YAxisLabels formatting example (#271) The current example did not demonstrate label color/weight change, since the final label (`label.text`) never was `20.00`. * 3.2.1 * 3.2.1 release * [A11y] add aria-hidden attributes to XYPlot (#273) * add aria-hidden attributes to XYPlot elements * more granual application of aria-hidden * 3.2.2 * Add changelog edit for 3.2.2 * v3.2.2 release * v3.2.2 release * Upgrade D3 6.3.1 (#276) * d3 6.0 * update imports * make all the things prettier * restrict d3 import * remove global d3 imports from specs Co-authored-by: Isaac Ezer <isaace@spotify.com> * 4.0.0 * v4.0.0 release * remove old node versions. Support >=12 (#287) * remove old node versions. Support >=12 * auto fix audit errors * remove node 16, build failing * update package-lock.json Co-authored-by: Isaac Ezer <isaace@spotify.com> * Bump lodash from 4.17.15 to 4.17.21 (#285) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.15...4.17.21) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump elliptic from 6.5.3 to 6.5.4 (#278) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](indutny/elliptic@v6.5.3...v6.5.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * 5.0.0 * v5.0.0 release * Migrate jsdom tests to jest (#291) * Create dependabot.yml * [Infra] Enable a Github Action for CI (#308) * Create node.js.yml * remove browser test step * CI test * Revert "CI test" This reverts commit b2c894a. * Feature/arackis/make work with d3 v7 (#307) * Install d3, update Jest to transpile d3 * Fix unit tests - negative numbers were using the wrong negative unicode character * Include d3@6 as acceptable * Undo whitespace changes in jest config * fix lockfile * 6.0.0 * v6.0.0 release Co-authored-by: Anita <acmei@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Isaac Ezer <isaac.ezer@gmail.com> Co-authored-by: Isaac Ezer <isaace@spotify.com> Co-authored-by: Marko Bonaći <mbonaci@users.noreply.github.com> Co-authored-by: Anita Wang <anitaw@spotify.com> Co-authored-by: Markus Wagner <71727154+PRTTMPRPHT@users.noreply.github.com> Co-authored-by: Adam Rackis <arackaf@users.noreply.github.com>
* add CODEOWNERS file (#262) * Bump elliptic from 6.5.2 to 6.5.3 (#266) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](indutny/elliptic@v6.5.2...v6.5.3) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bar chart gradient example in docs (#268) Co-authored-by: Isaac Ezer <isaace@spotify.com> * Sankey sorting (#269) * remove deprecated refs definition This old usage of defining refs via a string is deprecated and seems to break when debugging reactochart using `npm link` locally. * add Sankey Sorting Function hooks Co-authored-by: Isaac Ezer <isaace@spotify.com> * 3.2.0 * v3.2.0 release * Fix YAxisLabels formatting example (#271) The current example did not demonstrate label color/weight change, since the final label (`label.text`) never was `20.00`. * 3.2.1 * 3.2.1 release * [A11y] add aria-hidden attributes to XYPlot (#273) * add aria-hidden attributes to XYPlot elements * more granual application of aria-hidden * 3.2.2 * Add changelog edit for 3.2.2 * v3.2.2 release * v3.2.2 release * Upgrade D3 6.3.1 (#276) * d3 6.0 * update imports * make all the things prettier * restrict d3 import * remove global d3 imports from specs Co-authored-by: Isaac Ezer <isaace@spotify.com> * 4.0.0 * v4.0.0 release * remove old node versions. Support >=12 (#287) * remove old node versions. Support >=12 * auto fix audit errors * remove node 16, build failing * update package-lock.json Co-authored-by: Isaac Ezer <isaace@spotify.com> * Bump lodash from 4.17.15 to 4.17.21 (#285) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.15...4.17.21) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump elliptic from 6.5.3 to 6.5.4 (#278) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](indutny/elliptic@v6.5.3...v6.5.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * 5.0.0 * v5.0.0 release * Migrate jsdom tests to jest (#291) * Create dependabot.yml * [Infra] Enable a Github Action for CI (#308) * Create node.js.yml * remove browser test step * CI test * Revert "CI test" This reverts commit b2c894a. * Feature/arackis/make work with d3 v7 (#307) * Install d3, update Jest to transpile d3 * Fix unit tests - negative numbers were using the wrong negative unicode character * Include d3@6 as acceptable * Undo whitespace changes in jest config * fix lockfile * 6.0.0 * v6.0.0 release * Accessible Interface for Line/Area Charts (#294) * A11yInterface in reactochart * npm run make-docs + render A11yInterface docs * fix offset bug + more examples * refactor for simplicity * revert the styling since the outline wasn't a problem * A11yInterface Tests * refactor to use datasetsWithAccessor instead * rename + doc generation * wip: refactor of AriaLabelContainer * fix an example, fix bug with chart * fix my examples & refactor again * update package-lock * 6.1.0 * v6.1.0 release Co-authored-by: Anita <acmei@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marko Bonaći <mbonaci@users.noreply.github.com> Co-authored-by: Erica Hyman <ekhyman@gmail.com> Co-authored-by: Anita Wang <anitaw@spotify.com> Co-authored-by: Markus Wagner <71727154+PRTTMPRPHT@users.noreply.github.com> Co-authored-by: Adam Rackis <arackaf@users.noreply.github.com>
* add CODEOWNERS file (#262) * Bump elliptic from 6.5.2 to 6.5.3 (#266) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](indutny/elliptic@v6.5.2...v6.5.3) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bar chart gradient example in docs (#268) Co-authored-by: Isaac Ezer <isaace@spotify.com> * Sankey sorting (#269) * remove deprecated refs definition This old usage of defining refs via a string is deprecated and seems to break when debugging reactochart using `npm link` locally. * add Sankey Sorting Function hooks Co-authored-by: Isaac Ezer <isaace@spotify.com> * 3.2.0 * v3.2.0 release * Fix YAxisLabels formatting example (#271) The current example did not demonstrate label color/weight change, since the final label (`label.text`) never was `20.00`. * 3.2.1 * 3.2.1 release * [A11y] add aria-hidden attributes to XYPlot (#273) * add aria-hidden attributes to XYPlot elements * more granual application of aria-hidden * 3.2.2 * Add changelog edit for 3.2.2 * v3.2.2 release * v3.2.2 release * Upgrade D3 6.3.1 (#276) * d3 6.0 * update imports * make all the things prettier * restrict d3 import * remove global d3 imports from specs Co-authored-by: Isaac Ezer <isaace@spotify.com> * 4.0.0 * v4.0.0 release * remove old node versions. Support >=12 (#287) * remove old node versions. Support >=12 * auto fix audit errors * remove node 16, build failing * update package-lock.json Co-authored-by: Isaac Ezer <isaace@spotify.com> * Bump lodash from 4.17.15 to 4.17.21 (#285) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.15...4.17.21) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump elliptic from 6.5.3 to 6.5.4 (#278) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](indutny/elliptic@v6.5.3...v6.5.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * 5.0.0 * v5.0.0 release * Migrate jsdom tests to jest (#291) * Create dependabot.yml * [Infra] Enable a Github Action for CI (#308) * Create node.js.yml * remove browser test step * CI test * Revert "CI test" This reverts commit b2c894a. * Feature/arackis/make work with d3 v7 (#307) * Install d3, update Jest to transpile d3 * Fix unit tests - negative numbers were using the wrong negative unicode character * Include d3@6 as acceptable * Undo whitespace changes in jest config * fix lockfile * 6.0.0 * v6.0.0 release * Accessible Interface for Line/Area Charts (#294) * A11yInterface in reactochart * npm run make-docs + render A11yInterface docs * fix offset bug + more examples * refactor for simplicity * revert the styling since the outline wasn't a problem * A11yInterface Tests * refactor to use datasetsWithAccessor instead * rename + doc generation * wip: refactor of AriaLabelContainer * fix an example, fix bug with chart * fix my examples & refactor again * update package-lock * 6.1.0 * v6.1.0 release * Bump shelljs from 0.8.4 to 0.8.5 (#343) Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5. - [Release notes](https://github.com/shelljs/shelljs/releases) - [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md) - [Commits](shelljs/shelljs@v0.8.4...v0.8.5) --- updated-dependencies: - dependency-name: shelljs dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @babel/cli from 7.10.0 to 7.16.8 (#342) Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.10.0 to 7.16.8. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.16.8/packages/babel-cli) --- updated-dependencies: - dependency-name: "@babel/cli" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Upgrades (#345) * npm update * npm audit fix * fix warning about map without key in examples * wip web-script 5 * web-scripts 6 * wip web-scripts 7 * wip npm audit fix * wip web-scripts 8 * wip web-scripts 9 * wip web-scripts 10 * web-scripts 11 * some more audit fixes * document npm link * Bump url-parse from 1.5.4 to 1.5.10 (#354) Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.4 to 1.5.10. - [Release notes](https://github.com/unshiftio/url-parse/releases) - [Commits](unshiftio/url-parse@1.5.4...1.5.10) --- updated-dependencies: - dependency-name: url-parse dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Vulnerability upgrades (#358) * Bump remark + remark-react * bump web-scripts & misc updates * bump webpack to 5.x * clean up CODEOWNERS * Bump @babel/plugin-proposal-object-rest-spread from 7.10.0 to 7.17.3 (#350) Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread) from 7.10.0 to 7.17.3. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.17.3/packages/babel-plugin-proposal-object-rest-spread) --- updated-dependencies: - dependency-name: "@babel/plugin-proposal-object-rest-spread" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump postcss from 7.0.35 to 7.0.39 (#352) Bumps [postcss](https://github.com/postcss/postcss) from 7.0.35 to 7.0.39. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/7.0.39/CHANGELOG.md) - [Commits](postcss/postcss@7.0.35...7.0.39) --- updated-dependencies: - dependency-name: postcss dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump follow-redirects from 1.14.7 to 1.14.9 (#353) Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.9. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.14.7...v1.14.9) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump d3-color from 3.0.1 to 3.1.0 (#443) Bumps [d3-color](https://github.com/d3/d3-color) from 3.0.1 to 3.1.0. - [Release notes](https://github.com/d3/d3-color/releases) - [Commits](d3/d3-color@v3.0.1...v3.1.0) --- updated-dependencies: - dependency-name: d3-color dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * 6.1.1 * v 6.1.1 release Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Anita <acmei@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Isaac Ezer <isaac.ezer@gmail.com> Co-authored-by: Isaac Ezer <isaace@spotify.com> Co-authored-by: Marko Bonaći <mbonaci@users.noreply.github.com> Co-authored-by: Anita Wang <anitaw@spotify.com> Co-authored-by: Markus Wagner <71727154+PRTTMPRPHT@users.noreply.github.com> Co-authored-by: Adam Rackis <arackaf@users.noreply.github.com>
Upgrade D3 to 6.3.1. See the migration guide.
Changes
d3
.ZoomContainer
to reflect this.d3-array
dependencies inpackage-lock.json
are pointing to2.9.1
and not1.x.x
.We will release this as a major version bump in Reactochart. 4.0!