unstale

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 init

@unstale/cli on npm

d3-scale 45 changes

Breaking changes 2

  • The package now requires Node.js 12 or higher.

    4.0.0release notes

  • The package adopts type: module, changing how Node.js interprets its files.

    4.0.0release notes

Performance 1

Fixes and other changes 2

  • A diverging scale now treats null input as unknown.

    4.0.3release notes

  • Fixes an off-by-1ms error in scaleTime.invert.

    4.0.3release notes

d3-scale 31 changes

Behavior and default changes 1

  • Accept iterables wherever appropriate, allowing developers to use iterable values with the API.

    3.0.0release notes