Support Zod v4 in zod-form-data#430
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
|
Thanks for starting this! I hadn't realized it was already in beta. The mini package looks pretty nice, too. I wonder if we would end up with a cleaner zod-form-data API if we added a set of helpers for that, too. (just thinking out loud -- we shouldn't do any of that in this PR). |
I'm actually thinking about something even simpler where we could just provide a helper to parse the formdata to object upfront, just like how TRPC did with the recent formdata support https://github.com/trpc/trpc/blob/main/packages/server/src/unstable-core-do-not-import/http/formDataToObject.ts. With that the library might ended up something really light. |
The main utility of the library (for me at least) are helpers like I'm definitely down to export a function to just do the conversion, but coming up with a nice api for the helpers is mainly where my thinking is at here. |
|
I published 3.0.0-alpha.0 with the contents of this PR. I think there are a few more things I need to finish up before I can actually release this. But I am hoping to finish this up before the full release of v4. |
|
Just bump to the latest Zod beta release. All the tests are green now. |
|
Thanks for the work you put into this! I published the most recent changes as 3.0.0-alpha.1. |
Support Zod v4 in
zod-form-data, mostly type fixes.TODOs