Packages

@langchain/anthropic

1.6.6 · 20 Nov 2026MIT2.1M / weekRepositoryHomepagenpmAtom feed

Your version

1.3.18

17 Feb 2026Where it was published

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 createNamespace utility for hierarchical symbol-based branding of class hierarchies.
    All LangChain error classes now use this pattern, replacing hand-rolled duck-type isInstance checks
    with reliable cross-realm Symbol.for-based identity.

    • New LangChainError base class that all LangChain errors extend

    • New createNamespace / Namespace API in @langchain/core/utils/namespace

    • Refactored ModelAbortError, ContextOverflowError to use namespace branding

    • Added ContextOverflowError.fromError() static factory method

    • Deprecated addLangChainErrorFields in favor of LangChainError subclasses

    • Migrated Google provider errors (GoogleError, ConfigurationError, etc.) to namespace branding

    • Updated 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.