181 Commits

Author SHA1 Message Date
Renovate Bot
997a9e838e chore(deps): update dependency fork-ts-checker-webpack-plugin to v1.0.2 2019-04-11 13:52:50 +00:00
Renovate Bot
dc8fff312d chore(deps): pin dependencies 2019-04-11 11:00:16 +00:00
Ankith Konda
c952a0da62 Add watch script for tests 2019-04-11 19:51:18 +10:00
Ankith Konda
77426db438 Impliment requested changes 2019-04-11 19:38:31 +10:00
Ankith Konda
00fec11ffb Use react-hooks-testing-library 2019-04-11 09:14:44 +10:00
Ankith Konda
2ef6d227ef Add tests for useWindowSize 2019-04-10 19:56:44 +10:00
Renovate Bot
49a86a848c chore(deps): update dependency typescript to v3.4.3 2019-04-10 01:29:52 +00:00
semantic-release-bot
4ee2251821 chore(release): 8.1.1 [skip ci]
## [8.1.1](https://github.com/streamich/react-use/compare/v8.1.0...v8.1.1) (2019-04-09)

### Bug Fixes

* 🐛 make useLocation work on server, improve hook ([6f6030a](https://github.com/streamich/react-use/commit/6f6030a))
2019-04-09 13:52:24 +00:00
semantic-release-bot
7bd216b8cb chore(release): 8.1.0 [skip ci]
# [8.1.0](https://github.com/streamich/react-use/compare/v8.0.0...v8.1.0) (2019-04-08)

### Features

* add useAsyncCallback hook ([c6ecb36](https://github.com/streamich/react-use/commit/c6ecb36))
2019-04-08 14:27:32 +00:00
semantic-release-bot
2dd6dc199e chore(release): 8.0.0 [skip ci]
# [8.0.0](https://github.com/streamich/react-use/compare/v7.6.0...v8.0.0) (2019-04-08)

### Features

* change useCopyToClipboard implementation ([c391038](https://github.com/streamich/react-use/commit/c391038))

### BREAKING CHANGES

* useCopyToClipboard interface changed
2019-04-08 14:21:01 +00:00
Renovate Bot
9f3a427b39 chore(deps): update dependency @types/react to v16.8.13 2019-04-08 05:58:59 +00:00
semantic-release-bot
b2d5323e26 chore(release): 7.6.0 [skip ci]
# [7.6.0](https://github.com/streamich/react-use/compare/v7.5.0...v7.6.0) (2019-04-07)

### Bug Fixes

* 🐛 handle case when activeElement is empty ([3d83705](https://github.com/streamich/react-use/commit/3d83705))

### Features

* 🎸 add useStartTypings hook ([5fda2e0](https://github.com/streamich/react-use/commit/5fda2e0))
2019-04-07 22:54:31 +00:00
semantic-release-bot
ad5e147e3d chore(release): 7.5.0 [skip ci]
# [7.5.0](https://github.com/streamich/react-use/compare/v7.4.0...v7.5.0) (2019-04-07)

### Features

* 🎸 add onCopy and onError events and use NPM copy library ([2553225](https://github.com/streamich/react-use/commit/2553225))
* 🎸 improve useCopyToClipboard() hook ([f185044](https://github.com/streamich/react-use/commit/f185044))
* 🎸 make useCopyToClipboard hook interface more idiomatic ([0a6d773](https://github.com/streamich/react-use/commit/0a6d773))
* add useCopyToClipboard() hook ([4d8e276](https://github.com/streamich/react-use/commit/4d8e276))
2019-04-07 22:45:37 +00:00
Va Da
4d8e276607
feat: add useCopyToClipboard() hook 2019-04-08 00:44:07 +02:00
streamich
2553225470 feat: 🎸 add onCopy and onError events and use NPM copy library 2019-04-08 00:42:07 +02:00
semantic-release-bot
4998c5440c chore(release): 7.4.0 [skip ci]
# [7.4.0](https://github.com/streamich/react-use/compare/v7.3.1...v7.4.0) (2019-04-07)

### Features

* add useDeepCompareEffect hook ([77e015b](https://github.com/streamich/react-use/commit/77e015b))
2019-04-07 19:52:57 +00:00
Va Da
77e015b287
feat: add useDeepCompareEffect hook 2019-04-07 21:51:32 +02:00
Renovate Bot
eab6c51ddf chore(deps): update dependency typescript to v3.4.2 2019-04-05 23:59:50 +00:00
scottcampbell
6578cfc27b removed clipboard-polyfilll dependancy. 2019-04-05 09:53:07 -04:00
scottcampbell
dc476e5b94 added useCopyToClipboard 2019-04-05 09:43:08 -04:00
Renovate Bot
a87ca5fb90 chore(deps): update dependency @types/react to v16.8.12 2019-04-04 03:53:19 +00:00
Ward Oosterlijnck
b117a306e6 useDeepCompareEffect 2019-04-01 18:45:25 +11:00
Renovate Bot
814756b9ee chore(deps): update storybook monorepo to v5.0.6 2019-04-01 05:58:31 +00:00
semantic-release-bot
a50a66d52d chore(release): 7.3.1 [skip ci]
## [7.3.1](https://github.com/streamich/react-use/compare/v7.3.0...v7.3.1) (2019-03-31)

### Bug Fixes

* 🐛 call key{up/donw} callbacks in useKeyPressEvent correct ([60064a6](https://github.com/streamich/react-use/commit/60064a6))
2019-03-31 13:23:22 +00: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))
2019-03-31 08:38:45 +00: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))
2019-03-31 07:20:34 +00: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))
2019-03-30 08:26:49 +00: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))
2019-03-29 16:01:24 +00: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))
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))
2019-03-29 08:06:49 +00: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
2019-03-28 21:33:58 +00:00
streamich
0f0d7fbef4 chore: 🤖 merge useFullscreen 2019-03-28 21:03:04 +01:00
Va Da
565d2e98aa
Merge branch 'master' into next 2019-03-28 19:37:46 +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
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))
2019-03-28 15:01:36 +00:00
Ward Oosterlijnck
8eb66288a1
Merge branch 'master' into useFullscreen 2019-03-29 00:07:27 +11:00
Ward Oosterlijnck
0971a7e6b2 useFullscreen 2019-03-28 23:34:32 +11:00
streamich
676d0ded3e feat: 🎸 add useDropArea hook 2019-03-27 23:05:46 +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
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))
2019-03-27 11:58:36 +00: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))
2019-03-27 09:57:42 +00: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