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
- Remove all specific resolvers (yup, zod, joi, etc.)
- Integrate
standard-schema directly into react-hook-form core
- 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