github react-hook-form/resolvers v5.0.0

latest release: v5.0.1
4 days ago

5.0.0 (2025-04-01)

Features

  • infer input/output types from schema (#753) (6124c59)

BREAKING CHANGES

  • 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.

Don't miss a new resolvers release

NewReleases is sending notifications on new releases.