1394 Commits

Author SHA1 Message Date
Renovate Bot
53a8ffc22d chore(deps): update dependency @types/jest to v24.0.23 2019-11-12 22:55:25 +00:00
semantic-release-bot
e3dd11d999 chore(release): 13.6.3 [skip ci]
## [13.6.3](https://github.com/streamich/react-use/compare/v13.6.2...v13.6.3) (2019-11-12)

### Bug Fixes

* remove any types in useThrottleFn ([bb5baea](bb5baea30c))
v13.6.3
2019-11-12 10:11:33 +00:00
Vadim Dalecky
bb5baea30c
fix: remove any types in useThrottleFn 2019-11-12 11:09:18 +01:00
Brendan
61e29cd249 Proper typing for return value 2019-11-11 20:18:40 +01:00
Brendan
4e1108f392 Proper typing for nextArgs 2019-11-11 20:16:39 +01:00
Brendan
61f21d4400 Remove redundant ref 2019-11-11 20:14:40 +01:00
Renovate Bot
d2cc1b617e chore(deps): update dependency ts-node to v8.5.0 2019-11-11 03:51:45 +00:00
semantic-release-bot
a81d23ce6a chore(release): 13.6.2 [skip ci]
## [13.6.2](https://github.com/streamich/react-use/compare/v13.6.1...v13.6.2) (2019-11-11)

### Bug Fixes

* restrict useThrottleFn types ([61a83d1](61a83d124d))
v13.6.2
2019-11-11 02:11:26 +00:00
Vadim Dalecky
61a83d124d
fix: restrict useThrottleFn types 2019-11-11 03:09:55 +01:00
Vadim Dalecky
545f88e202
docs: simplify async function links in README 2019-11-11 02:44:58 +01:00
streamich
ad9a0bd313 test: 💍 enable hidden tests
Two test files did not have ".test" in their name, which would make Jest
to skip them.
2019-11-10 23:54:31 +01:00
Vadim Dalecky
e46c776d41
docs: remove $$$ from README 2019-11-10 22:02:00 +01:00
semantic-release-bot
98576bc141 chore(release): 13.6.1 [skip ci]
## [13.6.1](https://github.com/streamich/react-use/compare/v13.6.0...v13.6.1) (2019-11-10)

### Bug Fixes

* 🐛 check window.Event constructor exists in useLocation ([ad09431](ad09431145))
v13.6.1
2019-11-10 19:49:43 +00:00
Vadim Dalecky
1b72a53864
Merge pull request #763 from streamich/fix-use-location-in-ie
fix: 🐛 check window.Event constructor exists in useLocation
2019-11-10 20:47:57 +01:00
semantic-release-bot
660ed72ea6 chore(release): 13.6.0 [skip ci]
# [13.6.0](https://github.com/streamich/react-use/compare/v13.5.0...v13.6.0) (2019-11-10)

### Features

