1394 Commits

Author SHA1 Message Date
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
xobotyi
9543e23ca3 useValidatableState implementation; 2019-09-04 04:10:11 +03:00
Renovate Bot
71fb03083a chore(deps): update dependency rxjs to v6.5.3 2019-09-03 21:55:25 +00:00
Rogdham
664b071d2d Improve useThrottleFn type definition 2019-09-03 16:39:31 +02: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
Mario Beltrán Alarcón
4cbe1a787e Add tests for useInterval hook 2019-08-26 21:47:53 +02:00
xobotyi
42fdec140b useDebounce:
- tests;
- fix function change debounce clear and reset;
- declare return type;
2019-08-26 10:04:07 +03:00
xobotyi
00e0c2691b make useTimeoutFn work properly:
- reset function should clear previous timeout;
- function change should not reset the timeout;
2019-08-26 10:04:06 +03:00
xobotyi
438a56606b make useTimeoutFn work properly:
- reset function should clear previous timeout;
- function change should not reset the timeout;
2019-08-26 09:58:28 +03:00
xobotyi
bb0ab036a3 Added state checker;
Updated story;
Updated docs;
2019-08-26 01:04:28 +03:00
semantic-release-bot
0b458dfd31 chore(release): 11.3.2 [skip ci]
## [11.3.2](https://github.com/streamich/react-use/compare/v11.3.1...v11.3.2) (2019-08-25)

### Bug Fixes

* useThrottle & useThrottleFn proper timeout type; ([e2cdb94](https://github.com/streamich/react-use/commit/e2cdb94))
v11.3.2
2019-08-25 21:58:13 +00:00
Vadim Dalecky
9b7c0047d2
Merge pull request #567 from streamich/fix-timeout-type
fix: useThrottle & useThrottleFn proper timeout type;
2019-08-25 23:55:49 +02:00
xobotyi
66f0690581 Way simpler with useTimeoutFn; 2019-08-26 00:52:57 +03:00
xobotyi
036edfdeee Merge https://github.com/streamich/react-use into feat/enhance_useDebounce 2019-08-26 00:41:30 +03:00
xobotyi
e2cdb94c9b fix: useThrottle & useThrottleFn proper timeout type; 2019-08-26 00:33:22 +03:00
semantic-release-bot
bca86db57d chore(release): 11.3.1 [skip ci]
## [11.3.1](https://github.com/streamich/react-use/compare/v11.3.0...v11.3.1) (2019-08-25)

### Bug Fixes

* update createReducer to fix initial state ([fd083f2](https://github.com/streamich/react-use/commit/fd083f2))
v11.3.1
2019-08-25 19:29:01 +00:00
Anton Zinovyev
482b57f713
Merge pull request #544 from DmacMcgreg/patch-1
fix: update createReducer to fix initial state
2019-08-25 22:27:06 +03:00
Anton Zinovyev
943acb25e8
Merge pull request #565 from streamich/renovate/lint-staged-9.x
chore(deps): update dependency lint-staged to v9.2.4
2019-08-25 22:23:54 +03:00