react-swipeable
Advanced tools
Comparing version 7.0.0 to 7.0.1
{ | ||
"name": "react-swipeable", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "React Swipe event handler hook", | ||
@@ -18,3 +18,3 @@ "source": "./src/index.ts", | ||
"examples:build": "cd ./examples && yarn && yarn build", | ||
"examples:build:publish": "yarn run build:examples && rimraf examples/node_modules && gh-pages -d examples", | ||
"examples:build:publish": "yarn run examples:build && rimraf examples/node_modules && gh-pages -d examples", | ||
"prettier": "prettier --check src __tests__", | ||
@@ -86,4 +86,6 @@ "format": "prettier --write src __tests__", | ||
"devDependencies": { | ||
"@changesets/cli": "^2.26.1", | ||
"@rollup/plugin-typescript": "^8.3.0", | ||
"@size-limit/preset-small-lib": "^7.0.8", | ||
"@svitejs/changesets-changelog-github-compact": "^0.1.1", | ||
"@testing-library/react": "^13.0.1", | ||
@@ -114,3 +116,6 @@ "@types/jest": "^27.4.1", | ||
"react": "^16.8.3 || ^17 || ^18" | ||
}, | ||
"publishConfig": { | ||
"provenance": true | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# React Swipeable | ||
[![React Swipeable — Formidable, We build the modern web](https://raw.githubusercontent.com/FormidableLabs/react-swipeable/main/react-swipeable-Hero.png)](https://formidable.com/open-source/) | ||
@@ -173,4 +173,7 @@ React swipe event handler hook | ||
ref(document); | ||
// Clean up swipeable event listeners | ||
return () => ref({}); | ||
}); | ||
``` | ||
**Note:** Issues can arise if you forget to clean up listeners - [#332](https://github.com/FormidableLabs/react-swipeable/issues/322) | ||
@@ -177,0 +180,0 @@ ### How to share `ref` from `useSwipeable`? |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96790
250
25
1