langchain
1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
Upgrading langchain From 1.2.27 to 1.6.7
52 releases in betweennotes for 47
Reading releases, release notes and advisories…
- 2+
- changes to make
- 0
- advisories fixed
- 22+
- new
- 51+
- fixes
Counted from 47 of 52 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking1.6.5
- Breaking1.2.34
Release by release
- Fixed
Mark tool messages that
humanInTheLoopMiddlewarecreates forrejectandresponddecisions withlc_source: "hitl_interrupt_decision"andlc_data: { decision }, and letaddNotificationMetadataaccept tool messages - Fixed
langchain: Make
ConfigurableModelnon-configurable whenconfigurableFieldsis omitted
- Fixed
- Fixed
Prevent a failed tool call or subagent from crashing the process when its
outputpromise is never consumed - Fixed
Apply a
Commandreturned fromwrapModelCallonce when outer middleware passes it through
- Fixed
- 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/v3entry point. - New
langchain: Add model router and auto mode middleware
- Breaking
- New
langchain: Add
modelRefusalMiddleware
- New
- Fixed
modelRetryMiddlewarenow retries errors that are subclasses of a class listed inretryOn. Previously the array form matched only the exact constructor, soretryOn: [APIError]never retried aRateLimitError. This matchestoolRetryMiddleware. - Fixed
langchain: Preserve model errors propagated through middleware
- Fixed
- New
Add
tracePolicytocreateMiddleware, applied to the middleware's lifecycle hook runs. It only changes whatLangChainTracersends to LangSmith (useomitPayloadfrom@langchain/core/tracers/tracer_langchain). Requires@langchain/langgraph>= 1.6.1.
- New
- 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)
- Fixed
- New
Add a beta
OpenAIDecisionsrunnable with typed predicate, choice and score questions, plus model-routing and tool-risk agent middleware.
- New
16 internal lines (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.