npm / d3-selection
d3-selection
What changed in d3-selection 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-05.
12 breaking1 new APIs and options2 behavior and defaults
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initd3-selection 35 changes
Breaking changes 3
The package now publishes an ES module bundle instead of separate source files, changing the published package contents.
The package now requires Node.js 12 or higher.
Adopts type: module, affecting how the package is interpreted by Node.js.
Behavior and default changes 2
Converts array-like inputs, such as live NodeLists, to arrays.
Converts array-like inputs, such as live NodeLists, to arrays.
d3-selection 210 changes
Breaking changes 9
Removes d3.clientPoint.
Removes d3.customEvent.
Removes d3.event.
Removes d3.mouse.
Removes d3.sourceEvent.
Removes d3.touch.
Removes d3.touches.
Fixes selection.merge to error when passed a transition.
Listeners no longer receive index and group.
New APIs and options 1
Selections become iterable.