From 3f23530fb55d9fec7278967ea02600e44e9f58e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 18:21:16 +0000 Subject: [PATCH 1/7] chore: bump testing data uri (#637) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 19e9daeb..14c789bf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 19 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-be055148d227480fcacc9086c37ac8009dcb487731069ada51af35044f65bee4.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-9563716c7b08b8936ba450ad05005d12cf5ca3b9a37fab8126ed372e422d6de6.yml From 384bb042dd854ed753c6bd8e25f522d0e042bfbf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 22:07:55 +0000 Subject: [PATCH 2/7] fix(client): normalize method (#639) --- src/core.ts | 12 +++++++++++- tests/index.test.ts | 17 +++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/core.ts b/src/core.ts index ea8d8dca..344bf6ac 100644 --- a/src/core.ts +++ b/src/core.ts @@ -556,9 +556,19 @@ export abstract class APIClient { const timeout = setTimeout(() => controller.abort(), ms); + const fetchOptions = { + signal: controller.signal as any, + ...options, + }; + if (fetchOptions.method) { + // Custom methods like 'patch' need to be uppercased + // See https://github.com/nodejs/undici/issues/2294 + fetchOptions.method = fetchOptions.method.toUpperCase(); + } + return ( // use undefined this binding; fetch errors if bound to something else in browser/cloudflare - this.fetch.call(undefined, url, { signal: controller.signal as any, ...options }).finally(() => { + this.fetch.call(undefined, url, fetchOptions).finally(() => { clearTimeout(timeout); }) ); diff --git a/tests/index.test.ts b/tests/index.test.ts index b6398085..9402a819 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -122,6 +122,23 @@ describe('instantiate client', () => { expect(spy).toHaveBeenCalledTimes(1); }); + test('normalized method', async () => { + let capturedRequest: RequestInit | undefined; + const testFetch = async (url: RequestInfo, init: RequestInit = {}): Promise => { + capturedRequest = init; + return new Response(JSON.stringify({}), { headers: { 'Content-Type': 'application/json' } }); + }; + + const client = new Anthropic({ + baseURL: 'http://localhost:5000/', + apiKey: 'my-anthropic-api-key', + fetch: testFetch, + }); + + await client.patch('/foo'); + expect(capturedRequest?.method).toEqual('PATCH'); + }); + describe('baseUrl', () => { test('trailing slash', () => { const client = new Anthropic({ From 54f7e1ffb9a2956ee27a4a715b84717aa681eb7c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:06:37 +0000 Subject: [PATCH 3/7] feat(api): add message batch delete endpoint (#640) --- .stats.yml | 4 +- api.md | 4 ++ src/resources/beta/messages/batches.ts | 52 +++++++++++++++++++ src/resources/beta/messages/index.ts | 2 + src/resources/beta/messages/messages.ts | 4 ++ src/resources/messages/batches.ts | 24 +++++++++ src/resources/messages/index.ts | 1 + src/resources/messages/messages.ts | 2 + .../beta/messages/batches.test.ts | 29 +++++++++++ tests/api-resources/messages/batches.test.ts | 18 +++++++ 10 files changed, 138 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 14c789bf..239e17b7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ -configured_endpoints: 19 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-9563716c7b08b8936ba450ad05005d12cf5ca3b9a37fab8126ed372e422d6de6.yml +configured_endpoints: 21 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-fd67aea6883f1ee9e46f31a42d3940f0acb1749e787055bd9b9f278b20fa53ec.yml diff --git a/api.md b/api.md index 48d1c9a8..9a25fe32 100644 --- a/api.md +++ b/api.md @@ -70,6 +70,7 @@ Methods: Types: +- DeletedMessageBatch - MessageBatch - MessageBatchCanceledResult - MessageBatchErroredResult @@ -84,6 +85,7 @@ Methods: - client.messages.batches.create({ ...params }) -> MessageBatch - client.messages.batches.retrieve(messageBatchId) -> MessageBatch - client.messages.batches.list({ ...params }) -> MessageBatchesPage +- client.messages.batches.delete(messageBatchId) -> DeletedMessageBatch - client.messages.batches.cancel(messageBatchId) -> MessageBatch - client.messages.batches.results(messageBatchId) -> Response @@ -175,6 +177,7 @@ Methods: Types: +- BetaDeletedMessageBatch - BetaMessageBatch - BetaMessageBatchCanceledResult - BetaMessageBatchErroredResult @@ -189,5 +192,6 @@ Methods: - client.beta.messages.batches.create({ ...params }) -> BetaMessageBatch - client.beta.messages.batches.retrieve(messageBatchId, { ...params }) -> BetaMessageBatch - client.beta.messages.batches.list({ ...params }) -> BetaMessageBatchesPage +- client.beta.messages.batches.delete(messageBatchId, { ...params }) -> BetaDeletedMessageBatch - client.beta.messages.batches.cancel(messageBatchId, { ...params }) -> BetaMessageBatch - client.beta.messages.batches.results(messageBatchId, { ...params }) -> Response diff --git a/src/resources/beta/messages/batches.ts b/src/resources/beta/messages/batches.ts index 0a863e64..b564cb1c 100644 --- a/src/resources/beta/messages/batches.ts +++ b/src/resources/beta/messages/batches.ts @@ -85,6 +85,35 @@ export class Batches extends APIResource { }); } + /** + * This endpoint is idempotent and can be used to poll for Message Batch + * completion. To access the results of a Message Batch, make a request to the + * `results_url` field in the response. + */ + delete( + messageBatchId: string, + params?: BatchDeleteParams, + options?: Core.RequestOptions, + ): Core.APIPromise; + delete(messageBatchId: string, options?: Core.RequestOptions): Core.APIPromise; + delete( + messageBatchId: string, + params: BatchDeleteParams | Core.RequestOptions = {}, + options?: Core.RequestOptions, + ): Core.APIPromise { + if (isRequestOptions(params)) { + return this.delete(messageBatchId, {}, params); + } + const { betas } = params; + return this._client.delete(`/v1/messages/batches/${messageBatchId}?beta=true`, { + ...options, + headers: { + 'anthropic-beta': [...(betas ?? []), 'message-batches-2024-09-24'].toString(), + ...options?.headers, + }, + }); + } + /** * Batches may be canceled any time before processing ends. Once cancellation is * initiated, the batch enters a `canceling` state, at which time the system may @@ -168,6 +197,20 @@ export class Batches extends APIResource { export class BetaMessageBatchesPage extends Page {} +export interface BetaDeletedMessageBatch { + /** + * ID of the Message Batch. + */ + id: string; + + /** + * Deleted object type. + * + * For Message Batches, this is always `"message_batch_deleted"`. + */ + type: 'message_batch_deleted'; +} + export interface BetaMessageBatch { /** * Unique object identifier. @@ -374,6 +417,13 @@ export interface BatchListParams extends PageParams { betas?: Array; } +export interface BatchDeleteParams { + /** + * Optional header to specify the beta version(s) you want to use. + */ + betas?: Array; +} + export interface BatchCancelParams { /** * Optional header to specify the beta version(s) you want to use. @@ -392,6 +442,7 @@ Batches.BetaMessageBatchesPage = BetaMessageBatchesPage; export declare namespace Batches { export { + type BetaDeletedMessageBatch as BetaDeletedMessageBatch, type BetaMessageBatch as BetaMessageBatch, type BetaMessageBatchCanceledResult as BetaMessageBatchCanceledResult, type BetaMessageBatchErroredResult as BetaMessageBatchErroredResult, @@ -404,6 +455,7 @@ export declare namespace Batches { type BatchCreateParams as BatchCreateParams, type BatchRetrieveParams as BatchRetrieveParams, type BatchListParams as BatchListParams, + type BatchDeleteParams as BatchDeleteParams, type BatchCancelParams as BatchCancelParams, type BatchResultsParams as BatchResultsParams, }; diff --git a/src/resources/beta/messages/index.ts b/src/resources/beta/messages/index.ts index 2cf85964..e6b260ab 100644 --- a/src/resources/beta/messages/index.ts +++ b/src/resources/beta/messages/index.ts @@ -3,6 +3,7 @@ export { BetaMessageBatchesPage, Batches, + type BetaDeletedMessageBatch, type BetaMessageBatch, type BetaMessageBatchCanceledResult, type BetaMessageBatchErroredResult, @@ -14,6 +15,7 @@ export { type BatchCreateParams, type BatchRetrieveParams, type BatchListParams, + type BatchDeleteParams, type BatchCancelParams, type BatchResultsParams, } from './batches'; diff --git a/src/resources/beta/messages/messages.ts b/src/resources/beta/messages/messages.ts index 186a6c36..92239cd8 100644 --- a/src/resources/beta/messages/messages.ts +++ b/src/resources/beta/messages/messages.ts @@ -10,10 +10,12 @@ import * as BatchesAPI from './batches'; import { BatchCancelParams, BatchCreateParams, + BatchDeleteParams, BatchListParams, BatchResultsParams, BatchRetrieveParams, Batches, + BetaDeletedMessageBatch, BetaMessageBatch, BetaMessageBatchCanceledResult, BetaMessageBatchErroredResult, @@ -1115,6 +1117,7 @@ export declare namespace Messages { export { Batches as Batches, + type BetaDeletedMessageBatch as BetaDeletedMessageBatch, type BetaMessageBatch as BetaMessageBatch, type BetaMessageBatchCanceledResult as BetaMessageBatchCanceledResult, type BetaMessageBatchErroredResult as BetaMessageBatchErroredResult, @@ -1127,6 +1130,7 @@ export declare namespace Messages { type BatchCreateParams as BatchCreateParams, type BatchRetrieveParams as BatchRetrieveParams, type BatchListParams as BatchListParams, + type BatchDeleteParams as BatchDeleteParams, type BatchCancelParams as BatchCancelParams, type BatchResultsParams as BatchResultsParams, }; diff --git a/src/resources/messages/batches.ts b/src/resources/messages/batches.ts index b4fd45e8..3d9539cf 100644 --- a/src/resources/messages/batches.ts +++ b/src/resources/messages/batches.ts @@ -49,6 +49,15 @@ export class Batches extends APIResource { return this._client.getAPIList('/v1/messages/batches', MessageBatchesPage, { query, ...options }); } + /** + * This endpoint is idempotent and can be used to poll for Message Batch + * completion. To access the results of a Message Batch, make a request to the + * `results_url` field in the response. + */ + delete(messageBatchId: string, options?: Core.RequestOptions): Core.APIPromise { + return this._client.delete(`/v1/messages/batches/${messageBatchId}`, options); + } + /** * Batches may be canceled any time before processing ends. Once cancellation is * initiated, the batch enters a `canceling` state, at which time the system may @@ -90,6 +99,20 @@ export class Batches extends APIResource { export class MessageBatchesPage extends Page {} +export interface DeletedMessageBatch { + /** + * ID of the Message Batch. + */ + id: string; + + /** + * Deleted object type. + * + * For Message Batches, this is always `"message_batch_deleted"`. + */ + type: 'message_batch_deleted'; +} + export interface MessageBatch { /** * Unique object identifier. @@ -283,6 +306,7 @@ Batches.MessageBatchesPage = MessageBatchesPage; export declare namespace Batches { export { + type DeletedMessageBatch as DeletedMessageBatch, type MessageBatch as MessageBatch, type MessageBatchCanceledResult as MessageBatchCanceledResult, type MessageBatchErroredResult as MessageBatchErroredResult, diff --git a/src/resources/messages/index.ts b/src/resources/messages/index.ts index 10308d2a..1c9178ad 100644 --- a/src/resources/messages/index.ts +++ b/src/resources/messages/index.ts @@ -3,6 +3,7 @@ export { MessageBatchesPage, Batches, + type DeletedMessageBatch, type MessageBatch, type MessageBatchCanceledResult, type MessageBatchErroredResult, diff --git a/src/resources/messages/messages.ts b/src/resources/messages/messages.ts index a1affbf5..c75a62f5 100644 --- a/src/resources/messages/messages.ts +++ b/src/resources/messages/messages.ts @@ -9,6 +9,7 @@ import { BatchCreateParams, BatchListParams, Batches, + DeletedMessageBatch, MessageBatch, MessageBatchCanceledResult, MessageBatchErroredResult, @@ -1114,6 +1115,7 @@ export declare namespace Messages { export { Batches as Batches, + type DeletedMessageBatch as DeletedMessageBatch, type MessageBatch as MessageBatch, type MessageBatchCanceledResult as MessageBatchCanceledResult, type MessageBatchErroredResult as MessageBatchErroredResult, diff --git a/tests/api-resources/beta/messages/batches.test.ts b/tests/api-resources/beta/messages/batches.test.ts index e395910a..1ebd0cf4 100644 --- a/tests/api-resources/beta/messages/batches.test.ts +++ b/tests/api-resources/beta/messages/batches.test.ts @@ -132,6 +132,35 @@ describe('resource batches', () => { ).rejects.toThrow(Anthropic.NotFoundError); }); + test('delete', async () => { + const responsePromise = client.beta.messages.batches.delete('message_batch_id'); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('delete: request options instead of params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.beta.messages.batches.delete('message_batch_id', { path: '/_stainless_unknown_path' }), + ).rejects.toThrow(Anthropic.NotFoundError); + }); + + test('delete: request options and params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.beta.messages.batches.delete( + 'message_batch_id', + { betas: ['string'] }, + { path: '/_stainless_unknown_path' }, + ), + ).rejects.toThrow(Anthropic.NotFoundError); + }); + test('cancel', async () => { const responsePromise = client.beta.messages.batches.cancel('message_batch_id'); const rawResponse = await responsePromise.asResponse(); diff --git a/tests/api-resources/messages/batches.test.ts b/tests/api-resources/messages/batches.test.ts index 26efdbc8..bc92b160 100644 --- a/tests/api-resources/messages/batches.test.ts +++ b/tests/api-resources/messages/batches.test.ts @@ -118,6 +118,24 @@ describe('resource batches', () => { ).rejects.toThrow(Anthropic.NotFoundError); }); + test('delete', async () => { + const responsePromise = client.messages.batches.delete('message_batch_id'); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('delete: request options instead of params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.messages.batches.delete('message_batch_id', { path: '/_stainless_unknown_path' }), + ).rejects.toThrow(Anthropic.NotFoundError); + }); + test('cancel', async () => { const responsePromise = client.messages.batches.cancel('message_batch_id'); const rawResponse = await responsePromise.asResponse(); From 8b362ee72954b31b4de920b35aed97255efa5e2e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:54:30 +0000 Subject: [PATCH 4/7] docs: minor formatting changes (#641) --- CONTRIBUTING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9a869b0f..7d94b319 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ ## Setting up the environment -This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable). +This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install). Other package managers may work but are not officially supported for development. To set up the repository, run: @@ -29,10 +29,10 @@ All files in the `examples/` directory are not modified by the generator and can … ``` -``` -chmod +x examples/.ts +```sh +$ chmod +x examples/.ts # run the example against your api -yarn tsn -T examples/.ts +$ yarn tsn -T examples/.ts ``` ## Using the repository from source From 8057b1eb67ccccee042a45f2efe53cccced15682 Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Fri, 20 Dec 2024 14:40:07 +0000 Subject: [PATCH 5/7] chore(internal): temporary revert commit (#643) From 640304c7c7e8bc67cbf799a646169736d89ad4c8 Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Fri, 20 Dec 2024 21:26:53 +0000 Subject: [PATCH 6/7] docs(readme): add alpha callout (#646) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index da3db48e..6680a4c7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +> [!IMPORTANT] +> We're actively working on a new alpha version that migrates from `node-fetch` to builtin fetch. +> +> Please try it out and let us know if you run into any issues! +> https://github.com/anthropics/anthropic-sdk-typescript/issues/645 + # Anthropic TypeScript API Library [![NPM version](https://img.shields.io/npm/v/@anthropic-ai/sdk.svg)](https://npmjs.org/package/@anthropic-ai/sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@anthropic-ai/sdk) From 47bebf0bb81f8d8a1af3d4d955b0be07c6da5e4b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 21:27:12 +0000 Subject: [PATCH 7/7] chore: release main --- .release-please-manifest.json | 6 +++--- CHANGELOG.md | 25 +++++++++++++++++++++++++ package.json | 2 +- packages/bedrock-sdk/CHANGELOG.md | 8 ++++++++ packages/bedrock-sdk/package.json | 2 +- packages/bedrock-sdk/yarn.lock | 2 +- packages/vertex-sdk/CHANGELOG.md | 8 ++++++++ packages/vertex-sdk/package.json | 2 +- packages/vertex-sdk/yarn.lock | 2 +- src/version.ts | 2 +- 10 files changed, 50 insertions(+), 9 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2053c67b..23066ebc 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,5 +1,5 @@ { - ".": "0.33.1", - "packages/vertex-sdk": "0.6.1", - "packages/bedrock-sdk": "0.12.0" + ".": "0.34.0", + "packages/vertex-sdk": "0.6.2", + "packages/bedrock-sdk": "0.12.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index a1a57c52..916dfa8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## 0.34.0 (2024-12-20) + +Full Changelog: [sdk-v0.33.1...sdk-v0.34.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.33.1...sdk-v0.34.0) + +### Features + +* **api:** add message batch delete endpoint ([#640](https://github.com/anthropics/anthropic-sdk-typescript/issues/640)) ([54f7e1f](https://github.com/anthropics/anthropic-sdk-typescript/commit/54f7e1ffb9a2956ee27a4a715b84717aa681eb7c)) + + +### Bug Fixes + +* **client:** normalize method ([#639](https://github.com/anthropics/anthropic-sdk-typescript/issues/639)) ([384bb04](https://github.com/anthropics/anthropic-sdk-typescript/commit/384bb042dd854ed753c6bd8e25f522d0e042bfbf)) + + +### Chores + +* bump testing data uri ([#637](https://github.com/anthropics/anthropic-sdk-typescript/issues/637)) ([3f23530](https://github.com/anthropics/anthropic-sdk-typescript/commit/3f23530fb55d9fec7278967ea02600e44e9f58e2)) +* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([8057b1e](https://github.com/anthropics/anthropic-sdk-typescript/commit/8057b1eb67ccccee042a45f2efe53cccced15682)) + + +### Documentation + +* minor formatting changes ([#641](https://github.com/anthropics/anthropic-sdk-typescript/issues/641)) ([8b362ee](https://github.com/anthropics/anthropic-sdk-typescript/commit/8b362ee72954b31b4de920b35aed97255efa5e2e)) +* **readme:** add alpha callout ([#646](https://github.com/anthropics/anthropic-sdk-typescript/issues/646)) ([640304c](https://github.com/anthropics/anthropic-sdk-typescript/commit/640304c7c7e8bc67cbf799a646169736d89ad4c8)) + ## 0.33.1 (2024-12-17) Full Changelog: [sdk-v0.33.0...sdk-v0.33.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.33.0...sdk-v0.33.1) diff --git a/package.json b/package.json index d8f88f57..4dabfb89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@anthropic-ai/sdk", - "version": "0.33.1", + "version": "0.34.0", "description": "The official TypeScript library for the Anthropic API", "author": "Anthropic ", "types": "dist/index.d.ts", diff --git a/packages/bedrock-sdk/CHANGELOG.md b/packages/bedrock-sdk/CHANGELOG.md index 837af37e..64680591 100644 --- a/packages/bedrock-sdk/CHANGELOG.md +++ b/packages/bedrock-sdk/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.12.1 (2024-12-20) + +Full Changelog: [bedrock-sdk-v0.12.0...bedrock-sdk-v0.12.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/bedrock-sdk-v0.12.0...bedrock-sdk-v0.12.1) + +### Chores + +* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([8057b1e](https://github.com/anthropics/anthropic-sdk-typescript/commit/8057b1eb67ccccee042a45f2efe53cccced15682)) + ## 0.12.0 (2024-12-17) Full Changelog: [bedrock-sdk-v0.11.2...bedrock-sdk-v0.12.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/bedrock-sdk-v0.11.2...bedrock-sdk-v0.12.0) diff --git a/packages/bedrock-sdk/package.json b/packages/bedrock-sdk/package.json index 352931a5..c309d0d2 100644 --- a/packages/bedrock-sdk/package.json +++ b/packages/bedrock-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@anthropic-ai/bedrock-sdk", - "version": "0.12.0", + "version": "0.12.1", "description": "The official TypeScript library for the Anthropic Bedrock API", "author": "Anthropic ", "types": "dist/index.d.ts", diff --git a/packages/bedrock-sdk/yarn.lock b/packages/bedrock-sdk/yarn.lock index 097d5605..5ac29d42 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.33.1" + version "0.34.0" # x-release-please-end-version dependencies: "@types/node" "^18.11.18" diff --git a/packages/vertex-sdk/CHANGELOG.md b/packages/vertex-sdk/CHANGELOG.md index 94191164..a220b52a 100644 --- a/packages/vertex-sdk/CHANGELOG.md +++ b/packages/vertex-sdk/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.6.2 (2024-12-20) + +Full Changelog: [vertex-sdk-v0.6.1...vertex-sdk-v0.6.2](https://github.com/anthropics/anthropic-sdk-typescript/compare/vertex-sdk-v0.6.1...vertex-sdk-v0.6.2) + +### Chores + +* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([8057b1e](https://github.com/anthropics/anthropic-sdk-typescript/commit/8057b1eb67ccccee042a45f2efe53cccced15682)) + ## 0.6.1 (2024-12-17) Full Changelog: [vertex-sdk-v0.6.0...vertex-sdk-v0.6.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/vertex-sdk-v0.6.0...vertex-sdk-v0.6.1) diff --git a/packages/vertex-sdk/package.json b/packages/vertex-sdk/package.json index 43fc356d..b15ca858 100644 --- a/packages/vertex-sdk/package.json +++ b/packages/vertex-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@anthropic-ai/vertex-sdk", - "version": "0.6.1", + "version": "0.6.2", "description": "The official TypeScript library for the Anthropic Vertex API", "author": "Anthropic ", "types": "dist/index.d.ts", diff --git a/packages/vertex-sdk/yarn.lock b/packages/vertex-sdk/yarn.lock index 01fc2a7a..e9eed502 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.33.1" + version "0.34.0" # x-release-please-end-version dependencies: "@types/node" "^18.11.18" diff --git a/src/version.ts b/src/version.ts index 4a46c186..48199984 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.33.1'; // x-release-please-version +export const VERSION = '0.34.0'; // x-release-please-version