Packages

@langchain/langgraph-api

1.8.1 · 20 Nov 2026MIT193.1k / weekRepositoryHomepagenpmAtom feed

Upgrading @langchain/langgraph-api From 0.0.12 to 1.8.1

108 releases in betweennotes for 78

Reading releases, release notes and advisories…

Other targets from 0.0.12Newest 0.x0.0.72
  1. 0.0.12yours
  2. 60 releases
  3. 1.0.0major
  4. 46 releases
  5. 1.8.1target
  6. 3 pre
2+
changes to make
0
advisories fixed
24+
new
68+
fixes

Counted from 78 of 108 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

  1. 1.8.1

    20 Nov 20261 new · 1 fix
    • 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

  2. 1.8.0

    17 Nov 20261 fix
    • Fixed

      The messages and events stream modes now skip calls tagged nostream or langsmith:nostream (LangGraph.js's TAG_NOSTREAM), as messages-tuple already does. Before, messages streamed the tokens of calls tagged langsmith:nostream, and events streamed every tagged call. In events mode the skip covers everything that runs inside a tagged call, so a run whose config tags are nostream streams no events.

  3. 1.7.2

    12 Nov 20261 fix
    • Fixed

      A run.start that forks from a checkpoint (forkFrom in 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.

  4. 1.7.1

    Deprecation10 Nov 20261 fix
    • Deprecated

      POST /threads/:thread_id/history takes before as a checkpoint config, as the SDK sends it and the Python Agent Server takes it, so paging with getHistory({ 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

      GET and POST /threads/:thread_id/history honor select, as the Python Agent Server does: each state keeps only the fields named, and values.<key> keeps one key of the values. An unknown field is rejected with HTTP 400.

  5. 1.7.0

    6 Nov 20262 new · 5 fixes
    • New

      langgraph-api: A run that answers interrupts by id tells the thread's other protocol clients which ones, with an input.answered event on the input channel; 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 failed lifecycle event carries the run error's message instead of the whole error as JSON, and a refused strict resume's reason, interrupt_ids and pending_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 (and checkpoint_ns, checkpoint_map and run_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/join and GET /threads/:thread_id/runs/:run_id/stream now return HTTP 404 when the run doesn't exist, is on another thread, or is hidden by the threads:read handler, as GET /threads/:thread_id/runs/:run_id does. client.runs.join() and client.runs.joinStream() then throw HTTP 404 instead of returning { __error__ } or yielding an error event, with or without lastEventId.

    • Fixed

      Run streams on the dev server take the lifecycle stream mode: an event named lifecycle|<namespace> when each subgraph starts and when it ends (completed, failed or interrupted), with the id of the tool call that started it. /info reports stream_lifecycle.

    • Fixed

      langgraph-api: The protocol's run.start reads the multitask strategy from multitask_strategy, falling back to multitaskStrategy, on the dev server and the embed server.

  6. 1.6.0

    5 Nov 20266 fixes
    • 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/stream now ends with a Run not found error 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 (by DELETE /threads/:thread_id/runs/:run_id or a rollback) gets that error too, as GET /threads/:thread_id/runs/:run_id does, instead of the deleted run's events. When the threads:read handler returns filters, GET /runs/:run_id/stream streams 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_resumable kept its events in a queue that each read emptied, so two clients joining the run each got only part of them, and runs.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() and runs.join() read the run from the start, a join with Last-Event-ID resumes 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, pass lastEventId: "-1" to client.runs.joinStream(). A finished run's events now stay in memory for two minutes, long enough to rejoin it with Last-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 end event whose data carries the run's run_id and final status, so a client learns how the run ended without asking for the run again. stream_mode filters never drop it, and on the dev server a join of a run that has already ended gets just the end event. A rolled-back stateless run ends with rollback. A thread run that is deleted, as a rollback does, ends its streams without one.

    • Fixed

      Thread protocol commands (POST /threads/:thread_id/commands and the /threads/:thread_id/stream/events WebSocket) 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 in config.configurable.langgraph_auth_user, and run creation, state reads and interrupt answers are authorized as the request that sent them.

  7. 1.5.8

    4 Nov 20261 fix
    • Fixed

      The experimental embed server's run stream join (GET /threads/:thread_id/runs/:run_id/stream) now honors stream_mode like the dev server's joins, so client.runs.joinStream(..., { streamMode }) drops other modes' events and the metadata event instead of returning all of the run's events. Errors always pass, and either messages mode keeps both message formats. Joins without stream_mode are unchanged.

  8. 1.5.7

    30 Oct 20269 fixes
    • Fixed

      langgraph-api: Cancel a stateless streamed run when its request drops and on_disconnect is cancel

    • Fixed

      The dev server's run stream joins (GET /threads/:thread_id/runs/:run_id/stream, GET /runs/:run_id/stream) now honor stream_mode as the Agent Server does, so client.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 without stream_mode are unchanged.

    • Fixed

      A run created on a busy thread without a multitask_strategy is now queued (enqueue), as on the Agent Server and in the API reference, instead of being rejected with 422.

    • Fixed

      In messages mode, each chat model reply streams under one message id. Anthropic sets the id only on a reply's first chunk, so messages/partial could switch to a run-<runId> id mid-reply that never matched the id in messages/complete.

3 other lines we could not sort, mostly version bumps
  • StateSchema support: Extract schemas from StateSchema instances using getJsonSchema() and getInputJsonSchema() methods, preserving jsonSchemaExtra metadata (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

    1.1.12

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.