Conversation
|
| "astro": "^5.14.4", | ||
| "sharp": "^0.34.3" | ||
| "sharp": "^0.34.3", | ||
| "zod": "^4.0.0" |
|
hey @florian-lefebvre if you need any help on that please share, i'm currently stuck with zod issue on build. i need zod 4 for my project but it fail as astro use v3 |
|
It may very well be possible we won't support zod 4 in Astro 6, we're still discussing it. |
|
@florian-lefebvre any chance you update to v4 but still use v3 |
|
That's a good idea but we can't yet because of a bug in an upstream library: StefanTerdell/zod-to-json-schema#179 |
Somehow I was not expecting this dependency to be bumped to zod 4 since Crazy work btw, I’m not sure I would have chosen to support zod3 😅 |
|
Yes zod 4 has built-in json schema generation. But the problem here is we can't use |
|
I totally understand, supporting zod3 and zod4 add so much complexity, especially when you have crazy types built on top of it! Good luck! For end-users, it’s actually not so hard to migrate zod3 to zod4, you can just run the codemod 😁 https://github.com/nicoespeon/zod-v3-to-v4 (I said for end user, not library author ;) ) |
|
Ha sorry I misunderstood 😆 |
|
We're not going to support both at once |
|
Does this PR being closed mean that Astro 6 won’t support Zod 4? |
|
No it's just that we didn't go with this approach. This is currently being worked on at #14947 |
|
thanks for linking ! sorry i didn’t find that PR |
Todo
Changes
pnpm changeset.Testing
Docs