@langchain/langgraph
1.7.5 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed
212 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 1.x · latest line
1.2.0
26 Feb 2026langgraph: Add Overwrite class for bypassing channel reducers
Adds an
Overwriteclass andOverwriteValuetype that allow nodes to bypass reducers inBinaryOperatorAggregatechannels, writing values directly instead of passing them through the reducer function. This is useful when a node needs to replace accumulated state rather than append to it.core: Don't trace channel read/writes
Add tools stream mode for tool lifecycle events
Minor Changes
langgraph: Add Overwrite class for bypassing channel reducers
Adds an
Overwriteclass andOverwriteValuetype that allow nodes to bypass reducers inBinaryOperatorAggregatechannels, writing values directly instead of passing them through the reducer function. This is useful when a node needs to replace accumulated state rather than append to it.New
Overwriteclass exported from@langchain/langgraphBinaryOperatorAggregatechannel detectsOverwriteValueand sets the value directlyAnnotation,StateSchema, and zod schema type mappings updated to includeOverwriteValuein update types
Patch Changes
core: Don't trace channel read/writes
Add tools stream mode for tool lifecycle events
1.1.4 – 1.1.52 releases that only update dependencies@langchain/langgraph-sdk 2.0.0Show each
- 1.1.518 Feb 2026@langchain/langgraph-sdk 2.0.0
- 1.1.47 Feb 2026@langchain/langgraph-sdk 1.6.0
1.1.3
3 Feb 2026Preserve
langgraph_typemetadata for LangSmith Studio tab detection
1.1.2
23 Jan 2026Fix ConditionalEdgeRouter type rejection
Add unified schema support for
StateGraphconstructorAdd type bag pattern for
GraphNodeandConditionalEdgeRoutertype utilities.New types:
Usage:
Both
GraphNodeandConditionalEdgeRouternow support two patterns:The type bag pattern enables nodes that receive a subset of state fields and return different fields, with full type safety.
1.1.1
20 Jan 2026Fix StateSchema/ReducedValue type inference
Patch Changes
Fix StateSchema/ReducedValue type inference
1.1.0
16 Jan 2026Add type utilities for authoring graph nodes and conditional edges
New exported type utilities for improved TypeScript ergonomics:
These utilities enable defining nodes outside the StateGraph builder while maintaining full type safety:
import { StateSchema, GraphNode, ConditionalEdgeRouter, END, } from "@langchain/langgraph"; import { z } from "zod/v4"; const AgentState = new StateSchema({ messages: MessagesValue, step: z.number().default(0), }); interface MyContext { userId: string; } // Fully typed node function const processNode: GraphNode<typeof AgentState> = (state, runtime) => { return { step: state.step + 1 }; }; // Type-safe routing with Command const routerNode: GraphNode< typeof AgentState, MyContext, "agent" | "tool" > = (state) => new Command({ goto: state.needsTool ? "tool" : "agent" }); // Conditional edge router const router: ConditionalEdgeRouter< typeof AgentState, MyContext, "continue" > = (state) => (state.done ? END : "continue");StateSchema,ReducedValue, andUntrackedValueStateSchema provides a new API for defining graph state that works with any Standard Schema-compliant validation library (Zod, Valibot, ArkType, and others).
Perform reference equality check on reducers before throwing "Channel already exists with a different type" error
Minor Changes
Add type utilities for authoring graph nodes and conditional edges
New exported type utilities for improved TypeScript ergonomics:
ExtractStateType<Schema>- Extract the State type from any supported schema (StateSchema, AnnotationRoot, or Zod object)ExtractUpdateType<Schema>- Extract the Update type (partial state for node returns) from any supported schemaGraphNode<Schema, Context?, Nodes?>- Strongly-typed utility for defining graph node functions with full inference for state, runtime context, and optional type-safe routing via CommandConditionalEdgeRouter<Schema, Context?, Nodes?>- Type for conditional edge routing functions passed toaddConditionalEdges
These utilities enable defining nodes outside the StateGraph builder while maintaining full type safety:
import { StateSchema, GraphNode, ConditionalEdgeRouter, END, } from "@langchain/langgraph"; import { z } from "zod/v4"; const AgentState = new StateSchema({ messages: MessagesValue, step: z.number().default(0), }); interface MyContext { userId: string; } // Fully typed node function const processNode: GraphNode<typeof AgentState> = (state, runtime) => { return { step: state.step + 1 }; }; // Type-safe routing with Command const routerNode: GraphNode< typeof AgentState, MyContext, "agent" | "tool" > = (state) => new Command({ goto: state.needsTool ? "tool" : "agent" }); // Conditional edge router const router: ConditionalEdgeRouter< typeof AgentState, MyContext, "continue" > = (state) => (state.done ? END : "continue");StateSchema,ReducedValue, andUntrackedValueStateSchema provides a new API for defining graph state that works with any Standard Schema-compliant validation library (Zod, Valibot, ArkType, and others).
Standard Schema support
LangGraph now supports [Standard Schema](https://standardschema.dev/), an open specification implemented by Zod 4, Valibot, ArkType, and other schema libraries. This means you can use your preferred validation library without lock-in: ```typescript import { z } from "zod"; // or valibot, arktype, etc. import { StateSchema, ReducedValue, MessagesValue, } from "@langchain/langgraph"; const AgentState = new StateSchema({ messages: MessagesValue, currentStep: z.string(), count: z.number().default(0), history: new ReducedValue( z.array(z.string()).default(() => []), { inputSchema: z.string(), reducer: (current, next) => [...current, next], } ), }); // Type-safe state and update types type State = typeof AgentState.State; type Update = typeof AgentState.Update; const graph = new StateGraph(AgentState) .addNode("agent", (state) => ({ count: state.count + 1 })) .addEdge(START, "agent") .addEdge("agent", END) .compile(); ```New exports
- **`StateSchema`** - Define state with any Standard Schema-compliant library - **`ReducedValue`** - Define fields with custom reducer functions for accumulating state - **`UntrackedValue`** - Define transient fields that are not persisted to checkpoints - **`MessagesValue`** - Pre-built message list channel with add/remove semantics
Patch Changes
Perform reference equality check on reducers before throwing "Channel already exists with a different type" error
1.0.15
10 Jan 2026Only updates a dependency:@langchain/langgraph-sdk 1.5.0
1.0.14
9 Jan 2026Retry release: improved Zod interop
Patch Changes
Retry release: improved Zod interop
1.0.13
9 Jan 2026Retry release: improved Zod interop
Patch Changes
Retry release: improved Zod interop
1.0.12
9 Jan 2026Retry release: improved Zod interop
Patch Changes
Retry release: improved Zod interop
1.0.7
17 Dec 2025Adding support for resumableStreams on remote graphs.
1.0.6
17 Dec 2025Undeprecate toolsCondition
Respect meta defaults in
LastValue
1.0.3 – 1.0.53 releases that only update dependencies@langchain/langgraph-sdk 1.3.0Show each
- 1.0.515 Dec 2025@langchain/langgraph-sdk 1.3.0
- 1.0.45 Dec 2025@langchain/langgraph-sdk 1.2.0
- 1.0.33 Dec 2025@langchain/langgraph-sdk 1.1.0
1.0.2
11 Nov 2025Remove interrupt deprecations docs
1.0.1
22 Oct 2025Undeprecate
ToolNode
1.0.0
18 Oct 2025- Breaking
Make Zod a peer dependency of @langchain/langgraph
- Breaking
This release updates the package for compatibility with LangGraph v1.0. See the v1.0 release notes for details on what's new.
- Deprecated
prebuilt: Deprecate createReactAgent
Major Changes
- Breaking
Make Zod a peer dependency of @langchain/langgraph
- Breaking
This release updates the package for compatibility with LangGraph v1.0. See the v1.0 release notes for details on what's new.
Patch Changes
Fix type issue with defining
interruptandwriterin StateGraph constructor when using Annotation.RootAdd
pushMessagemethod for manually publishing to messages stream channel- Deprecated
prebuilt: Deprecate createReactAgent
Improve performance of scheduling tasks with large graphs
Improve graph execution performance by avoiding unnecessary cloning of checkpoints after every tick
@langchain/langgraph: Export missing
CommandParamssymbolAdd
stream.encodingoption to emit LangGraph API events as Server-Sent Events. This allows for sending events through the wire by piping the stream to aResponseobject.@langchain/langgraph: Export missing
CommandInstancesymbolUpdate troubleshooting link for common errors, add MISSING_CHECKPOINTER troubleshooting page
Fix
stateKeyproperty inpushMessagebeing ignored when RunnableConfig is automatically inheritedImprove tick performance by detecting interrupts faster within a tick.
Improve tick performance by calling
maxChannelMapVersiononly oncelanggraph: Add
toLangGraphEventStreammethod to stream events in LGP compatible formatcreateReactAgent: Update deprecation messages to contain reactAgent
writer,interruptandsignalis no longer an optional property ofRuntimeAdd support for defining multiple interrupts in StateGraph constructor. Interrupts from the map can be picked from the
Runtimeobject, ensuring type-safety across multiple interrupts.Channels are now part of the public API, allowing users to customise behaviour of checkpointing per channel
Allow defining types for interrupt and custom events upfront
Fix performance regression due to deferred nodes
- 0.4.x
0.4.10
19 Aug 20260.4.9
2 Sep 2025Reading the note…
0.4.8
29 Aug 2025Reading the note…
0.4.7
27 Aug 2025Reading the note…
0.4.6
19 Aug 2025Reading the note…
0.4.5
14 Aug 2025Reading the note…
0.4.4
11 Aug 2025Reading the note…
0.4.3
6 Aug 2025Reading the note…
0.4.2
1 Aug 2025Reading the note…
0.4.1
31 Jul 2025Reading the note…
0.4.0
28 Jul 2025Reading the note…
- 0.3.x
0.3.12
28 Jul 2025Reading the note…
0.3.11
21 Jul 2025Reading the note…
0.3.10
17 Jul 2025Reading the note…
0.3.9
16 Jul 2025Reading the note…
0.3.8
12 Jul 2025Reading the note…
0.3.7
8 Jul 2025Reading the note…
0.3.6
1 Jul 2025Reading the note…
0.3.5
23 Jun 2025Reading the note…
0.3.4
17 Jun 2025Reading the note…
0.3.3
13 Jun 2025Reading the note…
0.3.2
13 Jun 2025Reading the note…
0.3.1
6 Jun 2025Reading the note…
0.3.0
2 Jun 2025Reading the note…
- 0.2.x
0.2.74
28 May 2025Reading the note…
0.2.73
21 May 2025Reading the note…
0.2.72
13 May 2025Reading the note…
0.2.71
10 May 2025Reading the note…
0.2.70
9 May 2025Reading the note…
0.2.69
9 May 2025Reading the note…
0.2.68
5 May 2025Reading the note…
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.