@hookform/resolvers
6.0.2 · 28 Oct 2026MIT41.5M / weekRepositoryHomepagenpmAtom feed
3.10.0 is the newest release of 3.x.
In short
4 breaking4 new1 faster2 fixed
- breaking
Yup resolver require Yup v1
- breaking
Rename
rawValuesoption toraw - breaking
classValidationResolver: schema options now includes validator and transformer options
- breaking
Please note that ajv and ajv-errors need to be installed separately, as they are not bundled with resolvers
Release note
Breaking changes
- breaking
Yup resolver require Yup v1
- breaking
Rename
rawValuesoption toraw - breaking
classValidationResolver: schema options now includes validator and transformer options
- breaking
Please note that ajv and ajv-errors need to be installed separately, as they are not bundled with resolvers
Before:
schemaOptions?: ValidatorOptions,
After:
schemaOptions?: {
validator?: ValidatorOptions;
transformer?: ClassTransformOptions;
}Bug Fixes
Module resolution NodeNext
Resolvers fails silently
Features
Add option to keep raw values
classValidationResolver: add transform and validator options
yupResolver: add support Yup v1
typeboxResolver: add TypeBox resolver
import { useForm } from 'react-hook-form';
import { typeboxResolver } from '@hookform/resolvers/typebox';
import { Type } from '@sinclair/typebox';
const schema = Type.Object({
username: Type.String({ minLength: 1 }),
password: Type.String({ minLength: 1 }),
});
const App = () => {
const { register, handleSubmit } = useForm({
resolver: typeboxResolver(schema),
});
return (
<form onSubmit={handleSubmit((d) => console.log(d))}>
<input {...register('username')} />
<input type="password" {...register('password')} />
<input type="submit" />
</form>
);
};Performance Improvements
ajvResolver: reduce bundle size