845 Commits

Author SHA1 Message Date
Ward Oosterlijnck
f1c0987f87 Example with dependency with a delay value slider 2019-07-16 19:47:50 +10:00
Ward Oosterlijnck
3a4f639740 Update useAsync docs 2019-07-16 19:39:35 +10:00
semantic-release-bot
18b7c99b2d chore(release): 9.11.1 [skip ci]
## [9.11.1](https://github.com/streamich/react-use/compare/v9.11.0...v9.11.1) (2019-07-16)

### Bug Fixes

* createReducer stable dispatch function identity ([9780545](https://github.com/streamich/react-use/commit/9780545))
v9.11.1
2019-07-16 08:42:16 +00:00
Andrew Bazhanov
9780545d6e fix: createReducer stable dispatch function identity
stable dispatch function identity so it won’t change on re-renders
2019-07-16 18:40:08 +10:00
Renovate Bot
f2b38cabd8 chore(deps): update dependency fork-ts-checker-webpack-plugin to v1.4.2 2019-07-15 10:24:46 +00:00
Renovate Bot
92084c6ef1 chore(deps): update dependency fork-ts-checker-webpack-plugin to v1.4.1 2019-07-14 20:38:36 +00:00
Renovate Bot
c8c023e764 chore(deps): update dependency fork-ts-checker-webpack-plugin to v1.4.0 2019-07-12 06:20:28 +00:00
semantic-release-bot
d1f7d9c5f1 chore(release): 9.11.0 [skip ci]
# [9.11.0](https://github.com/streamich/react-use/compare/v9.10.0...v9.11.0) (2019-07-11)

### Features

* useMedia - initialize state with call to media query ([#454](https://github.com/streamich/react-use/issues/454)) ([ab81897](https://github.com/streamich/react-use/commit/ab81897))
v9.11.0
2019-07-11 14:13:14 +00:00
Vadim Dalecky
ab81897958
feat: useMedia - initialize state with call to media query (#454) 2019-07-11 16:10:11 +02:00
Matt Leonowicz
eeb55e4927
useMedia - initialize state with call to media query
Initializing state with result from call to window.matchMedia avoids possible initial flicker of returned value, when media query matched initially
2019-07-11 15:19:17 +02:00
Vadim Dalecky
c4f5f16120
test: typo in useObservable test 2019-07-10 15:27:50 +02:00
semantic-release-bot
058830f8ef chore(release): 9.10.0 [skip ci]
# [9.10.0](https://github.com/streamich/react-use/compare/v9.9.0...v9.10.0) (2019-07-10)

### Features

* expose useIsomorphicLayoutEffect + docs ([#451](https://github.com/streamich/react-use/issues/451)) ([8dcbbf1](https://github.com/streamich/react-use/commit/8dcbbf1))
v9.10.0
2019-07-10 13:06:59 +00:00
Vadim Dalecky
8dcbbf16cf
feat: expose useIsomorphicLayoutEffect + docs (#451)
Export useIsomorphicLayoutEffect + docs
2019-07-10 15:04:39 +02:00
Ward Oosterlijnck
334a5a5ab1 docs: usePermission wording 2019-07-10 21:34:18 +10:00
semantic-release-bot
caf5451b1c chore(release): 9.9.0 [skip ci]
# [9.9.0](https://github.com/streamich/react-use/compare/v9.8.3...v9.9.0) (2019-07-10)

### Features

* add usePermission ([4da40b9](https://github.com/streamich/react-use/commit/4da40b9))
* usePermission ([588a0c5](https://github.com/streamich/react-use/commit/588a0c5))
v9.9.0
2019-07-10 11:30:52 +00:00
Ward
588a0c5d23
feat: usePermission
Hook to query permission status of browser API's
2019-07-10 21:28:09 +10:00
Ward Oosterlijnck
4654efc3d4 add useIsomorphicLayoutEffect to readme 2019-07-10 20:57:13 +10:00
Ward Oosterlijnck
02ed947c5d docs: useDeepCompareEffect category 2019-07-10 20:53:31 +10:00
Ward Oosterlijnck
192c9838b3 Export useIsomorphicLayoutEffect + docs 2019-07-10 20:47:52 +10:00
semantic-release-bot
a995e091c2 chore(release): 9.8.3 [skip ci]
## [9.8.3](https://github.com/streamich/react-use/compare/v9.8.2...v9.8.3) (2019-07-10)

### Bug Fixes

* useLocalStorage types for functional updates ([e2b8278](https://github.com/streamich/react-use/commit/e2b8278))
v9.8.3
2019-07-10 10:17:45 +00:00
Ward
e2b8278812
fix: useLocalStorage types for functional updates
Fix useLocalStorage types for functional updates
2019-07-10 20:15:14 +10:00
Renovate Bot
4730da61e4 chore(deps): update babel monorepo to v7.5.4 2019-07-09 21:52:26 +00:00
Renovate Bot
9db8af5b87 chore(deps): update dependency @babel/preset-env to v7.5.3 2019-07-09 17:30:31 +00:00
Renovate Bot
9c6290eef8 chore(deps): update dependency typescript to v3.5.3 2019-07-08 23:58:37 +00:00
Renovate Bot
3528c448f2 chore(deps): update dependency @babel/preset-env to v7.5.2 2019-07-08 21:52:20 +00:00
semantic-release-bot
b55427ed59 chore(release): 9.8.2 [skip ci]
## [9.8.2](https://github.com/streamich/react-use/compare/v9.8.1...v9.8.2) (2019-07-08)

### Bug Fixes

* **useSize:** prevents accessing iframe's property when it's not defined ([c9b5cdc](https://github.com/streamich/react-use/commit/c9b5cdc)), closes [#442](https://github.com/streamich/react-use/issues/442)
* **useSize:** prevents accessing iframe's property when it's not… ([#443](https://github.com/streamich/react-use/issues/443)) ([8f04e8f](https://github.com/streamich/react-use/commit/8f04e8f))
* iframe can be null ([a9e3bab](https://github.com/streamich/react-use/commit/a9e3bab))
v9.8.2
2019-07-08 09:46:12 +00:00
streamich
3f335b2ef1 style: 💄 fix Prettier "error" 2019-07-08 11:42:44 +02:00
Vadim Dalecky
a9e3bab280
fix: iframe can be null 2019-07-07 15:42:38 +02:00
Vadim Dalecky
8f04e8fd5c
fix(useSize): prevents accessing iframe's property when it's not… (#443)
fix(useSize): prevents accessing iframe's property when it's not defined
2019-07-05 00:59:49 +02:00
Manoj Bahuguna
c9b5cdca42 fix(useSize): prevents accessing iframe's property when it's not defined
ref #442
2019-07-04 18:04:51 +00:00
Renovate Bot
cf68e36ad5 chore(deps): update babel monorepo to v7.5.0 2019-07-04 14:49:32 +00:00
Charles-Axel Dein
5f5376c64e
Fix useLocalStorage types for functional updates
Fixes #438
2019-07-04 09:51:25 +02:00
Renovate Bot
a247692fd6 chore(deps): update dependency @types/react to v16.8.23 2019-07-03 18:59:39 +00:00
allen
e0618815af modify text 2019-07-02 13:08:53 +08:00
Renovate Bot
b5944c0d78 chore(deps): update dependency @semantic-release/git to v7.0.16 2019-07-01 18:27:32 +00:00
semantic-release-bot
bb6f16b5f3 chore(release): 9.8.1 [skip ci]
## [9.8.1](https://github.com/streamich/react-use/compare/v9.8.0...v9.8.1) (2019-06-30)

### Bug Fixes

* lint fixes via lint:fix ([7ce8e4f](https://github.com/streamich/react-use/commit/7ce8e4f))
* useMap uses prevMap state which is safer ([3554f79](https://github.com/streamich/react-use/commit/3554f79))
* **useMap:** remove now also uses prevMap state to not overwrite or lose state ([0a59869](https://github.com/streamich/react-use/commit/0a59869))
v9.8.1
2019-06-30 10:49:09 +00:00
streamich
409dbdca38 style: 💄 run Prettier 2019-06-30 12:46:19 +02:00
Vadim Dalecky
8c2c4ef3e8
useMap uses previous map state upon set and remove (#423)
useMap uses previous map state upon set and remove
2019-06-30 12:42:47 +02:00
semantic-release-bot
62d531748c chore(release): 9.8.0 [skip ci]
# [9.8.0](https://github.com/streamich/react-use/compare/v9.7.2...v9.8.0) (2019-06-30)

### Bug Fixes

* 🐛 fix test and add pre-push hook ([1353b6c](https://github.com/streamich/react-use/commit/1353b6c))

### Features

* add voice option in use speech ([6dc2dd5](https://github.com/streamich/react-use/commit/6dc2dd5))
* add voice option in useSpeech ([#422](https://github.com/streamich/react-use/issues/422)) ([c32d02b](https://github.com/streamich/react-use/commit/c32d02b))
v9.8.0
2019-06-30 10:41:43 +00:00
streamich
1353b6c125 fix: 🐛 fix test and add pre-push hook 2019-06-30 12:37:00 +02:00
Vadim Dalecky
c32d02be02
feat: add voice option in useSpeech (#422)
feat: add voice option in useSpeech
2019-06-30 12:23:07 +02:00
Renovate Bot
1df06773fe chore(deps): update dependency react-spring to v8.0.27 2019-06-30 09:40:21 +00:00
Renovate Bot
ac20b2a487 chore(deps): update semantic-release monorepo 2019-06-28 20:54:27 +00:00
nmccready
0a59869e83 fix(useMap): remove now also uses prevMap state to not overwrite or lose state 2019-06-27 11:56:14 -04:00
semantic-release-bot
0ba46f9cea chore(release): 9.7.2 [skip ci]
## [9.7.2](https://github.com/streamich/react-use/compare/v9.7.1...v9.7.2) (2019-06-27)

### Bug Fixes

* save to localStorage only when state changes ([ba6d375](https://github.com/streamich/react-use/commit/ba6d375))
* use correct list variable in useList ([#412](https://github.com/streamich/react-use/issues/412)) ([b937296](https://github.com/streamich/react-use/commit/b937296))
v9.7.2
2019-06-27 10:51:45 +00:00
Vadim Dalecky
11aaf32824
Merge pull request #427 from streamich/prettier
style: 💄 run Prettier
2019-06-27 12:49:31 +02:00
streamich
f0b8053700 style: 💄 run Prettier 2019-06-27 12:48:58 +02:00
nmccready
7ce8e4f962 fix: lint fixes via lint:fix 2019-06-26 17:01:54 -04:00
nmccready
3554f79449 fix: useMap uses prevMap state which is safer 2019-06-26 16:59:01 -04:00
allen
6dc2dd572b feat: add voice option in use speech 2019-06-27 01:19:02 +08:00