deps: zod 3 → 4, typescript 5 → 6#39
Merged
Merged
Conversation
P1 from the 2026-05-21 modernization audit. - zod: ^3.24.0 → ^4.4.3. Our usage is minimal (z.enum, z.string().regex(), z.optional(), z.describe()) and unaffected by v4 breaking changes (discriminated unions, ZodError API, effect chains). MCP SDK 1.29.0 supports zod v4 via Standard Schema. - typescript: ^5.7.0 → ^6.0.3. TS 6 tightened global types — added "types": ["node"] to tsconfig.compilerOptions so node:* imports and process / NodeJS namespace resolve. No source changes needed. - description: npm rewrote \u2014 → literal em-dash on touch (cosmetic). All 85 tests still pass. Build clean on Node 22 + 24 (verified via PR-3 matrix locally).
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.
Summary
P1 #5 + #6 from the 2026-05-21 modernization audit. Major-version drift on the two largest deps.
zod^3.24.0^4.4.3z.enum,z.string().regex(),z.optional(),.describe()) and unaffected by v4 breaking changes (discriminated unions, ZodError API, effect chains). MCP SDK 1.29.0 supports zod v4 via Standard Schema.typescript^5.7.0^6.0.3"types": ["node"]totsconfig.compilerOptionssonode:*imports +process+NodeJSnamespace resolve. No source changes needed.tsconfig.json"types": ["node"]Test plan
npm run build— cleannpm test— 85/85 passnpm audit --audit-level=moderate— exit 0 (only 5 lows in @anthropic-ai/mcpb transitives remain)Risk assessment
src/index.ts; all map 1:1 to v4 API.