-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
d3@v6 with dc@v4 #1749
d3@v6 with dc@v4 #1749
Conversation
I did a quick review. I like the general approach. I wonder if we could simplify this further, and encapsulate the backward-compatibility code, by moving the logic detecting if This would mean consistently using I am hoping this would mean we only do the ugly I would also prefer to remove the new dependency on |
Makes sense. Let me try. |
For |
We also seem to be using |
const set = d3.set();
set.add('3');
set.has(3); // true, false with ES6 set This happens as |
it was confused whether it wanted strings or numbers
…nts, add d3-collection as dev-dependency.
Rebased and merged to develop. Thanks @kum-deepak! I also took the opportunity to do an npm update and audit fix. These are my remaining concerns before release. I am not sure if these matter, just want to be careful.
|
This is intentional, we now depend on whatever d3 depends on. Sometimes compiler or linter may warn if we import from a dependency that is not directly added to package.json. However, no issues otherwise.
In ES6 version, if we remove it, it should still compile and work, though I wanted to keep it clean. It is not used during testing as it is not copied into In summary, no harm in keeping it. |
I see, it's just a change of strategy about how we deal with d3 modules. Makes sense! I'll go ahead and release this. |
Ref #1748
Steps so far:
For dc@v5 we can remove d3-collection properly if we decide that it will only work with d3@v6.