Skip to content

Commit 8de7bd8

Browse files
bump zod version and add pathing spec (#944)
# why To enable compatibility with Zod v4 # what changed Added v3 pathing spec and allowed zod peer dependency to be `"zod": ">=3.25.0 <4.1.0"` # test plan --------- Co-authored-by: miguel <[email protected]>
1 parent 472266a commit 8de7bd8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+328
-245
lines changed

.changeset/clear-clouds-build.md

Lines changed: 5 additions & 0 deletions

docs/examples/nextjs.mdx

Lines changed: 1 addition & 1 deletion

docs/get_started/quickstart.mdx

Lines changed: 1 addition & 1 deletion

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"mintlify": "^4.0.401",
1515
"tsx": "^4.19.2",
16-
"zod": "^3.24.1"
16+
"zod": "^3.25.0"
1717
},
1818
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
1919
}

evals/deterministic/tests/Errors/apiKeyError.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from "@playwright/test";
22
import { Stagehand } from "@browserbasehq/stagehand";
33
import StagehandConfig from "@/evals/deterministic/stagehand.config";
4-
import { z } from "zod";
4+
import { z } from "zod/v3";
55

66
test.describe("API key/LLMClient error", () => {
77
test("Should confirm that we get an error if we call extract without LLM API key or LLMClient", async () => {

evals/llm_clients/hn_aisdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Stagehand } from "@browserbasehq/stagehand";
22
import { EvalFunction } from "@/types/evals";
3-
import { z } from "zod";
3+
import { z } from "zod/v3";
44

55
export const hn_aisdk: EvalFunction = async ({
66
debugUrl,

evals/llm_clients/hn_customOpenAI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { EvalFunction } from "@/types/evals";
2-
import { z } from "zod";
2+
import { z } from "zod/v3";
33
import { CustomOpenAIClient } from "@/examples/external_clients/customOpenAI";
44
import OpenAI from "openai";
55
import { Stagehand } from "@browserbasehq/stagehand";

evals/llm_clients/hn_langchain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { EvalFunction } from "@/types/evals";
2-
import { z } from "zod";
2+
import { z } from "zod/v3";
33
import { LangchainClient } from "@/examples/external_clients/langchain";
44
import { ChatOpenAI } from "@langchain/openai";
55
import { Stagehand } from "@browserbasehq/stagehand";

evals/tasks/allrecipes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { EvalFunction } from "@/types/evals";
2-
import { z } from "zod";
2+
import { z } from "zod/v3";
33

44
export const allrecipes: EvalFunction = async ({
55
logger,

evals/tasks/arxiv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { EvalFunction } from "@/types/evals";
2-
import { z } from "zod";
2+
import { z } from "zod/v3";
33

44
export const arxiv: EvalFunction = async ({
55
logger,

0 commit comments

Comments
 (0)