@langchain/langgraph-api
1.8.1 · 20 Nov 2026MIT193.1k / weekRepositoryHomepagenpmAtom feed
Upgrading @langchain/langgraph-api From 1.6.0 to 1.8.1
5 releases in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 3
- new
- 9
- fixes
Before you upgrade
Tick each one off as you go- 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
6 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.