full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

⬆ Bump react-hook-form from 7.49.3 to 7.57.0 in /frontend

Open dependabot[bot] opened this issue 6 months ago • 0 comments

Bumps react-hook-form from 7.49.3 to 7.57.0.

Release notes

Sourced from react-hook-form's releases.

Version 7.57.0

🫚 feat: root errors count in schema error lookup (#12839) 👁️ feat: focus form field for errors supplied by errors prop (#12805) ⌨️ feat: add and export options config for resetField api (#12819) 🐞 close #12707 useController focus function runtime issue (#12843) 🐞 fix: add proper types to form.subscribe (#12850) 🐞 fix: add type info for callback args in subscribe (#12859) 🔄 close #12835 revert original fix on errors empty object check (#12846)

Version 7.57.0-next.0

👀 useWatch new compute props

  • subscribe to the entire form but only return updated value with certain condition
type FormValue = {
  test: string;
}

const watchedValue = useWatch({
control: methods.control,
compute: (data: FormValue) => {
if (data.test?.length) {
return data.test;
}

return '';

},
});

  • subscribe to a specific form value state
type FormValue = {
  test: string;
}

const watchedValue = useWatch({
control: methods.control,
name: 'test',
compute: (data: string) => {
return data.length > 3 ? data : '';
},
});

Version 7.56.4

🐞 fix: Changes setValue to skip values that are not in ownProperties to prevent infinite call stack (#12731) 🐞 fix: checkbox duplication handling in useFieldArray (#12793)

... (truncated)

Commits
  • e49d8a8 7.57.0
  • 3fd740f 🐞 fix: add type info for callback args in subscribe (#12859)
  • 90cdaee 🐞 fix: add proper types to form.subscribe (#12850)
  • cff8819 🔄 close #12835 revert original fix on errors empty object check (#12846)
  • d666a76 👁️ feat: focus form field for errors supplied by errors prop (#12805)
  • 490f04f 🐞 close #12707 useController focus function runtime issue (#12843)
  • c22c028 ⌨️ rename to UseFormResetFieldOptions for type consistency
  • 5345f0d ⌨️ feat: add and export options config for resetField api (#12819)
  • d7aa973 🫚 feat: root errors count in schema error lookup (#12839)
  • 8f874e1 🌎 remove www. for the doc
  • Additional commits viewable in compare view

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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] avatar Jun 02 '25 10:06 dependabot[bot]