Packages

@langchain/anthropic

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

Upgrading @langchain/anthropic From 1.2.2 to 1.6.6

53 releases in betweennotes for 46

  1. 1.2.2yours
  2. 50 releases
  3. 1.6.4breaking
  4. 1 release
  5. 1.6.6target
  6. 1 pre
1+
change to make
0
advisories fixed
26+
new
26+
fixes

Counted from 46 of 53 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking1.6.4

Release by release

  1. 1.6.6

    20 Nov 20261 fix
    • Fixed

      Set finish_reason (the stop_reason), normalized_finish_reason and finish_state in response_metadata on invoke and streamed results, and emit them on message-finish. refusal and model_context_window_exceeded map to refusal and context_exceeded, and pause_turn sets finish_state: "suspended".

  2. 1.6.5

    13 Nov 20261 fix
    • Fixed

      Fall back to tool_calls in AnthropicToolsOutputParser so withStructuredOutput works when streamed content is normalized to tool_call blocks

  3. 1.6.4

    Migration needed11 Nov 2026
    • Breaking

      Require Zod 4.6.6 or newer for installed dependencies to exclude versions affected by GHSA-mrhx-c7xc-m3w5. Zod v3 schemas remain supported through the bundled zod/v3 entry point.

  4. 1.6.3

    10 Nov 20261 fix
    • Fixed

      anthropic: Surface model refusals as ModelRefusalError

  5. 1.6.2

    9 Nov 20261 new · 1 fix
    • New

      Support Claude Fable 5.2 and Mythos 5.2 profiles, always-on adaptive thinking, and the nameless computer toolset. Upgrade the Anthropic SDK and avoid forced tool choice for always-on thinking models.

    • Fixed

      Report streamed usage from the cumulative message_delta usage, as langchain-anthropic does, so input and cache tokens from server tool passes (e.g. web search) are counted and output tokens aren't double counted.

  6. 1.6.1

    7 Nov 20261 fix
    • Fixed

      anthropic: Keep streamed server_tool_use input when replaying messages

  7. 1.6.0

    22 Oct 20261 new
    • New

      Stream tool-call args as tool-call-delta slices

  8. 1.5.13

    20 Oct 20261 new
    • New

      anthropic: Declare mid-conversation support in model profiles. Claude Opus 4.8, Opus 5, Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5 and 5.1, and Mythos 5 and 5.1 set midConversationSystemMessages and midConversationTools. Sonnet 5 sets system messages only.

3 other lines we could not sort, mostly version bumps
  • invoke() now throws ModelAbortError with accumulated partialOutput when aborted during streaming (when using streaming callback handlers)

    1.3.13
  • stream() throws a regular AbortError when aborted (since chunks are already yielded to the caller)

    1.3.13
  • All provider implementations now properly check and propagate abort signals in both _generate() and _streamResponseChunks() methods

    1.3.13

23 internal lines (docs, tests, tooling) left out.

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.