[PR #31] [MERGED] chore: upgrade zod to v4 with backward compatibility #36

Closed
opened 2026-10-27 21:08:59 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/Comfy-PR/pull/31
Author: @snomiao
Created: 7/17/2025
Status: ✅ Merged
Merged: 7/17/2025
Merged by: @snomiao

Base: main ← Head: sno-zodv3


📝 Commits (2)

  • 5a7ff5c fix(router.ts): update zod import to zod-v3 for compatibility with new version
  • b1513da fix(TaskMeta.ts): update error handling to use error.issues instead of error.errors for Zod validation errors to align with the latest Zod API changes

📊 Changes

4 files changed (+12 additions, -8 deletions)

View changed files

📝 app/api/router.ts (+1 -1)
📝 bun.lock (+5 -2)
📝 package.json (+2 -1)
📝 src/db/TaskMeta.ts (+4 -4)

📄 Description

Summary

  • Upgrade zod from v3 to v4.0.5
  • Add zod-v3 alias for backward compatibility
  • Update router.ts to use zod-v3 import to maintain compatibility

Test plan

  • Verify existing zod v3 functionality continues to work
  • Test that new zod v4 features are available
  • Check that all existing type validations pass

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/Comfy-PR/pull/31 **Author:** [@snomiao](https://github.com/snomiao) **Created:** 7/17/2025 **Status:** ✅ Merged **Merged:** 7/17/2025 **Merged by:** [@snomiao](https://github.com/snomiao) **Base:** `main` ← **Head:** `sno-zodv3` --- ### 📝 Commits (2) - [`5a7ff5c`](https://github.com/Comfy-Org/Comfy-PR/commit/5a7ff5cad0e03ac4bf29a2cfcb9b534034655c75) fix(router.ts): update zod import to zod-v3 for compatibility with new version - [`b1513da`](https://github.com/Comfy-Org/Comfy-PR/commit/b1513dad9d9a66ad945ef8101cdc3803ea23f45f) fix(TaskMeta.ts): update error handling to use error.issues instead of error.errors for Zod validation errors to align with the latest Zod API changes ### 📊 Changes **4 files changed** (+12 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `app/api/router.ts` (+1 -1) 📝 `bun.lock` (+5 -2) 📝 `package.json` (+2 -1) 📝 `src/db/TaskMeta.ts` (+4 -4) </details> ### 📄 Description ## Summary - Upgrade zod from v3 to v4.0.5 - Add zod-v3 alias for backward compatibility - Update router.ts to use zod-v3 import to maintain compatibility ## Test plan - [ ] Verify existing zod v3 functionality continues to work - [ ] Test that new zod v4 features are available - [ ] Check that all existing type validations pass 🤖 Generated with [Claude Code](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 21:08:59 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/Comfy-PR#36
No description provided.