Packages

@langchain/langgraph-api

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

Your version

112 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 2.x
  2. 1.x · latest line
  3. 1.8.1

    20 Nov 2026
    • Expose each run's LangSmith tracing project and the session-name tracing capability so Studio can look up traces from the JavaScript dev server.

    • langgraph-api: Preserve additional_kwargs in protocol state normalizer

      Forward non-empty additional_kwargs on values snapshot messages so
      server-authored message metadata (e.g. committed attachment paths) reaches
      live subscribers.

  4. 1.8.0

    17 Nov 2026
    • 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.

  5. 1.7.2

    12 Nov 2026
    • 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.

  6. 1.7.1

    10 Nov 2026
    • 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.

    • 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.

  7. 1.7.0

    6 Nov 2026
    • 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

    • langgraph-api: Refuse a stale interrupt answer only when the run asks for it with strict_resume

      Strict resume, which 1.6.0 turned on for every run, is now opt-in. A run created with strict_resume: true (the same field on the protocol's run.start and input.respond) runs the graph in strict resume mode: a Command({ resume }) that names an interrupt that isn't pending, is an empty map, or is one value while several interrupts are pending ends the run with UnknownInterruptError, and the thread keeps its status, values and interrupts. The error event carries reason, interrupt_ids and pending_ids. A retried run, and an interrupt or rollback run that cancelled one in flight, resume as before. Runs that don't set it resume as they did before 1.6.0: one value answers every pending interrupt, and an answer sent twice is a no-op.

    • 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

  8. 1.6.0

    5 Nov 2026
    • langgraph-api: Refuse a stale interrupt answer on the dev server

      The dev server now runs graphs in strict resume mode: a Command({ resume }) that names an interrupt that isn't pending, is an empty map, or is one value while several interrupts are pending ends the run with UnknownInterruptError, and the thread keeps its status, values and interrupts. A retried run, and an interrupt or rollback run that cancelled one in flight, resume as before.

      Two things that used to succeed now fail: one value sent while several interrupts are pending, which answered all of them, and an answer sent twice, such as a double-click, whose second run was a silent no-op. Both now end the run with an error.

    • 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.

    • 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.

  9. 1.5.8

    4 Nov 2026
    • 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.

  10. 1.5.7

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

      POST /runs/stream never cancelled its run when the client went away, before or after the response started, because the stream only cancelled runs it joined with a thread id. A stateless run created with on_disconnect: "cancel" now stops when its request drops, as thread runs already did, and GET /runs/:run_id/stream?cancel_on_disconnect=true gets the same fix. Cancelling a stateless run that has not started yet now deletes the run, and its temporary thread when no other run is left on it, instead of leaving an interrupted run and its thread behind. Runs created with on_disconnect: "continue" keep running.

    • 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.

    • 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.

  11. 1.5.6

    26 Oct 2026

    Only updates a dependency:@langchain/langgraph-ui 1.5.6

  12. 1.5.5

    21 Oct 2026
  13. 1.5.4

    16 Oct 2026
    • run.start input sent while a thread is paused on several interrupts now returns invalid_argument and leaves the thread paused, instead of starting a run that fails because one input can't say which interrupt it answers. Answer each interrupt with input.respond.

  14. 1.5.3

    12 Oct 2026
    • Order parallel writes by task path, like langgraph (Python) — one sort key for live execution and every saver, instead of the task-id order #2544 added for DeltaChannel writes

      When two or more tasks in one superstep write the same DeltaChannel, their writes are now applied and replayed in (task_path, task_id, idx) order — the order Python's langgraph#8544 established — instead of task-id order. Task ids are uuid5 hashes that include the checkpoint id, so the old order permuted parallel writers from run to run and disagreed with Python.

      Upgrade notes:

  15. 1.5.2

    3 Oct 2026

    Only updates a dependency:@langchain/langgraph-ui 1.5.2

  16. 1.5.1

    25 Sep 2026
    • Fix langgraph dev --no-reload with the default TypeScript loader. Pass the tsx --clear-screen=false option only in watch mode so Node can start the server when reload is disabled.

  17. 1.5.0

    18 Sep 2026
    • Pass a typed ServerRuntime as the second graph factory argument. Runs and resumes receive executionRuntime.context; assistant inspection and thread state operations receive executionRuntime: null. Existing config-only factories remain supported.

  18. 1.4.6

    12 Sep 2026
    • api: run.start with input on a cancelled thread no longer folds the input into Command(resume). A cancelled run shares the "interrupted" status with a genuine interrupt() pause, but has no pending interrupt to consume the resume value, so the submitted message was silently dropped. The input-vs-resume decision now keys on whether the thread actually has pending interrupts (both in the protocol service and the embed protocol).

  19. 1.4.5

    19 Aug 2026
    • Update checkpoint integrations to require the patched checkpoint serializer release.

  20. 1.4.4

    3 Aug 2026
    • langgraph-api: Stop wiping graph recursionLimit with undefined

      When a run omitted config.recursion_limit, the server still passed
      recursionLimit: undefined into streamEvents. Pregel spreads that over the
      graph's withConfig default, so agents fell back to langchain-core's 25.
      Omit undefined keys so bound limits (and deepagents' 10000) stick.

  21. 1.4.3

    15 Jul 2026

    Only updates a dependency:@langchain/langgraph-ui 1.4.3

  22. 1.4.2

    6 Jul 2026
    • api: Inject langgraph_auth_user on protocol-v2 run.start

      Stamp authenticated user fields onto run config in createOrResumeRun so
      v2 streaming matches the REST runs API. Shared helpers also dedupe REST
      run config auth/header enrichment.

    • cli: Support node_version 24 in langgraph.json

      Allow Node 24 in the CLI config schema and Docker base image resolution.
      The langgraphjs-api:24 image is already published from langgraph-api.

  23. 1.4.1

    25 Jun 2026
    • langgraph-api: Support configurable TypeScript loaders in dev server

      Add node_loader to langgraph.json (and LANGGRAPH_NODE_LOADER env override) so projects using reflect-metadata can use ts-node (--loader ts-node/esm) instead of the default tsx CLI. Other loaders default to --import; only registered shorthands like ts-node use --loader. --no-reload now also disables tsx's internal watch mode. Closes #1834.

  24. 1.4.0

    22 Jun 2026
    • langgraph-cli: Add deploy command for LangSmith Deployment

      Port the Python CLI's langgraph deploy workflow to @langchain/langgraph-cli, including local and remote build paths, deployment lifecycle subcommands (list, revisions list, delete, logs), and host-backend client utilities with tests.

    • langgraph-api: Preserve non-empty response_metadata on protocol-v2 state messages

      The protocol-v2 state normalizer stripped response_metadata from messages,
      dropping data that HITL flows rely on — an interrupt's card is carried on
      AIMessage.response_metadata (e.g. { cards: ... }). Non-empty
      response_metadata is now retained so the card reaches the client.

    • sdk: Apply state update and goto alongside interrupt resume

      respond(decision, { update, goto }) now maps to LangGraph's
      Command(resume, update, goto), so a human-in-the-loop UI can commit a state
      update (e.g. push the interrupt card into state) in the same superstep as
      the resume — one checkpoint, no separate updateState write, no flicker.
      @langchain/langgraph-api forwards update/goto through input.respond,
      and @langchain/core message instances in update are serialized to dicts
      before transport, exactly like submit(). Bumps @langchain/protocol to
      ^0.0.18 for the Goto type.

      respond/respondAll also apply update optimistically (mirroring
      submit()): the pushed messages paint immediately, with stable ids minted so
      the resumed run's echo reconciles them in place. Without this the interrupt is
      cleared the instant respond() dispatches while the pushed card only reappears
      a server round-trip later — so the card would flicker in that gap. The
      optimistic state settles on the resumed run's terminal (pending → sent, or
      rolled back on a failure before any echo).

      User-initiated optimistic writes (submit() / respond() / respondAll()) now
      commit to the store synchronously, in the same tick as the triggering event,
      instead of being coalesced onto the next macrotask. This lets a framework render
      the pushed message in the same commit as any local UI state the caller flips
      alongside it (e.g. a HITL form swapping its inputs for the resolved card), so the
      card no longer blinks out for the one-macrotask window before the flush lands.
      High-frequency streaming writes keep their macrotask coalescing.

  25. 1.3.1

    12 Jun 2026

    Only updates a dependency:@langchain/langgraph-ui 1.3.1

  26. 1.3.0

    8 Jun 2026
    • Consolidate the protocol session's channel inference, channel-set validation, and namespace prefix matching onto the shared @langchain/langgraph/stream helpers instead of maintaining local copies. This removes duplicated logic across session/index.mts, session/namespace.mts, session/internal-types.mts, and service.mts.

      This also aligns SSE event-sink filtering (matchesSinkFilter) with the WebSocket subscription matcher: both now normalize dynamic namespace suffixes (e.g. a ["fetcher"] namespace filter matches an event emitted under ["fetcher:<uuid>"]). Previously the SSE path used a stricter exact-segment match.

      Because the session now imports @langchain/langgraph/stream, the @langchain/langgraph peer dependency floor is raised to ^1.3.6 (the first release that ships the /stream entrypoint).

  27. 1.2.5

    5 Jun 2026
    • langgraph: Forward named custom stream channels consistently

      Forward remote StreamChannel emissions as custom:<name> protocol events and normalize them back to custom-channel payloads in the API session. This aligns JavaScript stream-channel forwarding with the protocol subscription shape used by remote clients, so custom:<name> subscriptions receive extension channel data consistently.

  28. 1.2.4

    1 Jun 2026
  29. 1.2.3

    29 May 2026
    • protocol-v2: Fold forkFrom client-side and honor per-run multitaskStrategy

      The SDK now folds the ergonomic forkFrom option into
      config.configurable.checkpoint_id before sending run.start, so the
      agent server only ever accepts the single, legacy-compliant fork field
      (forkFrom no longer hits the wire). The protocol-v2 reference servers
      drop their top-level forkFrom normalization accordingly.

      The protocol-v2 servers now honor the caller's multitaskStrategy per
      run (one of reject | rollback | interrupt | enqueue) instead of
      hardcoding it, falling back to enqueue when omitted or unrecognized.

    • protocol-v2: Add respondAll() and run config/metadata on interrupt resume

      The stream controller (and the React/Angular/Svelte/Vue wrappers) gain a
      respondAll(responsesById, options) method to resume several interrupts
      pending at the same checkpoint in a single command — required for runs that
      pause on multiple interrupts at once (e.g. parallel tool-authorization
      prompts), which sequential respond() calls cannot handle.

      respond() now takes an options object ({ interruptId?, namespace?, config?, metadata? }) so a resumed run can carry the same run-level config
      (model, user context, …) and metadata (trigger source, test flags, …) a
      fresh submit() would. The protocol-v2 reference servers read the new
      responses batch and config / metadata fields leniently and fold them
      onto the run that services the input.respond command.

  30. 1.2.2

    18 May 2026
    • langgraph-cli: Accept hyphenated prerelease tags in api_version values.

  31. 1.2.1

    5 May 2026
    • sdk: Update endpoints

  32. 1.2.0

    5 May 2026
    • Add the thread-scoped event streaming protocol used by the new SDK streaming
      clients.

      This release adds protocol routes for WebSocket and SSE/HTTP streaming,
      including thread-local command handling, filtered subscriptions, event replay,
      state inspection, checkpoint listing/forking, interrupt input, agent tree
      queries, and run start/resume commands. Stream events are normalized into the
      canonical protocol shape with ordered sequence IDs so clients can safely
      dedupe, resume subscriptions, and coordinate multiple projections from the same
      run.

      The experimental embed server now supports the same protocol flow, so embedded
      graphs can serve the new SDK transports without standing up a separate
      LangGraph API deployment. The server also gains protocol session tests and
      fixture graphs covering deep agents, interrupts, subgraphs, and SDK transport
      behavior.

  33. 1.1.16 – 1.1.172 releases that only update dependencies@langchain/langgraph-ui 1.1.17Show each
  34. 1.1.15

    6 Mar 2026
    • langgraph-api: Use UUIDv7 instead of UUIDv4 in embed server

      Switches thread and run ID generation from uuidv4 to uuidv7 in the experimental embed server. UUIDv7 is time-ordered, which improves sortability and database index performance for IDs.

  35. 1.1.14

    26 Feb 2026
    • Add tools stream mode for tool lifecycle events

  36. 1.1.13

    11 Feb 2026
    • Relax langsmith dep

  37. 1.1.12

    5 Feb 2026
    • Enhanced JSON schema extraction for Studio with multi-tier strategy:

      Extraction priority:

  38. 1.1.11

    10 Jan 2026
    • Add delete_threads query parameter to delete assistants API.

  39. 1.1.10

    9 Jan 2026
    • Retry release: bump @hono/zod-validator

  40. 1.1.9

    9 Jan 2026
    • Retry release: bump @hono/zod-validator

  41. 1.1.8

    9 Jan 2026
    • Retry release: bump @hono/zod-validator

  42. 1.1.2

    5 Dec 2025
    • Fix semver range for SDK

  43. 1.1.1

    3 Dec 2025
    • Add name parameter to assistants count API.

  44. 1.1.0

    2 Dec 2025

    Only updates a dependency:@langchain/langgraph-ui 1.1.0

  45. 1.0.4

    21 Nov 2025
    • Adding functionality to search assistants by name in the in-memory server implementation.

  46. 1.0.3

    28 Oct 2025
    • Remove Zod 3.x dependency constraint to allow Zod 4.x and avoid installing duplicate Zod packages

  47. 1.0.2

    24 Oct 2025
    • Add back support for older versions of LangChain / LangGraph

  48. 1.0.1

    23 Oct 2025
    • Hotfix graph resolution for createAgent

  49. 1.0.0

    18 Oct 2025
    • Breaking

      This release updates the package for compatibility with LangGraph v1.0. See the v1.0 release notes for details on what's new.

  50. 0.0.x
  51. 0.0.72

    19 Aug 2026

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.