1378 Commits

Author SHA1 Message Date
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
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
Renovate Bot
a2866ac410 chore(deps): update dependency typescript to v3.7.2 2019-11-05 17:00:20 +00:00
Renovate Bot
311f68816b chore(deps): update dependency @babel/preset-env to v7.7.1 2019-11-05 14:22:30 +00:00
Anton Zinovyev
2065c692c7
Merge pull request #746 from streamich/renovate/babel-monorepo
chore(deps): update babel monorepo to v7.7.0
2019-11-05 14:36:28 +03:00
Renovate Bot
012b374bf7 chore(deps): update dependency @testing-library/react-hooks to v3.2.1 2019-11-05 11:04:56 +00:00
Renovate Bot
538b886269
chore(deps): update babel monorepo to v7.7.0 2019-11-05 11:04:42 +00:00
Renovate Bot
a05ccf9f36 chore(deps): update dependency @semantic-release/git to v7.0.18 2019-11-05 01:47:37 +00:00
semantic-release-bot
c6694d3e30 chore(release): 13.2.1 [skip ci]
## [13.2.1](https://github.com/streamich/react-use/compare/v13.2.0...v13.2.1) (2019-11-04)

### Bug Fixes

* **yarn.lock:** re-create the yarn.lock file with nailed versions in devDeps ([f094a3a](f094a3ae83))
v13.2.1
2019-11-04 09:38:50 +00:00
xobotyi
f094a3ae83 fix(yarn.lock): re-create the yarn.lock file with nailed versions in devDeps 2019-11-04 12:34:06 +03:00
semantic-release-bot
6b417fc9dd chore(release): 13.2.0 [skip ci]
# [13.2.0](https://github.com/streamich/react-use/compare/v13.1.0...v13.2.0) (2019-11-04)

### Features

* re-create yarn.lock ([d48e03e](d48e03e9ee))
* re-create yarn.lock ([ccdffe0](ccdffe027f))
* **usePreviousDistinct:** add tests for undefined value behaviour; ([cb373f9](cb373f951f))
* **usePreviousDistinct:** improve types; ([30f53e8](30f53e8c5d))
* **usePreviousDistinct:** now predicate not called on initial render; ([fbe9b13](fbe9b1303c))
* **useStateList:** rework useStateList to make it work properly. ([242c274](242c274dd4))
* **useTitle:** reworked hook to make it synchronous without useUpdate; ([a133267](a13326779f))
* **useWindowSize:** A bit changed lyfecycle and added types; ([03bdecf](03bdecf7ac))
v13.2.0
2019-11-04 09:17:16 +00:00
Anton Zinovyev
588f2de637
Merge pull request #738 from streamich/fix-useStateList
fix(useStateList): rework the hook
2019-11-04 12:15:17 +03:00
Anton Zinovyev
198d84a5ae
Merge pull request #739 from streamich/fix-usePreviousDistinct
feat(usePreviousDistinct): fix tests and improve the hook
2019-11-04 12:15:02 +03:00
Anton Zinovyev
ced3556865
Merge pull request #741 from streamich/update-yarn-lock
feat: recreate yarn.lock
2019-11-04 12:14:40 +03:00
xobotyi
3170d4cafb Merge remote-tracking branch 'origin/update-yarn-lock' into update-yarn-lock 2019-11-04 12:13:44 +03:00
xobotyi
d48e03e9ee feat: re-create yarn.lock 2019-11-04 12:13:26 +03:00
xobotyi
a3b19d17d7 Merge remote-tracking branch 'origin/master' 2019-11-04 12:10:16 +03:00