Skip to content
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

6.0 #3333

Closed
3 of 29 tasks
mbostock opened this issue Jul 30, 2019 · 11 comments
Closed
3 of 29 tasks

6.0 #3333

mbostock opened this issue Jul 30, 2019 · 11 comments

Comments

@mbostock
Copy link
Member

mbostock commented Jul 30, 2019

d3-array

d3-collection [Removed!]

d3-delaunay [Added!]

d3-force

  • Add support for iterables.

d3-hierarchy

  • Add node.find.
  • Add node[Symbol.iterator].
  • Add support for iterables.
  • Pass index to node.each and other traversal methods.

d3-random

d3-shape

  • Add support for iterables.

d3-scale

  • Add support for iterables.

d3-selection

d3-transition

  • Change d3-selection to be a peer dependency.

d3-voronoi [Removed!]

Upgrade:

@mbostock
Copy link
Member Author

mbostock commented Jul 30, 2019

I’m thinking maybe we don’t need to do a major version bump across all the modules just for the sake of announcing ES2015 syntax adoption. We could bump those modules as necessary when we make changes that benefit from ES2015 syntax, and then the d3 package could use a version range (e.g., 1.1.0 - 2).

But any module that depends on a module with a new major version bump will also need a major version bump. For example, even if d3-brush doesn’t need ES2015 syntax yet, we’ll want it to be compatible with d3-selection@2, which will mean d3-brush needs a major bump. So most packages might need a major bump anyway.

@curran
Copy link
Contributor

curran commented Aug 16, 2019

Really looking forward to 6.0!

@curran
Copy link
Contributor

curran commented Oct 23, 2019

I'd be interested in trying out a pre-release of 6.0, similar to the 5.0 prerelease.

Might this be in the realm of possibility? Anyone else interested?

Also noticed that d3-array quantileSorted is done and can be checked off.

@gordonwoodhull
Copy link
Contributor

gordonwoodhull commented Oct 23, 2019

We at dc.js are planning to switch to the individual D3 modules in order to test against 6.0 before it’s released. But I agree, a release candidate would give us more certainty that we’re testing the right thing.

For us, the d3-selection changes may have the biggest impact - iterators etc. I don’t think those changes have started yet.

@mbostock
Copy link
Member Author

There’s a two branch in d3-selection and d3-transition, but the removal of d3.event hasn’t been implemented yet which is blocking the release of those modules.

@mbostock
Copy link
Member Author

d3.event removal has been implemented, and 2.0.0-rc.1 releases for d3-selection and d3-transition if you want to try them out!

It looks like the major thing blocking this release is now just the adoption of iterables in d3-hierarchy and d3-shape. A major part of this release is the adoption of new ES language features including iterables, so d3-hierarchy and d3-shape should be upgraded before we release. The other relevant modules (d3-array, d3-selection and d3-scale) have already been upgraded.

@mbostock
Copy link
Member Author

mbostock commented Nov 18, 2019

I’ve implemented iterables for d3-hierarchy and d3-shape, so major releases of those modules should be imminent. Edit: Oops, I haven’t done d3-shape yet.

The last remaining step is to upgrade d3-brush, d3-drag and d3-zoom to the d3-selection changes, and specifically the removal of d3.event, d3.customEvent etc.

@Fil
Copy link
Member

Fil commented Nov 20, 2019

d3-hexbin has PR d3/d3-hexbin#19 that does:

  • canvas support
  • incremental binning (add and remove points)
  • hexgrid rotation and translation
  • finding the bin from coordinates without adding the point
  • accepts iterables

@mbostock
Copy link
Member Author

I think I want to give d3-hexbin a little more time to “bake” and we should consider deferring its addition to 6.1. I haven’t had a chance to review the proposed API changes yet. There is other blocking work for 6.0 that needs to be done first, as well, notably upgrading d3-brush, d3-drag and d3-zoom to d3-selection 2.0 (namely the removal of d3.event and related changes).

@jipexu
Copy link

jipexu commented Jan 4, 2020

HI great work
this 6 version will have heavy breaking change ?
(little bit worry to change a lot of code ...)

@mbostock mbostock pinned this issue Apr 13, 2020
@Fil
Copy link
Member

Fil commented Aug 26, 2020

https://github.com/d3/d3/releases/tag/v6.0.0

@Fil Fil closed this as completed Aug 26, 2020
@Fil Fil unpinned this issue Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants