> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Changelog

> Log of updates and improvements to our JavaScript/TypeScript packages

**Subscribe**: Our changelog includes an [RSS feed](https://docs.langchain.com/oss/javascript/releases/changelog/rss.xml) that can integrate with [Slack](https://slack.com/help/articles/218688467-Add-RSS-feeds-to-Slack), [email](https://zapier.com/apps/email/integrations/rss/1441/send-new-rss-feed-entries-via-email), Discord bots like [Readybot](https://readybot.io/) or [RSS Feeds to Discord Bot](https://rss.app/en/bots/rssfeeds-discord-bot), and other subscription tools.

**Nov 11, 2026**

## `@langchain/core` v1.4.0

`@langchain/core` 1.4 adds decision models, and `langchain` 1.6.5 adds decision-driven middleware.

* **Decisions API**: `@langchain/core/decisions` introduces `BaseDecisionModel` for typed, probabilistic answers about text, messages, and structured state. Questions support binary judgments (`noul`), categorical choices (`choice`), ordinal scores (`score`), and bounding boxes (`box`). Answers are typed from the questions you ask. ([langchainjs#12178](https://github.com/langchain-ai/langchainjs/pull/12178))
* **Decision-driven middleware (beta)**: `modelRouterMiddleware` selects a model for each run from your configured choices and instructions. `autoModeMiddleware` classifies configured tool calls and blocks those it judges risky. Versions of these middleware were previously released in `@langchain/typesafe`. They now require an explicit decision model through `classifier`. ([langchainjs#12183](https://github.com/langchain-ai/langchainjs/pull/12183))
* **TypeSafe 0.1**: `TypeSafeClassifier` implements the Decisions API and adds image inputs and `box` answers. Its `@langchain/typesafe/middleware` exports are deprecated: import from `langchain` with `classifier: new TypeSafeClassifier()`. See the [TypeSafe integration guide](https://docs.langchain.com/oss/javascript/integrations/providers/typesafe) for usage and migration details.

**Oct 22, 2026**

## `@langchain/core` v1.3.0

In [event streaming](https://docs.langchain.com/oss/javascript/langchain/event-streaming.md), tool-call arguments now stream as `tool-call-delta` events. Each event carries only the new part of the arguments, as `text-delta` does for text. Earlier versions sent `block-delta` events that repeated all of the arguments so far.

### Upgrade clients before the server

Clients older than the versions below do not handle `tool-call-delta`. For example, earlier versions of `@langchain/react` can stop updating a `useMessages` view. The [Agent Server](https://docs.langchain.com/langsmith/agent-server.md) passes events through unchanged, so the package versions on the server decide which events clients receive.

1. In every client that reads the stream, upgrade `@langchain/react`, `@langchain/vue`, `@langchain/svelte`, or `@langchain/angular` to 1.2.6 or later.
2. Upgrade `@langchain/core` on the server to 1.3.0 or later. Also upgrade each of these provider packages the server uses, because earlier versions still send `block-delta`:
   * `@langchain/openai` to 1.7.0 or later
   * `@langchain/anthropic` to 1.6.0 or later
   * `@langchain/aws` to 1.5.0 or later
   * `@langchain/xai` to 1.5.0 or later

Upgrading `langchain`, `deepagents`, or a provider package can pull in `@langchain/core` 1.3.0. To hold the server back until you upgrade every client, pin `@langchain/core` to `<1.3.0` in `package.json`. The provider versions in step 2 require `@langchain/core` 1.3.0, so you cannot install them while the pin is in place.

**Oct 15, 2026**

## `langchain` v1.5.18

`humanInTheLoopMiddleware` can now pause once per tool call. Set `interruptMode: "per_call"` and each gated call raises its own interrupt, which you answer by interrupt ID. Batched mode is still the default.

```typescript theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
humanInTheLoopMiddleware({ interruptOn: {...}, interruptMode: "per_call" });
```

### Features

* **Typed answers**: each interrupt carries a `response_schema` listing the decisions that call allows, so a client can build its form from the schema. See [Read the response schema](https://docs.langchain.com/oss/javascript/langchain/human-in-the-loop.md#read-the-response-schema).
* **Checked before saving**: LangGraph rejects an invalid answer before it is saved, so you can correct it and answer the same interrupt again. See [Correct an invalid answer](https://docs.langchain.com/oss/javascript/langchain/human-in-the-loop.md#correct-an-invalid-answer).
* **Edits stay on the called tool**: an `edit` can't switch tools, and its arguments are checked against the tool's own schema.
* **`respond` everywhere**: `interruptOn: { tool: true }` now allows every decision, `respond` included, in both modes, as in Python.

Use per-call mode for new agents. LangChain plans to make it the default in the next major release. See [Pause once per tool call](https://docs.langchain.com/oss/javascript/langchain/human-in-the-loop.md#pause-once-per-tool-call) and the [human-in-the-loop overview](https://docs.langchain.com/oss/javascript/concepts/human-in-the-loop.md).

**Mar 24, 2026**

## `deepagents` v1.9.0-alpha.0

Alpha release of `deepagents` v1.9.0.

* **[Async subagents](https://docs.langchain.com/oss/javascript/deepagents/async-subagents.md)**: Deep Agents can launch non-blocking background tasks, so users can continue interacting with the agent while subagents work concurrently. Requires [LangSmith Deployment](https://docs.langchain.com/langsmith/deployment.md) for sub-agents.

* **[Backend](https://docs.langchain.com/oss/javascript/deepagents/backends.md) protocol v2**: We've introduced a new v2 backend protocol (`BackendProtocolV2`) with backward-compatible changes to the Deep Agents backend interface. Key changes:
  * **Structured result types**: All methods now return structured `Result` objects (e.g., `ReadResult`, `LsResult`, `GrepResult`, `GlobResult`) with consistent error handling via an `error` field, instead of returning raw values or throwing exceptions.
  * **Multi-modal file support**: `read()` returns a `ReadResult` with a `.content` field instead of a plain string. For binary files (images, PDFs, audio, video), the full raw `Uint8Array` content is returned via `readRaw()`, enabling agents to work with multi-modal files natively.
  * **Simplified method names**: `lsInfo` -> `ls`, `grepRaw` -> `grep`, `globInfo` -> `glob`.
  * **Backward compatible**: Existing v1 backends can be adapted to the v2 interface using `adaptBackendProtocol`. The v1 interfaces (`BackendProtocolV1`, `SandboxBackendProtocolV1`) are deprecated but retained for compatibility.

**Jan 14, 2026**

## v1.1.0

### `@langchain/langgraph`

Introducing **StateSchema** - a cleaner, library-agnostic way to define graph state that works with any [Standard Schema](https://github.com/standard-schema/standard-schema)-compliant validation library.

### Standard JSON Schema support

LangGraph now supports [Standard JSON Schema](https://standardschema.dev/json-schema), an open specification implemented by Zod 4, Valibot, ArkType, and other schema libraries. This means you can use your preferred validation library without lock-in:

```typescript theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
import { z } from "zod"; // or valibot, arktype, etc.
import { StateSchema, ReducedValue, MessagesValue } from "@langchain/langgraph";

const AgentState = new StateSchema({
  messages: MessagesValue,
  currentStep: z.string(),
  count: z.number().default(0),
  history: new ReducedValue(
    z.array(z.string()).default(() => []),
    {
      inputSchema: z.string(),
      reducer: (current, next) => [...current, next],
    }
  ),
});

// Type-safe state and update types
type State = typeof AgentState.State;
type Update = typeof AgentState.Update;

const graph = new StateGraph(AgentState)
  .addNode("agent", (state) => ({ count: state.count + 1 }))
  .addEdge(START, "agent")
  .addEdge("agent", END)
  .compile();
```

### New state value primitives

* **ReducedValue**: Define fields with custom reducers for accumulating values. Supports separate input and output schemas for type-safe reducer inputs.
* **UntrackedValue**: Define transient state that exists during execution but is never checkpointed - useful for database connections, caches, or runtime-only configuration.
* **MessagesValue**: A prebuilt `ReducedValue` for chat messages with the standard messages reducer.

### Type helper exports

New exported type utilities for typing functions outside the graph builder:

* `GraphNode<Schema, Nodes?, Config?>` - Type node functions with full inference
* `ConditionalEdgeRouter<Schema, Nodes?>` - Type conditional edge routers

```typescript theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
// Type standalone node functions
const myNode: GraphNode<typeof AgentState> = (state, config) => {
  return { count: state.count + 1 };
};

// Use schema type helpers directly
const processState = (state: typeof AgentState.State) => {
  console.log(state.count);
};
```

The existing `Annotation` and zod-based API continues to work unchanged - `StateSchema` is an additional option for those who prefer schema-first definitions.

> [card] [Learn more about StateSchema](https://docs.langchain.com/oss/javascript/langgraph/graph-api.md#schema)
>
> See the full documentation for defining graph state with StateSchema, ReducedValue, and UntrackedValue.

> [card] [Learn about type utilities](https://docs.langchain.com/oss/javascript/langgraph/graph-api.md#type-utilities)
>
> Use GraphNode and ConditionalEdgeRouter to type functions outside the graph builder.

**Dec 12, 2025**

## v1.2.0

### `langchain`

* [Structured output](https://docs.langchain.com/oss/javascript/langchain/structured-output.md): Added ability to manually set `strict` mode when using `providerStrategy` for structured output.

### `@langchain/openai`

* **New provider built-in tools:** Support for file search, web search, code interpreter, image generation, computer use, shell, and MCP connector tools executed server-side by the provider. See [Server-side tool use](https://docs.langchain.com/oss/javascript/langchain/tools.md#server-side-tool-use) and the [OpenAI](https://docs.langchain.com/oss/javascript/integrations/chat/openai.md) chat integration.
* **Content moderation:** New `moderateContent` option on `ChatOpenAI` for detecting and handling unsafe content.
* Prefer responses API for GPT-5.2 Pro model.

## v1.3.0

### `@langchain/anthropic`

* **New provider built-in tools:** Support for text editor, web fetch, computer use, tool search, and MCP toolset tools executed server-side by the provider. See [Server-side tool use](https://docs.langchain.com/oss/javascript/langchain/tools.md#server-side-tool-use) and the [Anthropic](https://docs.langchain.com/oss/javascript/integrations/chat/anthropic.md) chat integration.
* Exposed `ChatAnthropicInput` type for improved type safety.

## v1.1.0

### `@langchain/ollama`

* **Native structured outputs:** Added support for native structured output via `withStructuredOutput`.
* Support for custom `baseUrl` configuration.

## v1.0.0

### `@langchain/community`

* Jira document loader updated to use v3 API.
* LanceDB: Added `similaritySearch()` and `similaritySearchWithScore()` support.
* Elasticsearch hybrid search support.
* New `GoogleCalendarDeleteTool`.
* Various bug fixes for LlamaCppEmbeddings, PrismaVectorStore, IBM WatsonX, and security improvements.

### Other packages

* **@langchain/xai:** Native Live Search support.
* **@langchain/tavily:** Added Tavily's research endpoint.
* **@langchain/mongodb:** New MongoDB LLM cache.
* **@langchain/mcp-adapters:** Added `onConnectionError` option.
* **@langchain/google-common:** `jsonSchema` method support in `withStructuredOutput`.
* **@langchain/core:** Security fixes, better subgraph nesting in Mermaid graphs, UUID7 for run IDs.

**Nov 25, 2025**

## v1.1.0

* [Model profiles](https://docs.langchain.com/oss/javascript/langchain/models.md#model-profiles): Chat models now expose supported features and capabilities through a `.profile` getter. These data are derived from [models.dev](https://models.dev), an open source project providing model capability data.
* [Model retry middleware](https://docs.langchain.com/oss/javascript/langchain/middleware/built-in.md#model-retry): New middleware for automatically retrying failed model calls with configurable exponential backoff, improving agent reliability.
* [Content moderation middleware](https://docs.langchain.com/oss/javascript/langchain/middleware/built-in.md#provider-specific-middleware): OpenAI content moderation middleware for detecting and handling unsafe content in agent interactions. Supports checking user input, model output, and tool results.
* [Summarization middleware](https://docs.langchain.com/oss/javascript/langchain/middleware/built-in.md#summarization): Updated to support flexible trigger points using model profiles for context-aware summarization.
* [Structured output](https://docs.langchain.com/oss/javascript/langchain/structured-output.md): `ProviderStrategy` support (native structured output) can now be inferred from model profiles.
* [`SystemMessage` for `createAgent`](https://docs.langchain.com/oss/javascript/langchain/middleware/custom#dynamic-prompt): Support for passing `SystemMessage` instances directly to `createAgent`'s `systemPrompt` parameter and a new `concat` method for extending system messages. Enables advanced features like cache control and structured content blocks.
* [Dynamic system prompt middleware](https://docs.langchain.com/oss/javascript/langchain/short-term-memory.md): Return values from `dynamicSystemPromptMiddleware` are now purely additive. When returning a [`SystemMessage`](https://reference.langchain.com/javascript/langchain-core/messages/SystemMessage) or `string`, they are merged with existing system messages rather than replacing them, making it easier to compose multiple middleware that modify the prompt.
* **Compatibility improvements:** Fixed error handling for Zod v4 validation errors in structured output and tool schemas, ensuring detailed error messages are properly displayed.

**Oct 20, 2025**

## v1.0.0

### `langchain`

* [Release notes](https://docs.langchain.com/oss/javascript/releases/langchain-v1.md)
* [Migration guide](https://docs.langchain.com/oss/javascript/migrate/langchain-v1.md)

### `langgraph`

* [Release notes](https://docs.langchain.com/oss/javascript/releases/langgraph-v1.md)
* [Migration guide](https://docs.langchain.com/oss/javascript/migrate/langgraph-v1.md)

If you encounter any issues or have feedback, please [open an issue](https://github.com/langchain-ai/docs/issues/new?template=01-langchain.yml) so we can improve. To view v0.x documentation, [go to the archived content](https://github.com/langchain-ai/langchainjs/tree/v0.3/docs/core_docs/docs).

***

[Connect these docs](https://docs.langchain.com/use-these-docs.md) to your agent of choice via MCP for real-time answers.

[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/javascript/releases/changelog.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
