@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
- 1
- change to make
- 0
- advisories fixed
- 17
- new
- 11
- fixes
Before you upgrade
Tick each one off as you go- Breaking1.0.0
Release by release
- 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
- New
- 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
- New
- 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
- New
- New
api: add Claude Tag endpoints for Claude Enterprise organizations
- Fixed
client: link the long-request error messages to the SDK documentation
- New
- 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
- New
- New
api: add enforcement status, actions and filter to user profiles
- New
- Breaking
api: add support for new API version 2026-10-21
- Breaking
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.