Packages

langchain

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

Your version

1.6.5

11 Nov 2026Where it was published

1.6.7 is the newest release of 1.x.

In short

1 breaking1 new

  • Breaking

    Require Zod 4.6.6 or newer for installed dependencies to exclude versions affected by GHSA-mrhx-c7xc-m3w5. Zod v3 schemas remain supported through the bundled zod/v3 entry point.

Release note

Patch Changes

  • langchain: Add model router and auto mode middleware

    • Add modelRouterMiddleware, which picks the agent's model for each run from a decision model's Choice answer

    • Add autoModeMiddleware, which blocks listed tool calls that a decision model judges risky

  • Breaking

    Require Zod 4.6.6 or newer for installed dependencies to exclude versions affected by GHSA-mrhx-c7xc-m3w5. Zod v3 schemas remain supported through the bundled zod/v3 entry point.

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.