Skip to content

v5.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Apr 09:15
· 4 commits to master since this release

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.