unstale

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 init

@unstale/cli 0.2.11 on npm

d3-hierarchy 33 changes

Breaking changes 3

  • The package now publishes an ES module bundle instead of separate source files.

    3.1.3release notes

  • The package now requires Node.js 12 or higher.

    3.0.0release notes

  • The package adopts type: module, changing its module interpretation for developers using it.

    3.0.0release notes

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.

    2.0.0release notes

New APIs and options 5

  • Nodes become iterable, allowing hierarchies to be traversed as iterables.

    2.0.0release notes

  • The callback now receives the traversal index.

    2.0.0release notes

  • The callback now receives the traversal index.

    2.0.0release notes

  • The callback now receives the traversal index.

    2.0.0release notes

  • Adds a method to find a node in a hierarchy.

    2.0.0release notes

Behavior and default changes 1

Fixes and other changes 3