yarn react-dnd 6.0.0
v6.0

latest releases: 16.0.1, 16.0.0, 15.1.2...
6 years ago
  • [Major] - Improve typings for DragSource, DropTarget and DragLayer decorator functions. This required dropping support of TypeScript decorators in our examples, and may cause breaking changes for TypeScript users. The core issue is that Typescript decorator results need to be assignable to the incoming type. We want to be able to explicitly remove DnD-collected props from the resultant component type. Our old way of dealing with this was to make DnD-collected props optional in our props interfaces, which resulted in unnecessary null-checks in render, and a leaky client interface. (#1134)
  • [Patch] - In the beginDrag action, since publishSource defaults to true when no argument is passed, use a default initializer when an object is entered that does not specify it (#1161)
  • [Patch] - Replace use of autobind-decorator library with class bind semantics, which eliminates that dependency.
  • [Patch] - Fire off an initCoords event before dragStart to improve client offset-calculation logic.(#1082)
  • [Patch] - Update the EnterLeaveCounter in HTML5Backend to use the configured window object. This corrects behavior in iframe environments (#1137)
  • [Patch] - Correct an error where an incorrect dropEffect was being used when in a scrolling container (#1131)
  • [Patch] - Library upgrades, documentation updates

Don't miss a new react-dnd release

NewReleases is sending notifications on new releases.