@langchain/langgraph-api 0.0.11 → 0.0.13

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.
@@ -31,7 +31,16 @@ export async function resolveGraph(spec, options) {
31
31
  return { sourceFile, exportSymbol, resolved };
32
32
  }
33
33
  export async function runGraphSchemaWorker(spec) {
34
- const SCHEMA_RESOLVE_TIMEOUT_MS = 30_000;
34
+ let SCHEMA_RESOLVE_TIMEOUT_MS = 30_000;
35
+ try {
36
+ const envTimeout = Number.parseInt(process.env.LANGGRAPH_SCHEMA_RESOLVE_TIMEOUT_MS ?? "0", 10);
37
+ if (!Number.isNaN(envTimeout) && envTimeout > 0) {
38
+ SCHEMA_RESOLVE_TIMEOUT_MS = envTimeout;
39
+ }
40
+ }
41
+ catch {
42
+ // ignore
43
+ }
35
44
  return await new Promise((resolve, reject) => {
36
45
  const worker = new Worker(fileURLToPath(new URL("./parser/parser.worker.mjs", import.meta.url)));
37
46
  // Set a timeout to reject if the worker takes too long
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-api",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "engines": {
6
- "node": ">=18"
6
+ "node": "^18.19.0 || >=20.16.0"
7
7
  },
8
8
  "license": "MIT",
9
9
  "main": "./dist/cli/spawn.mjs",
@@ -35,9 +35,9 @@
35
35
  "zod": "^3.23.8"
36
36
  },
37
37
  "peerDependencies": {
38
- "@langchain/core": "^0.3.36",
39
- "@langchain/langgraph": "^0.2.43",
40
- "@langchain/langgraph-checkpoint": "^0.0.14",
38
+ "@langchain/core": "^0.3.40",
39
+ "@langchain/langgraph": "^0.2.49",
40
+ "@langchain/langgraph-checkpoint": "^0.0.15",
41
41
  "typescript": "^5.5.4"
42
42
  },
43
43
  "devDependencies": {