@langchain/langgraph
1.7.5 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed
1.7.5 is the newest release of 1.x.
In short
1 new13 fixed2 internal
Release note
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.
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.