[Snyk] Upgrade react-swipeable from 7.0.1 to 7.0.2 #79
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade react-swipeable from 7.0.1 to 7.0.2.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 1 version ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: react-swipeable
Patch Changes
Patch Changes
New Features:
swipeDuration
prop - "allowable duration of a swipe"swipeDuration
, in milliseconds, will not be considered a swipe.use-gesture
swipe.durationInfinity
for backwards compatibilitytouchEventOptions
prop that can set the options for the touch event listeners{ passive: true }
onTouchStartOrOnMouseDown
prop that is called fortouchstart
andmousedown
. Before a swipe even starts.touchEventOptions
allows users the ability to now callpreventDefault
ontouchstart
onTouchEndOrOnMouseUp
prop that is called fortouchend
andmouseup
.peerDependencies
Breaking Changes:
es5
transpiled outputes2015
for our transpilation nowswipeable
utilizes object/array spread & const/let nativelypreventScrollOnSwipe
- "new" prop. ReplacespreventDefaultTouchmoveEvent
passive
event listener option fortouchmove
depending on this propBug fixes:
undefined
/falsy values to setcancelablePageSwipe
trackTouch
andtrackMouse
were present that triggered an erroneous swipe when the user clicked outside and above the swipeable areaInfrastructure:
size-limit report
to PRs with bundle diff sizesrollup
for build & outputmicrobundle
interop
injected code - pull/260typescript
v4.6.3
react-redux
)package.json
:browser
,umd:main
(renameddist
),jsnext:main
(usemodule
),typings
(usetypes
)"main": "./dist/react-swipeable.js"
=>"main": "./lib/index.js"
"module": "./dist/react-swipeable.module.js"
=>"module": "es/index.js"
"types": "./dist/index.d.ts"
=>"types": "./es/index.d.ts"
v6.2.2
peerDependencies
v6.2.1
undefined
breaking swipeableundefined
config props to config defaultsv6.2.0
delta
prop can now be anobject
specifying different values for each directiondelta
if direction not present in object, PR #262microbundle
microbundle
upgrade due torollup
output.interop
dependabot security updatesv6.1.2
v6.1.1
dependabot security updatesv6.1.0
Add new event handler prop
onSwipeStart
onSwiping
callbackfirst
property of theSwipeEventData
will betrue
typescript updated to
v4.1.3
and associated deps bumped to be compatiblev6.0.1
first
property onSwipeEventData
always beingtrue
.first
is now onlytrue
for the first event, thenfalse
for subsequent eventsv6.0.0
New Features:
addEventListener
passive
tofalse
only whenpreventDefaultTouchmoveEvent
istrue
.onTap
event handler prop which executes its callback after a tapvxvy
event data property[ deltaX/time, deltaY/time]
- velocity per axisBreaking Changes:
<Swipeable>
componentdeltaX
anddeltaY
initial - current
tocurrent - initial
addEventListener
options object needs to be polyfilled, browser supportBug fixes:
Infrastructure:
EventData
->SwipeEventData
- The event data provided for all swipe event callbacksSwipeableOptions
- useSwipeableProps
now<Swipeable>
componentTapCallback
- callback for the newonTap
prop handlerSwipeDirections
-"Left" | "Right" | "Up" | "Down"
@ testing-library/react
, react testing librarymicrobundle
. microbundleesmodule
propertyMaintenance:
jest
,babel
,webpack
,eslint
,prettier
5.5.0
first
property toeventData
that istrue
for first swipe event issue #160 and PR #1625.4.0
initial
property toeventData
that supplies the inital[x, y]
swipe value coordinates issue #150 and PR #1315.3.0
useSwipeable
hook. AddeduseMemo
for handler internals issue #134 and PR #1495.2.3
event.cancelable
fortouchmove
events before callingevent.preventDefault()
, issue #128 and PR #1455.2.2
ref
, issue #140 and PR #1425.2.0
useSwipeable
and<Swipeable>
, issue #136 and PR #138useSwipeable
and<Swipeable>
, issue #1255.1.0
preventDefaultTouchmoveEvent
in safari issue #127 and PR #131ref
callback for both<Swipeable>
anduseSwipeable
to attach all touch event handlersuseSwipeable
's returnedhandlers
now contains a ref callbackpassive: true
issue from chrome document event listenerstouchmove
event listener needs to be attached before atouchstart
in order to be able to calle.preventDefault
touchHandlerOption
prop5.0.0
useSwipeable
size-limit
to help keep bundled size downes
export via"module": "es/index.js"
topackage.json
prettier
code formatingonSwiped = ({ event, direction, absX, absY, velocity}) => console.log('swiped')
onSwiping{Left|Right|Up|Down}
handler propsdir
event dataonSwiping = ({ dir }) => console.log(`swiping - ${dir}`)
flickThreshold
stopPropagation
disabled
<Swipeable>
from being passed downclassName
andstyle
get passed to<Swipeable>
's dom node, defaultdiv
4.3.0
rotationAngle
prop. #1034.2.2
onSwiping
oronSwiped
were set we were not callinge.preventDefault()
appropriately4.2.0
preventDefault
on Chrome 56+ via passive event support checking and manual event listener setup. #884.1.0
disabled
prop. #83innerRef
prop that allows user to access to<Swipeable>
's inner dom node react ref. #824.0.1
4.0.0
preventDefaultTouchmoveEvent
defaults tofalse
now #69peerDependencies
updated #64prop-types
added todependencies
#64trackMouse
now 'tracks' the swipe outside of the swipeable component, #67.peerDependencies
3.9.0
onTap
functionality. Thanks @ anicke . #61 #39e.persist()
. This should help people see more details in the console when debugging in the [example](http://stack.formidable.com/react-swipeable/.3.8.0
onMouseDown
,onMouseUp
, andonMouseMove
props to fire appropriately again. #55, thanks @ lochstarSwipeable
will no longer be callingthis.setState
internally.3.7.0
3.6.0
false
. See #46 for more info.3.5.1
3.5.0
nodeName
prop, defaults to'div'
. See #24 and #40 for more info.3.4.0
onSwipedLeft
,onSwipedRight
,onSwipedUp
, andonSwipedDown
are present. See #21 and #37 for more info.3.3.0
velocity
data toonSwiping
callback3.2.0
preventDefaultTouchMoveEvent
option, defaults to true3.1.0
isFLick
to onSwipe events3.0.2
3.0.1
3.0.0
2.1.0
2.0
onFlick
prop has been removed.onSwipe
now has a 4th argument for the callbackBoolean isFlick
Added a prop
flickThreshold
which allows you to customize at what velocity a flick is detected.Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: