543 Commits

Author SHA1 Message Date
Tyler Swavely
5cfddaf9b4 add useLocalStorage tests 2019-11-19 19:59:04 -08:00
Renovate Bot
e516e68cbb chore(deps): update dependency husky to v3.1.0 2019-11-18 03:45:46 +00:00
Renovate Bot
65d2fdc64d chore(deps): update dependency semantic-release to v15.13.31 2019-11-18 02:27:09 +00:00
Renovate Bot
c9dbd8e4e2 chore(deps): update dependency @shopify/jest-dom-mocks to v2.8.6 2019-11-16 00:21:22 +00:00
Renovate Bot
18e7af04c9 chore(deps): update dependency ts-node to v8.5.2 2019-11-15 04:24:35 +00:00
Renovate Bot
a29ac3f2f7 chore(deps): update react monorepo to v16.12.0 2019-11-15 01:28:13 +00:00
semantic-release-bot
34f8b11004 chore(release): 13.8.0 [skip ci]
# [13.8.0](https://github.com/streamich/react-use/compare/v13.7.0...v13.8.0) (2019-11-14)

### Features

* **useStateValidator:** Refactor method and improve typings; ([436c210](436c210f7b))
2019-11-14 21:48:41 +00:00
semantic-release-bot
6a00d2d047 chore(release): 13.7.0 [skip ci]
# [13.7.0](https://github.com/streamich/react-use/compare/v13.6.3...v13.7.0) (2019-11-14)

### Features

* Add useSet hook ([095b4de](095b4de232))
2019-11-14 21:36:01 +00:00
Renovate Bot
abb7eb8de3 chore(deps): update dependency lint-staged to v9.4.3 2019-11-13 21:37:50 +00:00
Renovate Bot
bb7d251815
chore(deps): update dependency prettier to v1.19.1 2019-11-12 23:18:55 +00:00
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))
2019-11-12 10:11:33 +00: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))
2019-11-11 02:11:26 +00: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))
2019-11-10 19:49:43 +00: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))
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