# What changed in d3-shape

> 9 changes in d3-shape 2 to 3 from its official release notes, upgrade guides and advisories: 4 breaking, 3 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/d3-shape/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## d3-shape 3

### Breaking changes

- The package publishes an ES module bundle instead of separate source files. (3.2.1) — [release notes](https://github.com/d3/d3-shape/releases/tag/v3.2.1)
- The package now requires Node.js 12 or higher. (3.0.0) — [release notes](https://github.com/d3/d3-shape/releases/tag/v3.0.0)
- The package adopts type: module. (3.0.0) — [release notes](https://github.com/d3/d3-shape/releases/tag/v3.0.0)

### Tooling

- The project adopts npm trusted publishing for package releases. (3.2.1) — [release notes](https://github.com/d3/d3-shape/releases/tag/v3.2.1)

## d3-shape 2

### Breaking changes

- 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. (2.0.0) — [release notes](https://github.com/d3/d3-shape/releases/tag/v2.0.0)

### New APIs and options

- Add the d3.area(x, y0, y1) shorthand. (2.0.0) — [release notes](https://github.com/d3/d3-shape/releases/tag/v2.0.0)
- Add the d3.line(x, y) shorthand. (2.0.0) — [release notes](https://github.com/d3/d3-shape/releases/tag/v2.0.0)
- Add the d3.symbol(type, size) shorthand. (2.0.0) — [release notes](https://github.com/d3/d3-shape/releases/tag/v2.0.0)

### Behavior and default changes

- Accept iterables wherever appropriate, allowing iterable inputs in applicable APIs. (2.0.0) — [release notes](https://github.com/d3/d3-shape/releases/tag/v2.0.0)
