65 Commits

Author SHA1 Message Date
semantic-release-bot
fb2829dbbb chore(release): 5.2.1 [skip ci]
## [5.2.1](https://github.com/streamich/react-use/compare/v5.2.0...v5.2.1) (2019-01-04)

### Bug Fixes

* use function to correctly update state in useToggle ([d854d27](https://github.com/streamich/react-use/commit/d854d27))
2019-01-04 20:32:01 +00:00
semantic-release-bot
dd81ba56f5 chore(release): 5.2.0 [skip ci]
# [5.2.0](https://github.com/streamich/react-use/compare/v5.1.2...v5.2.0) (2019-01-02)

### Features

* 🎸 add useKeyPress hook ([01df885](https://github.com/streamich/react-use/commit/01df885))
* **useKeyPress:** allow complex bindings via key combos ([e53a20f](https://github.com/streamich/react-use/commit/e53a20f))
2019-01-02 15:21:00 +00:00
Va Da
3478bd9974
Merge pull request #84 from ythecombinator/master
feat: 🎸add useKeyPress hook
2019-01-02 16:19:36 +01:00
semantic-release-bot
91cb6c8107 chore(release): 5.1.2 [skip ci]
## [5.1.2](https://github.com/streamich/react-use/compare/v5.1.1...v5.1.2) (2018-12-29)

### Bug Fixes

* reset state when calling useEffect in useAsync ([2f5af2c](https://github.com/streamich/react-use/commit/2f5af2c))
2018-12-29 15:27:33 +00:00
Matheus Albuquerque
6ffebb69fd chore(package): add keyboardjs as a dep 2018-12-26 03:56:39 -03:00
semantic-release-bot
752e92a0f2 chore(release): 5.1.1 [skip ci]
## [5.1.1](https://github.com/streamich/react-use/compare/v5.1.0...v5.1.1) (2018-12-20)

### Bug Fixes

* lock react and react-dom to a fixed version ([#83](https://github.com/streamich/react-use/issues/83)) ([455812d](https://github.com/streamich/react-use/commit/455812d))
2018-12-20 08:56:05 +00:00
Joe Jiang
455812d33a fix: lock react and react-dom to a fixed version (#83)
According to React Blog, the newest version of React v16.7 doesn't include React Hooks, before they tag an extra version for upcoming hooks, we should lock the version to latest react 16.7.0 alpha version, rather than use `next` to specify its version info in `package.json`. More details can be found at https://reactjs.org/blog/2018/12/19/react-v-16-7.html#can-i-use-hooks-yet
2018-12-20 09:54:40 +01:00
semantic-release-bot
d8800b4b42 chore(release): 5.1.0 [skip ci]
# [5.1.0](https://github.com/streamich/react-use/compare/v5.0.0...v5.1.0) (2018-12-19)

### Bug Fixes

* 🐛 just use any for setTimeout because of diff environments ([55673cb](https://github.com/streamich/react-use/commit/55673cb))
* 🐛 memoized does not receive arguments ([244a533](https://github.com/streamich/react-use/commit/244a533))
* 🐛 use Timeout type for build to work ([8c66abe](https://github.com/streamich/react-use/commit/8c66abe))

### Features

* added useDebounce ([91ff6ba](https://github.com/streamich/react-use/commit/91ff6ba))
* pass arguments to memoized callback ([#81](https://github.com/streamich/react-use/issues/81)) ([88dd513](https://github.com/streamich/react-use/commit/88dd513))
2018-12-19 23:03:38 +00:00
semantic-release-bot
3c9a48e1ed chore(release): 5.0.0 [skip ci]
# [5.0.0](https://github.com/streamich/react-use/compare/v4.11.1...v5.0.0) (2018-12-17)

### Features

* 🎸 list all useAsync state props so that TS dont complain ([7c1b107](https://github.com/streamich/react-use/commit/7c1b107))
* 🎸 remove experimental hooks ([533e26f](https://github.com/streamich/react-use/commit/533e26f))
* use discriminated union in useAsync ([966af4a](https://github.com/streamich/react-use/commit/966af4a))

### BREAKING CHANGES

* useRenderProp and useAsync are removed
2018-12-17 17:47:47 +00:00
ZHAO Jinxiang
966af4aaee feat: use discriminated union in useAsync 2018-12-17 21:12:38 +08:00
semantic-release-bot
8d3dbd417f chore(release): 4.11.1 [skip ci]
## [4.11.1](https://github.com/streamich/react-use/compare/v4.11.0...v4.11.1) (2018-12-16)

### Bug Fixes

* synchronously re-render bug of useRaf hook ([#77](https://github.com/streamich/react-use/issues/77)) ([5d74348](https://github.com/streamich/react-use/commit/5d74348))
2018-12-16 10:07:11 +00:00
semantic-release-bot
6b585f01b9 chore(release): 4.11.0 [skip ci]
# [4.11.0](https://github.com/streamich/react-use/compare/v4.10.0...v4.11.0) (2018-12-05)

### Features

* 🎸 add useRefMounted hook ([dfb0510](https://github.com/streamich/react-use/commit/dfb0510))
2018-12-05 14:33:12 +00:00
streamich
3b135d9d1d chore: 🤖 remove react-dom typings 2018-12-05 15:29:15 +01:00
streamich
f755001de2 chore: 🤖 upgrade React 2018-12-05 15:09:43 +01:00
semantic-release-bot
6c4bcfd22a chore(release): 4.10.0 [skip ci]
# [4.10.0](https://github.com/streamich/react-use/compare/v4.9.0...v4.10.0) (2018-11-10)

### Features

* bump useWait ([124ef99](https://github.com/streamich/react-use/commit/124ef99))
2018-11-10 22:34:42 +00:00
Fatih Kadir Akın
124ef993d9 feat: bump useWait 2018-11-10 23:32:44 +01:00
semantic-release-bot
6f86b9e4e1 chore(release): 4.9.0 [skip ci]
# [4.9.0](https://github.com/streamich/react-use/compare/v4.8.0...v4.9.0) (2018-11-06)

### Features

* add useSessionStorage hook ([eca432a](https://github.com/streamich/react-use/commit/eca432a))
* add useWait hook ([61c6058](https://github.com/streamich/react-use/commit/61c6058))
2018-11-06 20:53:46 +00:00
Fatih Kadir Akın
61c6058b5d feat: add useWait hook 2018-11-06 21:49:47 +01:00
semantic-release-bot
a539c7da7a chore(release): 4.8.0 [skip ci]
# [4.8.0](https://github.com/streamich/react-use/compare/v4.7.0...v4.8.0) (2018-11-02)

### Features

* allow useSetState setter to accept function ([bfd114a](https://github.com/streamich/react-use/commit/bfd114a))
2018-11-02 07:51:15 +00:00
semantic-release-bot
12726d4338 chore(release): 4.7.0 [skip ci]
# [4.7.0](https://github.com/streamich/react-use/compare/v4.6.0...v4.7.0) (2018-10-30)

### Features

* 🎸 add useHoverDirty hook ([c2aee59](https://github.com/streamich/react-use/commit/c2aee59))
2018-10-30 17:21:53 +00:00
semantic-release-bot
0c7d17283b chore(release): 4.6.0 [skip ci]
# [4.6.0](https://github.com/streamich/react-use/compare/v4.5.0...v4.6.0) (2018-10-30)

### Features

* 🎸 implement useLocalStorage without events ([d211722](https://github.com/streamich/react-use/commit/d211722))
2018-10-30 17:03:59 +00:00
streamich
4de7819058 chore: 🤖 playing with useAdopt for stateful components 2018-10-30 17:44:58 +01:00
semantic-release-bot
f101ae52dd chore(release): 4.5.0 [skip ci]
# [4.5.0](https://github.com/streamich/react-use/compare/v4.4.0...v4.5.0) (2018-10-29)

### Features

* 🎸 add useAdopt hook ([91bee9a](https://github.com/streamich/react-use/commit/91bee9a))
* 🎸 add useRenderProp hook ([2d85c61](https://github.com/streamich/react-use/commit/2d85c61))
2018-10-29 22:11:29 +00:00
semantic-release-bot
5fe7925cf0 chore(release): 4.4.0 [skip ci]
# [4.4.0](https://github.com/streamich/react-use/compare/v4.3.0...v4.4.0) (2018-10-29)

### Features

* 🎸 add useCallbag hook ([ead142c](https://github.com/streamich/react-use/commit/ead142c))
2018-10-29 21:10:37 +00:00
streamich
ead142c6fb feat: 🎸 add useCallbag hook 2018-10-29 22:07:54 +01:00
semantic-release-bot
2a43c37350 chore(release): 4.3.0 [skip ci]
# [4.3.0](https://github.com/streamich/react-use/compare/v4.2.0...v4.3.0) (2018-10-29)

### Features

* 🎸 add useOutsideClick hook ([90d2c22](https://github.com/streamich/react-use/commit/90d2c22))
2018-10-29 20:51:54 +00:00
streamich
90d2c224f6 feat: 🎸 add useOutsideClick hook 2018-10-29 21:47:06 +01:00
semantic-release-bot
0ea533fd4d chore(release): 4.2.0 [skip ci]
# [4.2.0](https://github.com/streamich/react-use/compare/v4.1.0...v4.2.0) (2018-10-29)

### Features

* 🎸 add useVideo hook ([ff05419](https://github.com/streamich/react-use/commit/ff05419))
* 🎸 allow to pass React <video> el in useVideo and useAudio ([8670c74](https://github.com/streamich/react-use/commit/8670c74))
2018-10-29 20:25:20 +00:00
semantic-release-bot
78514a1dd4 chore(release): 4.1.0 [skip ci]
# [4.1.0](https://github.com/streamich/react-use/compare/v4.0.0...v4.1.0) (2018-10-29)

### Features

* 🎸 add createMemo hook factory ([8730eaa](https://github.com/streamich/react-use/commit/8730eaa))
2018-10-29 19:56:51 +00:00
semantic-release-bot
25f6ea9954 chore(release): 4.0.0 [skip ci]
# [4.0.0](https://github.com/streamich/react-use/compare/v3.1.0...v4.0.0) (2018-10-29)

### Features

* 🎸 add useNumber alias ([a58a4a7](https://github.com/streamich/react-use/commit/a58a4a7))
* 🎸 improve useCounter interface ([395e82b](https://github.com/streamich/react-use/commit/395e82b))

### BREAKING CHANGES

* useCounter interface changed
2018-10-29 17:49:14 +00:00
semantic-release-bot
9a1e9ce9fa chore(release): 3.1.0 [skip ci]
# [3.1.0](https://github.com/streamich/react-use/compare/v3.0.0...v3.1.0) (2018-10-29)

### Features

* 🎸 add useGetSetState ([dcd1013](https://github.com/streamich/react-use/commit/dcd1013))

### Performance Improvements

* ️ wrape useGetSetState callbacks in useCallback ([3c1e57d](https://github.com/streamich/react-use/commit/3c1e57d))
2018-10-29 16:48:13 +00:00
semantic-release-bot
53cf6eefb6 chore(release): 3.0.0 [skip ci]
# [3.0.0](https://github.com/streamich/react-use/compare/v2.3.0...v3.0.0) (2018-10-29)

### Features

* 🎸 accept any value type in useToggle and cast it to bool ([869f767](https://github.com/streamich/react-use/commit/869f767))

### BREAKING CHANGES

* now useToggle and useBoolean accept any value type and cast it to
boolean.
2018-10-29 14:35:50 +00:00
semantic-release-bot
8a9d05ef74 chore(release): 2.3.0 [skip ci]
# [2.3.0](https://github.com/streamich/react-use/compare/v2.2.0...v2.3.0) (2018-10-29)

### Features

* 🎸 add useBoolean hook ([ce6de24](https://github.com/streamich/react-use/commit/ce6de24))
2018-10-29 14:30:18 +00:00
semantic-release-bot
8e81e8fe6b chore(release): 2.2.0 [skip ci]
# [2.2.0](https://github.com/streamich/react-use/compare/v2.1.0...v2.2.0) (2018-10-29)

### Features

* 🎸 add useGetSet hook ([bfc30b9](https://github.com/streamich/react-use/commit/bfc30b9))
* 🎸 add useUpdate hook ([c00f308](https://github.com/streamich/react-use/commit/c00f308))
2018-10-29 14:10:33 +00:00
Va Da
58a3dbe5e6
chore: remove .git file extension from repo URL [skip ci] 2018-10-28 23:27:57 +01:00
semantic-release-bot
71f88a9c2d chore(release): 2.1.0 [skip ci]
# [2.1.0](https://github.com/streamich/react-use.git/compare/v2.0.0...v2.1.0) (2018-10-28)

### Features

* 🎸 add useObservable ([711e831](https://github.com/streamich/react-use.git/commit/711e831))
2018-10-28 22:25:11 +00:00
streamich
711e8315ac feat: 🎸 add useObservable 2018-10-28 23:22:46 +01:00
semantic-release-bot
692bb0356a chore(release): 2.0.0 [skip ci]
# [2.0.0](https://github.com/streamich/react-use.git/compare/v1.0.0...v2.0.0) (2018-10-28)

### Features

* 🎸 change API for useToggle hook ([#16](https://github.com/streamich/react-use.git/issues/16)) ([5a6da18](https://github.com/streamich/react-use.git/commit/5a6da18))

### BREAKING CHANGES

* useToggle interface changed
2018-10-28 21:25:47 +00:00
Pavel Ivanoff
5a6da18e8a feat: 🎸 change API for useToggle hook (#16)
It's better option to decrease useToggle params destruction and keep flexibility

BREAKING CHANGE: useToggle interface changed
2018-10-28 22:24:48 +01:00
semantic-release-bot
fd40601411 chore(release): 1.0.0 [skip ci]
# 1.0.0 (2018-10-28)

### chore

* 🤖 release v1 ([4236cf0](https://github.com/streamich/react-use.git/commit/4236cf0))

### Continuous Integration

* 🎡 store CircleCI artifacts, add git-cz ([690dd5e](https://github.com/streamich/react-use.git/commit/690dd5e))

### Features

* 🎸 add useAsync hook ([258d696](https://github.com/streamich/react-use.git/commit/258d696))
* 🎸 add useAudio hook ([4336aa1](https://github.com/streamich/react-use.git/commit/4336aa1))
* 🎸 add useBattery hook ([73ce535](https://github.com/streamich/react-use.git/commit/73ce535))
* 🎸 add useCounter hook ([79e5b8c](https://github.com/streamich/react-use.git/commit/79e5b8c))
* 🎸 add useCss hook ([2c0a7e4](https://github.com/streamich/react-use.git/commit/2c0a7e4))
* 🎸 add useFavicon hook ([ab1739a](https://github.com/streamich/react-use.git/commit/ab1739a))
* 🎸 add useGeolocation hook ([13a7326](https://github.com/streamich/react-use.git/commit/13a7326))
* 🎸 add useHover hook ([406af20](https://github.com/streamich/react-use.git/commit/406af20))
* 🎸 add useIdle hook ([74d3ece](https://github.com/streamich/react-use.git/commit/74d3ece))
* 🎸 add useLifecycles hook ([f99c89f](https://github.com/streamich/react-use.git/commit/f99c89f))
* 🎸 add useList hook ([4bea508](https://github.com/streamich/react-use.git/commit/4bea508))
* 🎸 add useLocation hook ([46a8e2c](https://github.com/streamich/react-use.git/commit/46a8e2c))
* 🎸 add useLogger hook ([7c38b75](https://github.com/streamich/react-use.git/commit/7c38b75))
* 🎸 add useMap hook ([6509c25](https://github.com/streamich/react-use.git/commit/6509c25))
* 🎸 add useMedia hook ([e1cc9ab](https://github.com/streamich/react-use.git/commit/e1cc9ab))
* 🎸 add useMediaDevices hook ([4ea0277](https://github.com/streamich/react-use.git/commit/4ea0277))
* 🎸 add useMotion hook ([91eb4ea](https://github.com/streamich/react-use.git/commit/91eb4ea))
* 🎸 add useMount and useUnmount hooks ([63a1444](https://github.com/streamich/react-use.git/commit/63a1444))
* 🎸 add useNetwork hook ([5881fa6](https://github.com/streamich/react-use.git/commit/5881fa6))
* 🎸 add useOrientation hook ([c533b97](https://github.com/streamich/react-use.git/commit/c533b97))
* 🎸 add useRaf hook ([26b2593](https://github.com/streamich/react-use.git/commit/26b2593))
* 🎸 add useSetState hook ([972541d](https://github.com/streamich/react-use.git/commit/972541d))
* 🎸 add useSize hook ([620b171](https://github.com/streamich/react-use.git/commit/620b171))
* 🎸 add useSpeech hook ([3b971a2](https://github.com/streamich/react-use.git/commit/3b971a2))
* 🎸 add useSprgin hook ([b4fe5b0](https://github.com/streamich/react-use.git/commit/b4fe5b0))
* 🎸 add useTimeout hook ([86f094e](https://github.com/streamich/react-use.git/commit/86f094e))
* 🎸 add useTitle hook ([1bff6d8](https://github.com/streamich/react-use.git/commit/1bff6d8))
* 🎸 add useToggle() hook ([a36dceb](https://github.com/streamich/react-use.git/commit/a36dceb))
* 🎸 add useTween hook ([877343e](https://github.com/streamich/react-use.git/commit/877343e))
* 🎸 add useWindowSize() hook ([2c46899](https://github.com/streamich/react-use.git/commit/2c46899))
* 🎸 do work on useLocaStorage ([2541716](https://github.com/streamich/react-use.git/commit/2541716))
* 🎸 improve useSize, pass through state to the element ([5b1356a](https://github.com/streamich/react-use.git/commit/5b1356a))

### BREAKING CHANGES

* make semantic-release bump version
* Released v1.0.0
2018-10-28 21:20:40 +00:00
streamich
690dd5e327 ci: 🎡 store CircleCI artifacts, add git-cz
BREAKING CHANGE: make semantic-release bump version
2018-10-28 22:03:25 +01:00
streamich
22c4dc3f86 ci: 🎡 add semantic-release 2018-10-28 21:57:40 +01:00
streamich
501955a1fd ci: 🎡 add CircleCI config 2018-10-28 21:56:01 +01:00
streamich
5728cc958c docs: ✏️ add docs to Storybook demos 2018-10-28 15:11:43 +01:00
streamich
59a9407876 chore: 🤖 publish static Storybook 2018-10-28 14:32:06 +01:00
streamich
e0177d9d57 chore: 🤖 release v1.7.0 2018-10-28 12:46:22 +01:00
streamich
2e27efc4c1 chore: 🤖 release v1.6.0 2018-10-28 10:29:51 +01:00
streamich
1fb752892c chore: 🤖 release v1.5.0 2018-10-28 00:11:22 +02:00
streamich
e5722032af chore: 🤖 release v1.4.0 2018-10-27 23:49:03 +02:00
streamich
d3cc7a5921 chore: 🤖 release v1.3.0 2018-10-27 21:53:52 +02:00