Back to Explore

react-hook-form/resolvers

GitHub
1 updates · last 90 days1 watchersOpen source

Last release:

Provides validation “resolvers” for React Hook Form, letting you plug in external validation libraries like Yup, Zod, Joi, Ajv, and others. Useful if you want to validate form input using the schema library you already prefer, optionally with TypeScript type inference from the schema.

Project status

  • Actively maintained, most recently with updates on 2026-05-21 (v5.4.0), including a new ata-validator resolver (ataResolver) plus fixes (for toNestErrors.ts) and documentation around passing context to yupResolver.
  • Update cadence appears intermittent but ongoing, with a run of 5.0.0 to 5.2.2 in mid to late 2025, then a longer gap before the next observed update (v5.4.0 in May 2026).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v5.4.0

    v5.4.0 introduces a new `ata-validator` resolver (`ataResolver`) with accompanying React Hook Form integration tests, including native validation behavior. The release also includes a fix to `toNestErrors.ts`, and a documentation note about passing context to `yupResolver`.

    Features
  • v5.2.2

    Release v5.2.2 contains a Zod-related bug fix focused on the Zod 4 resolver. The release notes only mention an output type correction for the Zod 4 resolver.

    Breaking
  • v5.2.1

    Release v5.2.1 updates the Zod v4 support in @hookform/resolvers, specifically around discriminated unions and correct resolver output typing for Zod 4. It also adjusts the package peer dependency range to allow Zod v4.

  • v5.2.0

    v5.2.0 adds AJV format support to the `ajvResolver` by installing `ajv-formats` and registering it on the AJV instance. It also updates repo lint tooling, switching the `lint` script from `bunx @biomejs/biome ...` to `biome ...`.

    Features
  • v5.1.1

    Release v5.1.1 includes a small change related to the Zod integration. The published release notes describe it as a peer dependency fix for Zod, but do not specify the exact peer dependency adjustment.

  • v5.1.0

    v5.1.0 adds support for resolving schemas created with Zod 4 and Zod v4 mini, while keeping compatibility for existing Zod 3 usage. The change is implemented via a substantial refactor of the Zod resolver to handle different schema and error shapes from multiple Zod versions.

    Features
  • v5.0.1

    v5.0.1 primarily relaxes the peer dependency constraint on react-hook-form from an exact 7.55.0 requirement to a compatible range. The release notes describe only this peer dependency adjustment, with no mention of any repository or tooling changes.

  • v5.0.0

    v5.0.0 adds improved TypeScript type inference so resolvers infer the input and output types from the underlying validation schema. It also documents a migration to newer react-hook-form generic patterns and raises the minimum react-hook-form version to 7.55.0.

    BreakingFeatures
  • v4.1.3

    Release v4.1.3 includes a targeted bug fix for `toNestErrors` when field names contain square brackets. It updates the internal field array name matching logic to handle bracket characters correctly and adds a regression test for special characters.

  • v4.1.2

    v4.1.2 contains a dependency-related fix for the standard-schema integration, specifically changing where @standard-schema/utils is declared. The code diff also shows changes to the repository CI workflow used for size measurement.