1984 Commits

Author SHA1 Message Date
Renovate Bot
80af64bb88 chore(deps): update dependency keyboardjs to v2.6.2 2020-06-05 05:31:38 +00:00
Renovate Bot
3164fc1f9c chore(deps): update dependency @testing-library/react-hooks to v3.3.0 2020-06-05 00:32:30 +00:00
Renovate Bot
a9fb910bff chore(deps): update dependency @testing-library/react to v10.2.0 2020-06-04 16:38:00 +00:00
Renovate Bot
1eea7be1b8 chore(deps): update dependency lint-staged to v10.2.9 2020-06-04 13:46:25 +00:00
Renovate Bot
4101519a24 chore(deps): update dependency @testing-library/react to v10.1.0 2020-06-04 03:41:26 +00:00
Renovate Bot
89e284a395 chore(deps): update dependency lint-staged to v10.2.8 2020-06-03 17:35:06 +00:00
Renovate Bot
18afc2ea4c chore(deps): update dependency @testing-library/react to v10.0.6 2020-06-02 23:22:47 +00:00
Renovate Bot
63b4879395 chore(deps): update node.js to v10.21.0 2020-06-02 21:37:03 +00:00
Renovate Bot
0e8036f6a5 chore(deps): update dependency @testing-library/react to v10.0.5 2020-06-02 01:35:25 +00:00
Renovate Bot
3969dc64fb chore(deps): update dependency ts-jest to v26.1.0 2020-05-30 23:59:03 +00:00
Renovate Bot
a3f7042471 chore(deps): update babel monorepo to v7.10.2 2020-05-30 22:20:57 +00:00
semantic-release-bot
13119fe772 chore(release): 15.1.1 [skip ci]
## [15.1.1](https://github.com/streamich/react-use/compare/v15.1.0...v15.1.1) (2020-05-30)

### Bug Fixes

* 🐛 use useIsomorphicLayoutEffect everywhere ([dad26e5](dad26e507d))
v15.1.1
2020-05-30 15:51:09 +00:00
Vadim Dalecky
a1b2b6d087
Merge pull request #1252 from streamich/remove-useLayoutEffect-usage
fix: 🐛 use useIsomorphicLayoutEffect everywhere
2020-05-30 17:46:38 +02:00
streamich
dad26e507d fix: 🐛 use useIsomorphicLayoutEffect everywhere 2020-05-30 17:41:20 +02:00
Renovate Bot
36127c9d6d chore(deps): update dependency lint-staged to v10.2.7 2020-05-29 06:46:37 +00:00
Renovate Bot
0524d163e3 chore(deps): update dependency ts-node to v8.10.2 2020-05-28 19:18:59 +00:00
Renovate Bot
962cb704aa chore(deps): update babel monorepo to v7.10.1 2020-05-28 00:50:56 +00:00
Renovate Bot
077d373485 chore(deps): update dependency eslint-plugin-flowtype to v5.1.3 2020-05-27 20:59:02 +00:00
Renovate Bot
9301a20b88 chore(deps): update dependency fork-ts-checker-webpack-plugin to v4.1.6 2020-05-27 09:50:24 +00:00
Renovate Bot
0e6c77b428 chore(deps): update babel monorepo to v7.10.0 2020-05-26 23:45:17 +00:00
Renovate Bot
342e6dbd26 chore(deps): update dependency eslint-plugin-flowtype to v5.1.1 2020-05-26 20:56:42 +00:00
Renovate Bot
45d6925d88 chore(deps): update dependency fork-ts-checker-webpack-plugin to v4.1.5 2020-05-25 16:52:44 +00:00
Renovate Bot
e86e2ebf24 chore(deps): update dependency semantic-release to v17.0.8 2020-05-24 21:29:36 +00:00
Renovate Bot
43628ffc17 chore(deps): update storybook monorepo to v5.3.19 2020-05-24 06:58:49 +00:00
Renovate Bot
044f192530 chore(deps): update dependency lint-staged to v10.2.6 2020-05-22 10:16:11 +00:00
Renovate Bot
54cb58000b chore(deps): update dependency @types/jest to v25.2.3 2020-05-18 21:55:39 +00:00
Renovate Bot
6ec98bb173 chore(deps): update typescript-eslint monorepo to v2.34.0 2020-05-18 20:46:56 +00:00
Renovate Bot
7b92d5252c chore(deps): update dependency lint-staged to v10.2.4 2020-05-18 19:29:32 +00:00
semantic-release-bot
69bfc76a7f chore(release): 15.1.0 [skip ci]
# [15.1.0](https://github.com/streamich/react-use/compare/v15.0.3...v15.1.0) (2020-05-18)

