@langchain/react
1.3.0 · 17 Nov 2026MIT154.8k / weekRepositoryHomepagenpmAtom feed
72 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
1.3.0
17 Nov 2026useStreamacceptsstateKeys, thevalueskeys your UI reads. Opening a thread then sendsselectonGET /threads/{thread_id}/statefor those keys, the messages key, and the top-level fields the hook reads itself, so the server can skip the rest of the state.stream.valuescontains only those keys plus the messages key, after loading and while a run streams, including on a server that ignoresselect. A custom adapter'sgetStatereceives{ select }, andHttpAgentServerAdapterforwards it. WithoutstateKeys, nothing changes.
Minor Changes
useStreamacceptsstateKeys, thevalueskeys your UI reads. Opening a thread then sendsselectonGET /threads/{thread_id}/statefor those keys, the messages key, and the top-level fields the hook reads itself, so the server can skip the rest of the state.stream.valuescontains only those keys plus the messages key, after loading and while a run streams, including on a server that ignoresselect. A custom adapter'sgetStatereceives{ select }, andHttpAgentServerAdapterforwards it. WithoutstateKeys, nothing changes.
1.2.11 – 1.2.144 releases that only update dependencies@langchain/langgraph-sdk 1.16.0Show each
- 1.2.1412 Nov 2026@langchain/langgraph-sdk 1.16.0
- 1.2.137 Nov 2026@langchain/langgraph-sdk 1.15.0
- 1.2.126 Nov 2026@langchain/langgraph-sdk 1.14.0
- 1.2.115 Nov 2026@langchain/langgraph-sdk 1.13.0
1.2.10
4 Nov 2026Effects replayed by StrictMode, Fast Refresh or
<Activity>no longer run a pending headless tool twice inuseStream; the hook now forgets which tool calls it ran only when thethreadIdoption changes.
Patch Changes
Effects replayed by StrictMode, Fast Refresh or
<Activity>no longer run a pending headless tool twice inuseStream; the hook now forgets which tool calls it ran only when thethreadIdoption changes.
1.2.1 – 1.2.99 releases that only update dependencies@langchain/langgraph-sdk 1.12.9Show each
- 1.2.930 Oct 2026@langchain/langgraph-sdk 1.12.9
- 1.2.826 Oct 2026@langchain/langgraph-sdk 1.12.8
- 1.2.722 Oct 2026@langchain/langgraph-sdk 1.12.7
- 1.2.621 Oct 2026@langchain/langgraph-sdk 1.12.6
- 1.2.516 Oct 2026@langchain/langgraph-sdk 1.12.5
- 1.2.412 Oct 2026@langchain/langgraph-sdk 1.12.4
- 1.2.37 Oct 2026@langchain/langgraph-sdk 1.12.3
- 1.2.26 Oct 2026@langchain/langgraph-sdk 1.12.2
- 1.2.13 Oct 2026@langchain/langgraph-sdk 1.12.1
1.2.0
25 Sep 2026useStream's"enqueue"multitask strategy can now be backed by real, durable server-side runs instead of an in-memory client-only queue.Pass
queue: "server"to opt in; it defaults to"local", so existing usage is unaffected."server"requires the backend behindapiUrlto implement the Runs REST endpoints (POST/GET /threads/{thread_id}/runs,POST /threads/{thread_id}/runs/{run_id}/cancel), not just streaming/commands. Queued submissions then persist across reloads and are visible to other sessions, andcancelQueued/clearQueuecancel them server-side too.Not supported with a custom
AgentServerAdaptertransport —queueonly applies to the built-in transport.
Minor Changes
useStream's"enqueue"multitask strategy can now be backed by real, durable server-side runs instead of an in-memory client-only queue.Pass
queue: "server"to opt in; it defaults to"local", so existing usage is unaffected."server"requires the backend behindapiUrlto implement the Runs REST endpoints (POST/GET /threads/{thread_id}/runs,POST /threads/{thread_id}/runs/{run_id}/cancel), not just streaming/commands. Queued submissions then persist across reloads and are visible to other sessions, andcancelQueued/clearQueuecancel them server-side too.Not supported with a custom
AgentServerAdaptertransport —queueonly applies to the built-in transport.
1.1.1 – 1.1.22 releases that only update dependencies@langchain/langgraph-sdk 1.11.2Show each
- 1.1.221 Sep 2026@langchain/langgraph-sdk 1.11.2
- 1.1.118 Sep 2026@langchain/langgraph-sdk 1.11.1
1.1.0
12 Sep 2026Expose connection lifecycle callbacks for built-in streaming transports.
onConnectedruns after the initial SSE or WebSocket connection becomes usable and after every successful reconnect. Its payload distinguishes aninitialconnection from areconnectedconnection and includes the reconnect attempt number.onReconnectnow also receives the scheduleddelayMs, allowing applications to display accurate retry state before the next connection attempt. React, Vue, Svelte, and Angular stream hooks forward both callbacks.
Minor Changes
Expose connection lifecycle callbacks for built-in streaming transports.
onConnectedruns after the initial SSE or WebSocket connection becomes usable and after every successful reconnect. Its payload distinguishes aninitialconnection from areconnectedconnection and includes the reconnect attempt number.onReconnectnow also receives the scheduleddelayMs, allowing applications to display accurate retry state before the next connection attempt. React, Vue, Svelte, and Angular stream hooks forward both callbacks.
1.0.35
4 Sep 2026sdk: Keep stream.interrupts truthful after sequential multi-interrupt resume
Patch Changes
sdk: Keep stream.interrupts truthful after sequential multi-interrupt resume
1.0.31 – 1.0.333 releases that only update dependencies@langchain/langgraph-sdk 1.10.0Show each
- 1.0.3326 Aug 2026@langchain/langgraph-sdk 1.10.0
- 1.0.3220 Aug 2026@langchain/langgraph-sdk 1.9.31
- 1.0.3119 Aug 2026@langchain/langgraph-sdk 1.9.30
1.0.30
11 Aug 2026sdk: Resolve respond() namespace from interrupt id
When callers pass
{ interruptId }withoutnamespace, look the
namespace up onthread.interruptsinstead of defaulting to root.
Patch Changes
sdk: Resolve respond() namespace from interrupt id
When callers pass
{ interruptId }withoutnamespace, look the
namespace up onthread.interruptsinstead of defaulting to root.
1.0.28 – 1.0.292 releases that only update dependencies@langchain/langgraph-sdk 1.9.28Show each
- 1.0.2921 Jul 2026@langchain/langgraph-sdk 1.9.28
- 1.0.2815 Jul 2026@langchain/langgraph-sdk 1.9.27
1.0.27
15 Jul 2026sdk: Keep SSE reconnect enabled with custom fetch
Auth/proxy fetch shims previously forced
maxReconnectAttempts: 0, so HITL waits that lost/stream/events(e.g.ERR_QUIC_PROTOCOL_ERROR) never recovered and leftrespond()/submit()spinning. Fail-fast test mocks should passmaxReconnectAttempts: 0explicitly. Also plumbs reconnect options through frameworkuseStreambindings.
Patch Changes
sdk: Keep SSE reconnect enabled with custom fetch
Auth/proxy fetch shims previously forced
maxReconnectAttempts: 0, so HITL waits that lost/stream/events(e.g.ERR_QUIC_PROTOCOL_ERROR) never recovered and leftrespond()/submit()spinning. Fail-fast test mocks should passmaxReconnectAttempts: 0explicitly. Also plumbs reconnect options through frameworkuseStreambindings.
1.0.26
25 Jun 2026Only updates a dependency:@langchain/langgraph-sdk 1.9.25
1.0.25
22 Jun 2026sdk: Apply state update and goto alongside interrupt resume
respond(decision, { update, goto })now maps to LangGraph'sCommand(resume, update, goto), so a human-in-the-loop UI can commit a state
update (e.g. push the interrupt card into state) in the same superstep as
the resume — one checkpoint, no separateupdateStatewrite, no flicker.@langchain/langgraph-apiforwardsupdate/gotothroughinput.respond,
and@langchain/coremessage instances inupdateare serialized to dicts
before transport, exactly likesubmit(). Bumps@langchain/protocolto^0.0.18for theGototype.respond/respondAllalso applyupdateoptimistically (mirroringsubmit()): the pushed messages paint immediately, with stable ids minted so
the resumed run's echo reconciles them in place. Without this the interrupt is
cleared the instantrespond()dispatches while the pushed card only reappears
a server round-trip later — so the card would flicker in that gap. The
optimistic state settles on the resumed run's terminal (pending → sent, or
rolled back on a failure before any echo).User-initiated optimistic writes (
submit()/respond()/respondAll()) now
commit to the store synchronously, in the same tick as the triggering event,
instead of being coalesced onto the next macrotask. This lets a framework render
the pushed message in the same commit as any local UI state the caller flips
alongside it (e.g. a HITL form swapping its inputs for the resolved card), so the
card no longer blinks out for the one-macrotask window before the flush lands.
High-frequency streaming writes keep their macrotask coalescing.
Patch Changes
sdk: Apply state update and goto alongside interrupt resume
respond(decision, { update, goto })now maps to LangGraph'sCommand(resume, update, goto), so a human-in-the-loop UI can commit a state
update (e.g. push the interrupt card into state) in the same superstep as
the resume — one checkpoint, no separateupdateStatewrite, no flicker.@langchain/langgraph-apiforwardsupdate/gotothroughinput.respond,
and@langchain/coremessage instances inupdateare serialized to dicts
before transport, exactly likesubmit(). Bumps@langchain/protocolto^0.0.18for theGototype.respond/respondAllalso applyupdateoptimistically (mirroringsubmit()): the pushed messages paint immediately, with stable ids minted so
the resumed run's echo reconciles them in place. Without this the interrupt is
cleared the instantrespond()dispatches while the pushed card only reappears
a server round-trip later — so the card would flicker in that gap. The
optimistic state settles on the resumed run's terminal (pending → sent, or
rolled back on a failure before any echo).User-initiated optimistic writes (
submit()/respond()/respondAll()) now
commit to the store synchronously, in the same tick as the triggering event,
instead of being coalesced onto the next macrotask. This lets a framework render
the pushed message in the same commit as any local UI state the caller flips
alongside it (e.g. a HITL form swapping its inputs for the resolved card), so the
card no longer blinks out for the one-macrotask window before the flush lands.
High-frequency streaming writes keep their macrotask coalescing.
1.0.23 – 1.0.242 releases that only update dependencies@langchain/langgraph-sdk 1.9.23Show each
- 1.0.2417 Jun 2026@langchain/langgraph-sdk 1.9.23
- 1.0.2312 Jun 2026@langchain/langgraph-sdk 1.9.22
1.0.22
11 Jun 2026stream: 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.
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.
1.0.21
10 Jun 2026Make AnyStream a true supertype so selector hooks need no cast
A concrete
useStream<typeof agent>()handle was not assignable toAnyStreambecause generic-computed covariant members (toolCalls,values) don't widen underany—InferToolCalls<any>resolves toAssembledToolCall<…, never>, narrower than a concrete handle. Override
those members with their widest forms (preserving each framework's
reactivity wrapper — plain arrays for React/Svelte,ShallowReffor Vue,Signalfor Angular) so the message/tool/value selector hooks accept a
fully-typed stream without anas AnyStreamcast.
1.0.20
9 Jun 2026sdk: Hydrate custom HttpAgentServerAdapter via transport getState
StreamController now prefers adapter getState() before client.threads.getState,
HttpAgentServerAdapter implements GET /threads/:id/state, and useStream inherits
apiUrl from the transport so hydration no longer defaults to localhost:8123.
Patch Changes
sdk: Hydrate custom HttpAgentServerAdapter via transport getState
StreamController now prefers adapter getState() before client.threads.getState,
HttpAgentServerAdapter implements GET /threads/:id/state, and useStream inherits
apiUrl from the transport so hydration no longer defaults to localhost:8123.
1.0.19
8 Jun 2026Only updates a dependency:@langchain/langgraph-sdk 1.9.19
1.0.18
6 Jun 2026sdk: Resume useChannel subscriptions across serial runs
Enable
resumeOnPauseon the channel projection souseChannelkeeps
accumulating events across prompts on the same thread. Clarify selector
docs and JSDoc:useChannelfor the full event stream,useExtension
for the latest payload.
Patch Changes
sdk: Resume useChannel subscriptions across serial runs
Enable
resumeOnPauseon the channel projection souseChannelkeeps
accumulating events across prompts on the same thread. Clarify selector
docs and JSDoc:useChannelfor the full event stream,useExtension
for the latest payload.
1.0.17
5 Jun 2026sdk: Revive automatic optimistic submit echo
Echo
submit()input intovalues/messagesimmediately with client-side
id minting and id-based reconciliation as the server streams back. Expose
per-messageoptimisticStatusvia message metadata (pending→sent/failed), shallow-merge non-message keys with rollback when novalues
arrive, and add anoptimistic: falsehook opt-out. Plumb through React,
Vue, Svelte, and Angular with browser e2e coverage.sdk: Reconcile subagents and subgraphs on thread reconnect
Seed deep-agent subagent cards from checkpoint messages and subgraph hosts from a single bounded
getHistoryread duringhydrate(), so parallel fan-out discovery reappears immediately on refresh instead of waiting for SSE replay. Subagent execution namespaces are promoted through the existing guarded discovery state machine (bulk at hydrate, lazily per opened card via the selector layer). The getHistory cost is O(1) in requests regardless of fan-out width.
Patch Changes
sdk: Revive automatic optimistic submit echo
Echo
submit()input intovalues/messagesimmediately with client-side
id minting and id-based reconciliation as the server streams back. Expose
per-messageoptimisticStatusvia message metadata (pending→sent/failed), shallow-merge non-message keys with rollback when novalues
arrive, and add anoptimistic: falsehook opt-out. Plumb through React,
Vue, Svelte, and Angular with browser e2e coverage.sdk: Reconcile subagents and subgraphs on thread reconnect
Seed deep-agent subagent cards from checkpoint messages and subgraph hosts from a single bounded
getHistoryread duringhydrate(), so parallel fan-out discovery reappears immediately on refresh instead of waiting for SSE replay. Subagent execution namespaces are promoted through the existing guarded discovery state machine (bulk at hydrate, lazily per opened card via the selector layer). The getHistory cost is O(1) in requests regardless of fan-out width.
1.0.13 – 1.0.164 releases that only update dependencies@langchain/langgraph-sdk 1.9.16Show each
- 1.0.164 Jun 2026@langchain/langgraph-sdk 1.9.16
- 1.0.153 Jun 2026@langchain/langgraph-sdk 1.9.15
- 1.0.143 Jun 2026@langchain/langgraph-sdk 1.9.14
- 1.0.132 Jun 2026@langchain/langgraph-sdk 1.9.13
1.0.12
2 Jun 2026sdk: Route headless tool resumes through respond on v1 stream
useStreamwas callingsubmit(null, { command })for headless-tool resumes,
which dispatchesrun.startwithout delivering the tool result. AddapplyHeadlessToolResumeCommandto route payloads throughrespond/respondAll, and tighten headless-tool browser tests to assert end-to-end
resume and graph completion.
Patch Changes
sdk: Route headless tool resumes through respond on v1 stream
useStreamwas callingsubmit(null, { command })for headless-tool resumes,
which dispatchesrun.startwithout delivering the tool result. AddapplyHeadlessToolResumeCommandto route payloads throughrespond/respondAll, and tighten headless-tool browser tests to assert end-to-end
resume and graph completion.
1.0.11
1 Jun 2026Only updates a dependency:@langchain/langgraph-sdk 1.9.11
1.0.10
29 May 2026protocol-v2: Add
respondAll()and run config/metadata on interrupt resumeThe stream controller (and the React/Angular/Svelte/Vue wrappers) gain a
respondAll(responsesById, options)method to resume several interrupts
pending at the same checkpoint in a single command — required for runs that
pause on multiple interrupts at once (e.g. parallel tool-authorization
prompts), which sequentialrespond()calls cannot handle.respond()now takes an options object ({ interruptId?, namespace?, config?, metadata? }) so a resumed run can carry the same run-level config
(model, user context, …) and metadata (trigger source, test flags, …) a
freshsubmit()would. The protocol-v2 reference servers read the newresponsesbatch andconfig/metadatafields leniently and fold them
onto the run that services theinput.respondcommand.
Patch Changes
protocol-v2: Add
respondAll()and run config/metadata on interrupt resumeThe stream controller (and the React/Angular/Svelte/Vue wrappers) gain a
respondAll(responsesById, options)method to resume several interrupts
pending at the same checkpoint in a single command — required for runs that
pause on multiple interrupts at once (e.g. parallel tool-authorization
prompts), which sequentialrespond()calls cannot handle.respond()now takes an options object ({ interruptId?, namespace?, config?, metadata? }) so a resumed run can carry the same run-level config
(model, user context, …) and metadata (trigger source, test flags, …) a
freshsubmit()would. The protocol-v2 reference servers read the newresponsesbatch andconfig/metadatafields leniently and fold them
onto the run that services theinput.respondcommand.
1.0.9
27 May 2026Only updates a dependency:@langchain/langgraph-sdk 1.9.9
1.0.8
27 May 2026sdk: Cancel runs on stop by default and add disconnect()
stream.stop()now callsclient.runs.cancelfor the active run before disconnecting the client (default{ cancel: true }). Join/rejoin UIs can callstream.disconnect()orstop({ cancel: false })to leave the agent running server-side.This fills a missing gap we found when migrating to v1.
Patch Changes
sdk: Cancel runs on stop by default and add disconnect()
stream.stop()now callsclient.runs.cancelfor the active run before disconnecting the client (default{ cancel: true }). Join/rejoin UIs can callstream.disconnect()orstop({ cancel: false })to leave the agent running server-side.This fills a missing gap we found when migrating to v1.
1.0.7
26 May 2026sdk: Unwrap Command tool outputs and hide scoped task tools
Filter wrapper
taskdispatch events from subagent-scoped tool-call
projections and parse embedded ToolMessage results from LangGraphCommandpayloads ontool-finished.
Patch Changes
sdk: Unwrap Command tool outputs and hide scoped task tools
Filter wrapper
taskdispatch events from subagent-scoped tool-call
projections and parse embedded ToolMessage results from LangGraphCommandpayloads ontool-finished.
1.0.6
25 May 2026sdk: Clear subgraph and subagent discovery on thread swap
Reset discovery stores in
StreamController.#teardownThread()so starting a
new thread does not leave stale subgraph cards or subagent entries from the
previous run.
Patch Changes
sdk: Clear subgraph and subagent discovery on thread swap
Reset discovery stores in
StreamController.#teardownThread()so starting a
new thread does not leave stale subgraph cards or subagent entries from the
previous run.
1.0.5
22 May 2026stream: Align AssembledToolCall typing with pre-v1 expectations
Make
InferToolCallsresolve to genericAssembledToolCallunions, expose
syncstatus/errorfor reactive bindings, and align type tests across
React, Vue, Svelte, and Angular SDK packages.
Patch Changes
stream: Align AssembledToolCall typing with pre-v1 expectations
Make
InferToolCallsresolve to genericAssembledToolCallunions, expose
syncstatus/errorfor reactive bindings, and align type tests across
React, Vue, Svelte, and Angular SDK packages.
1.0.4
19 May 2026Only updates a dependency:@langchain/langgraph-sdk 1.9.4
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.