Packages

langchain

1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.2.20

11 Feb 2026Where it was published

1.6.7 is the newest release of 1.x.

In short

3 new1 fixed1 internal

Release note

Patch Changes

  • Support concurrent agentNode dynamic prompts properly.

  • Don't re-emit input state from middleware hooks that return void

  • langchain: Add optional tools parameter to countTokensApproximately for more accurate token estimates when tools are bound to a model

  • agents: Support returning Command from wrapModelCall middleware

    Allow wrapModelCall middleware hooks to return Command objects for advanced
    control flow (routing, state updates), matching the existing wrapToolCall
    pattern. The framework tracks the effective AIMessage through the middleware
    chain so outer middleware always receive an AIMessage from handler(), even
    when an inner middleware returns a Command.

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.