NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4810 most downloaded on npm
Drag and Drop for React
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 9 months
Most releases are documented
notes for 51 of the last 60 stable releases
5 versions withdrawn
withdrawn after publishing
12 years old
140 releases · first in 2014
Change acceptDrop signature to be (item, e, isHandled, effect?)
acceptDrop signature to be (item, e, isHandled, effect?)When a child element is provided as dragPreview, take its offset into account
dragPreview, take its offset into accountOne column per quarter.
Always prevent default browser action when dropping files
Adds effectsAllowed: Array ? to beginDrag options and getDropEffect(effectsAllowed) to drop target so they can show different cursor depending on mode
effectsAllowed: Array<DropEffects>? to beginDrag options and getDropEffect(effectsAllowed) to drop target so they can show different cursor depending on modes supported by drag source and drop targetendDrag now accepts a recordedDropEffect: DropEffect instead of a boolean as an argument, falsy-checking code will work like beforerecordedDropEffect to endDrag that makes it possible to find out if some nested drop zone already handled dropMemoize .bind results to improve performance
.bind results to improve performanceAdd assertions with more helpful error messages
API change: calculateDragPreviewSize -> getDragImageScale
calculateDragPreviewSize -> getDragImageScaleExpose browser DragDropEffects as constants
DragDropEffects as constantsendDrag not to be called on an unmounted componentisDragging too early so browser screenshots neutral stateSupport for dropping files with the same API
Nothing published for this version
Drag state is properly reset if source node was removed from DOM
Nothing published for this version
Nothing published for this version
If acceptDrop returns false, didDrop passed to endDrag should be false
acceptDrop returns false, didDrop passed to endDrag should be falseOptionally implement canDrop on drop target
canDrop on drop targetNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →