Skip to content

fix: upgrade zod from v3 to v4#32

Merged
BYK merged 1 commit intomainfrom
fix/zod-v4
Mar 3, 2026
Merged

fix: upgrade zod from v3 to v4#32
BYK merged 1 commit intomainfrom
fix/zod-v4

Conversation

@BYK
Copy link
Owner

@BYK BYK commented Mar 3, 2026

Summary

  • Bumps zod dependency from ^3.25.0 to ^4.3.6
  • Fixes src/config.ts to use explicit fully-populated default objects for all nested schemas, required by Zod v4's changed .default() semantics (in v4, .default({}) short-circuits and returns {} without applying inner field defaults, so defaults must be specified explicitly)
  • All 173 tests pass, typecheck clean

@BYK BYK enabled auto-merge (squash) March 3, 2026 07:07
Update zod dependency to ^4.3.6 and fix config.ts to use explicit
fully-populated default objects for nested schemas, required by Zod v4's
changed .default() semantics (short-circuits instead of parsing defaults).
@BYK BYK merged commit 9da1fe4 into main Mar 3, 2026
1 check passed
@BYK BYK deleted the fix/zod-v4 branch March 3, 2026 14:52
@craft-deployer craft-deployer bot mentioned this pull request Mar 3, 2026
2 tasks
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.

1 participant