# What changed in d3-brush

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

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

## d3-brush 3

### Breaking changes

- The package publishes an ES module bundle instead of separate source files, changing the files available to consumers. (3.0.1) — [release notes](https://github.com/d3/d3-brush/releases/tag/v3.0.1)
- The package now requires Node.js 12 or higher. (3.0.0) — [release notes](https://github.com/d3/d3-brush/releases/tag/v3.0.0)
- Adopts type: module, so the package uses Node.js ES modules. (3.0.0) — [release notes](https://github.com/d3/d3-brush/releases/tag/v3.0.0)

### New APIs and options

- Can now take an optional event. (3.0.0) — [release notes](https://github.com/d3/d3-brush/releases/tag/v3.0.0)

### Fixes and other changes

- Fixes an undefined event during brush movement. (3.0.0) — [release notes](https://github.com/d3/d3-brush/releases/tag/v3.0.0)

## d3-brush 2

### Behavior and default changes

- Two-touch interaction is improved. (2.0.0) — [release notes](https://github.com/d3/d3-brush/releases/tag/v2.0.0)
