Packages

@langchain/langgraph-checkpoint

1.2.3 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.1.0

10 Jun 2026Where it was published

1.2.3 is the newest release of 1.x.

In short

2 new

Release note

Minor Changes

  • Add DeltaChannel and the writes-history saver API (beta).

    DeltaChannel is 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 (default snapshotFrequency=1000) plus a
      system bound DELTA_MAX_SUPERSTEPS_SINCE_SNAPSHOT (default 5000, env
      LANGGRAPH_DELTA_MAX_SUPERSTEPS_SINCE_SNAPSHOT).

    • messagesDeltaReducer — a batching-invariant messages reducer that coerces
      raw object/string writes, for use with DeltaChannel.

    • BaseCheckpointSaver.getDeltaChannelHistory({ config, channels }) (beta)
      walks the parent chain returning per-channel { writes, seed? }, with a
      direct-storage override in MemorySaver.

    • counters_since_delta_snapshot added to CheckpointMetadata; DeltaSnapshot
      serialization support in the JSON+ serializer.

    Reconstruction is wired through the Pregel read/execution paths (initialization,
    getState, updateState, local reads) and exit durability accumulates and
    anchors delta writes so threads remain reconstructible without forcing
    snapshots.

Patch Changes

  • Add node-level timeouts.

    A timeout option is now supported on StateGraph.addNode, the functional API
    (task/entrypoint), and the Send constructor. Pass a number of milliseconds
    for a hard wall-clock cap, or a TimeoutPolicy for 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 (carrying node, kind
    ("run"/"idle"), timeout, elapsed, runTimeout, idleTimeout) is raised,
    the attempt's buffered writes are dropped, and the node's AbortSignal is
    aborted. idleTimeout is refreshed by observable progress (writes, custom
    stream-writer calls, child-task scheduling, callback events) or an explicit
    runtime.heartbeat() call. The timer resets per retry attempt, and
    NodeTimeoutError is 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.