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

migrate arktype resolver to v2 #686

Closed ssalbdivad closed 1 month ago

ssalbdivad commented 1 month ago

The latest version of arktype is now 2.0.0-dev.14, which is consistent with an upcoming major release.

I've created a new major version of the @hookform/resolvers/arktype to match this.

I did have a question as to whether it was okay to resuse the existing errors.byPath property with a type alias for code as FieldErrors. It would have many additional properties users could introspect, so long as nowhere in hookform is there an assumption that there are no extra properties on that object (as can be seen by the snapshots with many additional properties).

If extra properties are problematic, I can adjust the code to just include message and type as they did before.

github-actions[bot] commented 1 month ago

:tada: This PR is included in version 3.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

ssalbdivad commented 1 month ago

@bluebill1049 Thanks so much 🫶

bluebill1049 commented 1 month ago

Thank you & welcome @ssalbdivad 🙏