Skip to content

Releases: jameskerr/react-arborist

v3.8.0

25 May 19:45
d71c3a5

Choose a tag to compare

Features

  • rowHeight prop on Tree now accepts a function (node) => number in addition to a fixed number, so each row can be sized from its node. Fixed-height trees keep using react-window's FixedSizeList; the function form uses VariableSizeList. Adds a tree.redrawList() API method to recompute row offsets when a rowHeight function's output changes for reasons the tree can't observe (#341, originally #238)

v3.7.0

17 May 19:28
4453f05

Choose a tag to compare

Features

  • outerElementType and innerElementType props on Tree for supplying custom react-window wrappers; DropContainer, ListOuterElement, and ListInnerElement are now exported so custom outers can compose the existing drop-target behavior (#339, originally #318)

v3.6.1

11 May 02:29
ab6a003

Choose a tag to compare

Fixes

  • Imperative tree.update() props no longer get reverted when a node is toggled (#337, originally #229)

v3.6.0

10 May 20:12
17b79ae

Choose a tag to compare

Features

  • disableSelect prop on Tree for marking nodes as unselectable, mirroring disableEdit and disableDrop (#331)

Version 3.5.0

20 Apr 02:39
3843e11

Choose a tag to compare

First release since v3.4.3 (Feb 2025).

Features

  • getTreeLinePrefix utility for rendering Unix tree-style connector lines in custom node renderers (#324, thanks @rayshoo)
  • dndBackend prop on Tree for supplying a custom react-dnd backend β€” defaults to HTML5Backend when omitted (#326, originally #316, thanks @ofk)
  • tree.selectMulti(id, opts?) now accepts an options argument ({ align?, focus? }) for consistency with tree.select (#266, thanks @paulftw)

Fixes

  • The dndManager prop no longer triggers unnecessary re-renders; backend/options are only passed to DndProvider when no custom manager is supplied (#237, thanks @DiyanDimitrov)

Docs & release hygiene

  • README now documents dndBackend, the selectMulti / select options argument, and getTreeLinePrefix; drift in the TreeProps block corrected.
  • Publish workflow switched to sh bin/publish so the README is copied into the published package.

All changes are backward-compatible with 3.4.x.

Version 3.4.3

13 Feb 17:52

Choose a tag to compare

What's Changed

  • React 19 support: Bump react-window to 1.8.11 by @samutoljamo-pareto in #298
  • Add aria-expanded attribute to rows by @lidiagc in #223

New Contributors

  • @samutoljamo-pareto made their first contribution in #298
  • @lidiagc made their first contribution in #223

Full Changelog: v3.4.2...v3.4.3

Version 3.4.2

06 Feb 20:07

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 3.4.1...v3.4.2

Version 3.4.1

05 Feb 21:29
aba9953

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.4.0...3.4.1

Version 3.4.0

13 Dec 22:43

Choose a tag to compare

What's Changed

This enables trees where every node can be an internal node. Many thanks to @edimov for making this happen.

Full Changelog: v3.3.1...v3.4.0

Version 3.3.1

12 Dec 23:34

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.2.0...v3.3.1