Packages

@hookform/resolvers

6.0.2 · 28 Oct 2026MIT41.5M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.0

major2 Apr 2021Where it was published

2.9.11 is the newest release of 2.x.

In short

1 breaking7 new4 faster4 fixed

  • breaking

    Require react-hook-form >= 7

Release note

Breaking changes

  • breaking

    Require react-hook-form >= 7

Features

  • Pass down error's ref

  • Expose array element validation errors in zod resolver

  • types: add Lazy schema support to resolver (#135) (ac2128e), closes #92 #31

  • Vest sync validation + update to v3

  • Joi sync validation

  • Yup sync validation

  • Zod async validation

Bug Fixes

  • Joi pass down context from useForm

  • Zod union error + reduce size

  • Yup resolver typescript errors

  • Improve modules support (cjs, esm, umd)

Performance Improvements

  • Reduce joi resolver's size

  • Reduce yup resolver's size

  • Reduce vest resolver size

  • Reduce joi and yup bundle size


V2 🚀 (#108) (fe53179), closes #108 #97 #114 #116 #115 #117 #123 #125 #124 #126 #127 #128 #129 #131 #130 #132 #134 #136