Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

fix(deps): update dependency react-use-gesture to v7 #77

Merged
merged 2 commits into from
Feb 4, 2020

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 26, 2020

This PR contains the following updates:

Package Type Update Change
react-use-gesture (source) dependencies major ^6.0 -> ^7.0.0

Release Notes

react-spring/react-use-gesture

v7.0.2

Compare Source

Summary: onHover fires before onMove.

Fixed
  1. onHover fires before onMove.

v7.0.1

Compare Source

Summary: Fix exporting the useHover hook.

Fixed
  1. Exports the useHover hook.

v7.0.0

Compare Source

Summary: Major release introducing new features and options renaming. This is a full rewrite.

Breaking changes
  1. Options for useGesture are now separated per gesture;
  2. Options for event are now structured differently.
  3. dragDelay is now renamed delay.
Before
useGesture(fn, {
  enabled: true,
  event: { passive: true, capture: false },
  pointerEvents: true,
  wheel: false,
  dragDelay: 100,
})
After
useGesture(fn, {
  enabled: true,
  eventOptions: { passive: true, capture: false, pointer: true },
  wheel: {
    enabled: false,
  },
  drag: {
    delay: 100,
  },
})

// or

useDrag(fn, {
  eventOptions: { passive: true, capture: false, pointer: true },
  delay: 100,
})
Added
  1. State attribute lastOffset: offset when the last gesture started.
  2. State attribute startTime: gesture start time.
  3. State attribute elapsedTime: gesture elapsed time.
  4. Drag state attribute swipe: indicates if the drag was a swipe.
  5. Drag state attribute tap: is the drag assimilated to a tap.
  6. Option initial: the initial movement or a function that returns the initial movement.
  7. Option threshold: the handler will fire only when the gesture displacement is greater than the threshold.
  8. Option rubberband: the elasticity coefficient of the gesture when going out of bounds.
  9. XY option axis: constraints the gesture to the axis.
  10. XY option lockDirection: if true, the gesture will lock the first detected direction.
  11. XY option bounds: limits the gesture movement and offset to the specified bounds.
  12. Pinch option distanceBounds: limits the distance movement and offset to the specified bounds.
  13. Pinch option angleBounds: limits the angle movement and offset to the specified bounds.
  14. New doc website!
Fixed
  1. Native handlers now update with state #​117
  2. When a ref is null on unmount, bind now returns the correct cleaning function #​115

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or if you tick the rebase/retry checkbox below.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/react-use-gesture-7.x branch from c072898 to b36b8cc Compare January 28, 2020 13:08
mstruebing
mstruebing previously approved these changes Feb 4, 2020
@renovate
Copy link
Contributor Author

renovate bot commented Feb 4, 2020

PR has been edited

👷 This PR has received other commits, so Renovate will stop updating it to avoid conflicts or other problems. If you wish to abandon your changes and have Renovate start over you may click the "rebase" checkbox in the PR body/description.

@mstruebing mstruebing merged commit 2b8506a into master Feb 4, 2020
@mstruebing mstruebing deleted the renovate/react-use-gesture-7.x branch February 4, 2020 13:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants