Skip to content

@dnd-kit/react@0.5.0

Choose a tag to compare

@github-actions github-actions released this 11 Jun 13:05
· 2 commits to main since this release
cc98bdd

Minor Changes

  • #2058 2dd8d0e Thanks @timagixe! - Allow useSortable, createSortable and Sortable to disable dragging and dropping independently with a disabled object while preserving the existing boolean behavior.

Patch Changes

  • #2021 de5a0f4 Thanks @lixiaoyan! - Fixed useDraggable and useSortable reassigning the underlying entity's sensors on every render when sensors was passed as an inline array. The sensors prop is now compared with deepEqual (matching the existing behavior of modifiers, plugins, and DragDropProvider), preventing unnecessary mutations to the plugin registry that could disrupt in-progress sensor activation.

  • #2043 a6bd445 Thanks @clauderic! - Include sourcemap files in published packages. The build emits .map files alongside each entry point and writes //# sourceMappingURL=... comments into the bundles, but the files field in package.json did not list the maps, so they were excluded from the npm tarball. Bundlers attempting to load the referenced maps would fail with ENOENT, producing warnings (or build failures in strict CI setups).

  • Updated dependencies [e4d1a7e, e25b1b1, 00fd955, e4792f3, f23afe0, 2dd8d0e]:

    • @dnd-kit/abstract@0.5.0
    • @dnd-kit/dom@0.5.0
    • @dnd-kit/state@0.5.0