Packages

@langchain/langgraph

1.7.5 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.4.1

11 Jun 2026Where it was published

1.7.5 is the newest release of 1.x.

In short

1 new1 fixed1 internal

Release note

Patch Changes

  • state: Validate Zod state updates from nodes

    Validate node return values and Command updates against Zod state schema
    constraints before applying them to graph state.

    Fixes #2519

  • ToolNode: Forward graph state to tools via runtime.state

    ToolNode now forwards its input to each tool through the second argument as runtime.state. When using ToolNode as a node in a LangGraph graph, this gives tools access to the current graph state for workflows that need tool-call support in LangGraph proper. Tools can type the second parameter as ToolRuntime<StateType> from @langchain/core/tools and read runtime.state directly. This works in every runtime, including web browsers, and removes the need for getCurrentTaskInput() (which relies on node:async_hooks/AsyncLocalStorage). getCurrentTaskInput(config) continues to work for backwards compatibility.

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.