@langchain/langgraph-checkpoint
1.2.3 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed
1.2.3 is the newest release of 1.x.
In short
2 new
Release note
Minor Changes
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.
Patch Changes
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.
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.