883 Commits

Author SHA1 Message Date
Mario Beltrán Alarcón
7b2f877dd3 Wrap tests in describe block 2019-07-21 19:55:29 +02:00
Mario Beltrán Alarcón
e958a061ac Merge upstream/master into master 2019-07-17 20:37:57 +02:00
Mario Beltrán Alarcón
f2d105737b Add useBoolean tests 2019-07-17 20:07:16 +02:00
Mario Beltrán Alarcón
8c25b50cc1 Update react hooks testing library dependency and installing peer dependencies 2019-07-17 20:03:48 +02:00
Mario Beltrán Alarcón
0b4d1d6b5b Simplify useToggle test file 2019-07-17 19:30:49 +02:00
semantic-release-bot
ed03fc2c3b chore(release): 10.1.0 [skip ci]
# [10.1.0](https://github.com/streamich/react-use/compare/v10.0.0...v10.1.0) (2019-07-17)

### Features

* add latest `react-wait` types ([6ebe3bb](https://github.com/streamich/react-use/commit/6ebe3bb))
v10.1.0
2019-07-17 15:30:57 +00:00
Vadim Dalecky
6ebe3bba85
feat: add latest react-wait types 2019-07-17 17:28:56 +02:00
semantic-release-bot
4d9271f921 chore(release): 10.0.0 [skip ci]
# [10.0.0](https://github.com/streamich/react-use/compare/v9.12.0...v10.0.0) (2019-07-17)

### Features

* remove big libs from peerDependencies ([1dbdc5d](https://github.com/streamich/react-use/commit/1dbdc5d))

### BREAKING CHANGES

* `useSpring` and `useKeyboardJs` hooks need to be imported directly now and libs they depend on are not in peerDependencies anymore.
v10.0.0
2019-07-17 14:48:54 +00:00
Vadim Dalecky
1dbdc5dc67
feat: remove big libs from peerDependencies
BREAKING CHANGE: `useSpring` and `useKeyboardJs` hooks need to be imported directly now and libs they depend on are not in peerDependencies anymore.
2019-07-17 16:46:55 +02:00
Spencer Elliott
38622ec5a6 Export useWait and Waiter 2019-07-17 10:41:20 -04:00
Daniel K
d3d5bc9324 Unify imports in docs 2019-07-17 08:54:01 +02:00
Daniel K
17dd1f141a Remove peer deps 2019-07-17 08:27:21 +02:00
semantic-release-bot
0f137d8523 chore(release): 9.12.0 [skip ci]
# [9.12.0](https://github.com/streamich/react-use/compare/v9.11.2...v9.12.0) (2019-07-16)

### Bug Fixes

* 🐛 fix useDebounce import ([40b33da](https://github.com/streamich/react-use/commit/40b33da))

### Features

* add useInterval hook ([6645ed9](https://github.com/streamich/react-use/commit/6645ed9))
v9.12.0
2019-07-16 23:01:26 +00:00
Renovate Bot
f7fc3d4e13 chore(deps): update dependency ts-loader to v6 2019-07-17 00:58:56 +02:00
Vadim Dalecky
6645ed940a
feat: add useInterval hook 2019-07-17 00:58:00 +02:00
Mario Beltrán Alarcón
ebb25517a2 Update useToggle tests 2019-07-17 00:34:31 +02:00
streamich
40b33dabed fix: 🐛 fix useDebounce import 2019-07-17 00:21:06 +02:00
streamich
599efdb6b6 chore: 🤖 add component useInterval to README, improve demo 2019-07-17 00:19:50 +02:00
Renovate Bot
655e62edee chore(deps): update dependency lint-staged to v9 2019-07-17 00:06:40 +02:00
Renovate Bot
52f715402a chore(deps): update dependency husky to v3 2019-07-17 00:05:43 +02:00
Renovate Bot
074fa2b8d8 chore(deps): update dependency fork-ts-checker-webpack-plugin to v1.4.3 2019-07-17 00:05:21 +02:00
Ward Oosterlijnck
9ea027539e docs: async hooks docs and stories update 2019-07-17 01:41:00 +10:00
Renovate Bot
1c28c70b8e chore(deps): pin dependency opencollective-postinstall to 2.0.2 2019-07-16 11:27:29 +00:00
Vadim Dalecky
c9fd4ec0b6
docs: add OpenCollective feature to README 2019-07-16 12:31:14 +02:00
streamich
780f10636a docs: ✏️ fixes to README 2019-07-16 12:29:29 +02:00
streamich
f74f811a98 docs: ✏️ clean up README 2019-07-16 12:26:10 +02:00
streamich
89c5fe29a9 chore: 🤖 move opencollective-postinstall pkg to dev deps 2019-07-16 12:15:18 +02:00
semantic-release-bot
3d393f4377 chore(release): 9.11.2 [skip ci]
## [9.11.2](https://github.com/streamich/react-use/compare/v9.11.1...v9.11.2) (2019-07-16)

### Bug Fixes

* support useMedia usage server-side ([50a5160](https://github.com/streamich/react-use/commit/50a5160))
v9.11.2
2019-07-16 10:11:40 +00:00
Vadim Dalecky
50a5160081
fix: support useMedia usage server-side 2019-07-16 12:09:46 +02:00
Vadim Dalecky
446806c8ac
docs: improve useAsync demo and docs 2019-07-16 12:08:16 +02:00
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
Ward Oosterlijnck
d2de3d82f4 Update useMedia docs 2019-07-16 19:08:01 +10:00
Ward Oosterlijnck
a57fb0325e Isomorphic useMedia 2019-07-16 19:07:39 +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
Jess
6fe5bcc023 Added call to donate after npm install (optional) 2019-07-15 06:37:09 -07:00
Jess
80459a80ce Added financial contributors to the README 2019-07-15 06:37:09 -07: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
Spencer Elliott
b43f7f8594 Add dependency "@types/react-wait"
Fixes #306
2019-07-12 14:45:12 -04: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
yangyi
fd7cda62e1
Merge branch 'master' into master 2019-07-11 16:36:03 +08:00
liyangyi
342150bfe6 useDebounce should not trigger the callback function at the first invocation(e.g on mount) 2019-07-11 16:31:45 +08:00
liyangyi
41f9bc6999 add useInterval hook 2019-07-11 11:17:25 +08: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