@langchain/langgraph-api
1.8.1 · 20 Nov 2026MIT193.1k / weekRepositoryHomepagenpmAtom feed
Upgrading @langchain/langgraph-api From 0.0.11 to 1.8.1
109 releases in betweennotes for 78
Reading releases, release notes and advisories…
- 2+
- changes to make
- 0
- advisories fixed
- 24+
- new
- 68+
- fixes
Counted from 78 of 109 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking1.0.0
- Deprecated1.7.1
Release by release
- New
Expose each run's LangSmith tracing project and the session-name tracing capability so Studio can look up traces from the JavaScript dev server.
- Fixed
langgraph-api: Preserve additional_kwargs in protocol state normalizer
- New
- Fixed
The
messagesandeventsstream modes now skip calls taggednostreamorlangsmith:nostream(LangGraph.js'sTAG_NOSTREAM), asmessages-tuplealready does. Before,messagesstreamed the tokens of calls taggedlangsmith:nostream, andeventsstreamed every tagged call. Ineventsmode the skip covers everything that runs inside a tagged call, so a run whose config tags arenostreamstreams noevents.
- Fixed
- Fixed
A
run.startthat forks from a checkpoint (forkFromin the SDK) now starts a new run from that checkpoint even while the thread waits on an interrupt. The dev server and the embed server took the fork's input as the answer to that interrupt, or refused it when several were pending, so editing a message while a run was paused dropped the edit.
- Fixed
- Deprecated
POST /threads/:thread_id/historytakesbeforeas a checkpoint config, as the SDK sends it and the Python Agent Server takes it, so paging withgetHistory({ before })no longer fails with HTTP 400. A checkpoint ID string still works but is deprecated and will be removed in 2.0.0: send{ configurable: { checkpoint_id } }instead. - Fixed
GETandPOST /threads/:thread_id/historyhonorselect, as the Python Agent Server does: each state keeps only the fields named, andvalues.<key>keeps one key of the values. An unknown field is rejected with HTTP 400.
- Deprecated
- New
langgraph-api: A run that answers interrupts by id tells the thread's other protocol clients which ones, with an
input.answeredevent on theinputchannel; run streams don't carry it - New
langgraph-api: Refuse a stale interrupt answer only when the run asks for it with
strict_resume - Fixed
langgraph-api: The protocol's
failedlifecycle event carries the run error's message instead of the whole error as JSON, and a refused strict resume'sreason,interrupt_idsandpending_ids - Fixed
After a run that forks from a checkpoint, later runs on the thread continue from its latest state again. The dev server saved the fork's
checkpoint_id(andcheckpoint_ns,checkpoint_mapandrun_id) on the thread config, so every later run on the thread forked from the same checkpoint and dropped the new branch. - Fixed
GET /threads/:thread_id/runs/:run_id/joinandGET /threads/:thread_id/runs/:run_id/streamnow return HTTP 404 when the run doesn't exist, is on another thread, or is hidden by thethreads:readhandler, asGET /threads/:thread_id/runs/:run_iddoes.client.runs.join()andclient.runs.joinStream()then throwHTTP 404instead of returning{ __error__ }or yielding an error event, with or withoutlastEventId. - Fixed
Run streams on the dev server take the
lifecyclestream mode: an event namedlifecycle|<namespace>when each subgraph starts and when it ends (completed,failedorinterrupted), with the id of the tool call that started it./inforeportsstream_lifecycle. - Fixed
langgraph-api: The protocol's
run.startreads the multitask strategy frommultitask_strategy, falling back tomultitaskStrategy, on the dev server and the embed server.
- New
- 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
- Fixed
The experimental embed server's run stream join (
GET /threads/:thread_id/runs/:run_id/stream) now honorsstream_modelike the dev server's joins, soclient.runs.joinStream(..., { streamMode })drops other modes' events and themetadataevent instead of returning all of the run's events. Errors always pass, and either messages mode keeps both message formats. Joins withoutstream_modeare unchanged.
- Fixed
- Fixed
langgraph-api: Cancel a stateless streamed run when its request drops and
on_disconnectiscancel - Fixed
The dev server's run stream joins (
GET /threads/:thread_id/runs/:run_id/stream,GET /runs/:run_id/stream) now honorstream_modeas the Agent Server does, soclient.runs.joinStream(..., { streamMode })drops other modes' events instead of returning all of the run's events. Errors always pass, and either messages mode keeps both message formats. Joins withoutstream_modeare unchanged. - Fixed
A run created on a busy thread without a
multitask_strategyis now queued (enqueue), as on the Agent Server and in the API reference, instead of being rejected with 422. - Fixed
In
messagesmode, each chat model reply streams under one message id. Anthropic sets the id only on a reply's first chunk, somessages/partialcould switch to arun-<runId>id mid-reply that never matched the id inmessages/complete.
- Fixed
3 other lines we could not sort, mostly version bumps
- 1.1.12
StateSchema support: Extract schemas from
StateSchemainstances usinggetJsonSchema()andgetInputJsonSchema()methods, preservingjsonSchemaExtrametadata (e.g.,langgraph_type: "messages") - 1.1.12
Improved Zod handling: Fall back to Zod registry extraction for
withLangGraph()schemas, then direct Zod conversion for plain Zod schemas - 1.1.12
Reduced reliance on TypeScript parser: Only fall back to the brittle TypeScript AST parser when all runtime extraction methods fail
61 internal lines (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.