Skip to content

Proposal: Integrate standard-schema into react-hook-form core and deprecate individual resolversΒ #821

@yslpn

Description

@yslpn

Proposal: Integrate standard-schema into react-hook-form core and deprecate individual resolvers

Summary

Consider removing all individual resolver packages and keeping only standard-schema resolver, which could be integrated directly into the main react-hook-form library.

Standard Schema: https://standardschema.dev/

Rationale

  • Minimal footprint: standard-schema is very lightweight
  • Reduced maintenance: Single resolver instead of maintaining multiple packages
  • Better DX: No need to install separate resolver packages
  • Future-proof: Standard Schema is designed to be a universal validation schema standard

Proposal

  1. Remove all specific resolvers (yup, zod, joi, etc.)
  2. Integrate standard-schema directly into react-hook-form core
  3. Users can use any validation library that supports Standard Schema

Benefits

  • Smaller maintenance burden
  • Simpler dependency tree
  • One standard interface for all validation libraries
  • Encourages validation library authors to adopt Standard Schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions