mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
# [7.0.0](https://github.com/streamich/react-use/compare/v6.2.2...v7.0.0) (2019-03-28) ### Bug Fixes * 🐛 fix TypeScript build errors ([5c95f28](https://github.com/streamich/react-use/commit/5c95f28)) * 🐛 make sure all paths in usePageLeave return ([6655092](https://github.com/streamich/react-use/commit/6655092)) * 🐛 track "over" state better in useDrop hook ([acc355c](https://github.com/streamich/react-use/commit/acc355c)) ### Features * 🎸 add clear() to useList, use fn for state updates ([b20cf7c](https://github.com/streamich/react-use/commit/b20cf7c)) * 🎸 add createRenderProp function for creating render-props ([f4fd748](https://github.com/streamich/react-use/commit/f4fd748)) * 🎸 add useDrop hook ([6e415cf](https://github.com/streamich/react-use/commit/6e415cf)) * 🎸 add useDropArea hook ([676d0de](https://github.com/streamich/react-use/commit/676d0de)) * 🎸 add useEvent hook ([2a13cfb](https://github.com/streamich/react-use/commit/2a13cfb)) * 🎸 add useKey hook ([299fd86](https://github.com/streamich/react-use/commit/299fd86)) * 🎸 add useKeyboardJs hook ([3516aa6](https://github.com/streamich/react-use/commit/3516aa6)) * 🎸 add usePageLeave hook ([33ac91b](https://github.com/streamich/react-use/commit/33ac91b)) * 🎸 add useThrottleFn hook that throttles function ([0ccdf95](https://github.com/streamich/react-use/commit/0ccdf95)) * 🎸 improve useFullscreen hook ([7c38165](https://github.com/streamich/react-use/commit/7c38165)) * 🎸 keep keyboard events in useKeyPress hook ([00fecab](https://github.com/streamich/react-use/commit/00fecab)) * 🎸 refactor useKeyPressEvent hook ([c0658f6](https://github.com/streamich/react-use/commit/c0658f6)) * 🎸 return events from useKeyboardJs hook ([aa277b8](https://github.com/streamich/react-use/commit/aa277b8)) * 🎸 simplify and improve useThrottle hook ([452e8d9](https://github.com/streamich/react-use/commit/452e8d9)) * 🎸 useKeyPress hook now uses useKey, KeyboardJS removed ([727743b](https://github.com/streamich/react-use/commit/727743b)) ### BREAKING CHANGES * 🧨 useKeyPressEvent hook modified for dependency injection and providing event objects to user * 🧨 KeyboardJS now available anymore in useKeyPress hook, instead it will be a separate useKeyPressKJ hook. * 🧨 useThrottle is now a completely different hook
98 lines
2.4 KiB
JSON
98 lines
2.4 KiB
JSON
{
|
|
"name": "react-use",
|
|
"version": "7.0.0",
|
|
"description": "Collection of React Hooks",
|
|
"main": "lib/index.js",
|
|
"module": "esm/index.js",
|
|
"files": [
|
|
"lib/",
|
|
"esm/"
|
|
],
|
|
"types": "lib/index.d.ts",
|
|
"typings": "lib/index.d.ts",
|
|
"scripts": {
|
|
"start": "yarn storybook",
|
|
"test": "echo hmm...",
|
|
"build:cjs": "tsc",
|
|
"build:es": "tsc -m esNext --outDir esm",
|
|
"build": "yarn build:cjs && yarn build:es",
|
|
"clean": "rimraf lib storybook-static esm",
|
|
"storybook": "start-storybook -p 6008",
|
|
"storybook:build": "build-storybook",
|
|
"storybook:upload": "gh-pages -d storybook-static",
|
|
"storybook:clean": "rimraf storybook-static",
|
|
"release": "semantic-release"
|
|
},
|
|
"author": "@streamich",
|
|
"license": "Unlicense",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/streamich/react-use"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/streamich/react-use/issues"
|
|
},
|
|
"homepage": "https://github.com/streamich/react-use#readme",
|
|
"dependencies": {
|
|
"nano-css": "^5.1.0",
|
|
"react-wait": "^0.3.0",
|
|
"screenfull": "^4.1.0",
|
|
"throttle-debounce": "^2.0.1",
|
|
"ts-easing": "^0.2.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^16.8.0",
|
|
"react-dom": "^16.8.0"
|
|
},
|
|
"devDependencies": {
|
|
"@semantic-release/changelog": "3.0.2",
|
|
"@semantic-release/git": "7.0.8",
|
|
"@semantic-release/npm": "5.1.4",
|
|
"@storybook/addon-actions": "5.0.5",
|
|
"@storybook/addon-knobs": "5.0.5",
|
|
"@storybook/addon-notes": "5.0.5",
|
|
"@storybook/addon-options": "5.0.5",
|
|
"@storybook/react": "5.0.5",
|
|
"@types/react": "16.8.10",
|
|
"babel-core": "6.26.3",
|
|
"fork-ts-checker-webpack-plugin": "1.0.1",
|
|
"gh-pages": "2.0.1",
|
|
"keyboardjs": "2.5.1",
|
|
"markdown-loader": "5.0.0",
|
|
"react": "16.8.4",
|
|
"react-dom": "16.8.4",
|
|
"react-spring": "6.1.10",
|
|
"rebound": "0.1.0",
|
|
"rimraf": "2.6.3",
|
|
"rxjs": "6.4.0",
|
|
"semantic-release": "15.13.3",
|
|
"ts-loader": "5.3.3",
|
|
"ts-node": "8.0.3",
|
|
"typescript": "3.3.4000"
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "git-cz"
|
|
}
|
|
},
|
|
"release": {
|
|
"branches": [
|
|
"master",
|
|
{
|
|
"name": "next",
|
|
"prerelease": "rc"
|
|
}
|
|
],
|
|
"verifyConditions": [
|
|
"@semantic-release/changelog",
|
|
"@semantic-release/npm",
|
|
"@semantic-release/git"
|
|
],
|
|
"prepare": [
|
|
"@semantic-release/changelog",
|
|
"@semantic-release/npm",
|
|
"@semantic-release/git"
|
|
]
|
|
}
|
|
}
|