langchain
1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
404 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 1.x · latest line
1.2.29
3 Mar 2026agents: Propagate structured output retry Command through wrapModelCall middleware
Add explicit
: symboltype annotations to Symbol.for() declarations for cross-version compatibilityTypeScript infers
unique symboltype when Symbol.for() is used without an explicit type annotation, causing type incompatibility when multiple versions of the same package are present in a dependency tree. By adding explicit: symbolannotations, all declarations now use the general symbol type, making them compatible across versions while maintaining identical runtime behavior.Changes:
Implement standard schema support for structured output
Patch Changes
agents: Propagate structured output retry Command through wrapModelCall middleware
Add explicit
: symboltype annotations to Symbol.for() declarations for cross-version compatibilityTypeScript infers
unique symboltype when Symbol.for() is used without an explicit type annotation, causing type incompatibility when multiple versions of the same package are present in a dependency tree. By adding explicit: symbolannotations, all declarations now use the general symbol type, making them compatible across versions while maintaining identical runtime behavior.Changes:
Added
: symboltoMESSAGE_SYMBOLin messages/base.tsAdded
: symboltoMIDDLEWARE_BRANDin agents/middleware/types.ts (also changed from Symbol() to Symbol.for() for cross-realm compatibility)
Implement standard schema support for structured output
1.2.28
26 Feb 2026core, langchain: Bump uuid dependency from ^10.0.0 to ^11.0.0 to fix Metro bundler error
The
uuidv10 package has ambiguousexportsin itspackage.jsonwhich causes Metro (used by Expo/React Native) to resolve the wrong entry point, resulting inCannot read properties of undefined (reading 'v1'). Theuuidv11 package fixes its exports map to work correctly with Metro's package exports resolution.agents: Propagate store and checkpointer in ReactAgent
Patch Changes
core, langchain: Bump uuid dependency from ^10.0.0 to ^11.0.0 to fix Metro bundler error
The
uuidv10 package has ambiguousexportsin itspackage.jsonwhich causes Metro (used by Expo/React Native) to resolve the wrong entry point, resulting inCannot read properties of undefined (reading 'v1'). Theuuidv11 package fixes its exports map to work correctly with Metro's package exports resolution.agents: Propagate store and checkpointer in ReactAgent
Added
checkpointerandstoregetter/setter pairs onReactAgentthat forward to the internal compiled graph. This fixes an issue where the LangGraph API server's checkpointer injection was silently ignored, causing thread state to be lost across server restarts.Propagate
storeandconfigurablefrom the LangGraph config into the middlewareruntimeobject. Previously,runtime.storewas alwaysundefinedeven when a store was provided tocreateAgent().
1.2.27
24 Feb 2026agents: Infer StateSchema value types in middleware hooks
Patch Changes
agents: Infer StateSchema value types in middleware hooks
1.2.26
23 Feb 2026Replace retired Anthropic model IDs with active replacements
langchain: Reset shared currentSystemMessage on middleware handler retry
1.2.25
18 Feb 2026langchain: Export ModelRequest interface
langchain: Persist underscore-prefixed middleware state fields across graph steps
Patch Changes
langchain: Export ModelRequest interface
langchain: Persist underscore-prefixed middleware state fields across graph steps
1.2.24
13 Feb 2026langchain: Fix streaming types
1.2.23
12 Feb 2026langchain: Fix structured output on opus
Patch Changes
langchain: Fix structured output on opus
1.2.22
12 Feb 20261.2.21
11 Feb 2026langchain: Propagate subagent name in metadata
Patch Changes
langchain: Propagate subagent name in metadata
1.2.20
11 Feb 2026Support concurrent
agentNodedynamic prompts properly.Don't re-emit input state from middleware hooks that return void
langchain: Add optional
toolsparameter tocountTokensApproximatelyfor more accurate token estimates when tools are bound to a model
Patch Changes
Support concurrent
agentNodedynamic prompts properly.Don't re-emit input state from middleware hooks that return void
langchain: Add optional
toolsparameter tocountTokensApproximatelyfor more accurate token estimates when tools are bound to a modelagents: Support returning Command from wrapModelCall middleware
Allow
wrapModelCallmiddleware hooks to returnCommandobjects for advanced
control flow (routing, state updates), matching the existingwrapToolCall
pattern. The framework tracks the effective AIMessage through the middleware
chain so outer middleware always receive an AIMessage fromhandler(), even
when an inner middleware returns a Command.
1.2.19
9 Feb 20261.2.18
5 Feb 2026langchain: Resolve className collision in MODEL_PROVIDER_CONFIG
Refactored
getChatModelByClassNameto accept an optionalmodelProviderparameter for direct lookup, avoiding the className collision issue where multiple providers share the same className (e.g.,google-vertexaiandgoogle-vertexai-webboth use"ChatVertexAI"). WhenmodelProvideris provided, the function uses direct config lookup instead of searching by className. Backward compatibility is maintained for existing callers that only passclassName. This eliminates the duplicated import logic that was previously in_initChatModelHelper.
1.2.17
4 Feb 2026langchain: Add withConfig() method to ReactAgent
Adds a
withConfig()method to ReactAgent following the same pattern as LangGraph'sPregel.withConfig(). This allows setting default configuration values (likerecursionLimit,tags, orconfigurable) that get merged with invocation-time config.
Patch Changes
langchain: Add withConfig() method to ReactAgent
Adds a
withConfig()method to ReactAgent following the same pattern as LangGraph'sPregel.withConfig(). This allows setting default configuration values (likerecursionLimit,tags, orconfigurable) that get merged with invocation-time config.
1.2.16
30 Jan 2026Filter pregel keys from cache key to avoid OOM
Patch Changes
Filter pregel keys from cache key to avoid OOM
1.2.15
28 Jan 2026langchain: Support StateSchema in middleware pipeline
1.2.14
26 Jan 2026langchain: StateSchema handling in AgentNode middleware
1.2.13
24 Jan 20261.2.12
22 Jan 2026langchain: Bubble up graph interrupt errors as is
1.2.11
20 Jan 2026langchain: Tag summarization model calls with lc_source metadata
Patch Changes
langchain: Tag summarization model calls with lc_source metadata
1.2.10
14 Jan 2026langchain: Don't concatenate middleware error, instead use cause
Patch Changes
langchain: Don't concatenate middleware error, instead use cause
1.2.9
14 Jan 20261.2.8
13 Jan 2026Add lc_source tag to summarization middleware messages
Preserve reducer metadata in createAgent state schema
Patch Changes
Add lc_source tag to summarization middleware messages
Preserve reducer metadata in createAgent state schema
1.2.7
8 Jan 2026langchain: Refactored agent generics to use type bag pattern (AgentTypeConfig, MiddlewareTypeConfig) with new helper types for type extraction.
langchain: Ensure models only make on write_todo call at a time
Patch Changes
langchain: Refactored agent generics to use type bag pattern (AgentTypeConfig, MiddlewareTypeConfig) with new helper types for type extraction.
langchain: Ensure models only make on write_todo call at a time
1.2.5 – 1.2.62 releases that only update dependencies@langchain/core 1.1.11Show each
- 1.2.67 Jan 2026@langchain/core 1.1.11
- 1.2.56 Jan 2026@langchain/core 1.1.10
1.2.4
6 Jan 2026core: Use getBufferString for message summarization
langchain: Default strict to true in providerStrategy for OpenAI compatibility
langchain: Support callbacks property in stream
Patch Changes
core: Use getBufferString for message summarization
langchain: Default strict to true in providerStrategy for OpenAI compatibility
langchain: Support callbacks property in stream
langchain: Add secretsFromEnv and secrets for prompt pulling
fix(@langchain/classic): Add secretsFromEnv and secrets for prompt pullinglangchain: Properly pass on schema title
core: Improve interop with Zod
Use parseJumpToTarget in 'afterModel' Router
langchain: Keep tool call / AIMessage pairings when summarizing
1.2.3
22 Dec 2025- Security
Add security hardening for
load
Patch Changes
- Security
Add security hardening for
load
1.2.1 – 1.2.22 releases with no change for you1 dependency update, 1 without a note@langchain/core 1.1.6Show each
- 1.2.218 Dec 2025no note
- 1.2.116 Dec 2025@langchain/core 1.1.6
1.1.6
13 Dec 2025Patch prompts created from runs fix
langchain: Properly retrieve structured output from thinking block
langchain: Prevent functions from being accidentally assignable to AgentMiddleware
Patch Changes
Patch prompts created from runs fix
langchain: Properly retrieve structured output from thinking block
langchain: Prevent functions from being accidentally assignable to AgentMiddleware
Add support for anyOf, allOf, oneOf in openapi conversion
langchain: Prevent summarization middleware from leaking streaming events
langchain: Allow to set strict tag manually in providerStrategy #9578
summary-middleware: Use summaryPrefix or fall back to default prefix
1.1.4 – 1.1.52 releases that only update dependencies@langchain/core 1.1.4Show each
- 1.1.55 Dec 2025@langchain/core 1.1.4
- 1.1.45 Dec 2025@langchain/core 1.1.3
1.1.3
3 Dec 2025langchain: Improve state rendering in LangSmith studio
langchain: Better detect invoke response in agent node
Fix detection of models with native support for structured output
Patch Changes
langchain: Improve state rendering in LangSmith studio
langchain: Better detect invoke response in agent node
Fix detection of models with native support for structured output
1.1.2
2 Dec 2025Only updates a dependency:@langchain/core 1.1.1
1.1.1
24 Nov 2025Constrain lower bound core peer dep
1.0.6
19 Nov 2025Updated error handling behaviour of AgentNode
1.0.5
18 Nov 2025Improvements to toolEmulator middleware
Use
profile.maxInputTokensin summarization middlewareAlign context editing with summarization interface
Patch Changes
Improvements to toolEmulator middleware
Use
profile.maxInputTokensin summarization middlewareAlign context editing with summarization interface
langchain: Add tool call contents and tool call ID to improve token count approximation
Rename exit behavior from throw to error
- 0.3.x
0.3.37
23 Dec 2025Reading the note…
0.3.36
13 Oct 2025Reading the note…
0.3.35
29 Sep 2025Reading the note…
0.3.34
15 Sep 2025Reading the note…
0.3.33
4 Sep 2025Reading the note…
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.