react-hook-form / resolvers

📋 Validation resolvers: Yup, Zod, Superstruct, Joi, Vest, Class Validator, io-ts, Nope, computed-types, typanion, Ajv, TypeBox, ArkType, Valibot, effect-ts and VineJS
https://react-hook-form.com/
MIT License
1.67k stars 151 forks source link

Publish individual npm packages for each resolver #698

Closed sant3001 closed 2 weeks ago

sant3001 commented 2 weeks ago

I believe this package would be really useful if it didn't include a lot of resolvers that one is never going to use.

So if you wanted to use for example just the zod resolver, you'd just add the @hookform/resolvers/zod package to your project and therefore the size of adding it would be insignificant.

jorisre commented 2 weeks ago

Hey, thanks for the feedback, but multiple packages would be a maintenance headache. Currently, it's tree-shaked, so you only get the resolvers you need and it does not affect your production build.

sant3001 commented 2 weeks ago

Ok, got it. Thanks for the quick response @jorisre. As for maintenance, I'm not suggesting splitting this repo in multiple repos. I'm just suggesting that when you do the publish step, it deploys to multiple npm packages instead of just one.