npm / d3-scale
d3-scale
What changed in d3-scale 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking1 performance1 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initd3-scale 45 changes
Breaking changes 2
The package now requires Node.js 12 or higher.
The package adopts type: module, changing how Node.js interprets its files.
Performance 1
Ordinal scale domains now use InternMap.
Fixes and other changes 2
A diverging scale now treats null input as unknown.
Fixes an off-by-1ms error in scaleTime.invert.
d3-scale 31 changes
Behavior and default changes 1
Accept iterables wherever appropriate, allowing developers to use iterable values with the API.