@hookform/resolvers
6.0.2 · 28 Oct 2026MIT41.5M / weekRepositoryHomepagenpmAtom feed
Your version
5.9.2 is the newest release of 5.x.
In short
1 breaking1 new
- breaking
Requires react-hook-form@7.55.0 or higher
Release note
Features
Infer input/output types from schema
Breaking changes
- breaking
Requires react-hook-form@7.55.0 or higher
Before
Prior to V5, some projects used manual types like
useForm<FormValues>();
After
With V5, the correct approach is:
useForm<Input, Context, Output>(); useForm<FormInputValues, Context, FormOutputValues>();
This update enables distinct outputs when utilizing features like transform from validation libraries.
ℹ️ The best approach is to let the types be inferred from your schema, rather than manually defining them.