148 Commits

Author SHA1 Message Date
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
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))
2019-03-26 10:50:40 +00:00
semantic-release-bot
6537a21249 chore(release): 6.0.0 [skip ci]
# [6.0.0](https://github.com/streamich/react-use/compare/v5.16.1...v6.0.0) (2019-03-26)

### Bug Fixes

* 🐛 bump nano-css ([f1f36dc](https://github.com/streamich/react-use/commit/f1f36dc)), closes [#90](https://github.com/streamich/react-use/issues/90)
* 🐛 don't throw only in development ([f5faba5](https://github.com/streamich/react-use/commit/f5faba5))

### chore

* 🤖 don't install only large dependencies ([6170067](https://github.com/streamich/react-use/commit/6170067))

### Features

* 🎸 add {bound} option to useMouse ([9bb02a1](https://github.com/streamich/react-use/commit/9bb02a1))
* 🎸 implement useClickAway, remove useOutsideClick ([a03143a](https://github.com/streamich/react-use/commit/a03143a))
* 🎸 keep global state of all useLockBodyScroll hooks ([5dd10e9](https://github.com/streamich/react-use/commit/5dd10e9))
* 🎸 move extra mouse functionality into useMouseHovered ([8b0580e](https://github.com/streamich/react-use/commit/8b0580e))
* more precise size for useMouse ([b887075](https://github.com/streamich/react-use/commit/b887075))

### BREAKING CHANGES

* 🧨 error is logged instead of thrown in development environment
* 🧨 useOutsideClick is now useClickAway
* 🧨 useCallbag hook is removed, some hooks KeyboardJS and Rebound installed
separately
2019-03-26 10:28:16 +00:00
Va Da
8060688cde
Merge branch 'master' into v6 2019-03-26 11:24:51 +01:00
semantic-release-bot
f9c6dd9d94 chore(release): 5.16.0 [skip ci]
# [5.16.0](https://github.com/streamich/react-use/compare/v5.15.0...v5.16.0) (2019-03-25)

### Features

* more precise size for useMouse ([1761031](https://github.com/streamich/react-use/commit/1761031))
2019-03-26 11:20:42 +01:00
semantic-release-bot
6051bc17d5 chore(release): 5.15.0 [skip ci]
# [5.15.0](https://github.com/streamich/react-use/compare/v5.14.0...v5.15.0) (2019-03-25)

### Features

* add useMouse hook ([17dfa8e](https://github.com/streamich/react-use/commit/17dfa8e))
2019-03-26 11:20:42 +01:00
Renovate Bot
74cbb1eaca chore(deps): update storybook monorepo to v5.0.5 2019-03-26 11:20:42 +01:00
semantic-release-bot
c10bc5d946 chore(release): 5.14.0 [skip ci]
# [5.14.0](https://github.com/streamich/react-use/compare/v5.13.0...v5.14.0) (2019-03-24)

### Features

* 🎸 keep global state of all useLockBodyScroll hooks ([9bb7047](https://github.com/streamich/react-use/commit/9bb7047))
* add useLockBodyScroll hook ([d990db4](https://github.com/streamich/react-use/commit/d990db4))
2019-03-26 11:20:42 +01:00
Renovate Bot
30ee224bce chore(deps): update storybook monorepo to v5.0.4 2019-03-26 11:20:42 +01:00
streamich
f1f36dc4b1 fix: 🐛 bump nano-css
 Closes: #90
2019-03-26 10:23:26 +01:00
semantic-release-bot
bcd4e54fb7 chore(release): 5.16.1 [skip ci]
## [5.16.1](https://github.com/streamich/react-use/compare/v5.16.0...v5.16.1) (2019-03-26)

### Bug Fixes

* types for useGeolocation ([b72c098](https://github.com/streamich/react-use/commit/b72c098))
2019-03-26 07:30:58 +00:00
semantic-release-bot
12bc93201d chore(release): 5.16.0 [skip ci]
# [5.16.0](https://github.com/streamich/react-use/compare/v5.15.0...v5.16.0) (2019-03-25)

### Features

* more precise size for useMouse ([1761031](https://github.com/streamich/react-use/commit/1761031))
2019-03-25 21:29:52 +00:00
semantic-release-bot
dd1d5b3a24 chore(release): 5.15.0 [skip ci]
# [5.15.0](https://github.com/streamich/react-use/compare/v5.14.0...v5.15.0) (2019-03-25)

### Features

* add useMouse hook ([17dfa8e](https://github.com/streamich/react-use/commit/17dfa8e))
2019-03-25 13:04:52 +00:00
streamich
c947ef1c91 chore: 🤖 remove use-onclickoutside dependency 2019-03-25 13:56:57 +01:00
streamich
a03143a46f feat: 🎸 implement useClickAway, remove useOutsideClick
This re-implements outside click hook functionality from scratch,
removes dependency on use-onoutsideclick package.

BREAKING CHANGE: 🧨 useOutsideClick is now useClickAway
2019-03-25 13:52:52 +01:00
streamich
428876ab34 chore: 🤖 move useCss hook under UI section
Also remove remainders of useCallbag hook.
2019-03-25 13:23:49 +01:00
streamich
61700675cd chore: 🤖 don't install only large dependencies
This change removes useCallbag hook, it also reverts back changes for
hooks that only have tiny dependencies or dependencies that could have
been part of the hook itself. Effectivly only KeyboardJS and Rebound are
large packages that only partially are used by react-use, hence require
user to install them separately.

BREAKING CHANGE: 🧨 useCallbag hook is removed, some hooks KeyboardJS and Rebound installed
separately
2019-03-25 13:19:37 +01:00
streamich
3d0a82f4ac chore: 🤖 revert these, bcs semantic-release manges those files 2019-03-25 13:06:07 +01:00
Renovate Bot
4011e021d3 chore(deps): update storybook monorepo to v5.0.5 2019-03-25 01:53:19 +00:00
semantic-release-bot
a9e14d6b2b chore(release): 5.14.0 [skip ci]
# [5.14.0](https://github.com/streamich/react-use/compare/v5.13.0...v5.14.0) (2019-03-24)

### Features

* 🎸 keep global state of all useLockBodyScroll hooks ([9bb7047](https://github.com/streamich/react-use/commit/9bb7047))
* add useLockBodyScroll hook ([d990db4](https://github.com/streamich/react-use/commit/d990db4))
2019-03-24 16:51:00 +00:00
Renovate Bot
c170f1e8f6 chore(deps): update storybook monorepo to v5.0.4 2019-03-24 09:44:50 +00:00
Charles Crete
7be31a4a1d Remove dependencies 2019-03-23 15:28:45 -04:00
semantic-release-bot
5fb3b05375 chore(release): 5.13.0 [skip ci]
# [5.13.0](https://github.com/streamich/react-use/compare/v5.12.1...v5.13.0) (2019-03-23)

### Features

* add useScroll hook ([a92e9b2](https://github.com/streamich/react-use/commit/a92e9b2))
2019-03-23 10:26:14 +00:00
semantic-release-bot
e49a50779e chore(release): 5.12.1 [skip ci]
## [5.12.1](https://github.com/streamich/react-use/compare/v5.12.0...v5.12.1) (2019-03-23)

### Bug Fixes

* 🐛 cancel animation frame on un-mount in useWindowScroll() ([bc021ce](https://github.com/streamich/react-use/commit/bc021ce))
2019-03-23 07:43:22 +00:00
semantic-release-bot
7aa279808c chore(release): 5.12.0 [skip ci]
# [5.12.0](https://github.com/streamich/react-use/compare/v5.11.0...v5.12.0) (2019-03-23)

### Features

* add useWindowScroll hook ([076d0de](https://github.com/streamich/react-use/commit/076d0de))
2019-03-23 06:58:49 +00:00
semantic-release-bot
3e50e8111a chore(release): 5.11.0 [skip ci]
# [5.11.0](https://github.com/streamich/react-use/compare/v5.10.0...v5.11.0) (2019-03-22)

### Features

* 🎸 refresh useCss hook ([0116cc9](https://github.com/streamich/react-use/commit/0116cc9))
2019-03-22 19:59:58 +00:00
streamich
0116cc9fed feat: 🎸 refresh useCss hook 2019-03-22 20:51:06 +01:00
semantic-release-bot
19ac56f44a chore(release): 5.10.0 [skip ci]
# [5.10.0](https://github.com/streamich/react-use/compare/v5.9.0...v5.10.0) (2019-03-21)

### Features

* add useUpdateEffect hook ([c2afd23](https://github.com/streamich/react-use/commit/c2afd23))
2019-03-21 13:47:12 +00:00
semantic-release-bot
c8f3198213 chore(release): 5.9.0 [skip ci]
# [5.9.0](https://github.com/streamich/react-use/compare/v5.8.1...v5.9.0) (2019-03-21)

### Features

* add useAsyncRetry hook ([576cf42](https://github.com/streamich/react-use/commit/576cf42))

### Performance Improvements

* remove asyn/await wrapper ([8e3de1c](https://github.com/streamich/react-use/commit/8e3de1c))
2019-03-21 09:18:57 +00:00
semantic-release-bot
4158ced7d3 chore(release): 5.8.1 [skip ci]
## [5.8.1](https://github.com/streamich/react-use/compare/v5.8.0...v5.8.1) (2019-03-20)

### Bug Fixes

* 🐛 use useLayoutEffect() in useCss() to inject CSS quick ([7328f26](https://github.com/streamich/react-use/commit/7328f26))
2019-03-20 17:44:55 +00:00
Renovate Bot
fec8dd3c0a chore(deps): update dependency typescript to v3.3.4000 2019-03-20 01:55:42 +00:00
Va Da
96798e2c39
feat: release useKeyPressEvent() 2019-03-19 22:56:00 +01:00
Renovate Bot
5b1bd7827d chore(deps): update storybook monorepo to v5.0.3 2019-03-18 11:21:16 +00:00