Skip to content

Conversation

@mattapperson
Copy link
Collaborator

Summary

Adds support for Zod v4 while maintaining backwards compatibility with v3.

Changes

  • Updated all zod imports to use zod/v3 compatibility layer
  • Modified package.json dependency to accept ^3.25.0 || ^4.0.0
  • Updated SDK metadata version to 0.0.1-beta.2

Test plan

  • Verify SDK builds successfully with both Zod v3 and v4
  • Run existing tests to ensure no regressions
  • Test generated TypeScript SDK with sample code

Files changed

138 files modified to update zod imports and version metadata

Updated SDK to support both zod v3 and v4, changing all imports to use zod/v3 compatibility layer and updating dependency range to allow zod ^3.25.0 || ^4.0.0.
Resolved conflicts in:
- .speakeasy/gen.lock (kept HEAD version 1.638.0)
- .speakeasy/workflow.lock (kept HEAD version 1.638.0)
- src/lib/config.ts (kept HEAD genVersion 2.728.0)
@mattapperson mattapperson merged commit 40637c1 into main Oct 22, 2025
2 checks passed
@mattapperson mattapperson deleted the mattapperson/zod4 branch October 22, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants