@anthropic-ai/sdk
1.8.0 · 10 Nov 2026Apache-2.075M / weekRepositoryHomepagenpmAtom feed
0.137.0 is the newest release of 0.134.x.
In short
5 new7 fixed13 internal
Release note
Features
api: add execution_identity to Managed Agents agents
api: add organization_type_not_supported error to spend limit lists
api: add telemetry destination test endpoint
api: add telemetry destinations to the Admin API
client: add native support for OpenTelemetry tracing
If your app registers a global tracer provider, the SDK will create spans with it after upgrading, and they'll be exported with the rest of your traces. Requests will also get trace context headers from the global propagator. To disable, pass
openTelemetry: falseto the client or setANTHROPIC_OPEN_TELEMETRY=false. Learn more in the documentation.
Bug Fixes
api: rename telemetry destination test response model
client: close an unread stream that was dropped while tracing is on
client: don't follow redirects on token requests
client: treat proxy-authorization as a sensitive header
Bug Fixes
streaming: tolerate unknown event types in MessageStream and BetaMessageStream
streaming: stop throwing "Unexpected event order" for an event before message_start
streaming: yield events that arrive before message_start when iterating MessageStream and BetaMessageStream
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.