npm / d3-hierarchy
d3-hierarchy
What changed in d3-hierarchy 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-08.
4 breaking5 new APIs and options1 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initd3-hierarchy 33 changes
Breaking changes 3
The package now publishes an ES module bundle instead of separate source files.
The package now requires Node.js 12 or higher.
The package adopts type: module, changing its module interpretation for developers using it.
d3-hierarchy 210 changes
Breaking changes 1
Drops support for older browsers, including IE; use d3-hierarchy 1.x or a transpiler for pre-ES2015 environments.
New APIs and options 5
Nodes become iterable, allowing hierarchies to be traversed as iterables.
The callback now receives the traversal index.
The callback now receives the traversal index.
The callback now receives the traversal index.
Adds a method to find a node in a hierarchy.
Behavior and default changes 1
Hierarchy APIs accept iterables.
Fixes and other changes 3
Fixes behavior for huge circles.
Fixes a divide-by-zero bug.
Fixes a divide-by-zero bug.