### Bug Fixes

* display alert timeout in story ([2bb65ef](2bb65ef3d8))
* mutate ref in render directly ([5488f5e](5488f5eb3e))

### Features

* add useLatest hook ([d6fe267](d6fe267615))
v15.1.0
2020-05-18 14:19:10 +00:00
Vadim Dalecky
c91c879bf7
Merge pull request #1223 from streamich/renovate/lint-staged-10.x
chore(deps): update dependency lint-staged to v10.2.3
2020-05-18 16:15:20 +02:00
Vadim Dalecky
56c2c93bf4
Merge pull request #1203 from ClementParis016/pr/use-latest
feat: add useLatest hook
2020-05-18 16:14:45 +02:00
streamich
e33cf9f87b chore: 🤖 catch up with master 2020-05-18 16:03:20 +02:00
Renovate Bot
a4ab0b420a
chore(deps): update dependency lint-staged to v10.2.3 2020-05-18 14:01:02 +00:00
semantic-release-bot
d6c446f72e chore(release): 15.0.3 [skip ci]
## [15.0.3](https://github.com/streamich/react-use/compare/v15.0.2...v15.0.3) (2020-05-18)

### Bug Fixes

* 🐛 correct useMeasure typings ([bedbad7](bedbad7231))
v15.0.3
2020-05-18 14:00:14 +00:00
Vadim Dalecky
89035cb1f3
Merge pull request #1221 from Svish/master
fix: 🐛 correct useMeasure typings
2020-05-18 15:57:04 +02:00
Torleif Berger
bedbad7231
fix: 🐛 correct useMeasure typings
When upgrading to v15, I discovered some issues with `useMeasure` forcing me to downgrade to v14 again. Hopefully these changes fixes those issues...

* It was no longer possible to define the ref type, meaning components requiring a certain type of ref would reject it. Fixed this by making the function generic again.
* Previously you _had to_ define the ref type, while in v15 you _couldn't_. Fixed this by giving the generic type a default type of `HTMLElement`.
* The implicit typing of `useMeasureMock` combined with the ternary default export statement made the imported type of `useMeasure` very messy. Fixed this by making the type of `useMeasureMock` explicitly match `useMeasure`.
2020-05-18 14:35:40 +02:00
Renovate Bot
12dfe49a8b chore(deps): update dependency eslint-plugin-flowtype to v5.1.0 2020-05-18 05:41:15 +00:00
semantic-release-bot
be933aa81d chore(release): 15.0.2 [skip ci]
## [15.0.2](https://github.com/streamich/react-use/compare/v15.0.1...v15.0.2) (2020-05-17)

### Bug Fixes

* 🐛 dont memoize useScratch event handlers ([ffc7579](ffc75790e3))
v15.0.2
2020-05-17 23:12:53 +00:00
Vadim Dalecky
7baf40bb56
Merge pull request #1217 from streamich/fix-useScratch
fix: 🐛 dont memoize useScratch event handlers
2020-05-18 01:10:02 +02:00
streamich
ffc75790e3 fix: 🐛 dont memoize useScratch event handlers 2020-05-18 01:04:41 +02:00
Renovate Bot
15a1d9af6d chore(deps): update dependency fork-ts-checker-webpack-plugin to v4.1.4 2020-05-16 17:17:16 +00:00
Vadim Dalecky
926e341f5a
docs: fix spelling errors 2020-05-16 16:02:54 +02:00
Vadim Dalecky
4aa573dfeb
Merge branch 'master' into feature/correct-spelling 2020-05-16 15:58:12 +02:00
semantic-release-bot
2d25b772c6 chore(release): 15.0.1 [skip ci]
## [15.0.1](https://github.com/streamich/react-use/compare/v15.0.0...v15.0.1) (2020-05-16)

