The deprecation with UnpackNestedValue caused a breaking change on the @hookform/resolvers package, please refer to the changelog and upgrade the resolver to the latest.
🥼 close react-hook-form/react-hook-form#8564 update changelog for breaking change with resolver
💥 The above type deprecation cause breaking change with @hookform/resolvers needs to be upgraded to version ^2.9.3 above
@hookform/resolvesrs needs to upgraded to version ^2.9.3 above
Changed
Deprecate NestedValue and UnpackNestedValue type, will be removed in the next major version. Important: If you are using them, it may cause TS compile error, so please just remove the type usage.
formState's errors is now mapped/merged with FieldError
UseFormHandleSubmit has removed unused function generic
[7.32.0] - 2022-6-10
Changed
UseFormRegisterReturn name type change from string to TFieldName
[7.31.0] - 2022-5-11
Added
new: reset optional prop: keepDirtyValues
reset(
{
firstName: 'bill', // if firstName is dirty then the value will be retained
lastName: 'luo',
},
{ keepDirtyValues: true }, // keep any changed field
);
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)
Bumps react-hook-form from 7.16.0 to 7.33.1.
Release notes
Sourced from react-hook-form's releases.
... (truncated)
Changelog
Sourced from react-hook-form's changelog.
... (truncated)
Commits
5c891c2
7.33.16ad4da3
🐏 fix #8584: field errors type with optional fields (#8591)8e89fc1
🧳 close #8600 update code example for NestedValue inputefd9195
🖼 Integratejest-preview
intoreact-hook-form
(#8577)a216a4e
🤓 improve readability of Merge type (#8570)f4d89d6
🚝 test: migration from ts-jest to@swc/jest
(#8572)1791542
🏹 refactor: use const instead of props (#8571)22fa1d1
🔍 feat: Add ability to search test file on watch mode (#8573)b4ff7be
🥼 close #8564 update changelog for breaking change with resolver6ec36a8
🧘🏻 ensure field is focused when selected (#8566)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)