@langchain/langgraph-api
1.8.1 · 20 Nov 2026MIT193.1k / weekRepositoryHomepagenpmAtom feed
Upgrading @langchain/langgraph-api From 1.5.8 to 1.6.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 0
- advisories fixed
- 0
- new
- 6
- fixes
Release by release
- Fixed
langgraph-api: Refuse a stale interrupt answer on the dev server
- Fixed
Joining a run that doesn't exist, or that ended long enough ago that its events were dropped, now ends at once instead of after half a second, and no longer leaves an empty event log in memory. A run cancelled before it started now drops its event log two minutes later, as a run that ended does.
- Fixed
GET /threads/:thread_id/runs/:run_id/streamnow ends with aRun not founderror unless the run exists and is on that thread, where it used to stream a run on any thread. A join that arrives after its run was deleted (byDELETE /threads/:thread_id/runs/:run_idor a rollback) gets that error too, asGET /threads/:thread_id/runs/:run_iddoes, instead of the deleted run's events. When thethreads:readhandler returns filters,GET /runs/:run_id/streamstreams only a run that exists and whose thread matches them, and ends with no events otherwise, so a stateless run can be joined that way only until it ends. - Fixed
The dev server no longer splits a run's events between the clients reading it. A run created without
stream_resumablekept its events in a queue that each read emptied, so two clients joining the run each got only part of them, andruns.join()took events away from a stream still open on the run. Every run now keeps its events, as resumable runs already did, and each reader reads them from its own position: the request that creates a streamed run,runs.wait()andruns.join()read the run from the start, a join withLast-Event-IDresumes after that event, and a join without one gets the events published after it joins. Before, such a join got whatever events no other reader had taken yet. To read a run from the start, passlastEventId: "-1"toclient.runs.joinStream(). A finished run's events now stay in memory for two minutes, long enough to rejoin it withLast-Event-ID, and are dropped as soon as the run or its thread is deleted. Resumable runs used to keep their events until the server restarted. - Fixed
Run streams on the dev server and the experimental embed server now end with an
endevent whose data carries the run'srun_idand finalstatus, so a client learns how the run ended without asking for the run again.stream_modefilters never drop it, and on the dev server a join of a run that has already ended gets just theendevent. A rolled-back stateless run ends withrollback. A thread run that is deleted, as a rollback does, ends its streams without one. - Fixed
Thread protocol commands (
POST /threads/:thread_id/commandsand the/threads/:thread_id/stream/eventsWebSocket) now run with the auth of the request or WebSocket connection that sent them, instead of the auth of the first request that touched the thread. A run started over HTTP after a token refresh, or over a WebSocket opened after it, now gets the new token inconfig.configurable.langgraph_auth_user, and run creation, state reads and interrupt answers are authorized as the request that sent them.
- Fixed
1 internal line (docs, tests, tooling) left out.
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.