469 Commits

Author SHA1 Message Date
semantic-release-bot
5295061449 chore(release): 7.0.2 [skip ci]
## [7.0.2](https://github.com/streamich/react-use/compare/v7.0.1...v7.0.2) (2019-03-29)

### Bug Fixes

* 🐛 add rebound and keyboards deps back to peerDependencies ([4fc46aa](https://github.com/streamich/react-use/commit/4fc46aa))
v7.0.2
2019-03-29 08:12:10 +00:00
streamich
4fc46aa3da fix: 🐛 add rebound and keyboards deps back to peerDependencies 2019-03-29 09:09:41 +01:00
semantic-release-bot
c4f97870bf chore(release): 7.0.1 [skip ci]
## [7.0.1](https://github.com/streamich/react-use/compare/v7.0.0...v7.0.1) (2019-03-29)

### Bug Fixes

* add optional attributes in AsyncState ([b0c9770](https://github.com/streamich/react-use/commit/b0c9770))
v7.0.1
2019-03-29 08:06:49 +00:00
Va Da
2bde034876
Merge pull request #191 from xiaoxiangmoe/master
fix: add optional attributes in AsyncState
2019-03-29 09:05:24 +01:00
ZHAO Jinxiang
b0c97709bf fix: add optional attributes in AsyncState 2019-03-29 15:10:12 +08:00
semantic-release-bot
42bb7c7645 chore(release): 7.0.0 [skip ci]
# [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
v7.0.0
2019-03-28 21:33:58 +00:00
Va Da
07783d42e4
Merge pull request #189 from streamich/next
Next
2019-03-28 22:32:26 +01:00
streamich
4f40d6bc90 docs: ✏️ update useFullscreen docs 2019-03-28 22:30:01 +01:00
streamich
7c38165ac8 feat: 🎸 improve useFullscreen hook 2019-03-28 22:26:38 +01:00
streamich
0f0d7fbef4 chore: 🤖 merge useFullscreen 2019-03-28 21:03:04 +01:00
streamich
f4fd748d45 feat: 🎸 add createRenderProp function for creating render-props 2019-03-28 19:52:33 +01:00
Va Da
565d2e98aa
Merge branch 'master' into next 2019-03-28 19:37:46 +01:00
streamich
aa277b805c feat: 🎸 return events from useKeyboardJs hook 2019-03-28 19:35:00 +01:00
streamich
c0658f605f feat: 🎸 refactor useKeyPressEvent hook
Changes its interface, fixes bug of calling callback on initial mount,
useKeyPress hook is injected as dependency and can be overwirtten to
useKeyboardJs.

BREAKING CHANGE: 🧨 useKeyPressEvent hook modified for dependency injection and providing
event objects to user
2019-03-28 19:28:19 +01:00
streamich
00fecab325 feat: 🎸 keep keyboard events in useKeyPress hook 2019-03-28 19:11:25 +01:00
streamich
5c95f28521 fix: 🐛 fix TypeScript build errors 2019-03-28 19:01:23 +01:00
streamich
3516aa69a9 feat: 🎸 add useKeyboardJs hook 2019-03-28 18:59:09 +01:00
streamich
772f0464cc chore: 🤖 add big libs to peer deps, so ppl know why builds brk 2019-03-28 18:23:02 +01:00
streamich
d5de21285c docs: ✏️ add useKey and useKeyPress documentation 2019-03-28 18:07:54 +01:00
streamich
727743bb1f feat: 🎸 useKeyPress hook now uses useKey, KeyboardJS removed
BREAKING CHANGE: 🧨 KeyboardJS now available anymore in useKeyPress hook, instead it will be
a separate useKeyPressKJ hook.
2019-03-28 17:57:16 +01:00
streamich
299fd86469 feat: 🎸 add useKey hook 2019-03-28 17:52:53 +01:00
streamich
7d7c36e08f ci: 🎡 add next branch CircleCI config 2019-03-28 17:47:38 +01:00
streamich
2a13cfbf68 feat: 🎸 add useEvent hook 2019-03-28 16:02:56 +01:00
semantic-release-bot
f6fcf6582a chore(release): 6.2.2 [skip ci]
## [6.2.2](https://github.com/streamich/react-use/compare/v6.2.1...v6.2.2) (2019-03-28)

### Bug Fixes

* fix deps arg and union type in useAsync and useAsyncRetry ([929e726](https://github.com/streamich/react-use/commit/929e726))
v6.2.2
2019-03-28 15:01:36 +00:00
Va Da
41fdcabd09
Merge pull request #186 from xiaoxiangmoe/master
fix: fix deps arg and union type in useAsync and useAsyncRetry
2019-03-28 16:00:09 +01:00
ZHAO Jinxiang
929e72679b fix: fix deps arg and union type in useAsync and useAsyncRetry 2019-03-28 22:32:35 +08:00
streamich
b20cf7c18a feat: 🎸 add clear() to useList, use fn for state updates 2019-03-28 15:14:31 +01:00
Ward Oosterlijnck
8eb66288a1
Merge branch 'master' into useFullscreen 2019-03-29 00:07:27 +11:00
Ward Oosterlijnck
bf302bd5e7 useFullscreen added to readme 2019-03-28 23:49:42 +11:00
Ward Oosterlijnck
0971a7e6b2 useFullscreen 2019-03-28 23:34:32 +11:00
Va Da
0a53a5651c
Merge pull request #182 from streamich/useThrottle-fix
fix: useThrottle discard intermediary calls
2019-03-27 23:07:23 +01:00
streamich
676d0ded3e feat: 🎸 add useDropArea hook 2019-03-27 23:05:46 +01:00
Ward Oosterlijnck
4fda5bba7d discard intermediary calls 2019-03-28 08:30:27 +11:00
streamich
0ccdf9531e feat: 🎸 add useThrottleFn hook that throttles function
This hook used to be called useThrottle, but it also was re-implemented.
2019-03-27 22:22:27 +01:00
Renovate Bot
2fce39c98c chore(deps): update dependency fork-ts-checker-webpack-plugin to v1.0.1 2019-03-27 20:40:06 +00:00
streamich
452e8d9425 feat: 🎸 simplify and improve useThrottle hook
Create a version of the hook that simply throttled a value, hook that
throttles a function will be called useThrottleFn.

BREAKING CHANGE: 🧨 useThrottle is now a completely different hook
2019-03-27 21:10:57 +01:00
streamich
6b487c0e65 docs: ✏️ add useDrop hook reference 2019-03-27 20:05:59 +01:00
streamich
acc355cfa4 fix: 🐛 track "over" state better in useDrop hook 2019-03-27 19:57:18 +01:00
streamich
6e415cfdef feat: 🎸 add useDrop hook 2019-03-27 19:34:33 +01:00
streamich
6655092cae fix: 🐛 make sure all paths in usePageLeave return 2019-03-27 19:21:13 +01:00
streamich
33ac91b775 feat: 🎸 add usePageLeave hook 2019-03-27 19:19:39 +01:00
Renovate Bot
b8875a2f9e chore(deps): update dependency @types/react to v16.8.10 2019-03-27 17:25:14 +00:00
semantic-release-bot
8dac4e8f94 chore(release): 6.2.1 [skip ci]
## [6.2.1](https://github.com/streamich/react-use/compare/v6.2.0...v6.2.1) (2019-03-27)

### Bug Fixes

* set 'module' field properly ([35d4fc2](https://github.com/streamich/react-use/commit/35d4fc2))
v6.2.1
2019-03-27 11:58:36 +00:00
Va Da
c7fe040ff9
Merge pull request #179 from liuyuchenzh/master
fix: set 'module' field properly
2019-03-27 12:57:21 +01:00
Yuchen Liu
35d4fc2fc2 fix: set 'module' field properly 2019-03-27 19:54:22 +08:00
semantic-release-bot
c52f35dc78 chore(release): 6.2.0 [skip ci]
# [6.2.0](https://github.com/streamich/react-use/compare/v6.1.0...v6.2.0) (2019-03-27)

### Bug Fixes

* add esm to 'files' in package.json ([fc1ba07](https://github.com/streamich/react-use/commit/fc1ba07))
* clean esm folder as well ([0a10a6e](https://github.com/streamich/react-use/commit/0a10a6e))

### Features

* emit code in ES Module mode ([464642e](https://github.com/streamich/react-use/commit/464642e))
v6.2.0
2019-03-27 09:57:42 +00:00
Va Da
85205c1125
Merge pull request #178 from liuyuchenzh/master
feat: emit code in ES Module format
2019-03-27 10:56:12 +01:00
Yuchen Liu
fc1ba0746e fix: add esm to 'files' in package.json 2019-03-27 17:55:22 +08:00
Yuchen Liu
0a10a6ecfd fix: clean esm folder as well 2019-03-27 17:53:45 +08:00
Yuchen Liu
052d82f510 refactor: export ES Module to esm folder 2019-03-27 17:51:34 +08:00