Skip to content

v5.0.0

Latest

Choose a tag to compare

@TrevorBurnham TrevorBurnham released this 30 Nov 01:07
6821f8b

Breaking Changes

  • Replace react-dnd and react-dnd-html5-backend with @dnd-kit/core (^6.3.1) as a peer dependency, removing the global HTML5 backend singleton conflict (#319) so each <Tree> owns its <DndContext>. Node renderers using ref={dragHandle} keep working unchanged while custom renderRow components receive drag listeners on attrs (and must spread {...attrs} while composing pointer/mouse/touch handlers); <DragOverlay> now renders drag previews so DragPreviewProps drops offset and mouse and the preview mounts only during an active drag with isDragging always true (so previews that animated out on isDragging === false will not get that render); XYCoord is defined locally; pointer-only sensors (no KeyboardSensor) and accessibility props are added; dndBackend, dndManager, dndRootElement, and dragType are removed rather than deprecated; and capabilities tied to react-dnd or native HTML5 drag and drop (external react-dnd targets, OS/cross-app drops, iframe dndRootElement, and shared multi-tree <DndContext> tracked in #396) are dropped (see "Migrating from v4" in the README). (#391)