Releases: jameskerr/react-arborist
Version 3.5.0
First release since v3.4.3 (Feb 2025).
Features
getTreeLinePrefixutility for rendering Unixtree-style connector lines in custom node renderers (#324, thanks @rayshoo)dndBackendprop onTreefor supplying a custom react-dnd backend — defaults toHTML5Backendwhen omitted (#326, originally #316, thanks @ofk)tree.selectMulti(id, opts?)now accepts an options argument ({ align?, focus? }) for consistency withtree.select(#266, thanks @paulftw)
Fixes
- The
dndManagerprop no longer triggers unnecessary re-renders;backend/optionsare only passed toDndProviderwhen no custom manager is supplied (#237, thanks @DiyanDimitrov)
Docs & release hygiene
- README now documents
dndBackend, theselectMulti/selectoptions argument, andgetTreeLinePrefix; drift in theTreePropsblock corrected. - Publish workflow switched to
sh bin/publishso the README is copied into the published package.
All changes are backward-compatible with 3.4.x.
Version 3.4.3
What's Changed
- React 19 support: Bump react-window to 1.8.11 by @samutoljamo-pareto in #298
- Add
aria-expandedattribute 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
What's Changed
- Fix: Deselect not firing select event by @w3dot0 in #289
- Fix: Move drop logic from drag end to drop by @jameskerr in #297
New Contributors
Full Changelog: 3.4.1...v3.4.2
Version 3.4.1
What's Changed
- fix: showcase indexpage crash in next@14 by @GilbertSun in #208
- Rename packages to modules by @jameskerr in #234
- Add Docs Site Scaffold by @jameskerr in #236
- chore: add dynamic sizing info from ticket to docs by @Aeolun in #241
- build: Upgrade TypeScript, fix 5.6 error by @tmcw in #272
- fix: expose item dragIds for DragPreview by @qkdreyer in #273
- Adding minimal required readme instructions by @AndrewRayCode in #278
- Bump by @jameskerr in #295
New Contributors
- @GilbertSun made their first contribution in #208
- @Aeolun made their first contribution in #241
- @tmcw made their first contribution in #272
- @qkdreyer made their first contribution in #273
- @AndrewRayCode made their first contribution in #278
Full Changelog: v3.4.0...3.4.1
Version 3.4.0
What's Changed
- Drop as Sibling of Empty, Open Folder by @jameskerr in #202
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
What's Changed
- Added dragNode, dragDestinationParent and dragDestinationIndex methods to TreeApi @jameskerr in #179
- Fix aria-level and aria role violations by @sparekh0730 in #198
- Make children accessor readonly by @haines in #183
- Update Build Process by @jameskerr in #200
New Contributors
- @sparekh0730 made their first contribution in #198
- @haines made their first contribution in #183
Full Changelog: v3.2.0...v3.3.1
Version 3.2.0
What's Changed
- Add a treeApi.setSelection method in #159
Thanks to @victorvianaom, @liamdon for getting the ball rolling.
Full Changelog: v3.1.0...v3.2.0
Version 3.1.0
What's Changed
- Fix bug with closing nodes, when they are match with search string by @jameskerr in #116
- Prevent Selection Sync From Stealing Focus by @jameskerr in #118
- Mark dep as side effect free for tree shaking by @hipstersmoothie in #123
- Add dndManager prop by @kemwalsh in #147
New Contributors
- @hipstersmoothie made their first contribution in #123
- @kemwalsh made their first contribution in #147
Full Changelog: v3.0.2...v3.1.0
Version 3.0.2
The previous release introduced a bug where the <Tree> inverted the result of the disableDrop prop. For example, if you specified "true" it would allow a drop. This fixes that bug and updates the CI workflow to run unit tests and e2e tests.
What's Changed
- Invert Disable Drop by @jameskerr in #108
Full Changelog: v3.0.1...v3.0.2
Version 3.0.1
What's Changed
This is a tiny release to fix some Typescript problems. If you upgraded to version 3.0.0 and stated seeing these typescript problems then this release will fix them.
queries-tree.tsx:85:27 - error TS2339: Property 'name' does not exist on type 'unknown'.
node.data.name.toLowerCase().includes(term.toLowerCase())
- Forward Ref Assertion by @jameskerr in #103
Full Changelog: v3.0.0...v3.0.1