@langchain/langgraph-api 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @langchain/langgraph-api
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 6cd8ecb: Remove Zod 3.x dependency constraint to allow Zod 4.x and avoid installing duplicate Zod packages
8
+ - Updated dependencies [6cd8ecb]
9
+ - @langchain/langgraph-ui@1.0.3
10
+
3
11
  ## 1.0.2
4
12
 
5
13
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import { zValidator } from "@hono/zod-validator";
2
2
  import { Hono } from "hono";
3
3
  import { v4 as uuid } from "uuid";
4
- import { z } from "zod";
4
+ import { z } from "zod/v3";
5
5
  import { getAssistantId, getCachedStaticGraphSchema, getGraph, } from "../graph/load.mjs";
6
6
  import { getRuntimeGraphSchema } from "../graph/parser/index.mjs";
7
7
  import { HTTPException } from "hono/http-exception";
package/dist/api/runs.mjs CHANGED
@@ -3,7 +3,7 @@ import { Hono } from "hono";
3
3
  import { HTTPException } from "hono/http-exception";
4
4
  import { streamSSE } from "hono/streaming";
5
5
  import { v4 as uuid4 } from "uuid";
6
- import { z } from "zod";
6
+ import { z } from "zod/v3";
7
7
  import { getAssistantId } from "../graph/load.mjs";
8
8
  import { logError, logger } from "../logging.mjs";
9
9
  import * as schemas from "../schemas.mjs";
@@ -1,7 +1,7 @@
1
1
  import { zValidator } from "@hono/zod-validator";
2
2
  import { Hono } from "hono";
3
3
  import { v4 as uuid4 } from "uuid";
4
- import { z } from "zod";
4
+ import { z } from "zod/v3";
5
5
  import * as schemas from "../schemas.mjs";
6
6
  import { stateSnapshotToThreadState } from "../state.mjs";
7
7
  import { threads } from "../storage/context.mjs";
@@ -3,7 +3,7 @@ import { zValidator } from "@hono/zod-validator";
3
3
  import { streamSSE } from "hono/streaming";
4
4
  import { v4 as uuidv4 } from "uuid";
5
5
  import * as schemas from "../schemas.mjs";
6
- import { z } from "zod";
6
+ import { z } from "zod/v3";
7
7
  import { streamState } from "../stream.mjs";
8
8
  import { serialiseAsDict, serializeError } from "../utils/serde.mjs";
9
9
  import { getDisconnectAbortSignal, jsonExtra } from "../utils/hono.mjs";
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v3";
2
2
  import * as uuid from "uuid";
3
3
  import { HTTPException } from "hono/http-exception";
4
4
  import { resolveGraph } from "./load.utils.mjs";
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v3";
2
2
  export declare const AssistantConfigurable: z.ZodObject<{
3
3
  thread_id: z.ZodOptional<z.ZodString>;
4
4
  thread_ts: z.ZodOptional<z.ZodString>;
package/dist/schemas.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v3";
2
2
  export const AssistantConfigurable = z
3
3
  .object({
4
4
  thread_id: z.string().optional(),
package/dist/server.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Ops } from "./storage/types.mjs";
2
- import { z } from "zod";
2
+ import { z } from "zod/v3";
3
3
  export declare const StartServerSchema: z.ZodObject<{
4
4
  port: z.ZodNumber;
5
5
  nWorkers: z.ZodNumber;
package/dist/server.mjs CHANGED
@@ -8,7 +8,7 @@ import assistants from "./api/assistants.mjs";
8
8
  import store from "./api/store.mjs";
9
9
  import meta from "./api/meta.mjs";
10
10
  import { zValidator } from "@hono/zod-validator";
11
- import { z } from "zod";
11
+ import { z } from "zod/v3";
12
12
  import { queue } from "./queue.mjs";
13
13
  import { logger, requestLogger, registerRuntimeLogFormatter, registerSdkLogger, } from "./logging.mjs";
14
14
  import { checkpointer } from "./storage/checkpoint.mjs";
package/dist/ui/load.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v3";
2
2
  import { Hono } from "hono";
3
3
  import { getMimeType } from "hono/utils/mime";
4
4
  import { zValidator } from "@hono/zod-validator";
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v3";
2
2
  const ConfigSchema = z.object({
3
3
  configurable: z.object({
4
4
  thread_id: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-api",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^18.19.0 || >=20.16.0"
@@ -64,7 +64,7 @@
64
64
  "@babel/code-frame": "^7.26.2",
65
65
  "@hono/node-server": "^1.12.0",
66
66
  "@hono/zod-validator": "^0.2.2",
67
- "@langchain/langgraph-ui": "1.0.2",
67
+ "@langchain/langgraph-ui": "1.0.3",
68
68
  "@types/json-schema": "^7.0.15",
69
69
  "@typescript/vfs": "^1.6.0",
70
70
  "dedent": "^1.5.3",
@@ -80,7 +80,7 @@
80
80
  "uuid": "^10.0.0",
81
81
  "winston": "^3.17.0",
82
82
  "winston-console-format": "^1.0.8",
83
- "zod": "^3.23.8"
83
+ "zod": "^3.25.76 || ^4"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "@langchain/core": "^0.3.59 || ^1.0.1",