Repository navigation
fix(events): use zod 4 two-argument z.record so the build type-checks - #26
Merged
Merged
Conversation
Zod 4 dropped the single-argument z.record(value). The npm-security bump (#20) moved loop to zod 4, and every production build since has failed at next build's type check. The parse result is unchanged: the old call already accepted string keys at runtime. CI now runs tsc, because CI only ran tests and Vercel skips Dependabot branches, so nothing checked types before merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uau5YjL2L7Vm7xh3B7jzUX
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What broke
#20 (the npm-security group) moved loop to zod 4. Zod 4 removed the single-argument
z.record(value), solib/events/schemas.tsfails type checking and every production build since #20 has errored on Vercel (dpl_Daq3hnJPAGAGCcS1zXwP4Vrkhr3F). The live site is still on the last good deploy.It got through because CI only runs tests, and Vercel skips
dependabot/**branches, so nothing type-checked the PR.Change
z.record(z.unknown())→z.record(z.string(), z.unknown()). Same runtime result (checked: both shapes parse identically under zod 4.6.7).test-service.ymlgains atsc --noEmitstep, so a type error fails CI instead of only a deploy.Verified locally
tsc --noEmit: clean (was 1 error onmain)pnpm lint: cleanpnpm test: 147/147pnpm build(withVERCEL_ENV=preview): succeedsGenerated by Claude Code