@langchain/langgraph-api 0.0.31 → 0.0.32

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.
@@ -4,14 +4,19 @@ import type {
4
4
  UpdateType,
5
5
  StateDefinition,
6
6
  } from "@langchain/langgraph";
7
- import type { Graph } from "@langchain/langgraph";
8
- import type { Pregel } from "@langchain/langgraph/pregel";
9
7
 
10
8
  // @ts-expect-error
11
- type AnyPregel = Pregel<any, any>;
9
+ type AnyPregel = {
10
+ lg_is_pregel: boolean;
11
+ stream: (...args: any[]) => any;
12
+ invoke: (...args: any[]) => any;
13
+ };
12
14
 
13
15
  // @ts-expect-error
14
- type AnyGraph = Graph<any, any, any, any, any>;
16
+ type AnyGraph = {
17
+ compiled: boolean;
18
+ compile: (...args: any[]) => any;
19
+ };
15
20
 
16
21
  type Wrap<T> = (a: T) => void;
17
22
  type MatchBaseMessage<T> = T extends BaseMessage ? BaseMessage : never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-api",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^18.19.0 || >=20.16.0"
@@ -53,7 +53,7 @@
53
53
  "winston": "^3.17.0",
54
54
  "winston-console-format": "^1.0.8",
55
55
  "zod": "^3.23.8",
56
- "@langchain/langgraph-ui": "0.0.31"
56
+ "@langchain/langgraph-ui": "0.0.32"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@langchain/core": "^0.3.42",