npm / d3-array
d3-array
What changed in d3-array 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-05.
7 breaking6 new APIs and options1 performance2 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initd3-array 310 changes
Breaking changes 6
The package publishes an ES module bundle instead of separate source files.
d3.ascending no longer considers null comparable.
d3.bin now ignores nulls.
d3.descending no longer considers null comparable.
The package now requires Node.js 12 or higher.
The package adopts type: module, changing how Node.js interprets its JavaScript files.
New APIs and options 3
Adds d3.flatGroup.
Adds d3.flatRollup.
Adds d3.mode.
Fixes and other changes 1
Fixes a rounding error in nice.
d3-array 27 changes
Breaking changes 1
Adopts ES2015 language features and drops support for older browsers, including IE; use d3-array 1.x or a transpiler for pre-ES2015 environments.
New APIs and options 3
Adds d3.group.
Adds d3.quickselect.
Adds d3.rollup.
Performance 1
Rewrites d3.median to use quickselect.
Behavior and default changes 2
Allows more than two iterables as input.
Relevant APIs accept iterables, not just arrays.