1997 Commits

Author SHA1 Message Date
Robert Hurst
8410bb042f fix: repair useKeyboardJs hook
Fixed the importing of the KeyboardJS library with backward compatibility. Updated how bindings are set to prevent KeyboardJS from calling handlers repeatedly while holding keys.
2020-06-08 10:57:51 -07:00
semantic-release-bot
0fabbcd641 chore(release): 15.2.1 [skip ci]
## [15.2.1](https://github.com/streamich/react-use/compare/v15.2.0...v15.2.1) (2020-06-08)

### Bug Fixes

* 🐛 bump fast-deep-equal, and consume it through ES import ([f3c715c](f3c715c124))
v15.2.1
2020-06-08 09:20:29 +00:00
Vadim Dalecky
1f89d1f5b1
Merge pull request #1285 from streamich/bump-deep-equal
fix: 🐛 bump fast-deep-equal, and consume it through ES import
2020-06-08 11:16:57 +02:00
streamich
f3c715c124 fix: 🐛 bump fast-deep-equal, and consume it through ES import 2020-06-08 11:10:03 +02:00
Renovate Bot
4e6d9b1cef chore(deps): update dependency eslint-plugin-import to v2.21.1 2020-06-08 06:42:05 +00:00
Renovate Bot
1f854291ac chore(deps): update dependency eslint-plugin-import to v2.21.0 2020-06-08 02:21:58 +00:00
semantic-release-bot
28c201df6d chore(release): 15.2.0 [skip ci]
# [15.2.0](https://github.com/streamich/react-use/compare/v15.1.1...v15.2.0) (2020-06-07)

### Features

* add useMouseWheel hook ([d714b12](d714b12e8b))
v15.2.0
2020-06-07 21:27:59 +00:00
Vadim Dalecky
4c8298ea26
Merge pull request #1199 from streamich/renovate/eslint-7.x
chore(deps): update dependency eslint to v7
2020-06-07 23:25:33 +02:00
Vadim Dalecky
157c468913
Merge pull request #1276 from tkwant/pr/useMouseWheel 2020-06-07 23:24:18 +02:00
Renovate Bot
7623d40f03 chore(deps): update dependency keyboardjs to v2.6.3 2020-06-06 03:23:18 +00:00
Renovate Bot
8928817376
chore(deps): update dependency eslint to v7 2020-06-06 00:27:23 +00:00
Renovate Bot
66b0210dfc chore(deps): update dependency @testing-library/react to v10.2.1 2020-06-05 21:28:52 +00:00
tkwant
d714b12e8b feat: add useMouseWheel hook 2020-06-05 22:50:34 +02:00
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