@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.7.5
17 Nov 2026With 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.
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.
1.7.4
12 Nov 2026Only updates a dependency:@langchain/langgraph-sdk 1.16.0
1.7.3
10 Nov 2026Match whole namespace segments in
getSubgraphsandgetSubgraphsAsync, so anamespacesuch asresearch_reviewno longer also yieldsresearch|review, and yield a namespace's subgraph once when a node declares severalsubgraphsStop 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.
1.7.2
7 Nov 2026getStateandgetStateHistoryreport 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.
Patch Changes
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.
1.7.1
6 Nov 2026langgraph: Add
isUnknownInterruptError, which matches the error by name likeisGraphInterrupt, so it also recognizes anUnknownInterruptErrorthrown by another copy of@langchain/langgraphTask 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.
Patch Changes
langgraph: Add
isUnknownInterruptError, which matches the error by name likeisGraphInterrupt, so it also recognizes anUnknownInterruptErrorthrown by another copy of@langchain/langgraphTask 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.
1.7.0
5 Nov 2026langgraph: Give each interrupt() in a task its own id
An interrupt raised after its task already got answers now gets its own id: the namespace hash plus the answer count. A task's first question keeps its id, and strict resume refuses an answer retried after a node asked its next question. Ids saved by older versions still answer: when a resume map has no entry for the task's next interrupt, the first id is used. A node retried by its retry policy now reuses its task's answers instead of asking again.
langgraph: Add a strict resume mode that refuses stale interrupt answers
With the private configurable key
__pregel_strict_resumeset, the root graph throwsUnknownInterruptErrorbefore writing anything when aCommand({ resume })names an interrupt that isn't pending, is an empty map, or is one value while several interrupts are pending. The error'sreason(not_pending,empty_maporambiguous) says which, with the interrupt ids involved ininterruptIdsandpendingIds. Without the key, resuming behaves as before.A task that raises several interrupts at once, such as a subgraph with parallel interrupts, now keeps all of them; before, only the last one was saved.
Command({ resume: false })and other falsy resume values now reachinterrupt()instead of throwingEmptyInputError.
Minor Changes
langgraph: Give each interrupt() in a task its own id
An interrupt raised after its task already got answers now gets its own id: the namespace hash plus the answer count. A task's first question keeps its id, and strict resume refuses an answer retried after a node asked its next question. Ids saved by older versions still answer: when a resume map has no entry for the task's next interrupt, the first id is used. A node retried by its retry policy now reuses its task's answers instead of asking again.
langgraph: Add a strict resume mode that refuses stale interrupt answers
With the private configurable key
__pregel_strict_resumeset, the root graph throwsUnknownInterruptErrorbefore writing anything when aCommand({ resume })names an interrupt that isn't pending, is an empty map, or is one value while several interrupts are pending. The error'sreason(not_pending,empty_maporambiguous) says which, with the interrupt ids involved ininterruptIdsandpendingIds. Without the key, resuming behaves as before.A task that raises several interrupts at once, such as a subgraph with parallel interrupts, now keeps all of them; before, only the last one was saved.
Command({ resume: false })and other falsy resume values now reachinterrupt()instead of throwingEmptyInputError.
1.6.1
4 Nov 2026Restore 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.
Patch Changes
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.
1.6.0
30 Oct 2026langgraph: Give messages and tools events the namespace of the graph that ran them
messagesandtoolsstream events now carry the namespace of the graph that ran them:streamEventswithversion: "v3"is unchanged.langgraph: Keep every message a node returns in messages stream mode
streamEventswithversion: "v3"is unchanged.langgraph: Route a RemoteGraph's subgraph events like a local graph's when it streams inside a node
When a node streams a
RemoteGraphand its parent graph is streamed withsubgraphs: true:
Minor Changes
langgraph: Give messages and tools events the namespace of the graph that ran them
messagesandtoolsstream events now carry the namespace of the graph that ran them:An event's namespace no longer ends with the node that made the call. Root tokens have the namespace ``, so with
subgraphs: truethey stream asmessages, notmessages|model:<id>, and a subgraph's tokens asmessages|sub:<id>.Events from a model or tool called inside a
task()belong to the graph that called the task: they stream withoutsubgraphs: true, under that graph's namespace.Without
subgraphs: true, events from inside subgraphs no longer stream. A subgraph node's returned messages still stream, whole, when it ends, and a node that streams its own subgraph withstreamMode: "messages"or"tools"still receives that subgraph's events.Messages sent with
pushMessagefollow the same rules, so a node that streams its own subgraph receives the messages that subgraph pushes.Apps that show subagent messages as they stream, like
useStreamwithfilterSubagentMessages, now needstreamSubgraphs: truewhen they submit, as they already did with a Python server.
streamEventswithversion: "v3"is unchanged.
Patch Changes
langgraph: Keep every message a node returns in messages stream mode
In
streamMode: "messages", the id-less messages a node returned all got one id, and an id-less message could take the id of a sibling that had one, so the messages reducer kept only one of them and the saved state depended on the stream mode. Each id-less message of a node's output now gets its own id.Messages a node returns through
Command({ update })are now emitted inmessagesmode, as in Python. So are all the messages of a list of updates that holds aCommand, such asToolNodereturns when one of its tools returns aCommand; before, none of that list's messages were emitted, and they reached clients only with the nextvaluesevent.A model tagged
nostreamstill streams no tokens, but when its node returns its message in a list with aCommand, ascreateAgentdoes, that message now streams whole when the node ends, as it already did for a plain update and does in Python.
streamEventswithversion: "v3"is unchanged.langgraph: Route a RemoteGraph's subgraph events like a local graph's when it streams inside a node
When a node streams a
RemoteGraphand its parent graph is streamed withsubgraphs: true:The node no longer receives the remote graph's subgraph events unless it passed
subgraphs: trueitself. WithstreamMode: "updates"it got["model", "child"]where a local graph gives["child"].messagesevents are not filtered. The server sends each message once, from the namespace where it first saw it, so it never sends the top-level copy the node would get from a local graph, and filtering would leave the node with no messages.The parent now receives the remote graph's subgraph events, at every depth. Before, it received only the remote graph's top-level events.
The same holds when the node passes
subgraphs: false. Before, that turned off subgraph events for the parent too. So a node that streams withstreamMode: "messages"andsubgraphs: falsenow gets the subgraph's message tokens instead of the whole message at the top level, as it already did when it didn't passsubgraphs, and as Python'sRemoteGraphdoes.
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.langgraph: Stop reporting a paused tool as failed on the tools stream
A tool that calls
interrupt(), or whose run is drained, no longer emitson_tool_erroron thetoolsstream mode. The tool is paused, not failed: on resume it runs again and emitson_tool_startandon_tool_end.ToolNodenow re-throws a drain, as it already did an interrupt, instead of turning it into an errorToolMessage.
1.5.3
26 Oct 2026Change the default
DeltaChannelsnapshot frequency from 1000 to 100 updates, matching Python. Channels now persist full snapshots more frequently to reduce replay latency at the cost of increased storage. SetsnapshotFrequency: 1000explicitly to retain the previous cadence.
Patch Changes
Change the default
DeltaChannelsnapshot frequency from 1000 to 100 updates, matching Python. Channels now persist full snapshots more frequently to reduce replay latency at the cost of increased storage. SetsnapshotFrequency: 1000explicitly to retain the previous cadence.
1.5.2
21 Oct 2026Depend on
@langchain/protocol0.0.20, the version@langchain/langgraph-sdkuses, so installs resolve a single copy and the protocol event types stay compatible.
Patch Changes
Depend on
@langchain/protocol0.0.20, the version@langchain/langgraph-sdkuses, so installs resolve a single copy and the protocol event types stay compatible.
1.5.1
16 Oct 2026A field that changes from a DeltaChannel to a plain reducer, for example to
MessagesAnnotation, keeps its value on threads written under the DeltaChannel: reads rebuild it from the stored writes instead of returning the empty default, and the next run adds to it instead of replacing it.With
durability: "exit", resuming parallel interrupts one at a time no longer applies a finished task's output twice: the save at exit keeps only the writes made during that run, instead of storing the ones loaded with the checkpoint again under new indexes.When one answer in a multi-answer resume fails its interrupt's
responseSchema, the other tasks in the step now finish before theZodErroris thrown, instead of being aborted. A task aborted after its side effects kept its answer and ran again on the next resume. The error is unchanged, and the newisInvalidResume(error)tells it apart from other errors, asis_invalid_resumedoes in langgraph (Python).
Patch Changes
A field that changes from a DeltaChannel to a plain reducer, for example to
MessagesAnnotation, keeps its value on threads written under the DeltaChannel: reads rebuild it from the stored writes instead of returning the empty default, and the next run adds to it instead of replacing it.With
durability: "exit", resuming parallel interrupts one at a time no longer applies a finished task's output twice: the save at exit keeps only the writes made during that run, instead of storing the ones loaded with the checkpoint again under new indexes.When one answer in a multi-answer resume fails its interrupt's
responseSchema, the other tasks in the step now finish before theZodErroris thrown, instead of being aborted. A task aborted after its side effects kept its answer and ran again on the next resume. The error is unchanged, and the newisInvalidResume(error)tells it apart from other errors, asis_invalid_resumedoes in langgraph (Python).messagesStateReducerandmessagesDeltaReducerstore message chunks as their non-chunk class, as Python'sadd_messagesdoes. A graph run withstreamMode: "messages"orstreamEventsnow checkpoints the sameAIMessageasinvoke, without a duplicatetool_call_chunkscopy of every tool call, and an in-place edit totool_calls(for example a rejected call inhumanInTheLoopMiddleware) is no longer undone when the thread is reloaded.Resuming after some parallel interrupts were answered no longer reruns the nodes and
task()calls that already finished, in a subgraph or when the resume is sent with the id of the thread's latest checkpoint. Finished tasks now rerun only on time travel, or on a resume at a checkpoint the thread has moved past.
1.5.0
12 Oct 2026Order parallel writes by task path, like langgraph (Python) — one sort key for live execution and every saver, instead of the task-id order #2544 added for DeltaChannel writes
When two or more tasks in one superstep write the same
DeltaChannel, their writes are now applied and replayed in(task_path, task_id, idx)order — the order Python's langgraph#8544 established — instead of task-id order. Task ids are uuid5 hashes that include the checkpoint id, so the old order permuted parallel writers from run to run and disagreed with Python.Upgrade notes:
A node served from the node cache now saves its writes like a node that ran. They were applied but never saved, so a
DeltaChannelread back without them once the state was loaded again, under every durability. A cache hit is still streamed as cached and isn't written back to the cache.An exit-durability run that starts from a checkpoint the thread has moved past, addressed by
checkpoint_id, no longer stores itsDeltaChannelwrites on that checkpoint, where the branch that already grew from it read them too. The run now snapshots the channels it wrote instead.
Minor Changes
Order parallel writes by task path, like langgraph (Python) — one sort key for live execution and every saver, instead of the task-id order #2544 added for DeltaChannel writes
When two or more tasks in one superstep write the same
DeltaChannel, their writes are now applied and replayed in(task_path, task_id, idx)order — the order Python's langgraph#8544 established — instead of task-id order. Task ids are uuid5 hashes that include the checkpoint id, so the old order permuted parallel writers from run to run and disagreed with Python.BaseCheckpointSaver.putWritestakes an optionaltaskPath(the serialized task path,taskPathStr), andgetTuple/listmust returnpendingWritesin the newwritesSortKeyorder.writesSortKeyandcompareWritesSortKeysare new exports of@langchain/langgraph-checkpoint; every saver (memory, SQLite, Postgres, Redis incl. ShallowRedisSaver, MongoDB) stores the path and sorts in JS — no database collation is involved.SQLite and Postgres gain a
task_pathcolumn (migrated automatically onsetup(); read-only pre-column SQLite databases keep reading, with their rows keeping the old order). Redis and MongoDB documents gain atask_pathfield. Rows written before the upgrade keep their old order.Exit-durability resumes replay delta writes in live order (port of langgraph#9114): the resumed superstep's writes interleave with the loaded ones by task path, later supersteps sort after every real write, and writes loaded with the checkpoint are no longer stored twice.
bulkUpdateStateseals the first update superstep: DeltaChannels touched by the base checkpoint's pending writes (and whose version moved) snapshot on the update checkpoint, so a finished sibling's writes and the update's can't replay in the wrong order (partial port of langgraph#8548).bulkUpdateState/updateStateupdate tasks carry(__interrupt__, i)task paths, as in langgraph#9128, so several updates in one superstep writing the same DeltaChannel replay in the order given.Send task paths become
[PUSH, i, false]and node-error-handler paths become[*failedTask.path[:3], "node_error_handler", false](the failed task's first three path elements), matching Python's shapes —langgraph_pathtask metadata changes accordingly, and task ids of functionaltask()calls under a Send or handler task change with them. The SDK's Send-task detection accepts both the old and new shapes.
Upgrade notes:
PostgresSaver: runsetup()once after upgrading, from one process, before the new version serves traffic. Thetask_pathcolumn comes from the first new migration since the saver shipped, and until it runs, reads and writes fail withcolumn "task_path" does not exist. Several processes runningsetup()at once on a database that still needs the migration can fail with a duplicate key error oncheckpoint_migrations.Third-party checkpoint savers remain source-compatible but must now persist the
taskPaththey are given and returnpendingWritesinwritesSortKeyorder; the conformance suite's new base tests enforce this. A saver that ignores the new argument replays in task-id order and can rebuild a different DeltaChannel value than the run produced.An incomplete superstep containing stored delta writes that must interleave with resumed or retried task writes is affected by the upgrade, whether the incompleteness came from an interrupt, a task error, a crash, or a drain: finish such threads with the old runtime before upgrading writers. A single interrupted node with no finished delta-writing siblings is safe to resume. The same applies to resuming work that includes functional
task()calls under a Send or error-handler task, whose child task ids change.@langchain/langgraph-checkpoint1.2.0 must be released before any package requiring its new exports; the consumers' minimum ranges are raised accordingly.
Patch Changes
A node served from the node cache now saves its writes like a node that ran. They were applied but never saved, so a
DeltaChannelread back without them once the state was loaded again, under every durability. A cache hit is still streamed as cached and isn't written back to the cache.An exit-durability run that starts from a checkpoint the thread has moved past, addressed by
checkpoint_id, no longer stores itsDeltaChannelwrites on that checkpoint, where the branch that already grew from it read them too. The run now snapshots the channels it wrote instead.langgraph: A checkpoint save now waits for the DeltaChannel writes the run sent before it and is skipped if one of them failed, so a failed write no longer leaves the channel reading back without it.
langgraph: A DeltaChannel no longer reads back writes from another branch. The first checkpoint of a new branch snapshots the delta channels its base has pending writes for, an
updateStateon a checkpoint the thread moved past stores none of its writes there, and a replay of such a checkpoint forks before storing aCommand's writes.A run's input to a DeltaChannel input channel of a raw
Pregelgraph reads back only on the checkpoints built from it. With"sync"or"async"durability it was saved as the starting checkpoint's own state: on a new thread the first run's input was lost, the previous run's last checkpoint read the next run's input, and a run from an older checkpoint leaked its input into the branch that already grew from it. Now the input is stored on the starting checkpoint under its own task id, or, on a new thread or an addressed checkpoint, the input checkpoint snapshots the channel. Threads saved before this keep the input already stored on their checkpoints.A fork from a checkpoint before a DeltaChannel's first write no longer starts the channel's subscribers that never ran. The fork's snapshot gave the channel its first version, and a node subscribed to it ran on the empty value before the node that writes it.
langgraph:
updateStatesavescounters_since_delta_snapshoton every checkpoint it creates, so the next run keeps counting from it instead of from zero and DeltaChannels snapshot on schedule after an update.An
OverwritethroughupdateStatesnapshots the DeltaChannel it resets on the checkpoint the update saves, as a node'sOverwritedoes in the loop. The value already read back right; reads of that checkpoint and the ones after it no longer walk back past the reset.A drain requested right before an
interruptBeforebreakpoint now stops the run at the breakpoint. The run used to drain there instead, and resuming it withinvoke(null, config)ran past the breakpoint, since a resume treats the next step's breakpoints as already passed.langgraph: exit-mode DeltaChannel writes are never stored under the null task id. A run that started at step 0 with a
Commandupdate, such as a new thread started withCommand({ update, goto })underdurability: "exit", stored the update underNULL_TASK_ID, so reading or replaying that first checkpoint applied it to the DeltaChannel but not to plain channels.langgraph: Channels written in one step share one version again:
_applyWritesmints each version once. A saver that adds a random fraction to its versions, as the Postgres and Redis savers now do, gave each channel its own, soupdateStatewithoutasNodeafter two parallel nodes applied the update as either one instead of throwing "Ambiguous update".Prevent checkpointer write failures from surfacing as process-level
unhandledRejectionevents before the run boundary reports them.Give every message written to a DeltaChannel that uses
messagesDeltaReduceran id, soRemoveMessagecan target it: one saved throughupdateState, a string, a[role, content]pair, a plain object, one inside anOverwrite, a rawPregelinput, or aCommandforked from an older checkpoint.
1.4.21
7 Oct 2026- Breaking
langgraph:
isCommandno longer accepts plain objects, so JSON graph input shaped like{ lg_name: "Command", goto, update }is treated as ordinary state input instead of a control directive.Commandinstances, including ones built by another installed copy of@langchain/langgraph, are still recognized. To pass a command as input, construct it withnew Command(...). - Breaking
langgraph: Require
@langchain/langgraph-sdk1.12.3 or later.
1.4.20
6 Oct 2026Give each update of a multi-update
bulkUpdateStatesuper-step its own task id, so a DeltaChannel keeps every update instead of only the firstDon't ask the checkpointer for the history of a DeltaChannel that was never written; it is empty, and the walk for it read every ancestor of the thread on every load. Only checkpoints whose metadata has
delta_writes_versionedskip it: graphs with a DeltaChannel set it on new threads, where every DeltaChannel write has a version, so threads started by earlier versions keep reading as before.updateStatenow versions the writes it takes from the head, which also stops PostgresSaver from dropping them, and keeps the DeltaChannel writes it makes on a new thread.Exit durability no longer saves a checkpoint as its own parent when a run ends without running anything, such as replaying the newest checkpoint of a finished thread; with a DeltaChannel, reading such a thread crashed
Patch Changes
Give each update of a multi-update
bulkUpdateStatesuper-step its own task id, so a DeltaChannel keeps every update instead of only the firstDon't ask the checkpointer for the history of a DeltaChannel that was never written; it is empty, and the walk for it read every ancestor of the thread on every load. Only checkpoints whose metadata has
delta_writes_versionedskip it: graphs with a DeltaChannel set it on new threads, where every DeltaChannel write has a version, so threads started by earlier versions keep reading as before.updateStatenow versions the writes it takes from the head, which also stops PostgresSaver from dropping them, and keeps the DeltaChannel writes it makes on a new thread.Exit durability no longer saves a checkpoint as its own parent when a run ends without running anything, such as replaying the newest checkpoint of a finished thread; with a DeltaChannel, reading such a thread crashed
1.4.19
3 Oct 2026Read a subgraph's DeltaChannel with the checkpointer the parent resolved, instead of hydrating it empty; hydrating a written DeltaChannel without a checkpointer or config now throws instead of returning an empty value; state methods resolve the checkpointer the way a run does, so a
checkpointer: falsegraph no longer writes state with a checkpointer lent through the config and has no task state ingetState, and acheckpointer: truegraph used as a root rejects state methods with the run's error;getState,getStateHistoryandupdateStateuse acheckpointer: truesubgraph's namespace as its run stores it, so reads find its state and updates are no longer lost; resuming from a subgraph checkpoint returned bygetState(config, { subgraphs: true })now applies the resume value instead of re-firing the interrupt
Patch Changes
Read a subgraph's DeltaChannel with the checkpointer the parent resolved, instead of hydrating it empty; hydrating a written DeltaChannel without a checkpointer or config now throws instead of returning an empty value; state methods resolve the checkpointer the way a run does, so a
checkpointer: falsegraph no longer writes state with a checkpointer lent through the config and has no task state ingetState, and acheckpointer: truegraph used as a root rejects state methods with the run's error;getState,getStateHistoryandupdateStateuse acheckpointer: truesubgraph's namespace as its run stores it, so reads find its state and updates are no longer lost; resuming from a subgraph checkpoint returned bygetState(config, { subgraphs: true })now applies the resume value instead of re-firing the interrupt
1.4.18
25 Sep 2026Only updates a dependency:@langchain/langgraph-sdk 1.12.0
1.4.17
21 Sep 2026Add
GraphCallbackHandlerwith typedhandleInterruptandhandleResumeevents through normal callback configuration, matching Python graph lifecycle behavior. Lifecycle callbacks are awaited before terminal chain callbacks and work independently of stream mode.
1.4.16
18 Sep 2026langgraph: Add
responseSchemaoption tointerrupt()interrupt(value, { responseSchema })lets a graph declare the shape of the
value it expects on resume. A Zod schema validates the resume value and the
parsed result is whatinterrupt()returns; a raw JSON Schema object is passed
through as-is. The schema is surfaced onInterrupt.response_schemaso clients
such as Studio can render a typed form instead of a free-form JSON editor.
Omitting the option keeps today's behavior.
Patch Changes
langgraph: Add
responseSchemaoption tointerrupt()interrupt(value, { responseSchema })lets a graph declare the shape of the
value it expects on resume. A Zod schema validates the resume value and the
parsed result is whatinterrupt()returns; a raw JSON Schema object is passed
through as-is. The schema is surfaced onInterrupt.response_schemaso clients
such as Studio can render a typed form instead of a free-form JSON editor.
Omitting the option keeps today's behavior.
1.4.15
12 Sep 2026langgraph: Add per-node
tracePolicyinput/output processors andomitPayloadTransform the payloads recorded on a node's own trace run while retaining its span and timing. Processors receive raw values and fall back to the original payload if they throw. Graph state, root runs, and child runs remain unchanged when processors do not mutate their arguments.
Matches Python's callback-level behavior: transforms also affect chain events and message streaming, so omitting outputs can suppress messages returned directly by nodes and omitting inputs can affect message deduplication.
Patch Changes
langgraph: Add per-node
tracePolicyinput/output processors andomitPayloadTransform the payloads recorded on a node's own trace run while retaining its span and timing. Processors receive raw values and fall back to the original payload if they throw. Graph state, root runs, and child runs remain unchanged when processors do not mutate their arguments.
Matches Python's callback-level behavior: transforms also affect chain events and message streaming, so omitting outputs can suppress messages returned directly by nodes and omitting inputs can affect message deduplication.
1.4.14
4 Sep 2026langgraph: pushMessage emits on the streamEvents v3 messages channel
Patch Changes
langgraph: pushMessage emits on the streamEvents v3 messages channel
1.4.13
26 Aug 2026Only updates a dependency:@langchain/langgraph-sdk 1.10.0
1.4.12
19 Aug 2026Update checkpoint integrations to require the patched checkpoint serializer release.
Patch Changes
Update checkpoint integrations to require the patched checkpoint serializer release.
1.4.11
19 Aug 2026langgraph: Dedupe merged callback handlers by identity
mergeCallbacksconcatenatedhandlersandinheritableHandlerswhile
dedupingtags, so a handler inherited by both the ambient and the explicit
config picked up an extra registration at every graph boundary. With tracing
on, a nestedstreamMode: "messages"run delivered every token twice.
Patch Changes
langgraph: Dedupe merged callback handlers by identity
mergeCallbacksconcatenatedhandlersandinheritableHandlerswhile
dedupingtags, so a handler inherited by both the ambient and the explicit
config picked up an extra registration at every graph boundary. With tracing
on, a nestedstreamMode: "messages"run delivered every token twice.
1.4.10
14 Aug 2026langgraph: Keep
contextvalues out of tracer-derived metadata
1.4.9
3 Aug 2026langgraph: Checkpoint Topic as a flat values list
Match Python Topic checkpoints so Host JS graphs no longer put
__pregel_tasks: [,]through the Python checkpointer. Keep reading legacy[seen, values]checkpoints for restore compatibility.
1.4.8
15 Jul 2026pregel: Wait for completed-superstep persistence with sync durability
Patch Changes
pregel: Wait for completed-superstep persistence with sync durability
1.4.7
25 Jun 2026langgraph: Drop unused zod-to-json-schema peer dependency
Remove the vestigial
zod-to-json-schema(and itspeerDependenciesMeta/dev) declarations. JSON Schema generation now flows through@langchain/core's Zod v3/v4 interop (toJsonSchema), so the oldzod-to-json-schema@^3.xpeer (which pinszod@^3.24.1) is no longer needed and was the last source of install-time peer conflicts with Zod v4. Closes #1706.
1.4.6
25 Jun 2026langgraph: Emit valid UUIDs for exit-mode delta task_ids
Exit-mode DeltaChannel writes used a step-prefixed synthetic task id that produced a 6-segment string Postgres rejects for
checkpoint_writes.task_id uuidin LangGraph API. Embed the superstep in the first UUID group instead, matching langchain-ai/langgraph#8165.
Patch Changes
langgraph: Emit valid UUIDs for exit-mode delta task_ids
Exit-mode DeltaChannel writes used a step-prefixed synthetic task id that produced a 6-segment string Postgres rejects for
checkpoint_writes.task_id uuidin LangGraph API. Embed the superstep in the first UUID group instead, matching langchain-ai/langgraph#8165.
1.4.5
22 Jun 2026sdk: Apply state update and goto alongside interrupt resume
respond(decision, { update, goto })now maps to LangGraph'sCommand(resume, update, goto), so a human-in-the-loop UI can commit a state
update (e.g. push the interrupt card into state) in the same superstep as
the resume — one checkpoint, no separateupdateStatewrite, no flicker.@langchain/langgraph-apiforwardsupdate/gotothroughinput.respond,
and@langchain/coremessage instances inupdateare serialized to dicts
before transport, exactly likesubmit(). Bumps@langchain/protocolto^0.0.18for theGototype.respond/respondAllalso applyupdateoptimistically (mirroringsubmit()): the pushed messages paint immediately, with stable ids minted so
the resumed run's echo reconciles them in place. Without this the interrupt is
cleared the instantrespond()dispatches while the pushed card only reappears
a server round-trip later — so the card would flicker in that gap. The
optimistic state settles on the resumed run's terminal (pending → sent, or
rolled back on a failure before any echo).User-initiated optimistic writes (
submit()/respond()/respondAll()) now
commit to the store synchronously, in the same tick as the triggering event,
instead of being coalesced onto the next macrotask. This lets a framework render
the pushed message in the same commit as any local UI state the caller flips
alongside it (e.g. a HITL form swapping its inputs for the resolved card), so the
card no longer blinks out for the one-macrotask window before the flush lands.
High-frequency streaming writes keep their macrotask coalescing.
Patch Changes
sdk: Apply state update and goto alongside interrupt resume
respond(decision, { update, goto })now maps to LangGraph'sCommand(resume, update, goto), so a human-in-the-loop UI can commit a state
update (e.g. push the interrupt card into state) in the same superstep as
the resume — one checkpoint, no separateupdateStatewrite, no flicker.@langchain/langgraph-apiforwardsupdate/gotothroughinput.respond,
and@langchain/coremessage instances inupdateare serialized to dicts
before transport, exactly likesubmit(). Bumps@langchain/protocolto^0.0.18for theGototype.respond/respondAllalso applyupdateoptimistically (mirroringsubmit()): the pushed messages paint immediately, with stable ids minted so
the resumed run's echo reconciles them in place. Without this the interrupt is
cleared the instantrespond()dispatches while the pushed card only reappears
a server round-trip later — so the card would flicker in that gap. The
optimistic state settles on the resumed run's terminal (pending → sent, or
rolled back on a failure before any echo).User-initiated optimistic writes (
submit()/respond()/respondAll()) now
commit to the store synchronously, in the same tick as the triggering event,
instead of being coalesced onto the next macrotask. This lets a framework render
the pushed message in the same commit as any local UI state the caller flips
alongside it (e.g. a HITL form swapping its inputs for the resolved card), so the
card no longer blinks out for the one-macrotask window before the flush lands.
High-frequency streaming writes keep their macrotask coalescing.
1.4.4
17 Jun 2026langgraph: Isolate concurrent singleton-agent invocations by thread
ensureLangGraphConfigignores the ambientAsyncLocalStorageconfigurable
on root-level invokes that supply an invoke-timethread_idand have no nesting
keys (ignoring graph-bound.withConfig()defaults). On a fresh top-level run
the ambientconfigurablecan belong to another concurrent invocation, so its
keys — internal scratchpad/task-input as well as user keys liketenant_id/user_id— must not leak in; values the caller wants arrive through
the explicit (bound + invoke-time) configs. Ambient nesting (__pregel_read__)
and bound child graphs invoked from parent tasks are unaffected. This prevents
cross-invocation leakage between concurrentinvoke()calls on a shared compiled
graph (e.g. BullMQ workers withconcurrency > 1). Complements the config-merge
fix that stopped shared graph-boundmetadata/configurableobjects from being
mutated across invocations
(#2040).langgraph: Recognize JSON-erased
Overwritevalues across runtimesOverwritealready survives JSON serialization in JS becauseOverwrite.toJSON()
emits the canonical{ "__overwrite__": value }sentinel._getOverwriteValue
now additionally recognizes the discriminator form{ "type": "__overwrite__", value }produced when a typedOverwritefrom another runtime (e.g. a Python
dataclass routed through the LangGraph API server) is serialized and its type is
erased. This keepsOverwrite(andDeltaChannel) semantics intact across
cross-runtime JSON boundaries. These delta-channel APIs remain Beta.
1.4.2
12 Jun 2026Only updates dependencies:@langchain/langgraph-sdk 1.9.22@langchain/langgraph-checkpoint 1.1.1
1.4.1
11 Jun 2026state: Validate Zod state updates from nodes
Validate node return values and Command updates against Zod state schema
constraints before applying them to graph state.Fixes #2519
ToolNode: Forward graph state to tools via
runtime.stateToolNodenow forwards its input to each tool through the second argument asruntime.state. When usingToolNodeas a node in a LangGraph graph, this gives tools access to the current graph state for workflows that need tool-call support in LangGraph proper. Tools can type the second parameter asToolRuntime<StateType>from@langchain/core/toolsand readruntime.statedirectly. This works in every runtime, including web browsers, and removes the need forgetCurrentTaskInput()(which relies onnode:async_hooks/AsyncLocalStorage).getCurrentTaskInput(config)continues to work for backwards compatibility.
Patch Changes
state: Validate Zod state updates from nodes
Validate node return values and Command updates against Zod state schema
constraints before applying them to graph state.Fixes #2519
ToolNode: Forward graph state to tools via
runtime.stateToolNodenow forwards its input to each tool through the second argument asruntime.state. When usingToolNodeas a node in a LangGraph graph, this gives tools access to the current graph state for workflows that need tool-call support in LangGraph proper. Tools can type the second parameter asToolRuntime<StateType>from@langchain/core/toolsand readruntime.statedirectly. This works in every runtime, including web browsers, and removes the need forgetCurrentTaskInput()(which relies onnode:async_hooks/AsyncLocalStorage).getCurrentTaskInput(config)continues to work for backwards compatibility.
1.4.0
10 Jun 2026Add cooperative, between-superstep graph draining via
RunControl.A new
RunControl(exported from@langchain/langgraph) exposesrequestDrain(reason)plus read-onlydrainRequested/drainReason. Pass it
through the newcontroloption oninvoke/stream/streamEvents(and the
functional API). It is surfaced onruntime.control, so nodes can read it or callrequestDrain()themselves, and it is propagated into subgraphs.When a drain is requested, the Pregel loop checks the flag at the top of each
superstep (after the previous step's writes are applied and checkpointed): if more
tasks remain it saves the checkpoint and throws the newGraphDrainederror (also
underdurability: "exit"), so the run can be resumed later from the same config.
If the graph naturally finishes on that tick it returns normally and the caller can
inspectcontrol.drainRequested. A drain requested inside a subgraph bubbles up and
stops the parent at its next boundary. Draining never cancels work that is already
running — pair it with anAbortSignalif you need a hard upper bound.Add
DeltaChanneland the writes-history saver API (beta).DeltaChannelis a reducer channel that stores only a sentinel in checkpoint
blobs instead of the full accumulated value, reconstructing state on read by
replaying ancestor writes through a batch reducer. This avoids re-serializing
the entire accumulated value at every step (e.g. long message histories).Reconstruction is wired through the Pregel read/execution paths (initialization,
getState,updateState, local reads) andexitdurability accumulates and
anchors delta writes so threads remain reconstructible without forcing
snapshots.langgraph: Add node-level error handlers
StateGraph.addNode(name, fn, { errorHandler })now accepts a first-class
node-level error handler. The handler runs ONLY after the failing node'sretryPolicyis exhausted, so retry and handling stay decoupled. It receives a
typedNodeError { node, error }and the typed node input state, can return a
state update, and can route to a recovery branch vianew Command({ goto })
(saga / compensation flows).Failure provenance is checkpointed (via a reserved
ERROR_SOURCE_NODEwrite) so
handlers observe the same context after a checkpoint resume. Uncaught node
errors without a handler still abort the run as before, andGraphBubbleUp
errors (such asinterrupt()) are never swallowed by a handler.StateGraph.setNodeDefaults({ errorHandler })now also accepts a graph-wide
default handler. It is materialized atcompile()as a single shared handler
and invoked for every regular node that does not set its ownerrorHandler. A
per-node handler always takes precedence, the default never catches a failure
raised by an error-handler node itself (handler failures fail the run), and the
default is not inherited by subgraphs.Ports the Python feature from langchain-ai/langgraph#7233.
Minor Changes
Add cooperative, between-superstep graph draining via
RunControl.A new
RunControl(exported from@langchain/langgraph) exposesrequestDrain(reason)plus read-onlydrainRequested/drainReason. Pass it
through the newcontroloption oninvoke/stream/streamEvents(and the
functional API). It is surfaced onruntime.control, so nodes can read it or callrequestDrain()themselves, and it is propagated into subgraphs.When a drain is requested, the Pregel loop checks the flag at the top of each
superstep (after the previous step's writes are applied and checkpointed): if more
tasks remain it saves the checkpoint and throws the newGraphDrainederror (also
underdurability: "exit"), so the run can be resumed later from the same config.
If the graph naturally finishes on that tick it returns normally and the caller can
inspectcontrol.drainRequested. A drain requested inside a subgraph bubbles up and
stops the parent at its next boundary. Draining never cancels work that is already
running — pair it with anAbortSignalif you need a hard upper bound.Add
DeltaChanneland the writes-history saver API (beta).DeltaChannelis a reducer channel that stores only a sentinel in checkpoint
blobs instead of the full accumulated value, reconstructing state on read by
replaying ancestor writes through a batch reducer. This avoids re-serializing
the entire accumulated value at every step (e.g. long message histories).DeltaChannel(reducer, { snapshotFrequency })in@langchain/langgraph
count-based snapshot cadence (defaultsnapshotFrequency=1000) plus a
system boundDELTA_MAX_SUPERSTEPS_SINCE_SNAPSHOT(default 5000, envLANGGRAPH_DELTA_MAX_SUPERSTEPS_SINCE_SNAPSHOT).messagesDeltaReducer— a batching-invariant messages reducer that coerces
raw object/string writes, for use withDeltaChannel.BaseCheckpointSaver.getDeltaChannelHistory({ config, channels })(beta)
walks the parent chain returning per-channel{ writes, seed? }, with a
direct-storage override inMemorySaver.counters_since_delta_snapshotadded toCheckpointMetadata;DeltaSnapshot
serialization support in the JSON+ serializer.
Reconstruction is wired through the Pregel read/execution paths (initialization,
getState,updateState, local reads) andexitdurability accumulates and
anchors delta writes so threads remain reconstructible without forcing
snapshots.langgraph: Add node-level error handlers
StateGraph.addNode(name, fn, { errorHandler })now accepts a first-class
node-level error handler. The handler runs ONLY after the failing node'sretryPolicyis exhausted, so retry and handling stay decoupled. It receives a
typedNodeError { node, error }and the typed node input state, can return a
state update, and can route to a recovery branch vianew Command({ goto })
(saga / compensation flows).Failure provenance is checkpointed (via a reserved
ERROR_SOURCE_NODEwrite) so
handlers observe the same context after a checkpoint resume. Uncaught node
errors without a handler still abort the run as before, andGraphBubbleUp
errors (such asinterrupt()) are never swallowed by a handler.StateGraph.setNodeDefaults({ errorHandler })now also accepts a graph-wide
default handler. It is materialized atcompile()as a single shared handler
and invoked for every regular node that does not set its ownerrorHandler. A
per-node handler always takes precedence, the default never catches a failure
raised by an error-handler node itself (handler failures fail the run), and the
default is not inherited by subgraphs.Ports the Python feature from langchain-ai/langgraph#7233.
Add node-level timeouts.
A
timeoutoption is now supported onStateGraph.addNode, the functional API
(task/entrypoint), and theSendconstructor. Pass a number of milliseconds
for a hard wall-clock cap, or aTimeoutPolicyfor finer control:import { TimeoutPolicy } from "@langchain/langgraph"; // hard wall-clock cap on each attempt builder.addNode("agent", agentFn, { timeout: 60_000 }); // full control builder.addNode("agent", agentFn, { timeout: { runTimeout: 60_000, // hard wall-clock cap, never refreshed idleTimeout: 10_000, // cap on time without observable progress refreshOn: "auto", // "auto" | "heartbeat" }, }); // per-task override new Send("agent", state, { timeout: { idleTimeout: 5_000 } });When a timeout fires, a
NodeTimeoutError(carryingnode,kind
("run"/"idle"),timeout,elapsed,runTimeout,idleTimeout) is raised,
the attempt's buffered writes are dropped, and the node'sAbortSignalis
aborted.idleTimeoutis refreshed by observable progress (writes, custom
stream-writer calls, child-task scheduling, callback events) or an explicitruntime.heartbeat()call. The timer resets per retry attempt, andNodeTimeoutErroris retryable under the default retry policy.Ports langchain-ai/langgraph#7599, #7646, and #7659.
Add
StateGraph.setNodeDefaults()for setting graph-wide node policy defaults (retryPolicy,cachePolicy). Per-node values passed toaddNodealways take precedence, and defaults are resolved atcompile()time so call order does not matter. Defaults are not inherited by subgraphs. Ports Python'sset_node_defaults()(langchain-ai/langgraph#7747).
Patch Changes
core: Time travel replay/fork for graphs with interrupts and subgraphs
Ports Python fixes for stale RESUME writes during replay, wrong subgraph checkpoint loading during time travel, missing fork checkpoints on replay, and direct-to-subgraph time travel.
schema: Expose StateSchema JSON schemas for Studio introspection
Route StateSchema runtime definitions through getJsonSchema() and
getInputJsonSchema() so LangGraph Studio receives state, input, and
context schemas when graphs use the StateSchema primitive.Fixes #2466
core: Skip debug checkpoint snapshots when not streaming them
Avoid building full-state
mapDebugCheckpointpayloads on every tick when
no consumer subscribed tocheckpointsordebugstream modes. v3
companion checkpoint envelopes are unchanged (they come from values metadata).core: Index pending writes for O(1) task-prep lookups
Build a PendingWritesIndex once per _prepareNextTasks call so resume and
skip-done-task checks avoid repeated linear scans over checkpointPendingWrites.core: Optimize applyWrites, interrupt seen, and channel errors
Reduce allocations in _applyWrites, fix O(N²) interrupt versions_seen updates,
skip stack traces on EmptyChannelError control flow, and cache task lists in
the pregel loop and runner.remote: Add RemoteGraph v3 streaming support
Expose the v3
streamEventssurface forRemoteGraphby adapting remote SDK thread streams to the localGraphRunStreamshape.
1.3.7
8 Jun 2026Add the
@langchain/langgraph/streamentrypoint — a transport-agnostic backend toolkit for building custom servers on top of the v2 streaming protocol. Alongside the existingStreamChannelandconvertToProtocolEvent, it exposes subscription primitives, typed against a minimalMatchableEventshape so they work on both the coreProtocolEventand the wire-levelEventfrom@langchain/protocol:
Patch Changes
Add the
@langchain/langgraph/streamentrypoint — a transport-agnostic backend toolkit for building custom servers on top of the v2 streaming protocol. Alongside the existingStreamChannelandconvertToProtocolEvent, it exposes subscription primitives, typed against a minimalMatchableEventshape so they work on both the coreProtocolEventand the wire-levelEventfrom@langchain/protocol:inferChannel(event)— map an event to its subscriptionChannel(namedcustom:<name>channels included).matchesSubscription(event, definition)— decide whether a buffered event should be delivered for aSubscribeParamsfilter, honoring channel, namespace prefix/depth, and an optionalsincereplay cursor.isPrefixMatch(namespace, prefix)/normalizeNamespaceSegment(segment)— namespace prefix matching with dynamic-suffix normalization (e.g.fetcher:<uuid>matches thefetcherprefix).SUPPORTED_CHANNELS/isSupportedChannel(value)— the recognized channel set and a guard for validating subscription requests.
1.3.6
5 Jun 2026langgraph: Forward named custom stream channels consistently
Forward remote
StreamChannelemissions ascustom:<name>protocol events and normalize them back to custom-channel payloads in the API session. This aligns JavaScript stream-channel forwarding with the protocol subscription shape used by remote clients, socustom:<name>subscriptions receive extension channel data consistently.
Patch Changes
langgraph: Forward named custom stream channels consistently
Forward remote
StreamChannelemissions ascustom:<name>protocol events and normalize them back to custom-channel payloads in the API session. This aligns JavaScript stream-channel forwarding with the protocol subscription shape used by remote clients, socustom:<name>subscriptions receive extension channel data consistently.
1.3.5
4 Jun 2026core: Keep stream chunks as three-element tuples
Emit lightweight checkpoint envelopes as separate
[namespace, "checkpoints", envelope]chunks before pairedvalueschunks.
Publicstream()always yields[namespace, mode, payload]; the v3
protocol path surfaces envelopes viaconvertToProtocolEvent.
Patch Changes
core: Keep stream chunks as three-element tuples
Emit lightweight checkpoint envelopes as separate
[namespace, "checkpoints", envelope]chunks before pairedvalueschunks.
Publicstream()always yields[namespace, mode, payload]; the v3
protocol path surfaces envelopes viaconvertToProtocolEvent.
1.3.4
2 Jun 2026core: Prevent Zod schema defaults from overwriting checkpoint state in Command.update
Patch Changes
core: Prevent Zod schema defaults from overwriting checkpoint state in Command.update
1.3.3
1 Jun 2026Decouple
ContextTypegeneric fromconfigurableinPregelOptionsso that providing a custom context type no longer incorrectly narrows the configurable parameter.langgraph: Pass context with stateful RemoteGraph runs
Pop
thread_idfrom runconfig.configurableand forwardcontextto the SDK so checkpointed remote runs accept user context without a 400 from ambiguous parameters. Closes #1922.Fix race condition in IterableReadableWritableStream.push() that caused ERR_INVALID_STATE errors when streaming with multiple parallel nodes and aborting the stream.
Patch Changes
Decouple
ContextTypegeneric fromconfigurableinPregelOptionsso that providing a custom context type no longer incorrectly narrows the configurable parameter.langgraph: Pass context with stateful RemoteGraph runs
Pop
thread_idfrom runconfig.configurableand forwardcontextto the SDK so checkpointed remote runs accept user context without a 400 from ambiguous parameters. Closes #1922.Fix race condition in IterableReadableWritableStream.push() that caused ERR_INVALID_STATE errors when streaming with multiple parallel nodes and aborting the stream.
Preserve non-plain objects passed through
SendandCommandargument deserialization.
1.3.2
19 May 2026Move
@langchain/corefrom a runtime dependency back to a required peer dependency so installing the SDK alone no longer pulls in@langchain/core(andjs-tiktoken, etc.). Consumers that use streaming or message coercion must install@langchain/coreexplicitly or via@langchain/langgraph.
Patch Changes
Move
@langchain/corefrom a runtime dependency back to a required peer dependency so installing the SDK alone no longer pulls in@langchain/core(andjs-tiktoken, etc.). Consumers that use streaming or message coercion must install@langchain/coreexplicitly or via@langchain/langgraph.
1.3.1
18 May 2026langgraph: Surface structuredResponse parse failures in createReactAgent
langgraph-core: Keep tool results out of v3 message streams
langgraph: Prefer configurable assistant and graph IDs for runtime server info
Update runtime
serverInfoconstruction to readassistant_idandgraph_idfromconfig.configurablefirst, with fallback toconfig.metadatafor compatibility.
Also expandsexecution_infotests to cover configurable sourcing, precedence,
and metadata fallback behavior.
Patch Changes
langgraph: Surface structuredResponse parse failures in createReactAgent
langgraph-core: Keep tool results out of v3 message streams
langgraph: Prefer configurable assistant and graph IDs for runtime server info
Update runtime
serverInfoconstruction to readassistant_idandgraph_idfromconfig.configurablefirst, with fallback toconfig.metadatafor compatibility.
Also expandsexecution_infotests to cover configurable sourcing, precedence,
and metadata fallback behavior.
1.3.0
5 May 2026Add the in-process event streaming runtime behind
streamEvents.LangGraph now exposes the core primitives for event-based streaming, including
StreamChannel,StreamMux,GraphRunStream,SubgraphRunStream, native stream transformers, and protocol event conversion utilities. These APIs let graphs emit ordered protocol events, derive additional projections, expose custom stream channels, and bridge in-process runs to remote SDK clients.The runtime includes built-in transformers for messages, values, lifecycle events, and subgraph discovery. It also adds support for transformer registration during graph execution, forwarding remote
StreamChanneloutput, subgraph-aware event routing, event log multiplexing, and checkpoint-aware values streams.This release also expands test coverage across Pregel streaming, event conversion, stream muxing, stream channels, run streams, lifecycle transformers, subgraph transformers, and type-level streaming behavior.
Minor Changes
Add the in-process event streaming runtime behind
streamEvents.LangGraph now exposes the core primitives for event-based streaming, including
StreamChannel,StreamMux,GraphRunStream,SubgraphRunStream, native stream transformers, and protocol event conversion utilities. These APIs let graphs emit ordered protocol events, derive additional projections, expose custom stream channels, and bridge in-process runs to remote SDK clients.The runtime includes built-in transformers for messages, values, lifecycle events, and subgraph discovery. It also adds support for transformer registration during graph execution, forwarding remote
StreamChanneloutput, subgraph-aware event routing, event log multiplexing, and checkpoint-aware values streams.This release also expands test coverage across Pregel streaming, event conversion, stream muxing, stream channels, run streams, lifecycle transformers, subgraph transformers, and type-level streaming behavior.
1.2.9
16 Apr 2026Propagate tracer metadata defaults from configurable
Export missing types for typescript 6.0 declaration file compatibility
Patch Changes
Propagate tracer metadata defaults from configurable
Export missing types for typescript 6.0 declaration file compatibility
1.2.8
7 Apr 2026Enhance runtime with executionInfo and serverInfo
1.2.7
4 Apr 2026sdk: Support for headless tools
1.2.6
26 Mar 2026Add browser support for interrupt, writer, and other Node-only exports
Export
interrupt,writer,pushMessage,getStore,getWriter,getConfig,getPreviousState,getCurrentTaskInputfromweb.tsand add a"browser"condition to the"."package export so browser bundlers resolve toweb.jsinstead of pulling innode:async_hooks.Revert abort signal change that was causing problematic errors
Clean up resolved checkpointer promises to reduce memory retention
Patch Changes
Add browser support for interrupt, writer, and other Node-only exports
Export
interrupt,writer,pushMessage,getStore,getWriter,getConfig,getPreviousState,getCurrentTaskInputfromweb.tsand add a"browser"condition to the"."package export so browser bundlers resolve toweb.jsinstead of pulling innode:async_hooks.Revert abort signal change that was causing problematic errors
Clean up resolved checkpointer promises to reduce memory retention
1.2.5
20 Mar 2026core: Prevent AbortSignal listener leak in stream() and streamEvents()
Pregel.stream()andstreamEvents()calledcombineAbortSignals()but discarded thedisposefunction, leaking one abort listener on the caller's signal per invocation. Over many invocations this caused unbounded memory growth as each leaked listener retained references to its associated graph execution state.Fix
AnyValue.update()returningfalseinstead oftruewhen values are received, aligning with all other channel implementations.
Patch Changes
core: Prevent AbortSignal listener leak in stream() and streamEvents()
Pregel.stream()andstreamEvents()calledcombineAbortSignals()but discarded thedisposefunction, leaking one abort listener on the caller's signal per invocation. Over many invocations this caused unbounded memory growth as each leaked listener retained references to its associated graph execution state.Use
AbortSignal.any()on Node 20+ which handles listener lifecycle automatically via GCFall back to manual listener management on Node 18, with proper
dispose()called when the stream completes or is cancelled
Fix
AnyValue.update()returningfalseinstead oftruewhen values are received, aligning with all other channel implementations.
1.2.4
20 Mar 2026sdk: Fetch subagent history
Patch Changes
sdk: Fetch subagent history
1.2.3
17 Mar 2026state: Merge jsonSchemaExtra in getInputJsonSchema()
Patch Changes
state: Merge jsonSchemaExtra in getInputJsonSchema()
1.2.2
10 Mar 2026Only updates a dependency:@langchain/langgraph-sdk 1.7.0
1.2.1
6 Mar 2026Add explicit
: symboltype annotations for cross-version compatibilityTypeScript infers
unique symboltype when Symbol.for() is used without an explicit type annotation, causing type incompatibility when multiple versions of the same package are present in a dependency tree. By adding explicit: symbolannotations, all declarations now use the general symbol type, making them compatible across versions while maintaining identical runtime behavior.Changes:
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.