coderplanets_web
coderplanets_web copied to clipboard
chore(deps): bump react-swipeable from 5.5.1 to 7.0.0
trafficstars
Bumps react-swipeable from 5.5.1 to 7.0.0.
Release notes
Sourced from react-swipeable's releases.
v7.0.0
New Features:
- add new
swipeDurationprop - "allowable duration of a swipe"
- A swipe lasting more than
swipeDuration, in milliseconds, will not be considered a swipe.
- Feature mimicked from
use-gestureswipe.duration- Defaults to
Infinityfor backwards compatibility- add new
touchEventOptionsprop that can set the options for the touch event listeners
- this provides users full control of if/when they want to set passive
- Defaults to
{ passive: true }- add new
onTouchStartOrOnMouseDownprop that is called fortouchstartandmousedown. Before a swipe even starts.
- combined with
touchEventOptionsallows users the ability to now callpreventDefaultontouchstart- add new
onTouchEndOrOnMouseUpprop that is called fortouchendandmouseup.- add react 18 to
peerDependenciesBreaking Changes:
- we have dropped support for
es5transpiled output
- we target
es2015for our transpilation now
swipeableutilizes object/array spread & const/let nativelypreventScrollOnSwipe- "new" prop. ReplacespreventDefaultTouchmoveEvent
- same functionality but renamed to be more explicit on its intended use
- fixed bug - where toggling this prop did not re-attach event listeners
- update - we now only change the
passiveevent listener option fortouchmovedepending on this prop
- see notes in README for more details readme#passive-listener
- Thank you
@stefvhuynhBug fixes:
- fix bug where directional swiped check allowed
undefined/falsy values to setcancelablePageSwipe- fix bug when both
trackTouchandtrackMousewere present that triggered an erroneous swipe when the user clicked outside and above the swipeable areaInfrastructure:
- post
size-limit reportto PRs with bundle diff sizes- utilize
rollupfor build & output- upgrade lots of dev dependencies
- 🎉 upgrade to
typescriptv4.6.3- export/outputs housekeeping and cleaning (mimicked from
react-redux)
- removed/renamed exports from
package.json:
browser,umd:main(renameddist),jsnext:main(usemodule),typings(usetypes)- moved exports - old => new
"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
- add react v18 to
peerDependencies
... (truncated)
Changelog
Sourced from react-swipeable's changelog.
v7.0.0
New Features:
- add new
swipeDurationprop - "allowable duration of a swipe"
- A swipe lasting more than
swipeDuration, in milliseconds, will not be considered a swipe.
- Feature mimicked from
use-gestureswipe.duration- Defaults to
Infinityfor backwards compatibility- add new
touchEventOptionsprop that can set the options for the touch event listeners
- this provides users full control of if/when they want to set passive
- Defaults to
{ passive: true }- add new
onTouchStartOrOnMouseDownprop that is called fortouchstartandmousedown. Before a swipe even starts.
- combined with
touchEventOptionsallows users the ability to now callpreventDefaultontouchstart- add new
onTouchEndOrOnMouseUpprop that is called fortouchendandmouseup.- add react 18 to
peerDependenciesBreaking Changes:
- we have dropped support for
es5transpiled output
- we target
es2015for our transpilation now
swipeableutilizes object/array spread & const/let nativelypreventScrollOnSwipe- "new" prop. ReplacespreventDefaultTouchmoveEvent
- same functionality but renamed to be more explicit on its intended use
- fixed bug - where toggling this prop did not re-attach event listeners
- update - we now only change the
passiveevent listener option fortouchmovedepending on this prop
- see notes in README for more details readme#passive-listener
- Thank you
@stefvhuynhBug fixes:
- fix bug where directional swiped check allowed
undefined/falsy values to setcancelablePageSwipe- fix bug when both
trackTouchandtrackMousewere present that triggered an erroneous swipe when the user clicked outside and above the swipeable areaInfrastructure:
- post
size-limit reportto PRs with bundle diff sizes- utilize
rollupfor build & output- upgrade lots of dev dependencies
- 🎉 upgrade to
typescriptv4.6.3- export/outputs housekeeping and cleaning (mimicked from
react-redux)
- removed/renamed exports from
package.json:
browser,umd:main(renameddist),jsnext:main(usemodule),typings(usetypes)- moved exports - old => new
"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
- add react v18 to
peerDependencies
... (truncated)
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)