chore(deps): zod 3→4 major#65
Merged
Merged
Conversation
# Conflicts: # package-lock.json # packages/autonav/package.json # packages/knowledge-pack-server/package.json
… refine/tool typings; global zod override
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.
Bumps
zodfrom 3.x to^4.4.3in all three packages that declare it:@autonav/core,@autonav/communication-layer,@autonav/pack-server.Changes
^4.4.3in the 3 package.json files.overridesforcing@anthropic-ai/claude-agent-sdkonto zod^4.4.3(it declareszod: ^4.0.0but npm had left it on the invalid hoisted 3.25.76). This unifies on a single hoisted zod 4.4.3 and resolves a dual-instance type clash in the SDK'stool()typing. mintlify's nested zod 3 (via nono-ts) is left untouched.z.record(z.unknown())→z.record(z.string(), z.unknown())(record now requires key + value schema).result.error.errors→result.error.issues(ZodError shape)..refine(check, (val) => ({ message }))→.refine(check, { error: (iss) => ... })(function-message form removed).config-describe.tsrewritten for zod 4 internals:_def.typeName→_zod.def.type(lowercase discriminators), enumvalues→entries, arraytype→element, defaultdefaultValuenow a value not a factory, descriptions via.descriptiongetter.Test
Commands run from repo root:
npm run typecheck(runsnpm run build+ per-workspacetsc --noEmit) → passnpm test→ 157 pass / 0 fail (autonav 112 pass, communication-layer 45 pass; 22 skipped). pack-server has no test script.Note: one smoke test (
init.smoke.test.ts) can flake under parallel execution due to a shared~/.claude/skillssymlink collision — pre-existing and unrelated to zod; passes in isolation and on rerun.