npm / d3-brush
d3-brush
What changed in d3-brush 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking1 new APIs and options1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initd3-brush 35 changes
Breaking changes 3
The package publishes an ES module bundle instead of separate source files, changing the files available to consumers.
The package now requires Node.js 12 or higher.
Adopts type: module, so the package uses Node.js ES modules.
New APIs and options 1
Can now take an optional event.
Fixes and other changes 1
Fixes an undefined event during brush movement.
d3-brush 21 changes
Behavior and default changes 1
Two-touch interaction is improved.