@langchain/anthropic
1.6.6 · 20 Nov 2026MIT2.1M / weekRepositoryHomepagenpmAtom feed
1.6.6 is the newest release of 1.x.
In short
2 new2 internal
Release note
Patch Changes
core: Add ContextOverflowError, raise in anthropic and openai
core: Add namespace-based symbol branding for error class hierarchies
Introduces
createNamespaceutility for hierarchical symbol-based branding of class hierarchies.
All LangChain error classes now use this pattern, replacing hand-rolled duck-typeisInstancechecks
with reliable cross-realmSymbol.for-based identity.New
LangChainErrorbase class that all LangChain errors extendNew
createNamespace/NamespaceAPI in@langchain/core/utils/namespaceRefactored
ModelAbortError,ContextOverflowErrorto use namespace brandingAdded
ContextOverflowError.fromError()static factory methodDeprecated
addLangChainErrorFieldsin favor ofLangChainErrorsubclassesMigrated Google provider errors (
GoogleError,ConfigurationError, etc.) to namespace brandingUpdated Anthropic and OpenAI providers to use
ContextOverflowError.fromError()
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.