Skip to content

Commit

Permalink
fix (providers): make zod required dependency (#1700)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel authored May 27, 2024
1 parent a7c4e8c commit 24683b7
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 217 deletions.
8 changes: 8 additions & 0 deletions .changeset/fuzzy-panthers-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@ai-sdk/anthropic': patch
'@ai-sdk/mistral': patch
'@ai-sdk/google': patch
'@ai-sdk/openai': patch
---

fix (providers): Zod is required dependency
5 changes: 5 additions & 0 deletions .changeset/quick-buses-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/google-vertex': patch
---

fix (provider/google-vertex): zod is not a dependency
5 changes: 0 additions & 5 deletions packages/anthropic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
"peerDependencies": {
"zod": "^3.0.0"
},
"peerDependenciesMeta": {
"zod": {
"optional": true
}
},
"engines": {
"node": ">=18"
},
Expand Down
11 changes: 1 addition & 10 deletions packages/google-vertex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,7 @@
"@types/node": "^18",
"@vercel/ai-tsconfig": "workspace:*",
"tsup": "^8",
"typescript": "5.1.3",
"zod": "3.23.8"
},
"peerDependencies": {
"zod": "^3.0.0"
},
"peerDependenciesMeta": {
"zod": {
"optional": true
}
"typescript": "5.1.3"
},
"engines": {
"node": ">=18"
Expand Down
17 changes: 0 additions & 17 deletions packages/google-vertex/src/google-error.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/google/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
"peerDependencies": {
"zod": "^3.0.0"
},
"peerDependenciesMeta": {
"zod": {
"optional": true
}
},
"engines": {
"node": ">=18"
},
Expand Down
5 changes: 0 additions & 5 deletions packages/mistral/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
"peerDependencies": {
"zod": "^3.0.0"
},
"peerDependenciesMeta": {
"zod": {
"optional": true
}
},
"engines": {
"node": ">=18"
},
Expand Down
5 changes: 0 additions & 5 deletions packages/openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
"peerDependencies": {
"zod": "^3.0.0"
},
"peerDependenciesMeta": {
"zod": {
"optional": true
}
},
"engines": {
"node": ">=18"
},
Expand Down
172 changes: 2 additions & 170 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 24683b7

Please sign in to comment.