Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
".": "0.88.0",
".": "0.89.0",
"packages/vertex-sdk": "0.16.0",
"packages/bedrock-sdk": "0.28.1",
"packages/foundry-sdk": "0.2.3",
Expand Down
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 72
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-dfe504526eed07979685a729ac9afd45e59cc2879291714b9f4674f2ef1247c7.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-f4d4f18820ecfbe244fb1bbc2232939afca73dfcb21ce23bc296571ee7320e3a.yml
openapi_spec_hash: d849fdf2c4dd6631a60c4340e9bc1322
config_hash: 831f90480c5b2b863b726e89eabaa90c
config_hash: 2e9a2fd5355db62857f6be16f46a3ccc
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.89.0 (2026-04-14)

Full Changelog: [sdk-v0.88.0...sdk-v0.89.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.88.0...sdk-v0.89.0)

### Features

* **api:** manual updates ([57c2a11](https://github.com/anthropics/anthropic-sdk-typescript/commit/57c2a11c61ef9dfdad49a3ab91c4c567d13d1f73))
* **api:** mark Sonnet and Opus 4 as deprecated ([eff41b7](https://github.com/anthropics/anthropic-sdk-typescript/commit/eff41b717f16435167e53c5227774ef5bf079523))


### Bug Fixes

* **streaming:** add missing events ([4c52919](https://github.com/anthropics/anthropic-sdk-typescript/commit/4c52919187d17c15d53b08d818d7dd9a5728267e))

## 0.88.0 (2026-04-10)

Full Changelog: [sdk-v0.87.0...sdk-v0.88.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.87.0...sdk-v0.88.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@anthropic-ai/sdk",
"version": "0.88.0",
"version": "0.89.0",
"description": "The official TypeScript library for the Anthropic API",
"author": "Anthropic <support@anthropic.com>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/vertex-sdk/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

"@anthropic-ai/sdk@file:../../dist":
# x-release-please-start-version
version "0.88.0"
version "0.89.0"
# x-release-please-end-version
dependencies:
json-schema-to-ts "^3.1.1"
Expand Down
22 changes: 21 additions & 1 deletion src/core/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,27 @@ export class Stream<Item> implements AsyncIterable<Item> {
sse.event === 'content_block_start' ||
sse.event === 'content_block_delta' ||
sse.event === 'content_block_stop' ||
sse.event === 'message'
sse.event === 'message' ||
sse.event === 'user.message' ||
sse.event === 'user.interrupt' ||
sse.event === 'user.tool_confirmation' ||
sse.event === 'user.custom_tool_result' ||
sse.event === 'agent.message' ||
sse.event === 'agent.thinking' ||
sse.event === 'agent.tool_use' ||
sse.event === 'agent.tool_result' ||
sse.event === 'agent.mcp_tool_use' ||
sse.event === 'agent.mcp_tool_result' ||
sse.event === 'agent.custom_tool_use' ||
sse.event === 'agent.thread_context_compacted' ||
sse.event === 'session.status_running' ||
sse.event === 'session.status_idle' ||
sse.event === 'session.status_rescheduled' ||
sse.event === 'session.status_terminated' ||
sse.event === 'session.error' ||
sse.event === 'session.deleted' ||
sse.event === 'span.model_request_start' ||
sse.event === 'span.model_request_end'
) {
try {
yield JSON.parse(sse.data) as Item;
Expand Down
4 changes: 4 additions & 0 deletions src/resources/messages/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,10 @@ const DEPRECATED_MODELS: {
'claude-3-7-sonnet-20250219': 'February 19th, 2026',
'claude-3-5-haiku-latest': 'February 19th, 2026',
'claude-3-5-haiku-20241022': 'February 19th, 2026',
'claude-opus-4-0': 'June 15th, 2026',
'claude-opus-4-20250514': 'June 15th, 2026',
'claude-sonnet-4-0': 'June 15th, 2026',
'claude-sonnet-4-20250514': 'June 15th, 2026',
};

const MODELS_TO_WARN_WITH_THINKING_ENABLED: Model[] = ['claude-opus-4-6'];
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.88.0'; // x-release-please-version
export const VERSION = '0.89.0'; // x-release-please-version
2 changes: 1 addition & 1 deletion tests/api-resources/messages/messages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ test('create: does not warn for non-deprecated models', async () => {
await client.messages.create({
max_tokens: 1024,
messages: [{ content: 'Hello, world', role: 'user' }],
model: 'claude-opus-4-0',
model: 'claude-opus-4-6',
});

expect(consoleSpy).not.toHaveBeenCalled();
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1336,9 +1336,9 @@ body-parser@^2.2.1:
type-is "^2.0.1"

brace-expansion@^2.0.2:
version "2.0.3"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.3.tgz#0493338bdd58e319b1039c67cf7ee439892c01d9"
integrity sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==
version "2.1.0"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.1.0.tgz#4f41a41190216ee36067ec381526fe9539c4f0ae"
integrity sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w==
dependencies:
balanced-match "^1.0.0"

Expand Down
Loading