Skip to content

build(deps): bump zod 3.24 → 4.4#347

Merged
rz1989s merged 1 commit into
mainfrom
chore/zod-4
Jun 25, 2026
Merged

build(deps): bump zod 3.24 → 4.4#347
rz1989s merged 1 commit into
mainfrom
chore/zod-4

Conversation

@rz1989s

@rz1989s rz1989s commented Jun 24, 2026

Copy link
Copy Markdown
Member

Adopts Dependabot #332 (zod 3→4), which CI-failed as a bare bump because v4 has breaking changes. Verified-then-adopted with the required code adaptations.

Zod 4 breaking changes handled

Site Change
src/middleware/validation.ts:29 ZodError.errors.issues (renamed in v4)
src/routes/admin.ts:25, src/routes/billing.ts:34 z.record(value)z.record(z.string(), value) (v4 requires an explicit key schema; z.string() preserves v3 string-key behavior)

The 18 schema-definition sites (z.string().regex/min/max/optional, z.enum) are v3/v4-identical and unchanged.

Lockfile

Churn is pnpm peer-context re-resolution + zod-4 dedup (4 variants → 2). Verified the installed package set is unchanged vs main: 1950 entries both, ws and utf-8-validate version sets identical. Only real version change is root zod 3.25.76 → 4.4.3.

Verification

  • pnpm typecheck — green across all 4 workspace projects
  • root suite — 563/563 passed
  • packages/agent suite — 1718 passed, 2 skipped (one pre-existing order-dependent CORS flake, passes in isolation + on re-run; unrelated to zod)

Supersedes #332.

Adopts Dependabot #332. Zod 4 required three code adaptations:
- middleware/validation.ts: ZodError.errors → .issues (renamed in v4)
- routes/admin.ts + routes/billing.ts: z.record(value) → z.record(z.string(), value)
  (v4 requires an explicit key schema; z.string() preserves v3 string-key behavior)

The 18 schema-definition sites (regex/min/max/optional/enum) are v3/v4-identical.
Lockfile churn is peer-context re-resolution + zod-4 dedup (4 variants → 2);
installed package set unchanged (1950 entries; ws/utf-8-validate versions identical to main).

Verified: typecheck green (all 4 workspace projects), root suite 563/563,
agent suite 1718 passed.
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sipher Ready Ready Preview, Comment Jun 24, 2026 8:10am

@rz1989s rz1989s merged commit b35ffb9 into main Jun 25, 2026
8 checks passed
@rz1989s rz1989s deleted the chore/zod-4 branch June 25, 2026 01:41
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