Packages

@langchain/langgraph-sdk

1.17.0 · 17 Nov 2026MIT5.6M / weekRepositoryHomepagenpmAtom feed

Your version

1.9.21

11 Jun 2026Where it was published

1.17.0 is the newest release of 1.x.

In short

1 new2 fixed

Release note

Patch Changes

  • stream: Add per-event side-effect selector

    Add useChannelEffect (React/Svelte/Vue) / injectChannelEffect (Angular), a side-effect counterpart to useChannel that invokes an onEvent callback once per raw protocol event without re-rendering. This is the idiomatic v1 replacement for the old onLangChainEvent / onCustomEvent callbacks for analytics and logging. Backed by a new framework-agnostic acquireChannelEffect helper in @langchain/langgraph-sdk/stream that shares a ref-counted subscription with matching useChannel consumers.

  • sdk: Stop re-streaming seeded messages on idle-thread submit

    An idle (finished) thread defers its root SSE pump, so the first submit() brings it up and the transport replays the finished run from seq=0. The replayed messages channel carries no step (unlike values, guarded by maxStep), so it rebuilt each already-complete message from an empty message-start and re-streamed the whole turn token-by-token — a visible "messages replay" of the existing conversation. Seal the message ids seeded from the idle getState() snapshot so replayed deltas can't downgrade the complete tail; the seal lifts once a newer checkpoint advances the timeline or on thread rebind, and ids from the next run are never sealed.

  • sdk: Reconnect v2 SSE and WebSocket thread streams after disconnect

    Add automatic reconnect with resume (since for SSE) for protocol transports,
    wire AsyncCaller through client.threads.stream, and expose optional
    reconnect tuning on ThreadStreamOptions. Includes integration tests against
    an in-process mock langgraph-api server.

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.