Packages

@langchain/langgraph-sdk

1.17.0 · 17 Nov 2026MIT5.6M / weekRepositoryHomepagenpmAtom feed

Your version

1.13.0

5 Nov 2026Where it was published

1.17.0 is the newest release of 1.x.

In short

1 breaking4 new2 fixed

  • Breaking

    The client no longer sends a POST or PATCH request again after it may have reached the server, so a retry can no longer create a second run or repeat a protocol command. These requests are now retried only when the connection failed before they were sent (for example, the connection was refused or the host was not found). GET, HEAD, OPTIONS, PUT and DELETE requests are retried as before.

    To check

Release note

Minor Changes

  • client.runs.stream and client.runs.joinStream take streamNamespaces, the namespaces of a run to stream ("" is the root graph), each without the subagents it starts. Servers that support it report stream_namespaces in /info; older servers ignore it and send every event. A reconnect no longer re-sends query params its Location already carries, so the URL stops growing on every reconnect.

Patch Changes

  • Add a reason option to client.runs.cancel. Set reason: "taken" to mark run input absorbed for steering; the server records a cancel_reason starting with taken:.

  • Type the end event that closes a run stream as EndStreamEvent: its data carries the run's run_id and final status, or is null from servers that send it without data.

  • When the threadId option of useStream changes while the last run's values still hold a pending headless tool call, the hook no longer runs that tool again. It also no longer resumes the new thread, or a thread it creates after a switch to null, with the previous thread's interrupt id. Passing back the threadId of a thread submit created no longer runs its pending tool again either.

  • The client no longer sends a POST or PATCH request again after it may have reached the server, so a retry can no longer create a second run or repeat a protocol command. These requests are now retried only when the connection failed before they were sent (for example, the connection was refused or the host was not found). GET, HEAD, OPTIONS, PUT and DELETE requests are retried as before.

  • Add cancel_reason to the Run type and to RunSelectField. The Agent Server returns why a run was cancelled, but callers had to cast to read it.

  • ThreadsClient.getState and ThreadsClient.getHistory accept a select option to return only some fields, e.g. select: ["values.messages"] to read a single state key. Exports the new ThreadStateSelectField type and the existing ThreadSelectField type from the package root.

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.