---
title: "langchain 1.6.9 Breaking Changes on npm | Since.dev"
description: "What each langchain release removed, renamed or changed: 1,481 breaking changes in 86 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/langchain
last_updated: 2026-12-04
---

# langchain breaking changes

langchain 1.6.9 (December 1, 2026) is its newest release with breaking changes, 3 of them. The first: Behavior changed thinking. Every breaking API change we have recorded in langchain on npm: 1,481 breaking changes in 86 versions. Below, its 86 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.6.10`, released December 3, 2026. [Source repository](https://github.com/langchain-ai/langchainjs)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.3.29](#v-0-3-29) to [1.6.9](#v-1-6-9): 833 breaking changes in 63 versions.
- From [0.1.29](#v-0-1-29) to [1.6.9](#v-1-6-9): 1,474 breaking changes in 85 versions.

## langchain 1.6.9 breaking changes

langchain 1.6.9, released December 1, 2026: 3 breaking changes.

- **Behavior changed** `thinking`  

Passing thinking type disabled to Claude Opus 5.5 or Sonnet 5.5 now fails. Remove that setting for these models. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.6.9)
- **Behavior changed** `withStructuredOutput`  

For Claude Opus 5.5 and Sonnet 5.5, withStructuredOutput no longer forces a tool call, because these models always think. Check structured output results if you use these models. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.6.9)
- **Default changed** `ChatAnthropic`  

If you rely on the default model, requests now go to claude-sonnet-4-6. Set the model explicitly to keep the previous model. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.6.9)

## langchain 1.6.8 breaking changes

langchain 1.6.8, released November 24, 2026: 11 breaking changes.

- **Signature changed** `DecisionType`  

Was const DecisionType: z$1.ZodEnum<\["approve", "edit", "reject", "respond"\]> type DecisionType = z$1.infer\<typeof DecisionType>; now const DecisionType: z.ZodEnum<\["approve", "edit", "reject", "respond"\]> type DecisionType =... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.8)
- **Signature changed** `DescriptionFactory`  

Was type DescriptionFactory = z$1.infer\<typeof DescriptionFunctionSchema>; now type DescriptionFactory = z.infer\<typeof DescriptionFunctionSchema>. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.8)
- **Signature changed** `FakeToolCallingModel.toolCalls`  

Was toolCalls: ToolCall$1\[\]\[\]; now toolCalls: ToolCall\[\]\[\]. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.8)
- **Signature changed** `humanInTheLoopMiddleware`  

Was function humanInTheLoopMiddleware(options: NonNullable\<HumanInTheLoopMiddlewareConfig>): AgentMiddleware\<undefined, z$1.ZodObject<{interruptOn: z$1.ZodOptional\<z$1.ZodRecord\<z$1.ZodString, z$1.ZodUnion<\[z$1.ZodBoolean... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.8)
- **Signature changed** `InterruptOnConfig`  

Was type InterruptOnConfig = z$1.input\<typeof InterruptOnConfigSchema>; now type InterruptOnConfig = z.input\<typeof InterruptOnConfigSchema>. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.8)
- **Signature changed** `Runtime`  

Was type Runtime$1\<TContext = unknown> = Partial\<Omit\<Runtime\<TContext>, "context" | "configurable">> & WithMaybeContext\<TContext> & {configurable?: {thread_id?: string; \[key: string\]: unknown;};}; now type Runtime\<TContext = unknown> =... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.8)
- **Signature changed** `tool`  

Was const tool$1: HeadlessToolOverload & typeof tool; now const tool: HeadlessToolOverload & typeof tool$1. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.8)
- **Signature changed** `ToolApprovalDecision`  

Was type ToolApprovalDecision = z.infer\<ReturnType\<typeof toolApprovalDecisions>\[DecisionType\]>; now type ToolApprovalDecision = z$1.infer\<ReturnType\<typeof toolApprovalDecisions>\[DecisionType\]>. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.8)
- **Signature changed** `ToolApprovalRequest`  

Was type ToolApprovalRequest = z.infer\<typeof ToolApprovalRequestSchema>; now type ToolApprovalRequest = z$1.infer\<typeof ToolApprovalRequestSchema>. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.8)
- **Signature changed** `ToolCall`  

Was interface ToolCall$1; now interface ToolCall. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.8)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## langchain 1.6.7 breaking changes

langchain 1.6.7, released November 18, 2026: 1 breaking change.

- **Behavior changed** `ConfigurableModel`  

Without configurableFields, configurable.model and configurable.modelProvider no longer change the model at invoke time. Pass configurableFields: \["model", "modelProvider"\] to keep runtime model swapping. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.6.7)

## langchain 1.6.5 breaking changes

langchain 1.6.5, released November 11, 2026: 3 breaking changes.

- **Configuration changed**  

Installed Zod must now be version 4.6.6 or newer, so projects pinned to older Zod versions must upgrade. Zod v3 schemas remain supported through the bundled zod/v3 entry point. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.6.5)
- **Signature changed** `ModelChoice.criteria`  

Was criteria: string; now criteria: JsonValue. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.5)
- **Signature changed** `OpenAIModelRouterMiddlewareOptions.choices`  

Was choices: Record\<string, ModelChoice>; now choices: Record\<string, ModelChoice & {criteria: string;}>. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.5)

## langchain 1.6.4 breaking changes

langchain 1.6.4, released November 10, 2026: 4 breaking changes.

- **Behavior changed** `ModelRefusalError`  

Middleware now passes ModelRefusalError through unwrapped. Code that catches MiddlewareError to handle model refusals must catch ModelRefusalError instead. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.6.4)
- **Signature changed** `StructuredOutputParsingError.constructor`  

Was constructor(toolName: string, errors: string\[\]); now constructor(toolName: string, errors: string\[\], aiMessage?: AIMessage). [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.4)
- **Signature changed** `ToolInvocationError.constructor`  

Was constructor(toolError: unknown, toolCall: ToolCall); now constructor(toolError: unknown, toolCall: ToolCall$1). [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.4)
- **Signature changed** `ToolInvocationError.toolCall`  

Was readonly toolCall: ToolCall; now readonly toolCall: ToolCall$1. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.4)

## langchain 1.6.2 breaking changes

langchain 1.6.2, released November 5, 2026: 3 breaking changes.

- **Removed** `chat_models/universal:ConfigurableModelFields`  

ConfigurableModelFields was removed in langchain 1.6.2 [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.2)
- **Removed** `chat_models/universal:EventStreamCallbackHandlerInput`  

EventStreamCallbackHandlerInput was removed in langchain 1.6.2 [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.2)
- **Signature changed** `createMiddleware`  

Was function createMiddleware\<TSchema extends StateDefinitionInit | undefined = undefined, TContextSchema extends InteropZodObject | undefined = undefined, const TTools extends readonly (ClientTool | ServerTool)\[\] = readonly (ClientTool |... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.6.2)

## Older versions

80 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### langchain 1.5.20 breaking changes

langchain 1.5.20, released October 27, 2026: 1 breaking change.

- **Behavior changed** `ToolNode`  

When a tool throws GraphDrained, the agent's ToolNode now re-throws it and stops the run, rather than returning an error ToolMessage that lets the agent continue. Code relying on the old continue-on-error behavior must handle the drain... [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.5.20)

### langchain 1.5.19 breaking changes

langchain 1.5.19, released October 22, 2026: 1 breaking change.

- **Default changed**  

The default todo-list system prompt and tool description were changed to match the Python version, including guidance to deliver the final answer after the last write_todos result. Code relying on the previous default prompt text may see... [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.5.19)

### langchain 1.5.18 breaking changes

langchain 1.5.18, released October 16, 2026: 7 breaking changes.

- **Behavior changed** `humanInTheLoopMiddleware`  

With interruptOn set to { tool: true }, all decisions are now allowed, including respond, matching Python. Code that relied on respond being rejected for this setting will see different behavior. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.5.18)
- **Signature changed** `DecisionType`  

Was const DecisionType: z.ZodEnum<\["approve", "edit", "reject", "respond"\]> type DecisionType = z.infer\<typeof DecisionType>; now const DecisionType: z$1.ZodEnum<\["approve", "edit", "reject", "respond"\]> type DecisionType =... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.5.18)

And 5 more in this version.

### langchain 1.5.17 breaking changes

langchain 1.5.17, released October 15, 2026: 3 breaking changes.

- **Signature changed** `Decision`  

Was type Decision = ApproveDecision | EditDecision | RejectDecision; now type Decision = ApproveDecision | EditDecision | RejectDecision | RespondDecision. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.5.17)
- **Signature changed** `DecisionType`  

Was const DecisionType: z.ZodEnum<\["approve", "edit", "reject"\]>; now const DecisionType: z.ZodEnum<\["approve", "edit", "reject", "respond"\]>. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.5.17)

And 1 more in this version.

### langchain 1.5.14 breaking changes

langchain 1.5.14, released September 27, 2026: 2 breaking changes.

- **Behavior changed** `createAgent`  

A failing returnDirect tool no longer ends the agent run; the error goes back to the model so it can retry. Code that relied on the run ending on tool failure must now handle the retry. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.5.14)
- **Behavior changed** `ToolMessage`  

Error ToolMessages from the tool node now have status "error", and a ToolMessage returned from a custom handleToolErrors function defaults to that status when it sets none. Code that checks ToolMessage status may see different values. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.5.14)

### langchain 1.5.9 breaking changes

langchain 1.5.9, released August 14, 2026: 2 breaking changes.

- **Behavior changed** `modelRetryMiddleware`  

Errors marked non-retryable now fail on the first attempt instead of being retried. Pass retryOn: () => true to restore the old retry-everything default. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.5.9)
- **Behavior changed** `toolRetryMiddleware`  

Errors marked non-retryable now fail on the first attempt instead of being retried. Pass retryOn: () => true to restore the old retry-everything default. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.5.9)

### langchain 1.5.7 breaking changes

langchain 1.5.7, released August 13, 2026: 1 breaking change.

- **Signature changed** `chat_models/universal:MODEL_PROVIDER_CONFIG`  

Was const MODEL_PROVIDER_CONFIG: {readonly openai: {readonly package: "@langchain/openai"; readonly className: "ChatOpenAI";}; readonly anthropic: {readonly package: "@langchain/anthropic"; readonly className: "ChatAnthropic";}; readonly... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.5.7)

### langchain 1.5.6 breaking changes

langchain 1.5.6, released August 12, 2026: 1 breaking change.

- **Behavior changed** `summarizationMiddleware`  

Bookkeeping model calls from summarizationMiddleware and toolEmulatorMiddleware, and the summary it writes to state, are no longer returned in run.messages or streamMode messages. To still observe them, use streamEvents with version v2 and... [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.5.6)

### langchain 1.5.5 breaking changes

langchain 1.5.5, released August 5, 2026: 14 breaking changes.

- **Signature changed** `anthropicPromptCachingMiddleware`  

Was function anthropicPromptCachingMiddleware(middlewareOptions?: PromptCachingMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{enableCaching: z.ZodOptional\<z.ZodBoolean>; ttl: z.ZodOptional\<z.ZodEnum<\["5m", "1h"\]>>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.5.5)
- **Signature changed** `bedrockPromptCachingMiddleware`  

Was function bedrockPromptCachingMiddleware(middlewareOptions?: BedrockConversePromptCachingMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{enableCaching: z.ZodOptional\<z.ZodBoolean>; ttl: z.ZodOptional\<z.ZodEnum<\["5m", "1h"\]>>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.5.5)

And 12 more in this version.

### langchain 1.5.3 breaking changes

langchain 1.5.3, released July 8, 2026: 1 breaking change.

- **Signature changed** `MiddlewareError.~brand`  

Was static readonly "\~brand"; now readonly "\~brand". [npmjs.com](https://www.npmjs.com/package/langchain/v/1.5.3)

### langchain 1.5.2 breaking changes

langchain 1.5.2, released June 23, 2026: 1 breaking change.

- **Behavior changed**  

Strict tool calling is now separated from strict structured output response handling. Code that relied on strict tools also making structured output strict must now enable that setting explicitly. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.5.2)

### langchain 1.5.0 breaking changes

langchain 1.5.0, released June 18, 2026: 2 breaking changes.

- **Configuration changed**  

Agent stream transformers moved into agents/transformers/, and the package entry now exports only the public stream types. Code importing other internal transformer types from the package entry may need to change. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.5.0)
- **Signature changed** `AgentRunStream`  

Was type AgentRunStream\<TValues = Record\<string, unknown>, TTools extends readonly (ClientTool | ServerTool)\[\] = readonly (ClientTool | ServerTool)\[\], TExtensions extends Record\<string, unknown> = Record\<string, unknown>> =... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.5.0)

### langchain 1.4.6 breaking changes

langchain 1.4.6, released June 17, 2026: 2 breaking changes.

- **Signature changed** `chat_models/universal:ConfigurableModel.streamEvents`  

Was streamEvents(input: RunInput, options: Partial\<CallOptions> & {version: "v1" | "v2"; encoding: "text/event-stream";}, streamOptions?: Omit\<EventStreamCallbackHandlerInput, "autoClose">): IterableReadableStream\<Uint8Array>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.4.6)
- **Signature changed** `humanInTheLoopMiddleware`  

Was function humanInTheLoopMiddleware(options: NonNullable\<HumanInTheLoopMiddlewareConfig>): AgentMiddleware\<undefined, z.ZodObject<{interruptOn: z.ZodOptional\<z.ZodRecord\<z.ZodString, z.ZodUnion<\[z.ZodBoolean... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.4.6)

### langchain 1.4.4 breaking changes

langchain 1.4.4, released June 1, 2026: 40 breaking changes.

- **Signature changed** `AgentMiddleware`  

Was interface AgentMiddleware\<TSchema extends StateDefinitionInit | undefined = any, TContextSchema extends InteropZodObject | InteropZodDefault\<InteropZodObject> | InteropZodOptional\<InteropZodObject> | undefined = any, TFullContext =... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.4.4)
- **Signature changed** `AgentMiddleware.~middlewareTypes`  

Was readonly "\~middlewareTypes"?: MiddlewareTypeConfig\<TSchema, TContextSchema, TFullContext, TTools>; now readonly "\~middlewareTypes"?: MiddlewareTypeConfig\<TSchema, TContextSchema, TFullContext, TTools, TStreamTransformers>. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.4.4)

And 38 more in this version.

### langchain 1.4.1 breaking changes

langchain 1.4.1, released May 18, 2026: 1 breaking change.

- **Behavior changed** `createAgent`  

When a structured response cannot be parsed or validated, createAgent now throws StructuredOutputParsingError instead of returning with structuredResponse undefined. Code that relied on the silent undefined result must now handle the... [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.4.1)

### langchain 1.4.0 breaking changes

langchain 1.4.0, released May 5, 2026: 5 breaking changes.

- **Signature changed** `AgentTypeConfig`  

Was interface AgentTypeConfig\<TResponse extends Record\<string, any> | ResponseFormatUndefined = Record\<string, any> | ResponseFormatUndefined, TState extends StateDefinitionInit | undefined = StateDefinitionInit | undefined, TContext... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.4.0)
- **Signature changed** `createAgent`  

Was function createAgent\<StructuredResponseFormat extends Record\<string, any> = Record\<string, any>, TStateSchema extends StateDefinitionInit | undefined = undefined, ContextSchema extends AnyAnnotationRoot | InteropZodObject =... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.4.0)

And 3 more in this version.

### langchain 1.3.0 breaking changes

langchain 1.3.0, released April 3, 2026: 14 breaking changes.

- **Signature changed** `anthropicPromptCachingMiddleware`  

Was function anthropicPromptCachingMiddleware(middlewareOptions?: PromptCachingMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{enableCaching: z.ZodOptional\<z.ZodBoolean>; ttl: z.ZodOptional\<z.ZodEnum<\["5m", "1h"\]>>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.3.0)
- **Signature changed** `chat_models/universal:MODEL_PROVIDER_CONFIG`  

Was const MODEL_PROVIDER_CONFIG: {readonly openai: {readonly package: "@langchain/openai"; readonly className: "ChatOpenAI";}; readonly anthropic: {readonly package: "@langchain/anthropic"; readonly className: "ChatAnthropic";}; readonly... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.3.0)

And 12 more in this version.

### langchain 1.2.39 breaking changes

langchain 1.2.39, released March 31, 2026: 5 breaking changes.

- **Signature changed** `CreateAgentParams`  

Was type CreateAgentParams\<StructuredResponseType extends Record\<string, any> = Record\<string, any>, TStateSchema extends StateDefinitionInit | undefined = undefined, ContextSchema extends AnyAnnotationRoot | InteropZodObject =... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.39)
- **Signature changed** `CreateAgentParams.model`  

Was model: string | LanguageModelLike; now model: string | AgentLanguageModelLike. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.39)

And 3 more in this version.

### langchain 1.2.37 breaking changes

langchain 1.2.37, released March 24, 2026: 1 breaking change.

- **Signature changed** `chat_models/universal:MODEL_PROVIDER_CONFIG`  

Was const MODEL_PROVIDER_CONFIG: {readonly openai: {readonly package: "@langchain/openai"; readonly className: "ChatOpenAI";}; readonly anthropic: {readonly package: "@langchain/anthropic"; readonly className: "ChatAnthropic";}; readonly... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.37)

### langchain 1.2.35 breaking changes

langchain 1.2.35, released March 18, 2026: 1 breaking change.

- **Renamed** `ReactAgent.getSubgraphAsync`  

The method getSubgraphAsync was renamed to getSubgraphsAsync. Update calls to use the new name. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.35)

### langchain 1.2.34 breaking changes

langchain 1.2.34, released March 17, 2026: 1 breaking change.

- **Behavior changed** `createAgent`  

Agents using version v2 together with afterModel middleware now dispatch each tool call as a separate Send task instead of one parallel ToolNode call. Set version to "v1" to keep the previous single-node parallel behavior. [github.com](https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.2.34)

### langchain 1.2.31 breaking changes

langchain 1.2.31, released March 11, 2026: 2 breaking changes.

- **Signature changed** `CreateAgentParams`  

Was type CreateAgentParams\<StructuredResponseType extends Record\<string, any> = Record\<string, any>, TStateSchema extends StateDefinitionInit | undefined = undefined, ContextSchema extends AnyAnnotationRoot | InteropZodObject =... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.31)
- **Signature changed** `todoListMiddleware`  

Was function todoListMiddleware(options?: TodoListMiddlewareOptions): AgentMiddleware\<z.ZodObject<{todos: z.ZodDefault\<z.ZodArray\<z.ZodObject<{content: z.ZodString; status: z.ZodEnum<\["pending", "in_progress", "completed"\]>;}, "strip"... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.31)

### langchain 1.2.30 breaking changes

langchain 1.2.30, released March 5, 2026: 24 breaking changes.

- **Removed** `fakeModel`  

fakeModel is no longer exported from utils/testing. Import it from the testing namespace instead. [github.com](https://github.com/langchain-ai/langchainjs/blob/langchain@1.2.30/libs/langchain/CHANGELOG.md)
- **Signature changed** `AIMessage`  

Was export {AIMessage, AIMessageChunk, Action, ActionRequest, AfterAgentHook, AfterModelHook, AgentMiddleware, AgentTypeConfig, AnyAnnotationRoot, ApproveDecision, BaseMessage, BaseMessageChunk, BeforeAgentHook, BeforeModelHook... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.30)

And 22 more in this version.

### langchain 1.2.29 breaking changes

langchain 1.2.29, released March 3, 2026: 1 breaking change.

- **Signature changed** `MIDDLEWARE_BRAND`  

Was const MIDDLEWARE_BRAND: unique symbol; now const MIDDLEWARE_BRAND: symbol. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.29)

### langchain 1.2.27 breaking changes

langchain 1.2.27, released February 24, 2026: 17 breaking changes.

- **Signature changed** `AfterAgentHook`  

Was type AfterAgentHook\<TSchema extends StateDefinitionInit | undefined = undefined, TContext = unknown> = AfterAgentHandler\<NormalizedSchemaInput\<TSchema>, TContext> | {hook: AfterAgentHandler\<NormalizedSchemaInput\<TSchema>, TContext>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.27)
- **Signature changed** `AfterModelHook`  

Was type AfterModelHook\<TSchema extends StateDefinitionInit | undefined = undefined, TContext = unknown> = AfterModelHandler\<NormalizedSchemaInput\<TSchema>, TContext> | {hook: AfterModelHandler\<NormalizedSchemaInput\<TSchema>, TContext>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.27)

And 15 more in this version.

### langchain 1.2.26 breaking changes

langchain 1.2.26, released February 23, 2026: 1 breaking change.

- **Default changed** `ChatAnthropic`  

The default model in ChatAnthropic changed from claude-3-5-sonnet-latest to claude-sonnet-4-5-20250929. Code that relies on the default should set the model explicitly if it needs the old one. [github.com](https://github.com/langchain-ai/langchainjs/blob/langchain@1.2.26/libs/langchain/CHANGELOG.md)

### langchain 1.2.25 breaking changes

langchain 1.2.25, released February 18, 2026: 35 breaking changes.

- **Signature changed** `AfterAgentHook`  

Was type AfterAgentHook\<TSchema$1 extends StateDefinitionInit | undefined = undefined, TContext = unknown> = AfterAgentHandler\<NormalizedSchemaInput\<TSchema$1>, TContext> | {hook: AfterAgentHandler\<NormalizedSchemaInput\<TSchema$1>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.25)
- **Signature changed** `AfterModelHook`  

Was type AfterModelHook\<TSchema$1 extends StateDefinitionInit | undefined = undefined, TContext = unknown> = AfterModelHandler\<NormalizedSchemaInput\<TSchema$1>, TContext> | {hook: AfterModelHandler\<NormalizedSchemaInput\<TSchema$1>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.25)

And 33 more in this version.

### langchain 1.2.24 breaking changes

langchain 1.2.24, released February 13, 2026: 2 breaking changes.

- **Signature changed** `ReactAgent.stream`  

Was stream\<TStreamMode extends StreamMode | StreamMode\[\] | undefined, TEncoding extends "text/event-stream" | undefined>(state: InvokeStateParameter\<Types>, config?: StreamConfiguration\<InferContextInput\<Types\["Context"\] extends... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.24)
- **Signature changed** `ReactAgent.streamEvents`  

Was streamEvents(state: InvokeStateParameter\<Types>, config?: StreamConfiguration\<InferContextInput\<Types\["Context"\] extends AnyAnnotationRoot | InteropZodObject ? Types\["Context"\] : AnyAnnotationRoot> &... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.24)

### langchain 1.2.22 breaking changes

langchain 1.2.22, released February 12, 2026: 2 breaking changes.

- **Signature changed** `modelCallLimitMiddleware`  

Was function modelCallLimitMiddleware(middlewareOptions?: ModelCallLimitMiddlewareConfig): AgentMiddleware\<z.ZodObject<{threadModelCallCount: z.ZodDefault\<z.ZodNumber>; runModelCallCount: z.ZodDefault\<z.ZodNumber>;}, "strip", z.ZodTypeAny... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.22)
- **Signature changed** `todoListMiddleware`  

Was function todoListMiddleware(options?: TodoListMiddlewareOptions): AgentMiddleware\<z.ZodObject<{todos: z.ZodDefault\<z.ZodArray\<z.ZodObject<{content: z.ZodString; status: z.ZodEnum<\["pending", "in_progress", "completed"\]>;}, "strip"... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.22)

### langchain 1.2.21 breaking changes

langchain 1.2.21, released February 11, 2026: 2 breaking changes.

- **Signature changed** `modelCallLimitMiddleware`  

Was function modelCallLimitMiddleware(middlewareOptions?: ModelCallLimitMiddlewareConfig): AgentMiddleware\<z.ZodObject<{threadModelCallCount: z.ZodDefault\<z.ZodNumber>; runModelCallCount: z.ZodDefault\<z.ZodNumber>;}, "strip", z.ZodTypeAny... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.21)
- **Signature changed** `todoListMiddleware`  

Was function todoListMiddleware(options?: TodoListMiddlewareOptions): AgentMiddleware\<z.ZodObject<{todos: z.ZodDefault\<z.ZodArray\<z.ZodObject<{content: z.ZodString; status: z.ZodEnum<\["pending", "in_progress", "completed"\]>;}, "strip"... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.21)

### langchain 1.2.20 breaking changes

langchain 1.2.20, released February 11, 2026: 5 breaking changes.

- **Behavior changed** `agentNode`  

Concurrent agentNode dynamic prompts are handled correctly in this release; review code that relied on the previous concurrent behavior. [github.com](https://github.com/langchain-ai/langchainjs/blob/langchain@1.2.20/libs/langchain/CHANGELOG.md)
- **Behavior changed** `wrapModelCall`  

Middleware hooks that return void no longer re-emit the input state. Code relying on that re-emission must change. [github.com](https://github.com/langchain-ai/langchainjs/blob/langchain@1.2.20/libs/langchain/CHANGELOG.md)

And 3 more in this version.

### langchain 1.2.19 breaking changes

langchain 1.2.19, released February 9, 2026: 4 breaking changes.

- **Signature changed** `hub:pull`  

Was function pull\<T extends Runnable>(ownerRepoCommit: string, options?: {apiKey?: string; apiUrl?: string; includeModel?: boolean; modelClass?: new (...args: any\[\]) => BaseLanguageModel; secrets?: Record\<string, string>; secretsFromEnv?... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.19)
- **Signature changed** `hub:push`  

Was function basePush(repoFullName: string, runnable: Runnable, options?: {apiKey?: string; apiUrl?: string; parentCommitHash?: string; isPublic?: boolean; description?: string; readme?: string; tags?: string\[\];}): Promise\<string>; now... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.19)

And 2 more in this version.

### langchain 1.2.18 breaking changes

langchain 1.2.18, released February 5, 2026: 1 breaking change.

- **Signature changed** `chat_models/universal:getChatModelByClassName`  

Was function getChatModelByClassName(className: string): Promise\<any>; now function getChatModelByClassName(className: string, modelProvider?: string): Promise\<any>. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.18)

### langchain 1.2.17 breaking changes

langchain 1.2.17, released February 4, 2026: 1 breaking change.

- **Signature changed** `ReactAgent.constructor`  

Was constructor(options: CreateAgentParams\<Types\["Response"\], Types\["State"\], Types\["Context"\]>); now constructor(options: CreateAgentParams\<Types\["Response"\], Types\["State"\], Types\["Context"\]>, defaultConfig?: RunnableConfig). [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.17)

### langchain 1.2.15 breaking changes

langchain 1.2.15, released January 28, 2026: 3 breaking changes.

- **Signature changed** `contextEditingMiddleware`  

Was function contextEditingMiddleware(config?: ContextEditingMiddlewareConfig): AgentMiddleware\<undefined, undefined, unknown, readonly (\_langchain_core_tools8.ServerTool | \_langchain_core_tools8.ClientTool)\[\]>; now function... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.15)
- **Signature changed** `todoListMiddleware`  

Was function todoListMiddleware(options?: TodoListMiddlewareOptions): AgentMiddleware\<z.ZodObject<{todos: z.ZodDefault\<z.ZodArray\<z.ZodObject<{content: z.ZodString; status: z.ZodEnum<\["pending", "in_progress", "completed"\]>;}, "strip"... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.15)

And 1 more in this version.

### langchain 1.2.14 breaking changes

langchain 1.2.14, released January 26, 2026: 3 breaking changes.

- **Signature changed** `contextEditingMiddleware`  

Was function contextEditingMiddleware(config?: ContextEditingMiddlewareConfig): AgentMiddleware\<undefined, undefined, unknown, readonly (\_langchain_core_tools5.ServerTool | \_langchain_core_tools5.ClientTool)\[\]>; now function... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.14)
- **Signature changed** `todoListMiddleware`  

Was function todoListMiddleware(options?: TodoListMiddlewareOptions): AgentMiddleware\<z.ZodObject<{todos: z.ZodDefault\<z.ZodArray\<z.ZodObject<{content: z.ZodString; status: z.ZodEnum<\["pending", "in_progress", "completed"\]>;}, "strip"... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.14)

And 1 more in this version.

### langchain 1.2.13 breaking changes

langchain 1.2.13, released January 24, 2026: 22 breaking changes.

- **Signature changed** `AfterAgentHook`  

Was type AfterAgentHook\<TSchema$1 extends InteropZodObject | undefined = undefined, TContext = unknown> = AfterAgentHandler\<NormalizedSchemaInput\<TSchema$1>, TContext> | {hook: AfterAgentHandler\<NormalizedSchemaInput\<TSchema$1>, TContext>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.13)
- **Signature changed** `AfterModelHook`  

Was type AfterModelHook\<TSchema$1 extends InteropZodObject | undefined = undefined, TContext = unknown> = AfterModelHandler\<NormalizedSchemaInput\<TSchema$1>, TContext> | {hook: AfterModelHandler\<NormalizedSchemaInput\<TSchema$1>, TContext>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.13)

And 20 more in this version.

### langchain 1.2.12 breaking changes

langchain 1.2.12, released January 22, 2026: 2 breaking changes.

- **Removed** `MiddlewareError.constructor`  

new MiddlewareError() was removed in langchain 1.2.12 [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.12)
- **Signature changed** `MiddlewareError.isInstance`  

Was isInstance(error: unknown): error is MiddlewareError; now static isInstance(error: unknown): error is MiddlewareError. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.12)

### langchain 1.2.11 breaking changes

langchain 1.2.11, released January 20, 2026: 5 breaking changes.

- **Signature changed** `anthropicPromptCachingMiddleware`  

Was function anthropicPromptCachingMiddleware(middlewareOptions?: PromptCachingMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{enableCaching: z.ZodOptional\<z.ZodBoolean>; ttl: z.ZodOptional\<z.ZodEnum<\["5m", "1h"\]>>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.11)
- **Signature changed** `contextEditingMiddleware`  

Was function contextEditingMiddleware(config?: ContextEditingMiddlewareConfig): AgentMiddleware\<undefined, undefined, unknown, readonly (\_langchain_core_tools11.ServerTool | \_langchain_core_tools11.ClientTool)\[\]>; now function... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.11)

And 3 more in this version.

### langchain 1.2.10 breaking changes

langchain 1.2.10, released January 14, 2026: 6 breaking changes.

- **Behavior changed**  

Middleware errors now keep their original error as cause instead of merging it into the error message. Code that reads or matches error.message text may need to be updated. [github.com](https://github.com/langchain-ai/langchainjs/blob/langchain@1.2.10/libs/langchain/CHANGELOG.md)
- **Signature changed** `anthropicPromptCachingMiddleware`  

Was function anthropicPromptCachingMiddleware(middlewareOptions?: PromptCachingMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{enableCaching: z.ZodOptional\<z.ZodBoolean>; ttl: z.ZodOptional\<z.ZodEnum<\["5m", "1h"\]>>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.10)

And 4 more in this version.

### langchain 1.2.9 breaking changes

langchain 1.2.9, released January 14, 2026: 2 breaking changes.

- **Signature changed** `contextEditingMiddleware`  

Was function contextEditingMiddleware(config?: ContextEditingMiddlewareConfig): AgentMiddleware\<undefined, undefined, unknown, readonly (\_langchain_core_tools5.ServerTool | \_langchain_core_tools5.ClientTool)\[\]>; now function... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.9)
- **Signature changed** `toolCallLimitMiddleware`  

Was function toolCallLimitMiddleware(options: ToolCallLimitConfig): AgentMiddleware\<z.ZodObject<{threadToolCallCount: z.ZodDefault\<z.ZodRecord\<z.ZodString, z.ZodNumber>>; runToolCallCount: z.ZodDefault\<z.ZodRecord\<z.ZodString... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.9)

### langchain 1.2.8 breaking changes

langchain 1.2.8, released January 13, 2026: 2 breaking changes.

- **Signature changed** `humanInTheLoopMiddleware`  

Was function humanInTheLoopMiddleware(options: NonNullable\<HumanInTheLoopMiddlewareConfig>): AgentMiddleware\<undefined, z.ZodObject<{interruptOn: z.ZodOptional\<z.ZodRecord\<z.ZodString, z.ZodUnion<\[z.ZodBoolean... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.8)
- **Signature changed** `summarizationMiddleware`  

Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{trigger: z.ZodOptional\<z.ZodUnion<\[z.ZodEffects\<z.ZodObject<{fraction: z.ZodOptional\<z.ZodNumber>; tokens... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.8)

### langchain 1.2.7 breaking changes

langchain 1.2.7, released January 8, 2026: 46 breaking changes.

- **Signature changed** `AfterAgentHook`  

Was type AfterAgentHook\<TSchema extends InteropZodObject | undefined = undefined, TContext = unknown> = AfterAgentHandler\<NormalizedSchemaInput\<TSchema>, TContext> | {hook: AfterAgentHandler\<NormalizedSchemaInput\<TSchema>, TContext>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.7)
- **Signature changed** `AfterModelHook`  

Was type AfterModelHook\<TSchema extends InteropZodObject | undefined = undefined, TContext = unknown> = AfterModelHandler\<NormalizedSchemaInput\<TSchema>, TContext> | {hook: AfterModelHandler\<NormalizedSchemaInput\<TSchema>, TContext>... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.7)

And 44 more in this version.

### langchain 1.2.6 breaking changes

langchain 1.2.6, released January 7, 2026: 1 breaking change.

- **Signature changed** `summarizationMiddleware`  

Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{trigger: z.ZodOptional\<z.ZodUnion<\[z.ZodEffects\<z.ZodObject<{fraction: z.ZodOptional\<z.ZodNumber>; tokens... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.6)

### langchain 1.2.5 breaking changes

langchain 1.2.5, released January 6, 2026: 1 breaking change.

- **Signature changed** `summarizationMiddleware`  

Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{trigger: z.ZodOptional\<z.ZodUnion<\[z.ZodEffects\<z.ZodObject<{fraction: z.ZodOptional\<z.ZodNumber>; tokens... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.5)

### langchain 1.2.4 breaking changes

langchain 1.2.4, released January 6, 2026: 4 breaking changes.

- **Default changed** `providerStrategy`  

The strict option in providerStrategy now defaults to true for OpenAI compatibility. Code that relied on the previous non-strict default should set strict explicitly. [github.com](https://github.com/langchain-ai/langchainjs/blob/langchain@1.2.4/libs/langchain/CHANGELOG.md)
- **Signature changed** `hub:pull`  

Was function pull\<T extends Runnable>(ownerRepoCommit: string, options?: {apiKey?: string; apiUrl?: string; includeModel?: boolean; modelClass?: new (...args: any\[\]) => BaseLanguageModel;}): Promise\<T>; now function pull\<T extends... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.4)

And 2 more in this version.

### langchain 1.2.3 breaking changes

langchain 1.2.3, released December 22, 2025: 2 breaking changes.

- **Behavior changed** `load`  

The load function now applies security hardening, which may change what it accepts. The note gives no specifics, so review code that loads untrusted or unusual serialized data. [github.com](https://github.com/langchain-ai/langchainjs/blob/langchain@1.2.3/libs/langchain/CHANGELOG.md)
- **Signature changed** `summarizationMiddleware`  

Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{trigger: z.ZodOptional\<z.ZodUnion<\[z.ZodEffects\<z.ZodObject<{fraction: z.ZodOptional\<z.ZodNumber>; tokens... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.3)

### langchain 1.2.2 breaking changes

langchain 1.2.2, released December 18, 2025: 1 breaking change.

- **Signature changed** `summarizationMiddleware`  

Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{trigger: z.ZodOptional\<z.ZodUnion<\[z.ZodEffects\<z.ZodObject<{fraction: z.ZodOptional\<z.ZodNumber>; tokens... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.2.2)

### langchain 1.1.6 breaking changes

langchain 1.1.6, released December 13, 2025: 2 breaking changes.

- **Signature changed** `providerStrategy`  

Was function providerStrategy(responseFormat: JsonSchemaFormat): ProviderStrategy\<Record\<string, unknown>> function providerStrategy\<T extends InteropZodType\<any>>(responseFormat: T): ProviderStrategy\<T extends InteropZodType\<infer U> ? U... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.1.6)
- **Signature changed** `ProviderStrategy.fromSchema`  

Was static fromSchema(schema: Record\<string, unknown>): ProviderStrategy\<Record\<string, unknown>> static fromSchema\<T>(schema: InteropZodType\<T>): ProviderStrategy\<T>; now static fromSchema(schema: Record\<string, unknown>, strict?... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.1.6)

### langchain 1.1.1 breaking changes

langchain 1.1.1, released November 24, 2025: 1 breaking change.

- **Configuration changed**  

The release constrains the minimum version of the core peer dependency. Users with an older core installed may need to upgrade it to match. [github.com](https://github.com/langchain-ai/langchainjs/blob/langchain@1.1.1/libs/langchain/CHANGELOG.md)

### langchain 1.1.0 breaking changes

langchain 1.1.0, released November 24, 2025: 4 breaking changes.

- **Signature changed** `CreateAgentParams`  

Was type CreateAgentParams\<StructuredResponseType extends Record\<string, any> = Record\<string, any>, StateSchema extends AnyAnnotationRoot | InteropZodObject | undefined = undefined, ContextSchema extends AnyAnnotationRoot |... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.1.0)
- **Signature changed** `CreateAgentParams.systemPrompt`  

Was systemPrompt?: string; now systemPrompt?: string | SystemMessage. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.1.0)

And 2 more in this version.

### langchain 1.0.6 breaking changes

langchain 1.0.6, released November 19, 2025: 1 breaking change.

- **Behavior changed** `AgentNode`  

The release updated how AgentNode handles errors. Code that depends on the previous error behaviour should be checked. [github.com](https://github.com/langchain-ai/langchainjs/blob/langchain@1.0.6/libs/langchain/CHANGELOG.md)

### langchain 1.0.5 breaking changes

langchain 1.0.5, released November 18, 2025: 9 breaking changes.

- **Removed** `ClearToolUsesEdit.triggerTokens`  

ClearToolUsesEdit.triggerTokens was removed in langchain 1.0.5 [npmjs.com](https://www.npmjs.com/package/langchain/v/1.0.5)
- **Renamed**  

The exit behavior value 'throw' was renamed to 'error'. Code that passes 'throw' must switch to 'error'. [github.com](https://github.com/langchain-ai/langchainjs/blob/langchain@1.0.5/libs/langchain/CHANGELOG.md)

And 7 more in this version.

### langchain 1.0.4 breaking changes

langchain 1.0.4, released November 11, 2025: 1 breaking change.

- **Signature changed** `summarizationMiddleware`  

Was function summarizationMiddleware(options: SummarizationMiddlewareConfig): AgentMiddleware\<undefined, z.ZodObject<{maxTokensBeforeSummary: z.ZodOptional\<z.ZodNumber>; messagesToKeep: z.ZodDefault\<z.ZodNumber>; tokenCounter... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.0.4)

### langchain 1.0.3 breaking changes

langchain 1.0.3, released November 6, 2025: 9 breaking changes.

- **Removed** `getContextVariable`  

getContextVariable was removed in langchain 1.0.3 [npmjs.com](https://www.npmjs.com/package/langchain/v/1.0.3)
- **Removed** `setContextVariable`  

setContextVariable was removed in langchain 1.0.3 [npmjs.com](https://www.npmjs.com/package/langchain/v/1.0.3)

And 7 more in this version.

### langchain 1.0.2 breaking changes

langchain 1.0.2, released October 27, 2025: 1 breaking change.

- **Signature changed** `createAgent`  

Was function createAgent\<StateSchema extends AnyAnnotationRoot | InteropZodObject | undefined = undefined, ContextSchema extends AnyAnnotationRoot | InteropZodObject = AnyAnnotationRoot, TMiddleware extends readonly AgentMiddleware\[\] =... [npmjs.com](https://www.npmjs.com/package/langchain/v/1.0.2)

### langchain 1.0.1 breaking changes

langchain 1.0.1, released October 18, 2025: 477 breaking changes.

- **Removed** `agents:Agent`  

Use https://js.langchain.com/docs/modules/agents/agent_types instead. [npmjs.com](https://www.npmjs.com/package/langchain/v/1.0.1)
- **Removed** `agents:AgentAction`  

AgentAction was removed in langchain 1.0.1 [npmjs.com](https://www.npmjs.com/package/langchain/v/1.0.1)

And 475 more in this version.

### langchain 0.3.29 breaking changes

langchain 0.3.29, released June 20, 2025: 50 breaking changes.

- **Signature changed** `agents:AgentExecutor._formatValues`  

Was protected \_formatValues(values: ChainValues & {signal?: AbortSignal; timeout?: number;}): Promise\<ChainValues & {signal?: AbortSignal | undefined; timeout?: number | undefined;}>; now protected \_formatValues(values: ChainValues &... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.29)
- **Signature changed** `chains:AnalyzeDocumentChain._formatValues`  

Was protected \_formatValues(values: ChainValues & {signal?: AbortSignal; timeout?: number;}): Promise\<ChainValues & {signal?: AbortSignal | undefined; timeout?: number | undefined;}>; now protected \_formatValues(values: ChainValues &... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.29)

And 48 more in this version.

### langchain 0.3.28 breaking changes

langchain 0.3.28, released June 11, 2025: 22 breaking changes.

- **Signature changed** `chains:createExtractionChainFromZod`  

Was function createExtractionChainFromZod(schema: z.ZodObject\<any, any, any, any>, llm: BaseChatModel\<BaseFunctionCallOptions>): LLMChain\<object, BaseChatModel\<BaseFunctionCallOptions, import("@langchain/core/messages").AIMessageChunk>>... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.28)
- **Signature changed** `chains:createTaggingChainFromZod`  

Was function createTaggingChainFromZod(schema: z.ZodObject\<any, any, any, any>, llm: BaseChatModel\<BaseFunctionCallOptions>, options?: TaggingChainOptions): LLMChain\<object, BaseChatModel\<BaseFunctionCallOptions... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.28)

And 20 more in this version.

### langchain 0.3.25 breaking changes

langchain 0.3.25, released May 14, 2025: 2 breaking changes.

- **Signature changed** `agents/toolkits:createRetrieverTool`  

Was function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit\<DynamicStructuredToolInput, "func" | "schema">): DynamicStructuredTool\<z.ZodObject<{input: z.ZodString;}, "strip", z.ZodTypeAny, {input: string;}, {input... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.25)
- **Signature changed** `tools/retriever:createRetrieverTool`  

Was function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit\<DynamicStructuredToolInput, "func" | "schema">): DynamicStructuredTool\<z.ZodObject<{query: z.ZodString;}, "strip", z.ZodTypeAny, {query: string;}, {query... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.25)

### langchain 0.3.24 breaking changes

langchain 0.3.24, released April 24, 2025: 1 breaking change.

- **Signature changed** `chat_models/universal:initChatModel`  

Was function initChatModel\<RunInput extends BaseLanguageModelInput = BaseLanguageModelInput, CallOptions extends ConfigurableChatModelCallOptions = ConfigurableChatModelCallOptions>(model: never, options?: Partial\<Record\<string, any>> &... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.24)

### langchain 0.3.21 breaking changes

langchain 0.3.21, released April 9, 2025: 2 breaking changes.

- **Signature changed** `agents/toolkits:createRetrieverTool`  

Was function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit\<DynamicStructuredToolInput, "func" | "schema">): DynamicStructuredTool\<z.ZodObject<{input: z.ZodString;}, "strip", z.ZodTypeAny, {input: string;}, {input... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.21)
- **Signature changed** `tools/retriever:createRetrieverTool`  

Was function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit\<DynamicStructuredToolInput, "func" | "schema">): DynamicStructuredTool\<z.ZodObject<{query: z.ZodString;}, "strip", z.ZodTypeAny, {query: string;}, {query... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.21)

### langchain 0.3.13 breaking changes

langchain 0.3.13, released January 25, 2025: 10 breaking changes.

- **Signature changed** `chains/sql_db:DEFAULT_SQL_DATABASE_PROMPT`  

Was const DEFAULT_SQL_DATABASE_PROMPT: PromptTemplate<{input: any; dialect: any; table_info: any; top_k: any;}, any>; now const DEFAULT_SQL_DATABASE_PROMPT: PromptTemplate<{dialect: any; table_info: any; input: any; top_k: any;}, any>. [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.13)
- **Signature changed** `chains/sql_db:SQL_MSSQL_PROMPT`  

Was const SQL_MSSQL_PROMPT: PromptTemplate<{input: any; dialect: any; table_info: any; top_k: any;}, any>; now const SQL_MSSQL_PROMPT: PromptTemplate<{dialect: any; table_info: any; input: any; top_k: any;}, any>. [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.13)

And 8 more in this version.

### langchain 0.3.3 breaking changes

langchain 0.3.3, released October 21, 2024: 13 breaking changes.

- **Signature changed** `chains:createExtractionChain`  

Was function createExtractionChain(schema: FunctionParameters, llm: BaseChatModel\<BaseFunctionCallOptions>): LLMChain\<object, BaseChatModel\<BaseFunctionCallOptions, import("@langchain/core/messages").BaseMessageChunk>>; now function... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.3)
- **Signature changed** `chains:createExtractionChainFromZod`  

Was function createExtractionChainFromZod(schema: z.ZodObject\<any, any, any, any>, llm: BaseChatModel\<BaseFunctionCallOptions>): LLMChain\<object, BaseChatModel\<BaseFunctionCallOptions, import("@langchain/core/messages").BaseMessageChunk>>... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.3)

And 11 more in this version.

### langchain 0.3.0 breaking changes

langchain 0.3.0, released September 13, 2024: 141 breaking changes.

- **Removed** `document_loaders/fs/chatgpt:ChatGPTLoader`  

ChatGPTLoader was removed in langchain 0.3.0 [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.0)
- **Removed** `document_loaders/fs/csv:CSVLoader`  

CSVLoader was removed in langchain 0.3.0 [npmjs.com](https://www.npmjs.com/package/langchain/v/0.3.0)

And 139 more in this version.

### langchain 0.2.17 breaking changes

langchain 0.2.17, released August 23, 2024: 1 breaking change.

- **Signature changed** `vectorstores/memory:MemoryVectorStore._queryVectors`  

Was protected \_queryVectors(query: number\[\], k: number, filter?: this\["FilterType"\]): Promise<{similarity: number; index: number; metadata: Record\<string, any>; content: string; embedding: number\[\];}\[\]>; now protected \_queryVectors(query... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.17)

### langchain 0.2.16 breaking changes

langchain 0.2.16, released August 13, 2024: 1 breaking change.

- **Signature changed** `retrievers/self_query/functional:FunctionFilter`  

Was export {FunctionFilter, FunctionalTranslator} from "@langchain/core/structured_query"; now export {type FunctionFilter, FunctionalTranslator} from "@langchain/core/structured_query". [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.16)

### langchain 0.2.15 breaking changes

langchain 0.2.15, released August 10, 2024: 2 breaking changes.

- **Signature changed** `agents:CreateToolCallingAgentParams`  

Was type CreateToolCallingAgentParams = {llm: BaseChatModel; tools: StructuredToolInterface\[\] | ToolDefinition\[\]; prompt: ChatPromptTemplate; streamRunnable?: boolean;}; now type CreateToolCallingAgentParams = {llm: LanguageModelLike... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.15)
- **Signature changed** `agents:CreateToolCallingAgentParams.llm`  

Was llm: BaseChatModel; now llm: LanguageModelLike. [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.15)

### langchain 0.2.13 breaking changes

langchain 0.2.13, released August 6, 2024: 4 breaking changes.

- **Signature changed** `hub:pull`  

Was function pull\<T extends Runnable>(ownerRepoCommit: string, options?: ClientConfiguration): Promise\<T>; now function pull\<T extends Runnable>(ownerRepoCommit: string, options?: {apiKey?: string; apiUrl?: string; includeModel?... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.13)
- **Signature changed** `hub:push`  

Was function push(repoFullName: string, runnable: Runnable, options?: HubPushOptions & ClientConfiguration): Promise\<string>; now function push(repoFullName: string, runnable: Runnable, options?: {apiKey?: string; apiUrl?: string... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.13)

And 2 more in this version.

### langchain 0.2.10 breaking changes

langchain 0.2.10, released July 16, 2024: 1 breaking change.

- **Signature changed** `retrievers/parent_document:ParentDocumentRetriever._storeDocuments`  

Was \_storeDocuments(parentDoc: Document, childDocs: Document\[\], addToDocstore: boolean): Promise\<void>; now \_storeDocuments(parentDoc: Record\<string, Document>, childDocs: Document\[\], addToDocstore: boolean): Promise\<void>. [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.10)

### langchain 0.2.8 breaking changes

langchain 0.2.8, released June 28, 2024: 8 breaking changes.

- **Signature changed** `agents:CreateOpenAIToolsAgentParams`  

Was type CreateOpenAIToolsAgentParams = {llm: BaseChatModel\<BaseChatModelCallOptions & {tools?: StructuredToolInterface\[\] | OpenAIClient.ChatCompletionTool\[\] | any\[\];}>; tools: StructuredToolInterface\[\]; prompt: ChatPromptTemplate... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.8)
- **Signature changed** `agents:CreateOpenAIToolsAgentParams.tools`  

Was tools: StructuredToolInterface\[\]; now tools: StructuredToolInterface\[\] | ToolDefinition\[\]. [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.8)

And 6 more in this version.

### langchain 0.2.6 breaking changes

langchain 0.2.6, released June 21, 2024: 1 breaking change.

- **Signature changed** `document_loaders/fs/unstructured:UnstructuredLoader.constructor`  

Was constructor(filePathOrLegacyApiUrl: string, optionsOrLegacyFilePath?: UnstructuredLoaderOptions | string); now constructor(filePathOrLegacyApiUrlOrMemoryBuffer: string | UnstructuredMemoryLoaderOptions, optionsOrLegacyFilePath?... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.6)

### langchain 0.2.1 breaking changes

langchain 0.2.1, released May 22, 2024: 2 breaking changes.

- **Signature changed** `smith:Criteria`  

Was function Criteria(criteria: CriteriaType, config?: Pick\<Partial\<LabeledCriteria>, "formatEvaluatorInputs" | "llm" | "feedbackKey">): EvalConfig; now function Criteria(criteria: CriteriaType | Record\<string, string>, config?... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.1)
- **Signature changed** `smith:LabeledCriteria`  

Was function LabeledCriteria(criteria: CriteriaType, config?: Pick\<Partial\<LabeledCriteria>, "formatEvaluatorInputs" | "llm" | "feedbackKey">): LabeledCriteria; now function LabeledCriteria(criteria: CriteriaType | Record\<string, string>... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.1)

### langchain 0.2.0 breaking changes

langchain 0.2.0, released May 17, 2024: 286 breaking changes.

- **Removed** `agents:ZapierToolKit`  

ZapierToolKit was removed in langchain 0.2.0 [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.0)
- **Removed** `agents/toolkits/aws_sfn:AWSSfnCreatePromptArgs`  

AWSSfnCreatePromptArgs was removed in langchain 0.2.0 [npmjs.com](https://www.npmjs.com/package/langchain/v/0.2.0)

And 284 more in this version.

### langchain 0.1.37 breaking changes

langchain 0.1.37, released May 10, 2024: 4 breaking changes.

- **Signature changed** `smith:DynamicRunEvaluatorParams`  

Was type DynamicRunEvaluatorParams = {input: Record\<string, unknown>; prediction?: Record\<string, unknown>; reference?: Record\<string, unknown>; run: Run; example?: Example;}; now type DynamicRunEvaluatorParams\<Input extends Record\<string... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.37)
- **Signature changed** `smith:DynamicRunEvaluatorParams.input`  

Was input: Record\<string, unknown>; now input: Input. [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.37)

And 2 more in this version.

### langchain 0.1.36 breaking changes

langchain 0.1.36, released April 24, 2024: 80 breaking changes.

- **Removed** `chains/query_constructor:loadQueryConstructorChain`  

loadQueryConstructorChain was removed in langchain 0.1.36 [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.36)
- **Removed** `chains/query_constructor/ir:AND`  

AND was removed in langchain 0.1.36 [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.36)

And 78 more in this version.

### langchain 0.1.35 breaking changes

langchain 0.1.35, released April 22, 2024: 1 breaking change.

- **Signature changed** `retrievers/parent_document:ParentDocumentRetrieverFields`  

Was type ParentDocumentRetrieverFields = MultiVectorRetrieverInput & {childSplitter: TextSplitter; parentSplitter?: TextSplitter; childDocumentRetriever?: VectorStoreRetrieverInterface\<VectorStoreInterface>;}; now type... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.35)

### langchain 0.1.33 breaking changes

langchain 0.1.33, released April 11, 2024: 7 breaking changes.

- **Signature changed** `agents/format_scratchpad/openai_tools:formatToOpenAIToolMessages`  

Was function formatToOpenAIToolMessages(steps: ToolsAgentStep\[\]): BaseMessage\[\]; now function formatToToolMessages(steps: ToolsAgentStep\[\]): BaseMessage\[\]. [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.33)
- **Signature changed** `chains:createExtractionChain`  

Was function createExtractionChain(schema: FunctionParameters, llm: BaseChatModel\<BaseFunctionCallOptions>): LLMChain\<object, BaseChatModel\<BaseFunctionCallOptions>>; now function createExtractionChain(schema: FunctionParameters, llm... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.33)

And 5 more in this version.

### langchain 0.1.30 breaking changes

langchain 0.1.30, released March 26, 2024: 2 breaking changes.

- **Signature changed** `agents:CreateOpenAIToolsAgentParams`  

Was type CreateOpenAIToolsAgentParams = {llm: BaseChatModel\<BaseChatModelCallOptions & {tools?: StructuredToolInterface\[\] | OpenAIClient.ChatCompletionTool\[\]; tool_choice?: OpenAIClient.ChatCompletionToolChoiceOption;}>; tools... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.30)
- **Signature changed** `agents:CreateOpenAIToolsAgentParams.llm`  

Was llm: BaseChatModel\<BaseChatModelCallOptions & {tools?: StructuredToolInterface\[\] | OpenAIClient.ChatCompletionTool\[\]; tool_choice?: OpenAIClient.ChatCompletionToolChoiceOption;}>; now llm: BaseChatModel\<BaseChatModelCallOptions &... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.30)

### langchain 0.1.29 breaking changes

langchain 0.1.29, released March 25, 2024: 7 breaking changes.

- **Removed** `tools/calculator:Calculator`  

Calculator was removed in langchain 0.1.29 [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.29)
- **Signature changed** `agents:createOpenAIFunctionsAgent`  

Was function createOpenAIFunctionsAgent({llm, tools, prompt, streamRunnable}: CreateOpenAIFunctionsAgentParams): Promise\<RunnableSingleActionAgent>; now function createOpenAIFunctionsAgent({llm, tools, prompt, streamRunnable}... [npmjs.com](https://www.npmjs.com/package/langchain/v/0.1.29)

And 5 more in this version.

## Related packages

- [@langchain/anthropic](https://since.dev/packages/npm/@langchain/anthropic.md)
- [@langchain/core](https://since.dev/packages/npm/@langchain/core.md)
- [@langchain/openai](https://since.dev/packages/npm/@langchain/openai.md)
- [@langchain/pinecone](https://since.dev/packages/npm/@langchain/pinecone.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
