Skip to content

️ deps: Bump react-hook-form from 7.20.1 to 7.20.3

Yogi Bot requested to merge dependabot-npm_and_yarn-react-hook-form-7.20.3 into main

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

👩‍👩‍👧‍👧 unify register onChange with useController 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.0

thanks to @​barrymay

Changelog

Sourced from react-hook-form's changelog.

[7.20.3] - 2021-11-26

Changed

  • register onChange will share same logic with useController for non standard event payload
const { 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 for useWatch
  • new exact prop for useFormState
useWatch({
  name: 'test.test',
  exact: true,
});
useFormState({
name: 'test.test',
exact: true,
});

Changed

  • useWatch subscription will occurred at useEffect instead before render

[7.19.0] - 2021-11-05

Added

  • new resetField API
const { resetField } = useForm();
resetField('test');
resetField('test', {
keepError: true,
keepDirty: true,
</tr></table>

... (truncated)

Commits

Merge request reports