colinhacks / zod

TypeScript-first schema validation with static type inference
https://zod.dev
MIT License
33.09k stars 1.15k forks source link

Interest in codemods for migrating from v3 to v4? #3670

Open nicoespeon opened 1 month ago

nicoespeon commented 1 month ago

Hello there 👋

I know that Zod v3.23 was the latest release until v4 which is in the works.

To help with adoption, I was wondering if you would be interested in me contributing by developing Zod codemods that users could run to help them automate the migration? Similar to what the React team did with the React 19 upgrade guide.

I'm not working at Codemod myself, but the recipes are open-source. I reached out to them and they would be happy if I did as I'm familiar both with Zod and writing codemods in general—I used to lean on jscodeshift, but Codemod is building an interesting platform to help share the recipes. This project would intersect 2 of my personal interests 😄

I'd like to have your green light or concerns before diving in since this is something that may not be part of your vision for v4—which I would respect 👍

If you like the idea, I can start working on a POC with automated tests, to show you how it would look like from a user perspective.

Thanks!