496 Commits

Author SHA1 Message Date
Ward Oosterlijnck
5284c8a4be Refactor useUnmount 2019-03-31 20:01:31 +11:00
Ward Oosterlijnck
236373bbed Refactor useMount 2019-03-31 20:01:22 +11:00
semantic-release-bot
9bc9805357 chore(release): 7.3.0 [skip ci]
# [7.3.0](https://github.com/streamich/react-use/compare/v7.2.0...v7.3.0) (2019-03-31)

### Features

* add useEffectOnce hook ([06c12d4](https://github.com/streamich/react-use/commit/06c12d4))
v7.3.0
2019-03-31 08:38:45 +00:00
Va Da
06c12d4e53
feat: add useEffectOnce hook 2019-03-31 10:37:28 +02:00
Ward Oosterlijnck
d2bb09dce8 Remove ref implementation useEffectOnce 2019-03-31 19:30:22 +11:00
semantic-release-bot
08f796a51c chore(release): 7.2.0 [skip ci]
# [7.2.0](https://github.com/streamich/react-use/compare/v7.1.1...v7.2.0) (2019-03-31)

### Features

* default dependency array for useAsync and useAsyncRetry ([cb140a0](https://github.com/streamich/react-use/commit/cb140a0))
v7.2.0
2019-03-31 07:20:34 +00:00
Va Da
cb140a0085
feat: default dependency array for useAsync and useAsyncRetry 2019-03-31 09:19:14 +02:00
Ward Oosterlijnck
84973de1a1 useEffectOnce 2019-03-31 17:58:44 +11:00
Ward Oosterlijnck
94b4ea9d3e Consistent reuse of isClient util 2019-03-31 16:42:29 +11:00
Ward Oosterlijnck
908f73be07
Merge pull request #195 from revskill10/patch-2
Fix typo useAsync --> useAsyncRetry
2019-03-31 13:32:50 +11:00
Truong Hoang Dung
03e16962e7
Fix typo 2019-03-31 09:27:52 +07:00
Ward Oosterlijnck
e448d0d4f7 Align useAsync and useAsyncRetry demos 2019-03-31 13:06:31 +11:00
Ward Oosterlijnck
2c49244537 Default dependency array for useAsync and useAsyncRetry 2019-03-31 13:03:14 +11:00
Ward Oosterlijnck
e0916ed7d1 Types for useRefMounted 2019-03-31 12:23:57 +11:00
Ward Oosterlijnck
85db14b911 Fixing links in docs and demos 2019-03-31 12:22:39 +11:00
Ward Oosterlijnck
a41f0a80d6 Empty deps array for dependency free effects 2019-03-31 12:16:17 +11:00
semantic-release-bot
a0174a4d1f chore(release): 7.1.1 [skip ci]
## [7.1.1](https://github.com/streamich/react-use/compare/v7.1.0...v7.1.1) (2019-03-30)

### Bug Fixes

* consistent refs in useFullscreen hook ([dc85499](https://github.com/streamich/react-use/commit/dc85499))
v7.1.1
2019-03-30 08:26:49 +00:00
Va Da
dc85499696
fix: consistent refs in useFullscreen hook 2019-03-30 09:24:54 +01:00
Ward Oosterlijnck
f5aa7a33d9 useFullscreen expect video ref instead of video element 2019-03-30 16:26:00 +11:00
Ward Oosterlijnck
5b18e1d5a7 Fix video ref in useFullscreen demo 2019-03-30 16:23:51 +11:00
Ward Oosterlijnck
662761622b Fix useKeyboardJs docs + peer deps docs, related to #187 2019-03-30 13:40:13 +11:00
Renovate Bot
9243ca2321 chore(deps): update dependency typescript to v3.4.1 2019-03-29 20:14:26 +00:00
semantic-release-bot
50a281a916 chore(release): 7.1.0 [skip ci]
# [7.1.0](https://github.com/streamich/react-use/compare/v7.0.2...v7.1.0) (2019-03-29)

### Bug Fixes

* useClickAway TypeScript typings ([4b20083](https://github.com/streamich/react-use/commit/4b20083))

### Features

* pass click event in useClickAway to user ([01e38bc](https://github.com/streamich/react-use/commit/01e38bc))
v7.1.0
2019-03-29 16:01:24 +00:00
Va Da
4b20083dc5
fix: useClickAway TypeScript typings 2019-03-29 16:59:48 +01:00
Va Da
01e38bc7d2
feat: pass click event in useClickAway to user 2019-03-29 16:57:47 +01:00
Va Da
1a9146a426
docs: fix link to useKeyboardJs docs 2019-03-29 10:32:26 +01:00
Va Da
d23b9147f0
docs: update useKeyPress docs [skip ci] 2019-03-29 09:16:26 +01:00
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