Packages

@anthropic-ai/sdk

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

Your version

1.10.0

17 Nov 2026Where it was published

1.13.0 is the newest release of 1.x.

In short

1 deprecated5 new3 fixed4 internal

  • Deprecated

    api: rename error data models, deprecating the old names

Release note

Features

  • api: add beta support for the billing_policy request parameter

  • api: add contract_spend_limit_reached error code to messages

  • api: add error codes for linked billing refusals

  • api: add the user_profile_billing_not_authorized error code

  • api: add webhook events for external key failure and recovery

Bug Fixes

  • tools: keep the session tool runner's maxIdleMs countdown running when a session thread terminates

    If the runner fails to read the session's event history after a reconnect, a termination that then arrives on the event stream still cancels the countdown, until the next idle or successful read.

  • tools: stop EnvironmentWorker from running tools for a terminated session

    For a terminated session, the worker now force-stops the work item right after it retrieves the session, before it downloads skills or memory stores. It no longer throws SessionMemoryError for such a session. The API reports an archived session as terminated.

  • tools: stop the session tool runner from running the tool calls of a terminated session thread

    The runner also stops waiting for a confirmation of these calls and no longer yields them, including a denied call (confirmation: 'deny') and a call to a tool that it does not own. A call that the runner starts before it reads the session thread's session.thread_status_terminated event still runs to the end, and the runner yields it with posted: false when the API refuses the result.

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.