semantic-release-bot
9c56ce93ee
chore(release): 11.1.0 [skip ci]
...
# [11.1.0](https://github.com/streamich/react-use/compare/v11.0.2...v11.1.0 ) (2019-08-25)
### Features
* 🎸 add useHarmonicIntervalFn() hook ([d9f21e3](https://github.com/streamich/react-use/commit/d9f21e3 ))
v11.1.0
2019-08-25 11:10:53 +00:00
Vadim Dalecky
b17f5754bb
Merge pull request #562 from streamich/use-harmonic-interval
...
Use harmonic interval
2019-08-25 13:07:58 +02:00
streamich
3bb525a5e1
docs: ✏️ fix Storybook useHarmonicIntervalFn() link
2019-08-25 13:05:10 +02:00
streamich
e6dd5de395
docs: ✏️ add useHarmonicIntervalFn() hook documentations
2019-08-25 13:03:01 +02:00
streamich
d9f21e30e1
feat: 🎸 add useHarmonicIntervalFn() hook
2019-08-25 12:52:03 +02:00
xobotyi
2617d74b8a
fix : #550
2019-08-25 07:41:33 +03:00
Vadim Dalecky
a851e90408
style: TSLint and .editorconfig improvements
2019-08-24 01:37:45 +02:00
xobotyi
9577d63ec2
editorconfig:
...
- typescript rules separated from others;
- more alignment rules;
2019-08-24 01:57:29 +03:00
xobotyi
c0a5970e1f
.editorconfig:
...
- Force if-else braces placement;
tslint:
- Allow leading underscore;
2019-08-24 01:24:22 +03:00
Vadim Dalecky
f31792b503
ci: tirgger GitHub Actions CI only on PRs
2019-08-23 21:32:36 +02:00
semantic-release-bot
8c2658f8e1
chore(release): 11.0.2 [skip ci]
...
## [11.0.2](https://github.com/streamich/react-use/compare/v11.0.1...v11.0.2 ) (2019-08-23)
### Bug Fixes
* **useSetState:** memoize setState callback ([0275329](https://github.com/streamich/react-use/commit/0275329 ))
* **useSetState:** memoize setState callback ([16f023f](https://github.com/streamich/react-use/commit/16f023f ))
v11.0.2
2019-08-23 19:05:48 +00:00
Vadim Dalecky
530ff7b2f8
ci: add GitHub Actions CI
2019-08-23 21:03:58 +02:00
Vadim Dalecky
0275329df6
fix(useSetState): memoize setState callback
2019-08-23 21:01:52 +02:00
semantic-release-bot
ff07a6bb12
chore(release): 11.0.1 [skip ci]
...
## [11.0.1](https://github.com/streamich/react-use/compare/v11.0.0...v11.0.1 ) (2019-08-23)
### Bug Fixes
* correct useSpring() hook behaviour ([d7a622d](https://github.com/streamich/react-use/commit/d7a622d ))
v11.0.1
2019-08-23 18:57:02 +00:00
Vadim Dalecky
d7a622d7cf
fix: correct useSpring() hook behaviour
...
Add tests for "Animation" block.
2019-08-23 20:54:14 +02:00
Tyler Swavely
c60ee96be1
chore(useSetState): check useSetState for memoized callback
2019-08-23 10:35:05 -07:00
lintuming
fea782051e
useMeasure
2019-08-23 18:53:41 +08:00
Tyler Swavely
16f023fc66
fix(useSetState): memoize setState callback
2019-08-23 00:02:35 -07:00
Anton Zinovyev
c73e92fbb5
Merge pull request #556 from mitchheddles/patch-1
...
Removed prepended window from setTimeout
2019-08-23 09:28:43 +03:00
Mitchell Heddles
99cb994d45
Fixed ref type definition
2019-08-23 16:23:46 +10:00
Mitchell Heddles
698399938d
Removed prepended window from setTimeout
2019-08-23 16:08:04 +10:00
Mario Beltrán Alarcón
1f28a76fc3
Add useTween tests
2019-08-22 23:23:12 +02:00
Mario Beltrán Alarcón
115fd73957
Get updated useTimeout tests and remove unnecessary outer describe block
2019-08-22 22:12:03 +02:00
Mario Beltrán Alarcón
5c50ad39da
Merge branch 'original-master' into animation-block-tests
...
# Conflicts:
# src/__tests__/useTimeout.test.ts
2019-08-22 22:10:59 +02:00
Renovate Bot
3b6b72385a
chore(deps): update dependency semantic-release to v15.13.24
2019-08-22 19:41:05 +00:00
semantic-release-bot
a656c15f57
chore(release): 11.0.0 [skip ci]
...
# [11.0.0](https://github.com/streamich/react-use/compare/v10.8.0...v11.0.0 ) (2019-08-22)
### Features
* add cancel and reset methods to useTimeout ([283045a](https://github.com/streamich/react-use/commit/283045a ))
* add useTimeoutFn ([284e6fd](https://github.com/streamich/react-use/commit/284e6fd ))
### BREAKING CHANGES
* useTimeout now returns a tuple
v11.0.0
2019-08-22 08:59:02 +00:00
Vadim Dalecky
283045a0ee
feat: add cancel and reset methods to useTimeout
...
BREAKING CHANGE: useTimeout now returns a tuple
2019-08-22 10:45:44 +02:00
Vadim Dalecky
284e6fd9da
feat: add useTimeoutFn
...
[skip ci]
2019-08-22 10:42:53 +02:00
Mario Beltrán Alarcón
a510fedead
Fix tslint errors
2019-08-22 01:03:02 +02:00
Mario Beltrán Alarcón
08f524f346
Fix useRaf tests
...
After update to react v16.9 and react-testing-library v9 with improved async stuff for testing, timers work slightly different and need to be set inside act.
2019-08-22 01:00:45 +02:00
xobotyi
d4164998e2
useTimeout:
...
- `useTimeoutFn` based implementation (as a special case of it);
- improved docs;
- added tests;
2019-08-22 01:18:40 +03:00
xobotyi
210ea60595
useTimeoutFn implementation;
2019-08-22 00:49:02 +03:00
Mario Beltrán Alarcón
86355db002
Merge branch 'original-master' into animation-block-tests
...
# Conflicts:
# package.json
# yarn.lock
2019-08-21 23:42:10 +02:00
Mario Beltrán Alarcón
3c43c4b05d
Add useSpring tests
2019-08-21 23:36:50 +02:00
Renovate Bot
255c6006c2
chore(deps): update dependency tslint to v5.19.0
2019-08-20 23:52:15 +00:00
Renovate Bot
44181d44e6
chore(deps): pin dependency raf-stub to 3.0.0
2019-08-20 22:44:41 +00:00
semantic-release-bot
528258561f
chore(release): 10.8.0 [skip ci]
...
# [10.8.0](https://github.com/streamich/react-use/compare/v10.7.1...v10.8.0 ) (2019-08-20)
### Bug Fixes
* Reworked useBattery hook ([1069060](https://github.com/streamich/react-use/commit/1069060 ))
* succeed useRafLoop tests ([09167df](https://github.com/streamich/react-use/commit/09167df ))
### Features
* 🎸 support useBattery hook on server side ([5d31cf0](https://github.com/streamich/react-use/commit/5d31cf0 ))
* 🎸 use only one useState and one useEffect call ([2d0fabf](https://github.com/streamich/react-use/commit/2d0fabf ))
v10.8.0
2019-08-20 21:45:30 +00:00
Vadim Dalecky
09167df364
fix: succeed useRafLoop tests
2019-08-20 23:43:13 +02:00
streamich
6e5cfaccef
chore: 🤖 fix master build
2019-08-20 23:37:42 +02:00
xobotyi
be950bbc41
Fix useRafLoop tests. Now it always succeed.
2019-08-21 00:31:18 +03:00
Vadim Dalecky
106906013f
fix: Reworked useBattery hook
2019-08-20 23:25:05 +02:00
xobotyi
ed5f277b0b
Simpler navigator detection (still SSR compatible);
2019-08-20 23:44:11 +03:00
semantic-release-bot
49aba72d9c
chore(release): 10.7.1 [skip ci]
...
## [10.7.1](https://github.com/streamich/react-use/compare/v10.7.0...v10.7.1 ) (2019-08-20)
### Bug Fixes
* async test warnings ([#543 ](https://github.com/streamich/react-use/issues/543 )) ([7af237e](https://github.com/streamich/react-use/commit/7af237e ))
v10.7.1
2019-08-20 20:41:48 +00:00
Vadim Dalecky
aae806deb9
Mark useRefMounted as deprecated ( #539 )
...
Mark useRefMounted as deprecated
2019-08-20 22:35:27 +02:00
Vadim Dalecky
7af237e9b4
fix: async test warnings ( #543 )
...
fix: async test warnings
2019-08-20 22:34:08 +02:00
streamich
2d0fabf9ac
feat: 🎸 use only one useState and one useEffect call
2019-08-20 20:17:55 +02:00
streamich
5d31cf0dbc
feat: 🎸 support useBattery hook on server side
2019-08-20 19:40:22 +02:00
Dmac
fd083f2690
fix: update createReducer to fix initial state
2019-08-20 12:01:03 -04:00
xobotyi
4a7fe73405
fix useAsyncFn tests warnings;
2019-08-20 13:33:42 +03:00
xobotyi
8886f2b885
fix useAsync tests warnings;
2019-08-20 13:19:25 +03:00