528 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))
2019-11-10 19:06:55 +00: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
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))
2019-11-08 21:02:47 +00: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))
2019-11-08 20:01:54 +00: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
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))
2019-11-06 21:43:33 +00: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)
2019-11-06 13:03:40 +00: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))
2019-11-04 09:38:50 +00: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))
2019-11-04 09:17:16 +00:00
xobotyi
d48e03e9ee feat: re-create yarn.lock 2019-11-04 12:13:26 +03:00
Anton Zinovyev
9e24ede8bd
Merge pull request #686 from streamich/renovate/testing-library-react-hooks-3.x
Update dependency @testing-library/react-hooks to v3
2019-11-04 11:58:19 +03:00
Anton Zinovyev
72f7a9ae2b
Merge pull request #622 from streamich/renovate/react-16.x
Update dependency @types/react to v16.9.11
2019-11-04 11:58:09 +03:00
Anton Zinovyev
66a55a6706
Merge pull request #577 from streamich/renovate/typescript-3.x
Update dependency typescript to v3.6.4
2019-11-04 11:57:59 +03:00
Renovate Bot
7e185bbcb4 Update dependency @semantic-release/npm to v5.3.4 2019-11-03 23:41:20 +00:00
Renovate Bot
d4ff80a827 Update semantic-release monorepo 2019-11-02 20:51:04 +00:00
Renovate Bot
980bdbaa4b
Update semantic-release monorepo 2019-11-02 01:33:15 +00:00
Renovate Bot
7daa17dd4c chore(deps): update dependency @shopify/jest-dom-mocks to v2.8.5 2019-11-02 00:32:57 +00:00
semantic-release-bot
4ca00f6faf chore(release): 13.1.0 [skip ci]
# [13.1.0](https://github.com/streamich/react-use/compare/v13.0.1...v13.1.0) (2019-11-01)

### Features

