@langchain/langgraph-checkpoint
1.2.3 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed
39 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 1.x · latest line
1.2.3
17 Nov 2026The batched store a compiled graph wraps around its store now wakes when a call is queued instead of polling a 0 ms timer, which Node clamps to 1 ms. Store calls made from a node no longer wait about 1 ms each: a loop doing one
getand oneputper step runs 10.9x faster.InMemoryStore.searchstops collecting matches atoffset + limitwhen there is no query embedding, and copies only the returned page. A first page is about 20x faster on a 1,000-item namespace, and a search over a namespace with hundreds of thousands of items no longer throwsRangeError.
1.2.2
30 Oct 2026JsonPlusSerializer, the serializer every checkpointer uses by default, is now exported, as it is in Python, so a saver that sends checkpoints elsewhere can encode them the same way.
1.2.1
21 Oct 2026Reject colons and NUL bytes in shared store namespace labels, and reject NUL bytes in PostgreSQL store namespace labels before CRUD queries.
1.2.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:
Use locale-independent checkpoint ID ordering in
MemorySaver.getTuple,list, andgetDeltaChannelHistory, consistent with UUID6 timestamp order and thebeforefilter.MemorySaver.getDeltaChannelHistoryreads from the thread's latest checkpoint when the config has nocheckpoint_id, likegetTupleand the other savers. It returned no seed and no writes before. Graphs always pass a checkpoint id, so only direct callers were affected.
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
Use locale-independent checkpoint ID ordering in
MemorySaver.getTuple,list, andgetDeltaChannelHistory, consistent with UUID6 timestamp order and thebeforefilter.MemorySaver.getDeltaChannelHistoryreads from the thread's latest checkpoint when the config has nocheckpoint_id, likegetTupleand the other savers. It returned no seed and no writes before. Graphs always pass a checkpoint id, so only direct callers were affected.Reject namespace labels that are empty, non-string or contain a period in
BaseStoregets, deletes and namespace-listing filters, matching search. Stores that use theseBaseStoremethods, such asMongoDBStore, now throwInvalidNamespaceErrorfor such labels instead of returning no results.AsyncBatchedStore(the store graph nodes receive) runs the same checks before queueing, so a namespace that fails them rejects only its own call; checks specific to the wrapped store, such as the:separator check inInMemoryStoreand the Postgres store, still run inside its batch. Its puts followBaseStore.put, so in-graph puts now reject alanggraphroot label (and an empty namespace) even if the wrapped store would accept it; forInMemoryStoreonly thelanggraphroot is newly rejected. Hierarchical prefix search, empty-prefix search and*namespace-listing wildcards are unchanged.
1.1.6
6 Oct 2026Match InMemoryStore search prefixes at namespace segment boundaries and reject colon-containing labels. Preserve unrestricted empty-prefix searches.
1.1.5
19 Aug 2026Update checkpoint integrations to require the patched checkpoint serializer release.
1.1.4
19 Aug 2026checkpoint: Narrow re-constructable types in JsonPlusSerializer
1.1.3
25 Jun 2026langgraph-checkpoint-postgres: Prevent createAgent failures with PostgresSaver
Add BaseCheckpointSaver.toJSON() so ConfigurableModel can stringify runnable config without traversing pg Pool timers, and default missing checkpoint maps on load/copy so resume no longer crashes on undefined versions_seen. Closes #1808.
1.1.2
17 Jun 2026langgraph: Make concurrent DeltaChannel writes deterministic on replay
Concurrent same-superstep writes to a
DeltaChannelcould reconstruct from a
checkpoint differently than they were applied live, because live execution
ordered them by task path while savers replayed them by task id. This fixes that
divergence in two complementary ways:To keep reconstruction in sync with this
Overwriterule, anyDeltaChannel
that sees anOverwritein a super-step is now force-snapshotted at the next
checkpoint (and, under"exit"durability, in the final checkpoint). The
post-overwrite value is materialized intochannel_values, so a cold read seeds
from that snapshot and never has to replay across the reset — making live and
reconstructed state identical without changing the sparse-replay history shape.
These delta-channel APIs remain Beta.langgraph: Forward task metadata and name subagents via lc_agent_name
mapDebugTasksnow forwards filtered user-meaningful task config metadata
(includinglc_agent_name) ontotasksstream payloads. The lifecycle
transformer uses that metadata to set subagentgraph_namefromlc_agent_nameand recovercause: { type: "toolCall", tool_call_id }
from parent tool-dispatch tasks. Adds the sharedEXCLUDED_METADATA_KEYS
constant to@langchain/langgraph-checkpoint. Ports langgraph#7928.
1.1.1
12 Jun 2026Only updates dependencies, nothing else changes.
1.1.0
10 Jun 2026Add
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.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.
1.0.4
1 Jun 2026Only updates a dependency:uuid 14.0.0
1.0.3
29 May 2026- Security
langgraph-checkpoint: Block prototype pollution in MemorySaver via reserved storage keys
MemorySaverpreviously embeddedthread_id,checkpoint_ns,checkpoint_id, andtask_iddirectly into property accesses on the
nested plain objectsthis.storageandthis.writes. A caller able to
shape any of those fields (every quickstart, tutorial, and test fixture
usesMemorySaverby default) could pass"__proto__","constructor", or"prototype"and have the subsequent assignment
mutateObject.prototype. From that point every plain object in the
process inherits the injected property, breakingfor...inloops,
truthy short-circuits, and downstream serializers across unrelated code
paths. CWE-1321.Adds an
assertSafeStorageKeychokepoint applied at every public entry
that touchesstorageorwrites(put,putWrites,deleteThread,getTuple,list). The guard rejects non-string values, the empty
string (unless explicitly opted-in forcheckpoint_ns), and the three
prototype-pollution keys. Behaviour for valid string identifiers is
unchanged.
1.0.2
5 May 2026Improve
MemorySaverdiagnostics when checkpoint writes are missing athread_id.The in-memory checkpointer now explains why
configurable.thread_idis required and includes a concretegraph.stream(..., { configurable: { thread_id } })example in the error message. This makes the new thread-oriented event streaming flows easier to debug when an application forgets to provide durable thread configuration.
1.0.1
17 Mar 2026langgraph: Implement uint8array support for json plus serializer
1.0.0
18 Oct 2025- Breaking
This release updates the package for compatibility with LangGraph v1.0. See the v1.0 release notes for details on what's new.
- 0.1.x
0.1.1
28 Aug 2025Reading the note…
0.1.0
28 Jul 2025Reading the note…
- 0.0.x
0.0.18
2 Jun 2025Reading the note…
0.0.17
14 Apr 2025Reading the note…
0.0.16
6 Mar 2025Reading the note…
0.0.15
29 Jan 2025Reading the note…
0.0.14
29 Jan 2025Reading the note…
0.0.13
5 Dec 2024Reading the note…
0.0.12
20 Nov 2024Reading the note…
0.0.11
17 Oct 2024Reading the note…
0.0.10
7 Oct 2024Reading the note…
0.0.9
30 Sep 2024Reading the note…
0.0.8
28 Sep 2024Reading the note…
0.0.7
24 Sep 2024Reading the note…
0.0.6
14 Sep 2024Reading the note…
0.0.5
4 Sep 2024Reading the note…
0.0.4
27 Aug 2024Reading the note…
0.0.3
27 Aug 2024Reading the note…
0.0.2
26 Aug 2024Reading the note…
0.0.1
23 Aug 2024Reading the note…
0.0.0
22 Aug 2024Reading 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.