chore(): upgrade zod to latest#14309
Conversation
🦋 Changeset detectedLatest commit: a5631a7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 77 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 9 Skipped Deployments
|
|
@shahednasser conflicts resolved 🎉 |
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
Not stale |
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
Thank you for your contribution! 🎉 After an initial review, this PR looks good to us. Here's a summary: ✅ Changeset included Notes:
A team member will do a final review before this is merged. |
RESOLVES FRMW-2996
What
zod v4 comes with performance improvements, types simplification and such which would be great to get in and benefit from
ref: https://zod.dev/v4
ref2: https://zod.dev/v4#benchmarks
Note
Upgrade Zod to v4 across repo
zodto4.2.0andzod-validation-errorto5.0.0ZodEffectspatterns withZodPipehandling; usez.ZodTypewhere appropriate; updatez.recordto include key type (e.g.,z.record(z.string(), ...)); standardizemetadataand similar fields toz.record(z.string(), z.unknown())validateAndTransformBody/validateAndTransformQueryandWithAdditionalDatato acceptZodType; enforce strict parsing consistentlyzod-helperswith robust Zod v4 error normalization; comprehensive tests added; update integration/unit tests to match new error messagesWritten by Cursor Bugbot for commit e937e5d. This will update automatically on new commits. Configure here.