1418 Commits

Author SHA1 Message Date
Tyler Swavely
affcbbd404 run prettier 2019-11-19 23:37:41 -08:00
Tyler Swavely
ead2242875 reintroduce types 2019-11-19 23:04:34 -08:00
Tyler Swavely
126c509139 reject nullish keys 2019-11-19 22:46:35 -08:00
Tyler Swavely
da4bfddb26 finish tests and hook 2019-11-19 22:24:59 -08:00
Tyler Swavely
5cfddaf9b4 add useLocalStorage tests 2019-11-19 19:59:04 -08:00
Vadim Dalecky
f84a5c3589
Merge pull request #784 from OctoD/master
chore: fixes createBreakpoint link
2019-11-19 07:24:09 -08:00
Paolo Roth
ffe0db88c2
chore: fixes createBreakpoint link 2019-11-19 15:30:39 +01:00
Vadim Dalecky
6cbee3e712
docs: fixz splling typoes 2019-11-18 13:47:31 -08:00
Vinit
1811908bd6 fix spelling in useQueue doc and story 2019-11-18 21:47:09 +01: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))
v13.8.0
2019-11-14 21:48:41 +00:00
Vadim Dalecky
0073acb538
Merge pull request #773 from streamich/fet-improve-useStateValidity
feat: Improve useStateValidator & useMultiStateValidator typings
2019-11-14 22:46:45 +01: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))
v13.7.0
2019-11-14 21:36:01 +00:00
Vadim Dalecky
14adddf8bd
Merge pull request #772 from daniel-hauser/pr/add-use-set
feat: Add useSet hook
2019-11-14 22:33:42 +01:00
xobotyi
436c210f7b
feat(useStateValidator): Refactor method and improve typings;
feat(useMultiStateValidator): Refactor method and improve typings;
2019-11-14 14:40:01 +03:00
Daniel
095b4de232 feat: Add useSet hook 2019-11-14 12:26:24 +02:00
Renovate Bot
abb7eb8de3 chore(deps): update dependency lint-staged to v9.4.3 2019-11-13 21:37:50 +00:00
Anton Zinovyev
b5b9e5281e
Merge pull request #761 from streamich/renovate/prettier-1.x
chore(deps): update dependency prettier to v1.19.1
2019-11-13 02:22:53 +03:00
Renovate Bot
bb7d251815
chore(deps): update dependency prettier to v1.19.1 2019-11-12 23:18:55 +00:00
xobotyi
399baf6472
Fix formatting issues occurring with newest prettier version; 2019-11-13 02:17:10 +03: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))
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