iammatthias / com

Digital garden built using Astro, Obsidian, and other goodies.
https://iammatthias.com
222 stars 36 forks source link

build(deps): bump react-hook-form from 7.19.5 to 7.21.0 #164

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps react-hook-form from 7.19.5 to 7.21.0.

Release notes

Sourced from react-hook-form's releases.

Version 7.21.0

📏 shouldUseNativeValidationwill inject native validation attributes into field which supports both client & server (#7207)

const { register } = useForm()

<input {...register('name', { required: true })} />

<input name="name" required /> // both client and server render

🤦🏻‍♂️ fix #2717 regression with async field array actions (#7218)

Version 7.20.5

🐞 fix #7174 issue with empty errors object prevent submit

Version 7.20.4

Revert 🔢 fix #7149 Supporting Number Object comparison in deepEqual (#7150)

thanks to @​barrymay

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

Version 7.20.1

🥃 revert #7016 and add type test coverage (#7082) 🫀 close #7079 flush update at the field array level before app/form-level (#7080)

Version 7.20.0

✨ feature: useWatch/useFormState exact prop (#6983)

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

</tr></table>

... (truncated)

Changelog

Sourced from react-hook-form's changelog.

[7.21.0] - 2021-12-06

Changed

  • shouldUseNativeValidation will pass down validation props both at client and server render
const { register } = useForm()

<input {...register('name', { required: true })} />

<input name="name" required /> // both client and server render

[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

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Looks like react-hook-form is up-to-date now, so this is no longer needed.