@langchain/langgraph-api
1.8.1 · 20 Nov 2026MIT193.1k / weekRepositoryHomepagenpmAtom feed
1.8.1 is the newest release of 1.x.
In short
1 new2 fixed1 internal
Release note
Minor Changes
langgraph-cli: Add
deploycommand for LangSmith DeploymentPort the Python CLI's
langgraph deployworkflow 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.
Patch Changes
langgraph-api: Preserve non-empty response_metadata on protocol-v2 state messages
The protocol-v2 state normalizer stripped
response_metadatafrom messages,
dropping data that HITL flows rely on — an interrupt's card is carried onAIMessage.response_metadata(e.g.{ cards: ... }). Non-emptyresponse_metadatais 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'sCommand(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 separateupdateStatewrite, no flicker.@langchain/langgraph-apiforwardsupdate/gotothroughinput.respond,
and@langchain/coremessage instances inupdateare serialized to dicts
before transport, exactly likesubmit(). Bumps@langchain/protocolto^0.0.18for theGototype.respond/respondAllalso applyupdateoptimistically (mirroringsubmit()): 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 instantrespond()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.
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.