134 Commits

Author SHA1 Message Date
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
Renovate Bot
7eaca74648 chore(deps): update storybook monorepo to v5.0.2 2019-03-17 06:45:05 +00:00
Renovate Bot
507000f7ea chore(deps): update dependency react-spring to v6.1.10 2019-03-15 22:25:27 +00:00
Renovate Bot
1086a7a5ec chore(deps): pin dependencies 2019-03-15 19:46:39 +00:00
semantic-release-bot
c0bf881539 chore(release): 5.7.1 [skip ci]
## [5.7.1](https://github.com/streamich/react-use/compare/v5.7.0...v5.7.1) (2019-03-15)

### Bug Fixes

* 🐛 allow every promise in usePromise() hook have own type ([d60fef7](https://github.com/streamich/react-use/commit/d60fef7))
2019-03-15 14:47:48 +00:00
semantic-release-bot
f618352b71 chore(release): 5.7.0 [skip ci]
# [5.7.0](https://github.com/streamich/react-use/compare/v5.6.0...v5.7.0) (2019-03-15)

### Bug Fixes

* 🐛 fix TypeScript typings for usePromise() ([ba0acb6](https://github.com/streamich/react-use/commit/ba0acb6))

### Features

* 🎸 add usePromise() hook ([aad368b](https://github.com/streamich/react-use/commit/aad368b))
2019-03-15 14:29:32 +00:00
streamich
a2a6fe326a chore: 🤖 split display secions in Storybook left column 2019-03-15 14:46:00 +01:00
streamich
86d7bc89ec chore: 🤖 upgrade Storybook to v5, disable TypeScript type check 2019-03-15 14:29:28 +01:00
semantic-release-bot
9063f4d1b2 chore(release): 5.6.0 [skip ci]
# [5.6.0](https://github.com/streamich/react-use/compare/v5.5.6...v5.6.0) (2019-03-13)

### Features

* transpile down to ES5 ([61382e3](https://github.com/streamich/react-use/commit/61382e3))
2019-03-13 20:03:08 +00:00
semantic-release-bot
e990f0c839 chore(release): 5.5.6 [skip ci]
## [5.5.6](https://github.com/streamich/react-use/compare/v5.5.5...v5.5.6) (2019-03-11)

### Bug Fixes

* correct createMemo.md ([4e2d639](https://github.com/streamich/react-use/commit/4e2d639))
* correct createMemo.story ([9c8e093](https://github.com/streamich/react-use/commit/9c8e093))
2019-03-11 07:48:11 +00:00
Renovate Bot
986b297847 chore(deps): update react monorepo to v16.8.4 2019-03-06 00:54:50 +00:00
semantic-release-bot
7085cc9332 chore(release): 5.5.5 [skip ci]
## [5.5.5](https://github.com/streamich/react-use/compare/v5.5.4...v5.5.5) (2019-03-04)

### Bug Fixes

* 🐛 make useWindowSize work on server ([8f93853](https://github.com/streamich/react-use/commit/8f93853))
2019-03-04 16:45:33 +00:00
semantic-release-bot
9349aa65b3 chore(release): 5.5.4 [skip ci]
## [5.5.4](https://github.com/streamich/react-use/compare/v5.5.3...v5.5.4) (2019-02-25)

### Bug Fixes

* 🐛 new React behaviour needs useState to set something ([e926faf](https://github.com/streamich/react-use/commit/e926faf)), closes [#128](https://github.com/streamich/react-use/issues/128)
2019-02-25 11:28:05 +00:00
semantic-release-bot
20e4100b91 chore(release): 5.5.3 [skip ci]
## [5.5.3](https://github.com/streamich/react-use/compare/v5.5.2...v5.5.3) (2019-02-25)

### Bug Fixes

* **deps:** update dependency use-callbag to ^0.2.0 ([4d49d0b](https://github.com/streamich/react-use/commit/4d49d0b))
2019-02-25 01:56:42 +00:00
Renovate Bot
4d49d0b61d fix(deps): update dependency use-callbag to ^0.2.0 2019-02-25 01:55:06 +00:00