Skip to content

Commit 81cec1b

Browse files
committed
zod4 peer dep to unblock
1 parent 3920461 commit 81cec1b

File tree

5 files changed

+30
-24
lines changed

5 files changed

+30
-24
lines changed

package-lock.json

Lines changed: 25 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"react-dom": "^19.0.0",
3535
"usehooks-ts": "^3.1.0",
3636
"vite": "^6.0.3 <7.0.0",
37-
"zod": "^3.24.0"
37+
"zod": "^4.0.15"
3838
},
3939
"devDependencies": {
4040
"@arethetypeswrong/cli": "0.18.2",

packages/convex-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"hono": "^4.0.5",
161161
"react": "^17.0.2 || ^18.0.0 || ^19.0.0",
162162
"typescript": "^5.5",
163-
"zod": "^3.22.4"
163+
"zod": "^3.22.4 || ^4.0.15"
164164
},
165165
"peerDependenciesMeta": {
166166
"@standard-schema/spec": {

packages/convex-helpers/server/zod.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
import { customCtx } from "./customFunctions.js";
2727
import type { VString, VFloat64, VObject, VId, Infer } from "convex/values";
2828
import { v } from "convex/values";
29-
import { z } from "zod";
29+
import { z } from "zod/v3";
3030

3131
// This is an example of how to make a version of `zid` that
3232
// enforces that the type matches one of your defined tables.

packages/convex-helpers/server/zod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ZodTypeDef } from "zod";
2-
import { ZodFirstPartyTypeKind, z } from "zod";
1+
import type { ZodTypeDef } from "zod/v3";
2+
import { ZodFirstPartyTypeKind, z } from "zod/v3";
33
import type {
44
GenericId,
55
Infer,

0 commit comments

Comments
 (0)