[PR #2605] Upgrade to Zod v4 #10373

Closed
opened 2026-02-16 18:15:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2605

State: closed
Merged: Yes


Summary

  • Upgrade from Zod v3 to Zod v4 (3.25.76 → 4.1.8)
  • Replace zod-openapi with hono-openapi v1.0.7
  • Add @hono/standard-validator dependency
  • Update all Zod imports to use zod/v4
  • Migrate from .openapi() to .meta() for schema definitions
  • Update type references for Zod v4 compatibility

Breaking Changes

This updates the core validation library from Zod v3 to v4, which may affect downstream dependencies and plugins that rely on Zod schemas.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2605 **State:** closed **Merged:** Yes --- ## Summary - Upgrade from Zod v3 to Zod v4 (3.25.76 → 4.1.8) - Replace zod-openapi with hono-openapi v1.0.7 - Add @hono/standard-validator dependency - Update all Zod imports to use zod/v4 - Migrate from .openapi() to .meta() for schema definitions - Update type references for Zod v4 compatibility ## Breaking Changes This updates the core validation library from Zod v3 to v4, which may affect downstream dependencies and plugins that rely on Zod schemas.
yindo added the pull-request label 2026-02-16 18:15:00 -05:00
yindo closed this issue 2026-02-16 18:15:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10373