252 Commits

Author SHA1 Message Date
Mohamed Magdy
dcadfef74c add error state to useGeolocation state 2019-02-19 11:50:04 +02:00
semantic-release-bot
15771ef49e chore(release): 5.3.1 [skip ci]
## [5.3.1](https://github.com/streamich/react-use/compare/v5.3.0...v5.3.1) (2019-02-17)

### Bug Fixes

* 🐛 fix typings in useOrientation sensor ([afbacac](https://github.com/streamich/react-use/commit/afbacac))
* 🐛 fix useSetState after React update ([524abe5](https://github.com/streamich/react-use/commit/524abe5)), closes [#107](https://github.com/streamich/react-use/issues/107) [#107](https://github.com/streamich/react-use/issues/107)
* useOrientation breaks in some devices ([d89bd54](https://github.com/streamich/react-use/commit/d89bd54))
v5.3.1
2019-02-17 08:48:53 +00:00
Va Da
de933cf516
Merge pull request #108 from streamich/fix-usesetstate
Fix usesetstate
2019-02-17 09:47:25 +01:00
streamich
524abe5702 fix: 🐛 fix useSetState after React update
As reported in #107

Issues: #107
2019-02-17 09:19:40 +01:00
streamich
afbacace24 fix: 🐛 fix typings in useOrientation sensor 2019-02-17 09:14:25 +01:00
Va Da
d89bd54cba
fix: useOrientation breaks in some devices 2019-02-11 09:06:37 +01:00
ShizukuIchi
77ebef5433 fix useOrientation bug 2019-02-11 12:40:44 +08:00
Va Da
07baffdfad
Merge pull request #104 from gavingregory/fix-keypress-docs
docs(useKeyPress): renamed keyboardjs -> useKeyboardJS
2019-02-10 18:18:05 +01:00
Gavin Gregory
6655558ed9 docs(useKeyPress): renamed keyboardjs -> useKeyboardJS 2019-02-10 12:08:27 -05:00
semantic-release-bot
77ef00510d chore(release): 5.3.0 [skip ci]
# [5.3.0](https://github.com/streamich/react-use/compare/v5.2.3...v5.3.0) (2019-02-07)

### Features

* Add updateAt method for useList ([ad05609](https://github.com/streamich/react-use/commit/ad05609))
v5.3.0
2019-02-07 11:58:34 +00:00
Va Da
ad056092a3
feat: Add updateAt method for useList 2019-02-07 12:57:04 +01:00
semantic-release-bot
682a271ffe chore(release): 5.2.3 [skip ci]
## [5.2.3](https://github.com/streamich/react-use/compare/v5.2.2...v5.2.3) (2019-02-07)

### Bug Fixes

* 🐛 fix build and update React deps ([27e26a0](https://github.com/streamich/react-use/commit/27e26a0))
v5.2.3
2019-02-07 11:54:53 +00:00
Va Da
60107ca0d4
Merge pull request #100 from streamich/fix-build
fix: 🐛 fix build and update React deps
2019-02-07 12:53:34 +01:00
streamich
27e26a0135 fix: 🐛 fix build and update React deps 2019-02-07 12:51:53 +01:00
Va Da
07112cb14c
Merge pull request #97 from donavon/patch-1
update to release React 16.8.0
2019-02-07 12:35:58 +01:00
Alon Niv
5c72b7c720
Add updateAt method for useList 2019-02-07 09:54:11 +02:00
Donavon West
d09f101ab3
update to release React 16.8.0 2019-02-06 21:01:13 -05:00
Va Da
fa54e80ecb
docs: Hooks are finally in stable release 🥂 2019-02-07 01:14:43 +01:00
semantic-release-bot
87ca11680b chore(release): 5.2.2 [skip ci]
## [5.2.2](https://github.com/streamich/react-use/compare/v5.2.1...v5.2.2) (2019-02-02)

### Bug Fixes

* release useDebounce and useToggle fixes ([12ad880](https://github.com/streamich/react-use/commit/12ad880))
v5.2.2
2019-02-02 14:53:25 +00:00
Va Da
12ad8806ad
fix: release useDebounce and useToggle fixes 2019-02-02 15:52:12 +01:00
Va Da
1a3ed69109
Merge pull request #95 from benneq/master
rerender optimizations for useToggle and useDebounce
2019-02-02 15:03:52 +01:00
Benjamin Makus
cab921fdaa useDebounce rerender optimization 2019-02-02 13:40:10 +01:00
Benjamin Makus
454012387b useToggle rerender optimization 2019-02-02 13:40:04 +01:00
Va Da
196c291316
Merge pull request #91 from balazsorban44/patch-1
Fix typo in README.md
2019-01-24 17:33:26 +01:00
Balázs Orbán
3e0f442a85
docs: fix typo 2019-01-20 00:58:52 +01:00
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))
v5.2.1
2019-01-04 20:32:01 +00:00
Va Da
d854d27208
fix: use function to correctly update state in useToggle 2019-01-04 21:30:39 +01: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))
v5.2.0
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
Matheus Albuquerque
78d52c1c47 enhancement(useKeyPress): skip effects 2019-01-02 11:58:49 -03: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))
v5.1.2
2018-12-29 15:27:33 +00:00
hahabazinga
2f5af2ca66 fix: reset state when calling useEffect in useAsync 2018-12-29 16:26:15 +01:00
Va Da
2b3daef87a
docs: use mdash instead of hyphen 2018-12-26 12:44:55 +01:00
Matheus Albuquerque
7f163285d9 docs(README): add useKeyPress to the list 2018-12-26 04:27:36 -03:00
Matheus Albuquerque
6a1933b8ed docs(useKeyPress): update samples and docs on how to use key combos 2018-12-26 04:04:08 -03:00
Matheus Albuquerque
e53a20fe5b feat(useKeyPress): allow complex bindings via key combos 2018-12-26 03:58:37 -03:00
Matheus Albuquerque
6ffebb69fd chore(package): add keyboardjs as a dep 2018-12-26 03:56:39 -03:00
Matheus Albuquerque
01df885b9d feat: 🎸 add useKeyPress hook 2018-12-26 02:49:06 -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))
v5.1.1
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))
v5.1.0
2018-12-19 23:03:38 +00:00
streamich
55673cb2e8 fix: 🐛 just use any for setTimeout because of diff environments 2018-12-20 00:02:05 +01:00
streamich
8c66abe9ca fix: 🐛 use Timeout type for build to work 2018-12-19 23:06:01 +01:00
streamich
244a533d33 fix: 🐛 memoized does not receive arguments 2018-12-19 23:04:18 +01:00
Va Da
fdcd92dec3
docs: make useDebounce description one line 2018-12-19 17:10:52 +01:00
Va Da
2c884dc79f
Merge pull request #82 from Jivings/useDebounce
feat: added useDebounce hook
2018-12-19 17:09:37 +01:00
James Ivings
88dd513624 feat: pass arguments to memoized callback (#81) 2018-12-19 17:07:26 +01:00
James Ivings
a082d59e13
chore: updated readme 2018-12-18 23:00:02 -05:00
James Ivings
91ff6ba376
feat: added useDebounce 2018-12-18 18:12:24 -05: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
v5.0.0
2018-12-17 17:47:47 +00:00