Releases: react-hookz/web
Releases · react-hookz/web
v11.0.0
11.0.0 (2021-09-28)
Bug Fixes
- proper links in readme that don't break in firefox (b406dc6)
Features
- improve
useConditionalEffect
and remove useConditionalUpdateEffect
(#345) (4474cf7)
BREAKING CHANGES
-
useConditionalEffect
conditions and deps arguments now switched places.
-
feat(useConditionalEffect): added ability to wrap other effect hooks
-
feat: remove useConditionalUpdateEffect
-
useConditionalUpdateEffect
removed in favor of
composition with useConditionalEffect
.
Now you should simpy pass extra argument to achieve same functionality:
useConditionalEffect(()=>{}, undefined, [], truthyAndArrayPredicate, useUpdateEffect)
-
Interface IUseConditionalEffectPredicate
renamed to
IConditionsPredicate
-
docs: cleanup, remove useConditionalUpdateEffect
from readme
Co-authored-by: Joe Duncko JoeDuncko@users.noreply.github.com
v10.0.0
10.0.0 (2021-09-23)
Features
- useAsync: remove effector behaviour from hook (#339) (0e47ff2)
BREAKING CHANGES
-
useAsync: useAsync
hook now has only 2 arguments, asyncFn
and initialValue
and do not execute provided function on its own.
-
chore(useAsync): remove unused IUseAsyncOptions
interface
v9.0.0
9.0.0 (2021-08-30)
Documentation
BREAKING CHANGES
v8.0.0
8.0.0 (2021-08-30)
chore
BREAKING CHANGES
- TS:
IAnyPermissionDescriptor
type removed in favor of
built-in PermissionDescriptor
.
v7.0.0
7.0.0 (2021-08-06)
Bug Fixes
- useMediaQuery: add support for safari 13- that has obsolete
useMediaQuery
implementation (#249) (25c8599), closes #242
Code Refactoring
- useKeyboardEvent: improve the code and change signature (#248) (a0e1b24)
BREAKING CHANGES
- useKeyboardEvent: hook call signature has changed.
v6.1.0
6.1.0 (2021-08-04)
Features
v6.0.1
6.0.1 (2021-07-25)
Bug Fixes
- make hooks that not listed in index.ts to be built too (c119371)