461 Commits

Author SHA1 Message Date
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
Yuchen Liu
464642ee3a feat: emit code in ES Module mode 2019-03-27 16:43:52 +08:00
Renovate Bot
27cadf94db chore(deps): update dependency @types/react to v16.8.8 2019-03-26 13:07:16 +00:00
Renovate Bot
6627aaa0ca chore(deps): pin dependencies 2019-03-26 12:51:23 +00:00
semantic-release-bot
592b61a128 chore(release): 6.1.0 [skip ci]
# [6.1.0](https://github.com/streamich/react-use/compare/v6.0.0...v6.1.0) (2019-03-26)

### Features

* add useThrottle hook ([756bc99](https://github.com/streamich/react-use/commit/756bc99))
v6.1.0
2019-03-26 10:50:40 +00:00
Va Da
756bc992d4
feat: add useThrottle hook 2019-03-26 11:49:13 +01:00
Va Da
c9d7b5210a
Merge branch 'master' into useThrottle 2019-03-26 11:48:58 +01:00
Ward Oosterlijnck
c51eb7fe6a args optional 2019-03-26 21:43:27 +11:00
Va Da
931220239e
docs: fix typo in useMouse [skip ci] 2019-03-26 11:31:17 +01:00