* **useCounter:** `reset` to the newest initialValue ([#667](https://github.com/streamich/react-use/issues/667)) ([e653383](e65338372a))
v13.6.0
2019-11-10 19:06:55 +00:00
Yingtao Su
e65338372a feat(useCounter): reset to the newest initialValue (#667) 2019-11-10 20:05:34 +01:00
streamich
ad09431145 fix: 🐛 check window.Event constructor exists in useLocation
IE does not have window.Event constructor.
2019-11-10 20:03:41 +01:00
Renovate Bot
dbf18e8e70 chore(deps): update storybook monorepo to v5.2.6 2019-11-09 11:00:39 +00:00
Renovate Bot
8b197f3f03 chore(deps): pin dependency ts-jest to 24.1.0 2019-11-08 22:57:53 +00:00
Anton Zinovyev
8de2a3ee13 chore: move tests to top level /tests folder
chore: move all the tests to the separate directory outside of sources;

chore: remove jest.config.js (config moved to the package.json);

test: unused import in test;

test: 💍 fix tests add back x and y to useMeasure

chore: 🤖 add linter to /tests folder

ci: 🎡 limit Jest worker count for CircleCI
2019-11-08 16:55:34 -05:00
Vadim Dalecky
8538385afb
docs: fix useMeasure return keys 2019-11-08 16:16:50 -05:00
semantic-release-bot
63b05554d1 chore(release): 13.5.0 [skip ci]
# [13.5.0](https://github.com/streamich/react-use/compare/v13.4.0...v13.5.0) (2019-11-08)

### Bug Fixes

* **resolveHookState:** by accident removed needed type. ([59aa41c](59aa41cff4))

### Features

* **useList:** reimplemented useList hook; ([1840b57](1840b577e2))
v13.5.0
2019-11-08 21:02:47 +00:00
Vadim Dalecky
32b9eb8a2f
Merge pull request #753 from streamich/rework-useList
feat(useList): reimplemented useList hook;
2019-11-08 16:00:17 -05:00
semantic-release-bot
c8d32515cf chore(release): 13.4.0 [skip ci]
# [13.4.0](https://github.com/streamich/react-use/compare/v13.3.0...v13.4.0) (2019-11-08)

### Features

* **useStateList:** implemented `currentIndex`, `setState`, `setStateAt` methods as requested in [#634](https://github.com/streamich/react-use/issues/634); ([43cb6aa](43cb6aa612))
v13.4.0
2019-11-08 20:01:54 +00:00
Vadim Dalecky
bf838fa18b
Merge pull request #757 from streamich/feat-useStateList
feat(useStateList): add `currentIndex`, `setState`, `setStateAt` methods
2019-11-08 14:59:55 -05:00
Anton Zinovyev
0d5a70c66d
Merge pull request #758 from streamich/renovate/fork-ts-checker-webpack-plugin-3.x
chore(deps): update dependency fork-ts-checker-webpack-plugin to v3.1.0
2019-11-08 08:08:00 +03:00
Renovate Bot
c3ba13cdef
chore(deps): update dependency fork-ts-checker-webpack-plugin to v3.1.0 2019-11-08 04:17:40 +00:00
xobotyi
43cb6aa612
feat(useStateList): implemented currentIndex, setState, setStateAt methods as requested in #634;
Reworked a bit implementation of `next` and `prev` to make it reuse the `setStateAt` method;
2019-11-07 12:03:34 +03:00
Renovate Bot
4df355895a chore(deps): update babel monorepo to v7.7.2 2019-11-07 03:19:59 +00:00
semantic-release-bot
a22740b1f2 chore(release): 13.3.0 [skip ci]
# [13.3.0](https://github.com/streamich/react-use/compare/v13.2.2...v13.3.0) (2019-11-06)

### Features

* useDebounce add cancel ([693aec8](693aec8307))
* useDebounce add cancel ([26cab31](26cab31f10))
v13.3.0
2019-11-06 21:43:33 +00:00
xobotyi
27a5e5f63d
Merge branch 'brickspert-feat/enhance_useDebounce' 2019-11-07 00:41:18 +03:00
xobotyi
53787c01c5
Merge branch 'feat/enhance_useDebounce' of https://github.com/brickspert/react-use into brickspert-feat/enhance_useDebounce
# Conflicts:
                    #	src/__tests__/useTimeoutFn.test.ts
                    #	src/useDebounce.ts
2019-11-07 00:40:41 +03:00
Anton Zinovyev
1fdc9076dc
Merge pull request #673 from streamich/useVibrate
useVibrate
2019-11-06 23:57:54 +03:00
xobotyi
e750c48284
Merge pull request #613 from droganov/feature/use-queue
useQueue hook
2019-11-06 23:51:47 +03:00
xobotyi
a8a97219aa
Final fix of #749 2019-11-06 23:51:38 +03:00
xobotyi
9d13b4edba
Revamped yarn.lock, with new versions of tslib; 2019-11-06 23:51:38 +03:00
Anton Zinovyev
7e5772330b
Merge pull request #613 from droganov/feature/use-queue
useQueue hook
2019-11-06 23:49:08 +03:00
Anton Zinovyev
ecaa6a91c8
Merge branch 'master' into feature/use-queue 2019-11-06 23:04:51 +03:00
xobotyi
5a49f844b9
Final fix of #749 2019-11-06 22:54:18 +03:00
xobotyi
e524060138
Revamped yarn.lock, with new versions of tslib; 2019-11-06 22:45:38 +03:00
semantic-release-bot
3802c6252d chore(release): 13.2.2 [skip ci]
## [13.2.2](https://github.com/streamich/react-use/compare/v13.2.1...v13.2.2) (2019-11-06)

### Bug Fixes

* **#749:** now should work with SSR ([c12976c](c12976cad2)), closes [#749](https://github.com/streamich/react-use/issues/749)
v13.2.2
2019-11-06 13:03:40 +00:00
Anton Zinovyev
2081b184d0
Merge pull request #754 from streamich/fix-749
fix(#749): now should work with SSR
2019-11-06 16:01:33 +03:00
xobotyi
22b9165f93 Reignite yarn.lock again; 2019-11-06 15:36:57 +03:00
xobotyi
ce7957dd13 add ignoreUnstable config (recently it somewhy updated tslint to beta) 2019-11-06 15:29:50 +03:00
xobotyi
c12976cad2 fix(#749): now should work with SSR 2019-11-06 15:15:50 +03:00
xobotyi
59aa41cff4 fix(resolveHookState): by accident removed needed type. 2019-11-06 15:09:07 +03:00
xobotyi
1840b577e2 feat(useList): reimplemented useList hook;
feat(useList): new action upsert;
feat(useList): new action update;
feat(useList): new action updateFirst;
feat(useList): new action insertAt;
feat(useList): action remove renamed to removeAt (ref remained);
feat(useUpsert): useUpsert hook deprecated cause of duplicate functionality and bad naming;
2019-11-06 14:49:33 +03:00
Vadim Dalecky
7154ca8d71
Merge pull request #595 from macinjoke/useEvent-type-inference
improve useEvent type
2019-11-05 23:21:13 -05:00
Renovate Bot
c65c0a17a4 chore(deps): update dependency tslint to v6.0.0-beta1 2019-11-06 01:46:19 +00:00
Renovate Bot
69ed07b78d chore(deps): update dependency @types/jest to v24.0.22 2019-11-05 23:58:19 +00:00