@langchain/langgraph-sdk
1.17.0 · 17 Nov 2026MIT5.6M / weekRepositoryHomepagenpmAtom feed
Upgrading @langchain/langgraph-sdk From 1.12.10 to 1.13.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
client.runs.streamandclient.runs.joinStreamtakestreamNamespaces, the namespaces of a run to stream (""is the root graph), each without the subagents it starts. Servers that support it reportstream_namespacesin/info; older servers ignore it and send every event. A reconnect no longer re-sends query params itsLocationalready carries, so the URL stops growing on every reconnect. - New
Add a
reasonoption toclient.runs.cancel. Setreason: "taken"to mark run input absorbed for steering; the server records acancel_reasonstarting withtaken:. - New
Add
cancel_reasonto theRuntype and toRunSelectField. The Agent Server returns why a run was cancelled, but callers had to cast to read it. - Fixed
Type the
endevent that closes a run stream asEndStreamEvent: its data carries the run'srun_idand finalstatus, or isnullfrom servers that send it without data. - Fixed
When the
threadIdoption ofuseStreamchanges while the last run's values still hold a pending headless tool call, the hook no longer runs that tool again. It also no longer resumes the new thread, or a thread it creates after a switch tonull, with the previous thread's interrupt id. Passing back thethreadIdof a threadsubmitcreated no longer runs its pending tool again either. - Fixed
The client no longer sends a
POSTorPATCHrequest again after it may have reached the server, so a retry can no longer create a second run or repeat a protocol command. These requests are now retried only when the connection failed before they were sent (for example, the connection was refused or the host was not found).GET,HEAD,OPTIONS,PUTandDELETErequests are retried as before. - Fixed
ThreadsClient.getStateandThreadsClient.getHistoryaccept aselectoption to return only some fields, e.g.select: ["values.messages"]to read a single state key. Exports the newThreadStateSelectFieldtype and the existingThreadSelectFieldtype from the package root.
- New
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.