-
Notifications
You must be signed in to change notification settings - Fork 592
Bump zod from 3.25.28 to 4.1.11 #635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
d4bcd7b
to
40f16eb
Compare
Bumps [zod](https://github.com/colinhacks/zod) from 3.25.28 to 4.1.11. - [Release notes](https://github.com/colinhacks/zod/releases) - [Commits](colinhacks/zod@v3.25.28...v4.1.11) --- updated-dependencies: - dependency-name: zod dependency-version: 4.1.11 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
40f16eb
to
b42ca2f
Compare
"react-markdown": "^10.1.0", | ||
"tailwind-merge": "^3.3.0", | ||
"zod": "^3.25.28" | ||
"zod": "^4.1.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zod upgrade to v4.1.12 creates a peer dependency conflict with the ai
package, which requires zod ^3.23.8
(v3.x only).
View Details
📝 Patch Details
diff --git a/packages/ai/package.json b/packages/ai/package.json
index ed0dcd3..2e3c364 100644
--- a/packages/ai/package.json
+++ b/packages/ai/package.json
@@ -13,7 +13,7 @@
"react": "19.2.0",
"react-markdown": "^10.1.0",
"tailwind-merge": "^3.3.0",
- "zod": "^4.1.12"
+ "zod": "^3.23.8"
},
"devDependencies": {
"@repo/typescript-config": "workspace:*",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index dbd5a02..2fa1def 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -466,13 +466,13 @@ importers:
dependencies:
'@ai-sdk/openai':
specifier: ^1.3.22
- version: 1.3.24([email protected])
+ version: 1.3.24([email protected])
'@t3-oss/env-nextjs':
specifier: ^0.13.4
- version: 0.13.8([email protected])([email protected])([email protected])
+ version: 0.13.8([email protected])([email protected])([email protected])
ai:
specifier: ^4.3.16
- version: 4.3.19([email protected])([email protected])
+ version: 4.3.19([email protected])([email protected])
react:
specifier: 19.2.0
version: 19.2.0
@@ -483,8 +483,8 @@ importers:
specifier: ^3.3.0
version: 3.3.1
zod:
- specifier: ^4.1.12
- version: 4.1.12
+ specifier: ^3.23.8
+ version: 3.25.76
devDependencies:
'@repo/typescript-config':
specifier: workspace:*
@@ -11124,11 +11124,11 @@ snapshots:
'@adobe/[email protected]': {}
- '@ai-sdk/[email protected]([email protected])':
+ '@ai-sdk/[email protected]([email protected])':
dependencies:
'@ai-sdk/provider': 1.1.3
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- zod: 4.1.12
+ '@ai-sdk/provider-utils': 2.2.8([email protected])
+ zod: 3.25.76
'@ai-sdk/[email protected]([email protected])':
dependencies:
@@ -15215,12 +15215,26 @@ snapshots:
dependencies:
tslib: 2.8.1
+ '@t3-oss/[email protected]([email protected])([email protected])([email protected])':
+ optionalDependencies:
+ arktype: 2.1.20
+ typescript: 5.9.3
+ zod: 3.25.76
+
'@t3-oss/[email protected]([email protected])([email protected])([email protected])':
optionalDependencies:
arktype: 2.1.20
typescript: 5.9.3
zod: 4.1.12
+ '@t3-oss/[email protected]([email protected])([email protected])([email protected])':
+ dependencies:
+ '@t3-oss/env-core': 0.13.8([email protected])([email protected])([email protected])
+ optionalDependencies:
+ arktype: 2.1.20
+ typescript: 5.9.3
+ zod: 3.25.76
+
'@t3-oss/[email protected]([email protected])([email protected])([email protected])':
dependencies:
'@t3-oss/env-core': 0.13.8([email protected])([email protected])([email protected])
Analysis
Peer dependency conflict: ai
package requires Zod v3, but v4 was installed
What fails: Installing packages/ai/package.json
with zod: ^4.1.12
causes peer dependency warnings from the ai
package (v4.3.19) and its internal dependencies (@ai-sdk/provider-utils
, @ai-sdk/ui-utils
, @ai-sdk/react
), which require zod: ^3.23.8
.
How to reproduce:
# Remove lockfile and reinstall to see warnings
rm pnpm-lock.yaml
pnpm install
Result:
WARN Issues with peer dependencies found
packages/ai
├─┬ ai 4.3.19
│ ├── ✕ unmet peer zod@^3.23.8: found 4.1.12
│ ├─┬ @ai-sdk/provider-utils 2.2.8
│ │ └── ✕ unmet peer zod@^3.23.8: found 4.1.12
│ └─┬ @ai-sdk/react 1.2.12
│ ├── ✕ unmet peer zod@^3.23.8: found 4.1.12
│ └─┬ @ai-sdk/ui-utils 1.2.11
│ ├── ✕ unmet peer zod@^3.23.8: found 4.1.12
│ └─┬ zod-to-json-schema 3.24.5
│ └── ✕ unmet peer zod@^3.24.1: found 4.1.12
Expected: No peer dependency warnings. The ai
package v4.3.19 requires Zod v3.x (peer dependency: ^3.23.8
), as confirmed by pnpm info [email protected] peerDependencies
. Zod v4 support is only available in AI SDK v5, not v4.3.x.
Fix: Downgraded packages/ai/package.json
from zod: ^4.1.12
to zod: ^3.23.8
to satisfy the peer dependency requirements.
Looks like zod is up-to-date now, so this is no longer needed. |
Bumps zod from 3.25.28 to 4.1.11.
Release notes
Sourced from zod's releases.
... (truncated)
Commits
2bed4b3
4.1.1182cd717
v4.1.107ffedd0
Fix shape caching (#5263)923af80
Publish [email protected]a78716d
Update zshy (#5249)a1726d5
4.1.836c4ee3
Switch back to weakmapaab3356
4.1.7aa6f0f0
More fixes (#5223)9f65038
docs(ecosystem): add DRZL; fix Prisma Zod Generator placement (#5215)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)