Support for Zod 4 (now in beta) #470
colinhacks
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Zod 4 is now in beta
Hello! Colin here, creator of Zod. Thank you for contributing this package to the Zod ecosystem!
FYI, the first beta of Zod 4 has been released. It will be in beta for 4 weeks to allow time for ecosystem libraries (such as yours) to implement support before the first stable version is released. The first stable release will be in mid-May. Keep an eye on this PR to track progress: colinhacks/zod#4074
Announcement post: https://v4.zod.dev/v4
Migration guide: https://v4.zod.dev/v4/changelog
Migration
There have been some significant changes.
@zod/minihas been released with a treeshakable/functional API that mirrors Zod'szodand@zod/mini, they both have a dependency on a new common core library@zod/core.zodand@zod/mini(and potentially future libraries). It makes it easy to support all these libraries simultaneously, with just one peerDependency on your end. There is little reason for any framework/library to depend directly onzodanymore.This page is intended as a jumping-off point with some guidance for library authors:
@zod/coredocsDon't hesitate to reach out for help/guidance!
Beta Was this translation helpful? Give feedback.
All reactions