Packages

@ai-sdk/anthropic

4.0.106 · 17 Nov 2026Apache-2.024.5M / weekRepositoryHomepagenpmAtom feed

Upgrading @ai-sdk/anthropic From 3.0.74 to 4.0.106

169 releases in betweennotes for 168

Reading releases, release notes and advisories…

Other targets from 3.0.74Newest 3.x3.0.143
  1. 3.0.74yours
  2. 67 releases
  3. 4.0.0major
  4. 5 releases
  5. 4.0.6security
  6. 94 releases
  7. 4.0.106target
8+
changes to make
0
advisories fixed
46+
new
71+
fixes

Counted from 168 of 169 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0

Security

  • Prevent prototype pollution when synchronously parsing provider JSON inputs and expose secureJsonParse from provider-utils.

    4.0.6

Release by release

  1. 4.0.106nothing new or fixed in the note

  2. 4.0.105

    13 Nov 20261 fix
    • Fixed

      Derive known model ID suggestions from each provider's model catalog declarations so catalog updates automatically update autocomplete, while preserving existing suggestions, endpoint-specific model lists, and support for custom model IDs.

  3. 4.0.104

    13 Nov 20261 new
    • New

      Add experimental extraction models backed by structured language model output

  4. 4.0.103nothing new or fixed in the note

  5. 4.0.102

    10 Nov 20261 new
    • New

      Add MiniMax H3 Image and H3 Image Highspeed support for text-to-image generation and image editing, including output controls and token usage details.

  6. 4.0.101nothing new or fixed in the note

  7. 4.0.99

    7 Nov 20261 new · 4 fixes
    • New

      Add resolveProviderOptions to parse provider options that a model accepts under several providerOptions keys, either as aliases (first) or merged in order (merge), and use it for the existing multi-key lookups in the OpenAI, OpenAI-compatible, Anthropic, Google, and Amazon Bedrock models. Resolution behavior for these models is unchanged.

    • Fixed

      Keep computer toolset actions tied to the returned member name and reject disabled or unavailable members before emitting tool calls. Apply member configuration to local input validation and reject malformed or non-object member input.

    • Fixed

      Reject conflicting inline tool additions when a named tool choice falls back to auto or the internal JSON response tool limits available application tools, including definitions replayed from conversation history.

    • Fixed

      Disable MCP connector tools when structured output falls back to the JSON response tool and the caller selects no tools or a named application tool, and when a named application tool choice falls back to automatic tool selection.

    • Fixed

      Preserve warning-only handling of ignored inline tool additions on the initial system message when named tool choice falls back or the JSON response tool is used. Validate tool-choice restrictions only for inline definitions emitted in the outgoing request.

  8. 4.0.98

    6 Nov 20262 new · 2 fixes
    • New

      anthropic: Support adding tools by value in mid-conversation toolChanges (inline-tools-2026-09-15)

    • New

      Add support for creating and continuing Anthropic message threads, including automatic beta headers and thread error details for application-managed recovery.

    • Fixed

      Refactor Amazon Bedrock model ID logic into a model catalog that declares capabilities and provider options, and generate provider capability documentation from it. Export the Anthropic catalog capability helper under its compatibility name for Bedrock to reuse. Request behavior is unchanged.

    • Fixed

      Refactor Anthropic AWS model ID logic into a model catalog that declares capabilities and provider options, and generate provider capability documentation from it. Export Anthropic catalog metadata internally for Anthropic AWS to reuse. Request behavior is unchanged.

128 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.