@langchain/anthropic
1.6.6 · 20 Nov 2026MIT2.1M / weekRepositoryHomepagenpmAtom feed
Upgrading @langchain/anthropic From 1.6.1 to 1.6.6
5 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 1
- new
- 4
- fixes
Before you upgrade
Tick each one off as you go- Breaking1.6.4
Release by release
- Fixed
Set
finish_reason(thestop_reason),normalized_finish_reasonandfinish_stateinresponse_metadataoninvokeand streamed results, and emit them onmessage-finish.refusalandmodel_context_window_exceededmap torefusalandcontext_exceeded, andpause_turnsetsfinish_state: "suspended".
- Fixed
- Fixed
Fall back to
tool_callsinAnthropicToolsOutputParsersowithStructuredOutputworks when streamed content is normalized totool_callblocks
- Fixed
- 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/v3entry point.
- Breaking
- Fixed
anthropic: Surface model refusals as
ModelRefusalError
- Fixed
- 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_deltausage, aslangchain-anthropicdoes, so input and cache tokens from server tool passes (e.g. web search) are counted and output tokens aren't double counted.
- New
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.