@langchain/langgraph
1.7.5 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed
In short
5 fixed2 internal
Release note
Patch Changes
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.
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.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.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.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.
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.