Skip to content

Update react-dnd to the latest version 🚀 #1013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
2 commits merged into from
Mar 10, 2019

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented Mar 10, 2019

There have been updates to the react-dnd monorepo:

  • The devDependency react-dnd was updated from 7.3.0 to 7.3.1.

These versions are not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

This monorepo update includes releases of one or more dependencies which all belong to the react-dnd group definition.


Release Notes for Hooks API Update

Updates to the non-stable, hooks-based API.

  • Add useDragPreview hook.

    • accepts a refForwarding component and returns an array with a component in slot zero that renders the component into a detached portal, and a ref in slot 1 that may be used in the dragSpec.
  • useDrag

    • the begin() function is now optional, and returns void.
    • the first argument of end() is the DragResult
    • the type property has been removed
    • add a required item property, which must contain a type field
    • make the ref field optional, if this is not set, then one will be created.
    • returns an array: collected props in slot zero and the ref being used in slot 1
  • useDrop

    • the type property has been renamed accept
    • the drop, hover and canDrop functions now take the DragItem as the first argument.
    • make the ref field optional, if this is not set, then one will be created.
    • returns an array: collected props in slot zero and the ref being used in slot 1
Commits

The new version differs by 14 commits.

  • dcac7a5 v7.3.1
  • 46b7893 Hooks API Refactorings (#1261)
  • 78cef8f docs: add link to examples-hooks package
  • 2eaafb0 docs: improve examples root page
  • 532d11f v7.3.0
  • 4d86bb4 Export the DragDropContextConsume from the top-level react-dnd API (#1260)
  • b146a1a fix: update the hooks to pass the right monitor impl to specs (#1259)
  • e649b6a Add experimental hook-based examples (#1256)
  • 35352b2 v7.2.1
  • d047a1a Hooks API Updates (#1255)
  • c8ad24b Enable syntheticDefaultImports in TypeScript examples (#1254)
  • aa4605c docs: correct spelling issue
  • f43fb00 Update examples to link to JS and TS source code (#1252)
  • 646a26c docs: add a link to the example index in the docs sidebar (#1253)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

@ghost ghost added the Merge On Green label Mar 10, 2019
@ghost ghost merged commit d129ac9 into master Mar 10, 2019
@greenkeeper greenkeeper bot deleted the greenkeeper/monorepo.react-dnd-20190310081624 branch March 10, 2019 08:19
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants