Skip to content

️ deps: Bump react-hook-form from 7.19.5 to 7.20.0

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

Bumps react-hook-form from 7.19.5 to 7.20.0.

Release notes

Sourced from react-hook-form's releases.

Version 7.20.0

feature: useWatch/useFormState exact prop (#6983)

useWatch({
  name: 'test.test',
  exact: true,
});
useFormState({
name: 'test.test',
exact: true,
});

🎳 close #7032 with stale onBlur value (#7078) 📦 upgrade to ts 4.5.2 (#6944) 👂 remove early subscription (#7056) 📦 chore: Modify package.json to include es6 imports (#7034) 🗃️ fix(package.json): add node requirement version (#7039)

thanks to @​barrymay @​neighborhood999 and @​karanaditya993

Changelog

Sourced from react-hook-form's changelog.

[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,
keepTouched: true,
defaultValue: 'test1',
});

[7.18.1] - 2021-11-02

  • revert FieldPathWithValue

[7.18.0] - 2021-10-28

Added

... (truncated)

Commits

Merge request reports