### Bug Fixes

* **deps:** update dependency tslib to v2 ([6aebf3c](6aebf3c25e))
v15.0.1
2020-05-16 13:48:28 +00:00
Vadim Dalecky
ade3fa0f79
Merge pull request #1209 from streamich/renovate/tslib-2.x
fix(deps): update dependency tslib to v2
2020-05-16 15:46:03 +02:00
Vadim Dalecky
7a32ef8213
Merge pull request #1210 from streamich/renovate/ts-jest-26.x
chore(deps): update dependency ts-jest to v26
2020-05-16 15:45:02 +02:00
Vadim Dalecky
d34e9702a7
Merge pull request #1211 from streamich/renovate/eslint-plugin-flowtype-5.x
chore(deps): update dependency eslint-plugin-flowtype to v5
2020-05-16 15:44:47 +02:00
semantic-release-bot
852c3e8566 chore(release): 15.0.0 [skip ci]
# [15.0.0](https://github.com/streamich/react-use/compare/v14.3.0...v15.0.0) (2020-05-16)

* v15 release ([0f82ba6](0f82ba650e))

### Bug Fixes

* 🐛 better serialization handling in useLocalStorage hook ([68fb835](68fb835ea6))
* 🐛 correctly test if env is browser in useMeasure ([9ae494f](9ae494fc18))
* 🐛 make useMeasure work on server ([2daf769](2daf76990d))
* 🐛 remove set dependencies in useSet hook ([90ba9d0](90ba9d000f))
* 🐛 revert useMeasure defaults to zeros ([dc92b64](dc92b646d0))
* remove console log 🤓 ([f17c8a0](f17c8a0f8e))
* **useLocalStorage:** using undefined for empty value instead of null ([1620e01](1620e019ff))
* use latest set object in useSet "has" method ([41f9452](41f9452722))

### Features

* 🎸 add useScratch() sensor hook ([58db2f9](58db2f989d))
* 🎸 catch up with v14 ([be69035](be69035caf))
* 🎸 improve implementation of useMeasure() hook ([a164843](a164843902))
* 🎸 improve implementation of useMeasure() hook ([4d88240](4d8824064a))
* 🎸 mock useMeasure() hook on server and w/o ResizeObserver ([866f3d7](866f3d740b))
* 🎸 mock useMeasure() hook on server and w/o ResizeObserver ([2bbc73a](2bbc73a5f0))
* 🎸 remove resize-observer-polyfill from useMeasure ([2a13fba](2a13fbae45))
* 🎸 remove resize-observer-polyfill from useMeasure ([bf11131](bf11131052))
* Dependencies inference for useCustomCompareEffect ([477c164](477c1644a7))
* improve useAsyncFn and useAsync typings ([85967e2](85967e294c))
* keep previous state in useAsyncFn ([54ac91b](54ac91b28d))
* use useReducer in useUpdate hook, instead of useState + useCallback ([6575b14](6575b14985))
* **useLocalStorage:** add remove feature. ([#229](https://github.com/streamich/react-use/issues/229)) ([587de16](587de16ef5))

### BREAKING CHANGES

* implementation of useMeasure and useLocalStorage changed
* resize-observer-polyfill package is not used with useMeasure() hook
anymore.
* useMeasure() now defaults all values to -1, if they were not set and
internal implementation heavily refactored.
* useAsyncFn now keeps hold of old result/error when called multiple times
* resize-observer-polyfill package is not used with useMeasure() hook
anymore.
* useMeasure() now defaults all values to -1, if they were not set and
internal implementation heavily refactored.
v15.0.0
2020-05-16 13:32:02 +00:00
Vadim Dalecky
0f82ba650e
v15 release
BREAKING CHANGE: implementation of useMeasure and useLocalStorage changed
2020-05-16 15:28:55 +02:00
streamich
8e6ec929fa Release 15.0.0-alpha.1 15.0.0-alpha.1 2020-05-16 15:06:47 +02:00