Packages

langchain

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

Upgrading langchain From 1.5.2 to 1.6.7

25 releases in betweennotes for 24

Reading releases, release notes and advisories…

  1. 1.5.2yours
  2. 22 releases
  3. 1.6.5breaking
  4. 1 release
  5. 1.6.7target
  6. 1 pre
1+
change to make
0
advisories fixed
8+
new
21+
fixes

Counted from 24 of 25 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking1.6.5

Release by release

  1. 1.6.7

    18 Nov 20262 fixes
    • Fixed

      Mark tool messages that humanInTheLoopMiddleware creates for reject and respond decisions with lc_source: "hitl_interrupt_decision" and lc_data: { decision }, and let addNotificationMetadata accept tool messages

    • Fixed

      langchain: Make ConfigurableModel non-configurable when configurableFields is omitted

  2. 1.6.6

    13 Nov 20262 fixes
    • Fixed

      Prevent a failed tool call or subagent from crashing the process when its output promise is never consumed

    • Fixed

      Apply a Command returned from wrapModelCall once when outer middleware passes it through

  3. 1.6.5

    Migration needed11 Nov 20261 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.

    • New

      langchain: Add model router and auto mode middleware

  4. 1.6.4

    10 Nov 20261 new
    • New

      langchain: Add modelRefusalMiddleware

  5. 1.6.3

    7 Nov 20262 fixes
    • Fixed

      modelRetryMiddleware now retries errors that are subclasses of a class listed in retryOn. Previously the array form matched only the exact constructor, so retryOn: [APIError] never retried a RateLimitError. This matches toolRetryMiddleware.

    • Fixed

      langchain: Preserve model errors propagated through middleware

  6. 1.6.2

    5 Nov 20261 new
    • New

      Add tracePolicy to createMiddleware, applied to the middleware's lifecycle hook runs. It only changes what LangChainTracer sends to LangSmith (use omitPayload from @langchain/core/tracers/tracer_langchain). Requires @langchain/langgraph >= 1.6.1.

  7. 1.6.1

    3 Nov 20261 fix
    • Fixed

      langchain: humanInTheLoopMiddleware — execute approved, edited and auto-approved tool calls when other calls in the same interrupt are rejected, instead of dropping them without a ToolMessage (caused "400 No tool output found for function call" on subsequent model requests)

  8. 1.6.0

    28 Oct 20261 new
    • New

      Add a beta OpenAIDecisions runnable with typed predicate, choice and score questions, plus model-routing and tool-risk agent middleware.

1 internal line (docs, tests, tooling) left out.

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.