⬆ ️ deps: Bump react-hook-form from 7.20.1 to 7.20.3
Bumps react-hook-form from 7.20.1 to 7.20.3.
Release notes
Sourced from react-hook-form's releases.
Version 7.20.3
👩👩👧👧 unifyregister
onChange
withuseController
retrieve value (#7153)👍 fix setCustomValidity typo (#7154)🔢 fix #7149 Supporting Number Object comparison in deepEqual (#7150)🙅 prevent update input type with files (#7147)✂ ️ deprecate unset empty array function (#7120)🐞 fix #7109 issue with field array dirty fields (#7119)thanks to
@getTobiasNielsen
@swapnilrohom
@lxy-yz
and@LucasLemanowicz
Version 7.20.2
🐞 fix #7090 shallow clone for object has no prototype methods (#7096)😮 💨 revert module config (#7095)📦 change node engine to >= 12.0thanks to
@barrymay
Changelog
Sourced from react-hook-form's changelog.
[7.20.3] - 2021-11-26
Changed
- register
onChange
will share same logic withuseController
for non standard event payloadconst { onChange } = register('test'); onChange('stringIsValid'); // this is only valid use case for JS
- empty node in
formState
will no longer gets unset[7.20.0] - 2021-11-19
Added
- new
exact
prop foruseWatch
- new
exact
prop foruseFormState
useWatch({ name: 'test.test', exact: true, }); useFormState({ name: 'test.test', exact: true, });
Changed
useWatch
subscription will occurred atuseEffect
instead beforerender
[7.19.0] - 2021-11-05
Added
- new
resetField
APIconst { resetField } = useForm(); resetField('test'); resetField('test', { keepError: true, keepDirty: true, </tr></table>
... (truncated)
Commits
-
291608e
7.20.3 -
1c9fff6
👩👩👧👧 unify register onChange with useController retrieve value (#7153) -
a07df37
👍 fix setCustomValidity typo (#7154) -
1d5059a
🔢 fix #7149 Supporting Number Object comparison in deepEqual (#7150) -
1583387
🙅 prevent update input type with files (#7147) -
13ceee6
✂ ️ deprecate unset empty array function (#7120) -
9d22c8b
🐞 fix #7109 issue with field array dirty fields (#7119) -
6398367
7.20.2 -
4839c0b
🐞 fix #7090 shallow clone for object has no prototype methods (#7096) -
15aa3af
😮 💨 revert module config (#7095) - See full diff in compare view