Packages

@anthropic-ai/sdk

1.8.0 · 10 Nov 2026Apache-2.075M / weekRepositoryHomepagenpmAtom feed

Upgrading @anthropic-ai/sdk From 0.137.0 to 1.6.0

7 releases in betweenevery note read

Other targets from 0.137.0Latest1.8.0

Before you upgrade

Tick each one off as you go
  • Breaking1.0.0

Release by release

  1. 1.6.0

    5 Nov 20263 new · 2 fixes
    • New

      api: add error code for ramp limit errors

    • New

      api: add error codes for External Key validation failures

    • New

      api: add support for signing organization members out everywhere

    • Fixed

      client: set the name of each error to its class name

    • Fixed

      client: set the name of WorkloadIdentityError

  2. 1.5.0

    4 Nov 20264 new · 4 fixes
    • New

      api: add error details types and new error type values

    • New

      api: add ids filter to list workspaces

    • New

      client: add error classes for HTTP statuses and API error codes, and apiMessage, errorCode and details on APIError

    • New

      streaming: decode server-sent events once per chunk

  3. 1.4.0

    2 Nov 20266 new · 2 fixes
    • New

      api: add GA methods for analytics, spend limits and RBAC

    • New

      api: add named beta types for unified metrics and RBAC delete responses

    • New

      api: add shared analytics order and increase request actor types

    • New

      api: add tool_use_limit_reached_error and compaction_limit_reached_error session error types

  4. 1.3.0

    23 Oct 20261 new · 1 fix
    • New

      api: add Claude Tag endpoints for Claude Enterprise organizations

    • Fixed

      client: link the long-request error messages to the SDK documentation

  5. 1.2.0

    23 Oct 20262 new · 2 fixes
    • New

      api: add support for message threads

    • New

      api: add usage and cost reports by dimension, mark older reports legacy

    • Fixed

      tools: copy the messages a tool runner is created with again

    • Fixed

      tools: restore what the tool runner does after setMessagesParams() or pushMessages() in the loop body

  6. 1.1.0

    21 Oct 20261 new
    • New

      api: add enforcement status, actions and filter to user profiles

  7. 1.0.0

    Migration needed21 Oct 2026
    • Breaking

      api: add support for new API version 2026-10-21

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