From 42bb7c76458096a634615e7a49493cef7d2f9c83 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 28 Mar 2019 21:33:58 +0000 Subject: [PATCH] chore(release): 7.0.0 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # [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 --- CHANGELOG.md | 37 +++++++++++++++++++++++++++++++++++++ package.json | 21 ++++++++++----------- 2 files changed, 47 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87f0d423db..f820efd0cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,40 @@ +# [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 + ## [6.2.2](https://github.com/streamich/react-use/compare/v6.2.1...v6.2.2) (2019-03-28) diff --git a/package.json b/package.json index 930927d13d..3db9468cc9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-use", - "version": "6.2.2", + "version": "7.0.0", "description": "Collection of React Hooks", "main": "lib/index.js", "module": "esm/index.js", @@ -41,8 +41,8 @@ "ts-easing": "^0.2.0" }, "peerDependencies": { - "keyboardjs": "*", - "rebound": "*" + "react": "^16.8.0", + "react-dom": "^16.8.0" }, "devDependencies": { "@semantic-release/changelog": "3.0.2", @@ -70,20 +70,19 @@ "ts-node": "8.0.3", "typescript": "3.3.4000" }, - "peerDependencies": { - "react": "^16.8.0", - "react-dom": "^16.8.0" - }, "config": { "commitizen": { "path": "git-cz" } }, "release": { - "branches": ["master", { - "name": "next", - "prerelease": "rc" - }], + "branches": [ + "master", + { + "name": "next", + "prerelease": "rc" + } + ], "verifyConditions": [ "@semantic-release/changelog", "@semantic-release/npm",