npm / @hookform/resolvers
@hookform/resolvers
What changed in @hookform/resolvers 3 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
16 breaking8 new APIs and options1 performance3 behavior and defaults1 tooling36 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@hookform/resolvers 715 changes
Breaking changes 3
Use Compile from typebox/compile in place of TypeCompiler.Compile.
Error type values are now keyword names such as minLength instead of numeric ValueErrorType codes.
The TypeBox resolver now requires typebox ^1.0.0 as a peer dependency instead of @sinclair/typebox.
Behavior and default changes 1
Error messages now use TypeBox 1.x wording.
Fixes and other changes 11
Async validation results are awaited.
Path-less validation issues are preserved.
The Zod 4 overload is selected for a generic Zod 4 schema.
Object-level issues are now reported on the empty path.
Native validation errors are now cleared after successful validation.
Accepts ajv-formats v3 as a peer dependency, allowing projects using that version to use the Ajv resolver.
Object-level issues are now reported on the empty path.
The effect-ts resolver now honors the raw resolver option.
The io-ts resolver now honors the raw resolver option.
Primitive array error messages are preserved by the fluentvalidation-ts resolver.
Resolver types now infer validator context.
@hookform/resolvers 69 changes
Breaking changes 6
Default error messages come from Effect v4; for example, “is missing” becomes “Missing key,” and messages no longer include the received value.
The effect-ts resolver now requires effect@^4.0.0; Effect v3 is no longer supported.
Error type values follow Effect v4 issue tags: Type, Missing, Refinement, and Unexpected map to InvalidType, MissingKey, Filter, and UnexpectedKey; AnyOf and InvalidValue are also added.
Migrate from Schema.nonEmptyString() to .check(Schema.isNonEmpty()) for the Effect v4 Schema API.
Migrate from Schema.transform to Schema.decodeTo for the Effect v4 Schema API.
Effect v4 Schema.Union takes an array of schemas instead of separate arguments.
Behavior and default changes 1
The effect-ts resolver supports Effect v4.
Fixes and other changes 2
Preserves escaped field names in validation errors.
Dropped @typeschema/main from peerDependencies, so it is no longer required as a peer dependency.
@hookform/resolvers 525 changes
Breaking changes 2
Updates Joi support to v18, allowing projects using the resolver to work with the newer Joi release.
Requires react-hook-form@7.55.0 or higher.
New APIs and options 3
Adds support for Vest 6 in the resolver integration.
Adds support for Vine v4 schemas in the resolver integration.
Added an ata-validator resolver for integrating ata-validator validation.
Behavior and default changes 1
Input and output types can be inferred from the schema, enabling distinct output types for features like transform.
Tooling 1
Adds TypeScript 6 support and upgrades development dependencies.
Fixes and other changes 18
Preserves escaped field names in validation errors.
Now recognizes bracket-notation array paths, preventing nested errors from being overwritten.
The peer dependency version for ata-validator was fixed.
All resolvers drop validation errors for special root field names.
Preserves validation errors for special root field names.
Fixed npm install failures caused by ERESOLVE conflicts between @hookform/resolvers and valibot versions.
Fixed a module-not-found error when importing zodResolver under Zod v3.
Preserves the ref property in errors for checkbox inputs instead of overriding it with validation metadata.
AJV Resolver no longer returns form data with properties overwritten when the AJV schema contains defaults for certain properties.
Conditional and dynamic schema resolution works again for applications using resolvers.
Zod v4 locale and global error customization are now picked up by the resolver.
Fixes an error when validating nested discriminated unions with the zod resolver.
The Zod resolver now respects union errors.
Standard schema root errors are preserved.
Control<T> works with optional fields when passed to a custom component.
The type overload works with Zod v4.3.x despite branded version mismatches.
Validation libraries are declared as optional peer dependencies, so projects need not install libraries they do not use.
Fixed an issue with toNestErrors.ts.
@hookform/resolvers 47 changes
Breaking changes 1
The AJV Resolver unwraps the errorMessage object and returns the original error types, which may require project changes.
New APIs and options 3
Returns either all errors or only the first one based on criteriaMode.
Adds support for the names option.
Adds a resolver for standard-schema.
Fixes and other changes 3
Resolves a type error when the schema is defined from an ArkType scope.
Handles raw: true so form submission values are passed correctly.
Handles an undefined object when reading refs.
@hookform/resolvers 39 changes
Breaking changes 4
Install ajv-errors separately; it is no longer bundled with resolvers.
Install ajv separately; it is no longer bundled with resolvers.
The raw-values option is now named raw instead of rawValues.
The resolver supports Yup v1, which is now required.
New APIs and options 2
schemaOptions now accepts validator and transformer options.
A TypeBox resolver is available.
Performance 1
The resolver's bundle size was reduced.
Fixes and other changes 2
Fixed module resolution for NodeNext.
Fixed resolvers failing silently.