diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbd361f3..15145ba5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,4 +64,3 @@ jobs: - name: Run tests run: ./scripts/test - diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 06d77054..2d326e4f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,5 +1,5 @@ { - ".": "0.39.0", + ".": "0.40.0", "packages/vertex-sdk": "0.7.0", "packages/bedrock-sdk": "0.12.4" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 8673eb90..f21e9abe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## 0.40.0 (2025-03-23) + +Full Changelog: [sdk-v0.39.0...sdk-v0.40.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.39.0...sdk-v0.40.0) + +### Features + +* add SKIP_BREW env var to ./scripts/bootstrap ([#710](https://github.com/anthropics/anthropic-sdk-typescript/issues/710)) ([1b8376a](https://github.com/anthropics/anthropic-sdk-typescript/commit/1b8376aac5475e1bb6b5f79c7c5684ab77908c1f)) +* **client:** accept RFC6838 JSON content types ([#713](https://github.com/anthropics/anthropic-sdk-typescript/issues/713)) ([fc32787](https://github.com/anthropics/anthropic-sdk-typescript/commit/fc3278702b3d27f792006e9710432f612e856af1)) + + +### Bug Fixes + +* **exports:** ensure resource imports don't require /index ([#717](https://github.com/anthropics/anthropic-sdk-typescript/issues/717)) ([56b2a80](https://github.com/anthropics/anthropic-sdk-typescript/commit/56b2a80145999256d4c075cf48be891df7832aad)) +* remove duplicate exports ([2df4cdd](https://github.com/anthropics/anthropic-sdk-typescript/commit/2df4cdd6f3a4f35a858fde57ce6327c50d3319d8)) + + +### Chores + +* **internal:** import ordering changes ([#708](https://github.com/anthropics/anthropic-sdk-typescript/issues/708)) ([a5680e1](https://github.com/anthropics/anthropic-sdk-typescript/commit/a5680e1466a6ea1bed0ddc4c880dd4e342ea1350)) +* **internal:** remove extra empty newlines ([#716](https://github.com/anthropics/anthropic-sdk-typescript/issues/716)) ([4d3c024](https://github.com/anthropics/anthropic-sdk-typescript/commit/4d3c02496ee09625fbcb5da545e90faa3890a885)) + ## 0.39.0 (2025-02-28) Full Changelog: [sdk-v0.38.0...sdk-v0.39.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.38.0...sdk-v0.39.0) diff --git a/api.md b/api.md index b8cae7e0..73ec47cc 100644 --- a/api.md +++ b/api.md @@ -32,23 +32,16 @@ Types: - CitationsConfigParam - CitationsDelta - ContentBlock -- ContentBlockDeltaEvent - ContentBlockParam - ContentBlockSource - ContentBlockSourceContent -- ContentBlockStartEvent -- ContentBlockStopEvent - DocumentBlockParam - ImageBlockParam - InputJSONDelta - Message - MessageCountTokensTool -- MessageDeltaEvent - MessageDeltaUsage - MessageParam -- MessageStartEvent -- MessageStopEvent -- MessageStreamEvent - MessageTokensCount - Metadata - Model @@ -89,6 +82,13 @@ Types: - URLImageSource - URLPDFSource - Usage +- MessageStreamEvent +- MessageStartEvent +- MessageDeltaEvent +- MessageStopEvent +- ContentBlockStartEvent +- ContentBlockDeltaEvent +- ContentBlockStopEvent Methods: diff --git a/package.json b/package.json index 0849de72..08b9b91d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@anthropic-ai/sdk", - "version": "0.39.0", + "version": "0.40.0", "description": "The official TypeScript library for the Anthropic API", "author": "Anthropic ", "types": "dist/index.d.ts", diff --git a/packages/bedrock-sdk/yarn.lock b/packages/bedrock-sdk/yarn.lock index bb2b37ea..3853f55b 100644 --- a/packages/bedrock-sdk/yarn.lock +++ b/packages/bedrock-sdk/yarn.lock @@ -17,7 +17,7 @@ "@anthropic-ai/sdk@file:../../dist": # x-release-please-start-version - version "0.39.0" + version "0.40.0" # x-release-please-end-version dependencies: "@types/node" "^18.11.18" diff --git a/packages/vertex-sdk/yarn.lock b/packages/vertex-sdk/yarn.lock index 2f2395ba..eee2a017 100644 --- a/packages/vertex-sdk/yarn.lock +++ b/packages/vertex-sdk/yarn.lock @@ -17,7 +17,7 @@ "@anthropic-ai/sdk@file:../../dist": # x-release-please-start-version - version "0.39.0" + version "0.40.0" # x-release-please-end-version dependencies: "@types/node" "^18.11.18" diff --git a/scripts/bootstrap b/scripts/bootstrap index 05dd47a6..0af58e25 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -4,7 +4,7 @@ set -e cd "$(dirname "$0")/.." -if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then +if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then brew bundle check >/dev/null 2>&1 || { echo "==> Installing Homebrew dependencies…" brew bundle diff --git a/src/core.ts b/src/core.ts index eac9d602..cdde4f0f 100644 --- a/src/core.ts +++ b/src/core.ts @@ -62,8 +62,8 @@ async function defaultParseResponse(props: APIResponseProps): Promise