* pull request template for features ([1dc21f3](https://github.com/streamich/react-use/commit/1dc21f3))
2019-11-01 23:33:19 +00:00
semantic-release-bot
4c3201b2bc chore(release): 13.0.1 [skip ci]
## [13.0.1](https://github.com/streamich/react-use/compare/v13.0.0...v13.0.1) (2019-11-01)

### Bug Fixes

* **useLockBodyScroll:** infer overflow type directly from declaration. ([26baf47](https://github.com/streamich/react-use/commit/26baf47))
2019-11-01 22:30:40 +00:00
Renovate Bot
ca58a0abfc
chore(deps): update dependency @testing-library/react-hooks to v3 2019-11-01 22:06:04 +00:00
Renovate Bot
faa37654bc
chore(deps): update dependency typescript to v3.6.4 2019-11-01 22:04:43 +00:00
Renovate Bot
cd6787a982
chore(deps): update dependency @types/react to v16.9.11 2019-11-01 22:04:31 +00:00
semantic-release-bot
d08490dc06 chore(release): 13.0.0 [skip ci]
# [13.0.0](https://github.com/streamich/react-use/compare/v12.13.0...v13.0.0) (2019-11-01)

* Merge pull request #711 from streamich/remove-react-wait ([8d40f18](https://github.com/streamich/react-use/commit/8d40f18)), closes [#711](https://github.com/streamich/react-use/issues/711)

### Features

* remove useRefMounted hook ([ad74d3d](https://github.com/streamich/react-use/commit/ad74d3d))
* **useRefMounted:** remove obsolete hook; ([dc364c8](https://github.com/streamich/react-use/commit/dc364c8))
* **useWait:** removed from package due to it is simple reexport of other package; ([d7c38bd](https://github.com/streamich/react-use/commit/d7c38bd))

### BREAKING CHANGES

* useWait hook has been removed from react-use
* deprecated useRefMounted hook is now removed, use useMountedState hook instead
2019-11-01 21:34:51 +00:00
xobotyi
d7c38bd77f feat(useWait): removed from package due to it is simple reexport of other package; 2019-11-01 00:20:25 +03:00
semantic-release-bot
5d97bf1d37 chore(release): 12.13.0 [skip ci]
# [12.13.0](https://github.com/streamich/react-use/compare/v12.12.0...v12.13.0) (2019-10-31)

### Features

* **useCounter:** reworked with use of new resolveHookState function plus improved memory usage; ([befcf84](https://github.com/streamich/react-use/commit/befcf84))
* **useGetSet:** reworked with use of new resolveHookState function plus improved memory usage; ([9b5d0f2](https://github.com/streamich/react-use/commit/9b5d0f2))
* react-like state resolver to use it in stateful hooks; ([9fd02eb](https://github.com/streamich/react-use/commit/9fd02eb))
2019-10-31 21:04:06 +00:00
semantic-release-bot
b4e1f1504d chore(release): 12.12.0 [skip ci]
# [12.12.0](https://github.com/streamich/react-use/compare/v12.11.0...v12.12.0) (2019-10-31)

### Features

* add typings for createReducer ([f1cf036](https://github.com/streamich/react-use/commit/f1cf036))
2019-10-31 20:01:00 +00:00
semantic-release-bot
0e628e2408 chore(release): 12.11.0 [skip ci]
# [12.11.0](https://github.com/streamich/react-use/compare/v12.10.0...v12.11.0) (2019-10-31)

### Features

* **useWait:** add deprecation messages to readme and export; ([d338245](https://github.com/streamich/react-use/commit/d338245))
2019-10-31 08:16:32 +00:00
semantic-release-bot
58910d4a3e chore(release): 12.10.0 [skip ci]
# [12.10.0](https://github.com/streamich/react-use/compare/v12.9.1...v12.10.0) (2019-10-30)

### Features

* **useUpdate:** improve memory usage - now single function instance to increment all counters; ([0f02fd0](https://github.com/streamich/react-use/commit/0f02fd0))
2019-10-30 15:39:30 +00:00
Renovate Bot
58ddea390f chore(deps): update dependency @types/jest to v24.0.21 2019-10-30 00:46:14 +00:00
Renovate Bot
92342d3441
chore(deps): update dependency fork-ts-checker-webpack-plugin to v3.0.1 2019-10-29 09:27:33 +00:00
Renovate Bot
8b450c1d69
chore(deps): update dependency fork-ts-checker-webpack-plugin to v3 2019-10-29 05:53:01 +00:00
semantic-release-bot
01c9c0d3a6 chore(release): 12.9.1 [skip ci]
## [12.9.1](https://github.com/streamich/react-use/compare/v12.9.0...v12.9.1) (2019-10-28)

### Bug Fixes

* useSize avoid crash in Safari 11 ([da0e66b](https://github.com/streamich/react-use/commit/da0e66b))
2019-10-28 13:11:01 +00:00
Anton Zinovyev
dd11cc35e2
Merge pull request #705 from streamich/renovate/fork-ts-checker-webpack-plugin-2.x
chore(deps): update dependency fork-ts-checker-webpack-plugin to v2
2019-10-27 23:02:00 +03:00
Renovate Bot
5ebc7d65f7
chore(deps): update dependency @types/jest to v24.0.20 2019-10-27 19:49:23 +00:00
semantic-release-bot
957c6d2e58 chore(release): 12.9.0 [skip ci]
# [12.9.0](https://github.com/streamich/react-use/compare/v12.8.0...v12.9.0) (2019-10-26)

### Features

* add createBreakpoint ([79ba4ef](https://github.com/streamich/react-use/commit/79ba4ef))
2019-10-26 08:57:08 +00:00
semantic-release-bot
d7a4b750fc chore(release): 12.8.0 [skip ci]
# [12.8.0](https://github.com/streamich/react-use/compare/v12.7.2...v12.8.0) (2019-10-25)

### Features

* add ensuredForwardRef and useEnsuredForwardedRef ([1bfe063](https://github.com/streamich/react-use/commit/1bfe063))
2019-10-25 16:14:58 +00:00
Renovate Bot
dc7fc55fe8
chore(deps): update dependency fork-ts-checker-webpack-plugin to v2 2019-10-25 12:40:50 +00:00
Renovate Bot
a80f3d01b3 chore(deps): update dependency fork-ts-checker-webpack-plugin to v1.6.0 2019-10-24 06:38:00 +00:00
streamich
c494aa3c3b chore: 🤖 upgrade Storybook to 5.2 2019-10-23 10:59:39 +02:00