chore(deps): dedupe zod to a single v4 resolution - #1809
Open
Tonours wants to merge 1 commit into
Open
Conversation
This was referenced Aug 6, 2026
Tonours
force-pushed
the
chore/dedupe-zod-single-v4-resolution
branch
from
August 7, 2026 07:39
3e81c4b to
04d3ba9
Compare
|
Coverage Impact This PR will not change total coverage. 馃殾 See full report on Qlty Cloud 禄馃洘 Help
|
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.

Pins
zodto one v4 resolution via the rootresolutionsblock. Lockfile drops from two v4 entries (4.3.6, 4.3.5) to one, single copy on disk at 4.3.6. No source code touched.fixes PRD-888
Why
agent-bffandworkflow-executorpin4.3.6exact,ai-proxyandmcp-serverask^4.3.5. Nothing is broken today. It breaks the moment something takes zod as a peer dep: yarn v1 binds it to whichever copy sits at the root whileagent-bffbuilds schemas from its own, and cross-copy zod introspection quietly returns nothing.@asteasolutions/zod-to-openapiis that shape and the OpenAPI work adds it next.Aligning the ranges instead does not work.
^4.3.6floats to 4.4.3, so you get three resolutions. Exact pins in the two packages leave the transitive OR ranges (^3.25 || ^4.0,^3.25.76 || ^4,^3.25.32 || ^4.2.0) on their own 4.3.5 entry, because yarn v1 does not dedupe on its own.Bare name, no
**/glob, like the other version pins in that block.Scope and safety
No v3-only consumer exists in the tree.
hono(^3.23.8) andlangsmith(^4.3.6) declare zod as a devDependency of a transitive package, so neither is installed or resolved. Every range actually present accepts 4.3.6.resolutionsis not published: downstream consumers still get^4.3.5. What protectsagent-bffpublished is its own exact pin, untouched here.How to test
mcp-serverai-proxyagent-bffworkflow-executoragentyarn buildgreen on 24 projects.Known limitations
Two failures hit while validating, both reproduced on a clean
mainwithout this diff:yarn testfails ~69 suites onCannot find module '@anthropic-ai/sdk/lib/transform-json-schema'(required by@langchain/anthropic). Same count, same 44 errors onmain, zero mentions of zod.mcp-server'senabledToolstest flakes onEADDRINUSE, a port race. 728/728 on two re-runs.ai-proxyandmcp-serverstill declare^4.3.5while the resolution forces 4.3.6. Harmonising is a follow-up, not needed for the invariant.The pin freezes zod at 4.3.6 while upstream is at 4.4.3. Upgrades go through the root resolution now.
Definition of Done
General
Security