Packages

@langchain/anthropic

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

Upgrading @langchain/anthropic From 1.6.2 to 1.6.6

4 releases in betweenevery note read

  1. 1.6.2yours
  2. 1.6.3
  3. 1.6.4breaking
  4. 1.6.5
  5. 1.6.6target
1
change to make
0
advisories fixed
0
new
3
fixes

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

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.