@langchain/langgraph-sdk
1.17.0 · 17 Nov 2026MIT5.6M / weekRepositoryHomepagenpmAtom feed
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 touseChannelthat invokes anonEventcallback once per raw protocol event without re-rendering. This is the idiomatic v1 replacement for the oldonLangChainEvent/onCustomEventcallbacks for analytics and logging. Backed by a new framework-agnosticacquireChannelEffecthelper in@langchain/langgraph-sdk/streamthat shares a ref-counted subscription with matchinguseChannelconsumers.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 fromseq=0. The replayedmessageschannel carries no step (unlikevalues, guarded bymaxStep), so it rebuilt each already-complete message from an emptymessage-startand re-streamed the whole turn token-by-token — a visible "messages replay" of the existing conversation. Seal the message ids seeded from the idlegetState()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 (
sincefor SSE) for protocol transports,
wireAsyncCallerthroughclient.threads.stream, and expose optional
reconnect tuning onThreadStreamOptions. 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.