npm / d3-shape
d3-shape
What changed in d3-shape 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
4 breaking3 new APIs and options1 behavior and defaults1 tooling
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initd3-shape 34 changes
Breaking changes 3
The package publishes an ES module bundle instead of separate source files.
The package now requires Node.js 12 or higher.
The package adopts type: module.
Tooling 1
The project adopts npm trusted publishing for package releases.
d3-shape 25 changes
Breaking changes 1
The release uses ES2015 language features and drops support for older browsers, including IE; use d3-shape 1.x or a transpiler for pre-ES2015 environments.
New APIs and options 3
Add the d3.area(x, y0, y1) shorthand.
Add the d3.line(x, y) shorthand.
Add the d3.symbol(type, size) shorthand.
Behavior and default changes 1
Accept iterables wherever appropriate, allowing iterable inputs in applicable APIs.