@langchain/langgraph
1.7.5 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed
Upgrading @langchain/langgraph From 0.2.71 to 1.7.5
96 releases in betweennotes for 69
Reading releases, release notes and advisories…
- 5+
- changes to make
- 0
- advisories fixed
- 35+
- new
- 98+
- fixes
Counted from 69 of 96 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking1.4.21
- Breaking1.4.21
- Breaking1.0.0
- Breaking1.0.0
- Deprecated1.0.0
Release by release
- Fixed
With a zod state schema, node updates and run input are validated with the cached partial schema instead of a new zod schema per update, which zod had to compile every time. A 50-step run on a 30-field zod state is 1.65x faster.
- Fixed
The Pregel loop finds
DeltaChannelandUntrackedValuechannels once per run instead of scanning every channel on each task and step. A 1,000-node chain runs 1.37x faster. - Fixed
messagesStateReducerdoes less work per update on a long history: it rules out message chunks with a native prototype check first, looks up only the ids the update touches, and skips the removal pass when nothing is removed. A call on 2,000 messages is 4x faster. - Fixed
The runner keeps a step's running tasks in a
Map. Listing them took longer with every task, which made wideSendfan-outs quadratic: 500 parallel tasks now run 1.4x faster. - Fixed
LangGraph's own writers and branch runners inside each node no longer enter an async context. Entering one made
@langchain/corebuild a LangSmith run tree on every call, even with tracing off, so graphs whose nodes do little work run up to 1.75x faster. Node functions, edge functions and tools keep their context.
- Fixed
1.7.4nothing new or fixed in the note
- Fixed
Match whole namespace segments in
getSubgraphsandgetSubgraphsAsync, so anamespacesuch asresearch_reviewno longer also yieldsresearch|review, and yield a namespace's subgraph once when a node declares severalsubgraphs - Fixed
Stop the run when a consumer breaks out of a
for awaitloop overgraph.stream()orgraph.streamEvents(), or cancels the stream's reader. Only an explicitstream.cancel()aborted the run before; breaking out of the loop left the remaining nodes running in the background.
- Fixed
- Fixed
getStateandgetStateHistoryreport theresultof a task that was interrupted and then resumed. The task's interrupt write stays on the checkpoint after it finishes, and that hid the result, so a node with human-in-the-loop never showed what it returned in history. A task that failed after writing some output now reports that output as itsresulttoo, as in Python. A task still paused at an interrupt keepsresult: undefined.
- Fixed
- New
langgraph: Add
isUnknownInterruptError, which matches the error by name likeisGraphInterrupt, so it also recognizes anUnknownInterruptErrorthrown by another copy of@langchain/langgraph - Fixed
Task results in the
tasksanddebugstream modes carry the task'serror(nullwhen it succeeded), as they do in Python, so a failed task no longer looks completed.
- New
- New
langgraph: Give each interrupt() in a task its own id
- New
langgraph: Add a strict resume mode that refuses stale interrupt answers
- New
- Fixed
Restore per-node
tracePolicy, using@langchain/core'sTracePolicy(requires@langchain/core>= 1.3.4). It only changes whatLangChainTracersends to LangSmith; execution, streaming, and other callbacks see raw values.
- Fixed
- Fixed
langgraph: Give messages and tools events the namespace of the graph that ran them
- Fixed
langgraph: Keep every message a node returns in messages stream mode
- Fixed
langgraph: Route a RemoteGraph's subgraph events like a local graph's when it streams inside a node
- Fixed
List a
ToolNode's tool names under the__toolsnode metadata key ingetGraph()andgetGraphAsync(), matching Python, so graph viewers such as Studio can show which tools it runs. - Fixed
langgraph: Stop reporting a paused tool as failed on the tools stream
- Fixed
67 internal lines (docs, tests, tooling) left out.
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.