1148 Commits

Author SHA1 Message Date
Renovate Bot
8c0d178739 chore(deps): update yarn to v1.17.3 2019-09-25 12:30:23 +00:00
Renovate Bot
e89ec97f46 chore(deps): update node.js to v10.16.3 2019-09-25 10:33:26 +00:00
Renovate Bot
e6077c1e27 chore(deps): update babel monorepo to v7.6.2 2019-09-23 22:50:27 +00:00
semantic-release-bot
64048a0039 chore(release): 12.2.1 [skip ci]
## [12.2.1](https://github.com/streamich/react-use/compare/v12.2.0...v12.2.1) (2019-09-23)

### Bug Fixes

* remove attempt from deps of retry in useAsyncRetry ([#614](https://github.com/streamich/react-use/issues/614)) ([adce59e](https://github.com/streamich/react-use/commit/adce59e))
v12.2.1
2019-09-23 17:09:56 +00:00
Yingya Zhang
adce59ec32 fix: remove attempt from deps of retry in useAsyncRetry (#614) 2019-09-23 19:07:51 +02:00
Renovate Bot
24b614c324 chore(deps): update dependency lint-staged to v9.3.0 2019-09-22 12:25:55 +00:00
Renovate Bot
18e7c54760 chore(deps): update dependency ts-loader to v6.1.2 2019-09-21 07:57:52 +00:00
Renovate Bot
b425eb52f9 chore(deps): update dependency ts-loader to v6.1.1 2019-09-20 08:45:55 +00:00
Ward Oosterlijnck
86c1f87e8e docs: added useSize initial size parameter, related #584 2019-09-18 15:52:54 +02:00
Renovate Bot
e2616735a3 Update dependency tslint-react to v4.1.0 2019-09-17 17:53:22 +00:00
Renovate Bot
6dbed8b54c Update dependency ts-node to v8.4.1 2019-09-16 01:51:46 +00:00
Renovate Bot
3ab2630a9f Update dependency ts-loader to v6.1.0 2019-09-10 22:50:38 +00:00
Renovate Bot
26174f2cdb Update dependency tslint to v5.20.0 2019-09-10 01:49:02 +00:00
Renovate Bot
e7cdec3967 Update babel monorepo to v7.6.0 2019-09-06 18:56:58 +00:00
Anton Zinovyev
4fc2e3631b
Merge pull request #592 from Granipouss/feat-memoized-useMap
Memoized utils methods for useMap
2019-09-05 16:49:53 +03:00
Brendan Daoud
9e48050de4 Test for 'set' callback also 2019-09-05 15:36:35 +02:00
Brendan Daoud
d1f3afbabd Memoized utils methods for useMap 2019-09-05 15:13:15 +02:00
ltm
d02734e354 test:add test for useThrottle and useThrottleFn (#585)
* test(useThrottleFn):add test for `useThrottleFn`

* test(useThrottle):add test for `useThrottle`

* chore(deps): update dependency rxjs to v6.5.3

* test(useThrottle):update the `useThrottle.test.ts` according to the requested changes.

* split single test into differents ones
* clear all timers after each tests
* reset timers to real ones on afterAll

* test:update the tests for `useThrottle` and `useThrottleFn`

* same changes as `useThrottle.test.ts` on `useThrottleFn.test.ts`
* remove some assertion on `useThrottle.test.ts`
2019-09-04 15:43:22 +02:00
Renovate Bot
71fb03083a chore(deps): update dependency rxjs to v6.5.3 2019-09-03 21:55:25 +00:00
Ward Oosterlijnck
e88f0ceb8a docs: fix and improve useCopyToClipboard documentation 2019-09-02 23:15:37 +10:00
semantic-release-bot
1ee1cb90b9 chore(release): 12.2.0 [skip ci]
# [12.2.0](https://github.com/streamich/react-use/compare/v12.1.0...v12.2.0) (2019-09-02)

### Features

* improve useWindowSize performance rAF ([60a4937](https://github.com/streamich/react-use/commit/60a4937))
v12.2.0
2019-09-02 12:08:48 +00:00
Ward
60a49372e7
feat: improve useWindowSize performance rAF 2019-09-02 22:06:53 +10:00
Vadim Dalecky
b96f097653
Merge pull request #573 from lintuming/master
feat: add useMeasure
2019-09-01 23:22:39 +02:00
semantic-release-bot
99f663940a chore(release): 12.1.0 [skip ci]
# [12.1.0](https://github.com/streamich/react-use/compare/v12.0.0...v12.1.0) (2019-09-01)

### Features

* 🎸 add useSearchParam() hook ([b22f32f](https://github.com/streamich/react-use/commit/b22f32f))
* 🎸 support server-side rendering in useSearchParam() hook ([64ac924](https://github.com/streamich/react-use/commit/64ac924))
v12.1.0
2019-09-01 21:20:36 +00:00
Vadim Dalecky
3f08740038
Merge pull request #583 from streamich/useSearchParam
useSearchParam
2019-09-01 23:19:09 +02:00
streamich
a53e63ff32 ci: 🎡 upgrade CircleCI Node version to 12 2019-09-01 23:15:47 +02:00
semantic-release-bot
b366c25960 chore(release): 12.0.0 [skip ci]
# [12.0.0](https://github.com/streamich/react-use/compare/v11.3.2...v12.0.0) (2019-09-01)

### Features

* store "paused" instead of "isPlaying" in media state ([ff900d5](https://github.com/streamich/react-use/commit/ff900d5))

### BREAKING CHANGES

* now media players return "paused" instead of "isPlaying" in their state.
v12.0.0
2019-09-01 21:14:19 +00:00
Vadim Dalecky
ff900d5545
feat: store "paused" instead of "isPlaying" in media state
BREAKING CHANGE: now media players return "paused" instead of "isPlaying" in their state.
2019-09-01 23:12:26 +02:00
streamich
64ac924edf feat: 🎸 support server-side rendering in useSearchParam() hook 2019-09-01 23:07:43 +02:00
streamich
481e807e39 test: 💍 add useSearchParam tests 2019-09-01 23:04:51 +02:00
streamich
b7ad911c04 docs: ✏️ add useSearchParam() docs 2019-09-01 22:25:30 +02:00
streamich
b22f32f6f6 feat: 🎸 add useSearchParam() hook 2019-09-01 22:21:14 +02:00
Renovate Bot
60bca98eb4 chore(deps): update dependency husky to v3.0.5 2019-09-01 17:58:52 +00:00
realdennis
a64e757dac correct the code format make review focus in code 2019-08-30 23:54:32 +08:00
realdennis
ef1dc1bf76 Test. add testing for useAudio 2019-08-30 23:21:24 +08:00
realdennis
c92b4d7400 Update the corresponding hooks usage docs 2019-08-30 21:51:38 +08:00
Vadim Dalecky
1646ecff9f
Merge pull request #578 from streamich/dependabot/npm_and_yarn/mixin-deep-1.3.2
chore(deps): bump mixin-deep from 1.3.1 to 1.3.2
2019-08-30 15:34:59 +02:00
Mario Beltrán
af7e61b5cf
Fix useUpdate returned callback (#570) 2019-08-30 11:00:29 +02:00
Mario Beltrán
4c1bb95651
First bunch of tests for lifecycle hooks blocks (#574)
* Add tests for useMount hook

* Add tests for useUnmount hook

* Add tests for useEffectOnce hook
2019-08-30 10:58:25 +02:00
realdennis
4dde514de8 Using paused property instead of isPlaying 2019-08-30 13:21:00 +08:00
dependabot[bot]
5552e2f661
chore(deps): bump mixin-deep from 1.3.1 to 1.3.2
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-28 22:50:57 +00:00
lintuming
f1d51fcff6 delete test file 2019-08-28 10:32:35 +08:00
lintuming
4167140b5f fix typo 2019-08-28 10:25:20 +08:00
lintuming
c57b31061a update README 2019-08-28 10:22:53 +08:00
lintuming
611a4263f6 fix doc typo 2019-08-28 10:20:40 +08:00
lintuming
4deb48b35e add useMeasure story 2019-08-28 09:28:28 +08:00
Renovate Bot
ff615a3807 chore(deps): update dependency lint-staged to v9.2.5 2019-08-27 07:56:50 +00:00
Anton Zinovyev
d5ca05e231
Merge pull request #568 from streamich/imp-useTimeout
fix: make useTimeoutFn work properly:
2019-08-27 01:07:39 +03:00
xobotyi
a6c2d65a35 fix typo; 2019-08-27 00:01:46 +03:00
Vadim Dalecky
60c9d55b0a
test: add tests for useInterval hook 2019-08-26 22:52:51 +02:00