From 5e992e1a9f75eceb948242498b6818d9af89a60e Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Fri, 20 Dec 2024 14:40:07 +0000 Subject: [PATCH 1/2] chore(internal): temporary revert commit (#643) From a8d14010982f1085653f9dd8bfbbb4f871ab0b78 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 17:05:43 +0000 Subject: [PATCH 2/2] chore: release main --- .release-please-manifest.json | 6 +- CHANGELOG.md | 270 ++++++++++++++++++++++++++++++ package.json | 2 +- packages/bedrock-sdk/CHANGELOG.md | 42 +++++ packages/bedrock-sdk/package.json | 2 +- packages/bedrock-sdk/yarn.lock | 2 +- packages/vertex-sdk/CHANGELOG.md | 49 ++++++ packages/vertex-sdk/package.json | 2 +- packages/vertex-sdk/yarn.lock | 2 +- src/version.ts | 2 +- 10 files changed, 370 insertions(+), 9 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index cb210381..8babef81 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,5 +1,5 @@ { - ".": "0.35.0", - "packages/vertex-sdk": "0.6.3", - "packages/bedrock-sdk": "0.12.2" + ".": "0.36.0", + "packages/vertex-sdk": "0.7.0", + "packages/bedrock-sdk": "0.13.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 499e576c..8a20d74b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,275 @@ # Changelog +## 0.36.0 (2025-01-21) + +Full Changelog: [sdk-v0.35.0...sdk-v0.36.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.35.0...sdk-v0.36.0) + +### ⚠ BREAKING CHANGES + +* **api:** messages is generally available ([#287](https://github.com/anthropics/anthropic-sdk-typescript/issues/287)) + +### Features + +* add back compat alias for InputJsonDelta ([711d1d5](https://github.com/anthropics/anthropic-sdk-typescript/commit/711d1d54e111ad4f0a0eaef223652bfd4b942b7c)) +* add beta message streaming helpers ([#655](https://github.com/anthropics/anthropic-sdk-typescript/issues/655)) ([a63cb88](https://github.com/anthropics/anthropic-sdk-typescript/commit/a63cb88f49a302583720aaf6c1026d038b16ffb6)) +* **api/types:** add stream event type aliases with a Raw prefix ([#428](https://github.com/anthropics/anthropic-sdk-typescript/issues/428)) ([590f45a](https://github.com/anthropics/anthropic-sdk-typescript/commit/590f45a4c475135b25fb55d2c72744ddcf869004)) +* **api:** add `tool_choice` param, image block params inside `tool_result.content`, and streaming for `tool_use` blocks ([#418](https://github.com/anthropics/anthropic-sdk-typescript/issues/418)) ([2c7cc70](https://github.com/anthropics/anthropic-sdk-typescript/commit/2c7cc70ca841bcb20f133d528fc8f1336e0a3a8c)) +* **api:** add enum to model param for message ([#315](https://github.com/anthropics/anthropic-sdk-typescript/issues/315)) ([672d977](https://github.com/anthropics/anthropic-sdk-typescript/commit/672d9771c52679a0317ae6159e2efa295f84cd6b)) +* **api:** add haiku model ([#333](https://github.com/anthropics/anthropic-sdk-typescript/issues/333)) ([446353b](https://github.com/anthropics/anthropic-sdk-typescript/commit/446353b354298cd43a4d288359bd7fb0067e83d9)) +* **api:** add message batch delete endpoint ([#640](https://github.com/anthropics/anthropic-sdk-typescript/issues/640)) ([ec607ec](https://github.com/anthropics/anthropic-sdk-typescript/commit/ec607ec6fdf585602a4166850b1f8cd74d5bb7d1)) +* **api:** add message batches api ([1c404b2](https://github.com/anthropics/anthropic-sdk-typescript/commit/1c404b213e23440a5728d7266b90269fbf0d88ef)) +* **api:** add message token counting & PDFs support ([#582](https://github.com/anthropics/anthropic-sdk-typescript/issues/582)) ([affdd31](https://github.com/anthropics/anthropic-sdk-typescript/commit/affdd31f99ca7bfce1fe277403c35490bf432765)) +* **api:** add new claude-3-5-sonnet-20240620 model ([#438](https://github.com/anthropics/anthropic-sdk-typescript/issues/438)) ([6868e83](https://github.com/anthropics/anthropic-sdk-typescript/commit/6868e83511ac112094303e9b432178ee9150f329)) +* **api:** add new haiku model ([#587](https://github.com/anthropics/anthropic-sdk-typescript/issues/587)) ([f7913f7](https://github.com/anthropics/anthropic-sdk-typescript/commit/f7913f795a792030515e09991d5a3513002cd7ea)) +* **api:** add new model and `computer-use-2024-10-22` beta ([b9fa45a](https://github.com/anthropics/anthropic-sdk-typescript/commit/b9fa45a04db46fcf3a1b046f589ae55a081e15df)) +* **api:** add new usage response fields ([#281](https://github.com/anthropics/anthropic-sdk-typescript/issues/281)) ([22c4047](https://github.com/anthropics/anthropic-sdk-typescript/commit/22c404766574198fb636dd8537867835d7ef8b3c)) +* **api:** add prompt caching beta ([5a27430](https://github.com/anthropics/anthropic-sdk-typescript/commit/5a27430a97bbdfa418e64ea33269ad33e8212f9c)) +* **api:** general availability updates ([7fd4830](https://github.com/anthropics/anthropic-sdk-typescript/commit/7fd4830dae44ab66f6125728d4b18eeba8d58219)) +* **api:** messages is generally available ([#287](https://github.com/anthropics/anthropic-sdk-typescript/issues/287)) ([57b7135](https://github.com/anthropics/anthropic-sdk-typescript/commit/57b713508614e9d125c22d64c4c5fabaa7c75ad8)) +* **api:** support disabling parallel tool use ([#540](https://github.com/anthropics/anthropic-sdk-typescript/issues/540)) ([4618d3e](https://github.com/anthropics/anthropic-sdk-typescript/commit/4618d3e6731f2141e01d07128bd170e41dc9bcdd)) +* **api:** tool use beta ([#374](https://github.com/anthropics/anthropic-sdk-typescript/issues/374)) ([5bcaddb](https://github.com/anthropics/anthropic-sdk-typescript/commit/5bcaddbd396fa81e9b65bf2ce3b2917affae5c0a)) +* **api:** tool use is GA and available on 3P ([#429](https://github.com/anthropics/anthropic-sdk-typescript/issues/429)) ([5d2b183](https://github.com/anthropics/anthropic-sdk-typescript/commit/5d2b183b6dc4f13395f9e6805d936ec2140c57d0)) +* **bedrock:** add beta.messages.create() method ([faf8484](https://github.com/anthropics/anthropic-sdk-typescript/commit/faf84848e42ec02994003283bf6178aa55233531)) +* **bedrock:** add messages API ([#305](https://github.com/anthropics/anthropic-sdk-typescript/issues/305)) ([072a5ed](https://github.com/anthropics/anthropic-sdk-typescript/commit/072a5ed642cbbdeee45532359d1ee5baea0b78fd)) +* **bedrock:** support tools ([2aeff91](https://github.com/anthropics/anthropic-sdk-typescript/commit/2aeff9187f3ebfa010c95715814a7e34f85ac6dd)) +* **client:** add ._request_id property to object responses ([#596](https://github.com/anthropics/anthropic-sdk-typescript/issues/596)) ([14a4a68](https://github.com/anthropics/anthropic-sdk-typescript/commit/14a4a687d243e47a8583160772ec9ccad4c7e1d9)) +* **client:** add streaming helpers ([a3ff1ff](https://github.com/anthropics/anthropic-sdk-typescript/commit/a3ff1ff797bc929bec89a46563674d83cbd83284)) +* **client:** add support for browser usage ([#504](https://github.com/anthropics/anthropic-sdk-typescript/issues/504)) ([e91d291](https://github.com/anthropics/anthropic-sdk-typescript/commit/e91d2918dfc42f5e146a0a86d99dfd4daae6fab1)) +* **client:** allow overriding retry count header ([#536](https://github.com/anthropics/anthropic-sdk-typescript/issues/536)) ([e59d283](https://github.com/anthropics/anthropic-sdk-typescript/commit/e59d28375b2e62e05e6bd2904d2669d36c591099)) +* **client:** make request-id header more accessible ([#462](https://github.com/anthropics/anthropic-sdk-typescript/issues/462)) ([6caae55](https://github.com/anthropics/anthropic-sdk-typescript/commit/6caae555ee347be8d99a3f3c6e1d479499339e9a)) +* **client:** send retry count header ([#533](https://github.com/anthropics/anthropic-sdk-typescript/issues/533)) ([02d0754](https://github.com/anthropics/anthropic-sdk-typescript/commit/02d075455a641fc5e239a1a6c5428c5894e148ff)) +* **internal:** make git install file structure match npm ([#617](https://github.com/anthropics/anthropic-sdk-typescript/issues/617)) ([3b75442](https://github.com/anthropics/anthropic-sdk-typescript/commit/3b754422bb67dbec41e7281695824c770e6b6daf)) +* **messages:** add support for image inputs ([#303](https://github.com/anthropics/anthropic-sdk-typescript/issues/303)) ([1b87d9e](https://github.com/anthropics/anthropic-sdk-typescript/commit/1b87d9ea141defa81fa31ee47673b47e19cc8cb1)) +* **stream:** add `.withResponse()` ([#654](https://github.com/anthropics/anthropic-sdk-typescript/issues/654)) ([85a763c](https://github.com/anthropics/anthropic-sdk-typescript/commit/85a763c3899d8055645ac6996527d8e39cb0ba96)) +* **streaming:** add `.request_id` getter ([e1fd091](https://github.com/anthropics/anthropic-sdk-typescript/commit/e1fd091cc32cc931d5366f508f5bef3ef1d6323f)) +* **streaming:** add tools support ([a1c2fbd](https://github.com/anthropics/anthropic-sdk-typescript/commit/a1c2fbd4a0d6772de55fb86bc54baeadc2252d4a)) +* support `application/octet-stream` request bodies ([#436](https://github.com/anthropics/anthropic-sdk-typescript/issues/436)) ([0ee32d7](https://github.com/anthropics/anthropic-sdk-typescript/commit/0ee32d718c3f45c63541e2c81fbb0dc21d47fe8c)) +* **vertex:** add beta.messages.create() ([08a8928](https://github.com/anthropics/anthropic-sdk-typescript/commit/08a8928fb1fa701f4330720ea2e9d4db81b6b17a)) +* **vertex:** add support for google vertex ([#265](https://github.com/anthropics/anthropic-sdk-typescript/issues/265)) ([96f9b55](https://github.com/anthropics/anthropic-sdk-typescript/commit/96f9b55feb9059184a2a1c0ec52c5f8dad862a32)) +* **vertex:** add support for overriding google auth ([#338](https://github.com/anthropics/anthropic-sdk-typescript/issues/338)) ([f268237](https://github.com/anthropics/anthropic-sdk-typescript/commit/f26823762219f78dce487165331312612c4399b9)) +* **vertex:** api is no longer in private beta ([#344](https://github.com/anthropics/anthropic-sdk-typescript/issues/344)) ([a151de7](https://github.com/anthropics/anthropic-sdk-typescript/commit/a151de7a9416b899a4eb22b21978f2b03f087396)) +* **vertex:** support token counting ([a4a3729](https://github.com/anthropics/anthropic-sdk-typescript/commit/a4a372947b250e195f5c45ffd928a2d966b23f0d)) +* **vertex:** support tools ([d9e9e3c](https://github.com/anthropics/anthropic-sdk-typescript/commit/d9e9e3c789d9a90c247bdade764d60e9fd8a8add)) + + +### Bug Fixes + +* allow body type in RequestOptions to be null ([#259](https://github.com/anthropics/anthropic-sdk-typescript/issues/259)) ([55f19d9](https://github.com/anthropics/anthropic-sdk-typescript/commit/55f19d97fcf79cc4bb0c48223cc0a58c7aa5a0be)) +* allow git imports for pnpm ([#433](https://github.com/anthropics/anthropic-sdk-typescript/issues/433)) ([729b0bb](https://github.com/anthropics/anthropic-sdk-typescript/commit/729b0bb36298189e341a04d3100f6d0abd5652c8)) +* **api:** add string to tool result block ([#448](https://github.com/anthropics/anthropic-sdk-typescript/issues/448)) ([d67f287](https://github.com/anthropics/anthropic-sdk-typescript/commit/d67f2877a992eb06b25b5c7c51840de85d5fdbc1)) +* **bedrock:** correct messages beta handling ([f34d67a](https://github.com/anthropics/anthropic-sdk-typescript/commit/f34d67abca1270f04f9bbf6ce430ce67b36d4932)) +* **bedrock:** don't mutate request body inputs ([4523ca9](https://github.com/anthropics/anthropic-sdk-typescript/commit/4523ca92b0fa194c2de0ac8bbc7e66873ec5e817)) +* **beta:** merge betas param with the default value ([#556](https://github.com/anthropics/anthropic-sdk-typescript/issues/556)) ([d713fcc](https://github.com/anthropics/anthropic-sdk-typescript/commit/d713fcc90f27c5dda484130e13220a0c9eaefae1)) +* **ci:** ignore stainless-app edits to release PR title ([#258](https://github.com/anthropics/anthropic-sdk-typescript/issues/258)) ([e92bfaf](https://github.com/anthropics/anthropic-sdk-typescript/commit/e92bfafc39a3b587e3eeaee1f19766b4fb3be49c)) +* **client:** correct File construction from node-fetch Responses ([#518](https://github.com/anthropics/anthropic-sdk-typescript/issues/518)) ([859d585](https://github.com/anthropics/anthropic-sdk-typescript/commit/859d585a15961c2d55f669b0bd7da39e162ed94d)) +* **client:** correctly send deno version header ([#354](https://github.com/anthropics/anthropic-sdk-typescript/issues/354)) ([1b69cee](https://github.com/anthropics/anthropic-sdk-typescript/commit/1b69cee5077784a7d356007fc4a8e3b713a84e15)) +* **client:** normalize method ([#639](https://github.com/anthropics/anthropic-sdk-typescript/issues/639)) ([f55e419](https://github.com/anthropics/anthropic-sdk-typescript/commit/f55e4192b1fe232a406e3ba79258ededad4e7343)) +* **client:** respect x-stainless-retry-count default headers ([#562](https://github.com/anthropics/anthropic-sdk-typescript/issues/562)) ([ef52b8d](https://github.com/anthropics/anthropic-sdk-typescript/commit/ef52b8d7afd23feb923dc6a4f1da2f2cfd95a13c)) +* **compat:** remove ReadableStream polyfill redundant since node v16 ([#478](https://github.com/anthropics/anthropic-sdk-typescript/issues/478)) ([5e9ac2c](https://github.com/anthropics/anthropic-sdk-typescript/commit/5e9ac2c42872ea60e2e5e1c94685fba60a7044bc)) +* **countTokens:** correctly set beta header ([3002c2e](https://github.com/anthropics/anthropic-sdk-typescript/commit/3002c2ede94e7f380dfffd7c089b6d56aa507958)) +* **docs:** add missing await to pagination example ([#609](https://github.com/anthropics/anthropic-sdk-typescript/issues/609)) ([0a9ed2b](https://github.com/anthropics/anthropic-sdk-typescript/commit/0a9ed2ba5703ac6222417a7e31ded39a961bcb70)) +* **docs:** correct results return type ([#657](https://github.com/anthropics/anthropic-sdk-typescript/issues/657)) ([4378d07](https://github.com/anthropics/anthropic-sdk-typescript/commit/4378d0701e1e0049ea0161a8423a615412ccbe8e)) +* don't require deno to run build-deno ([#586](https://github.com/anthropics/anthropic-sdk-typescript/issues/586)) ([21fa500](https://github.com/anthropics/anthropic-sdk-typescript/commit/21fa50056c08043ed4b7f700087da805627426a8)) +* **examples:** add token counting example ([151fe16](https://github.com/anthropics/anthropic-sdk-typescript/commit/151fe16732691a659c487927f7f4496418b86e9a)) +* handle process.env being undefined in debug func ([#351](https://github.com/anthropics/anthropic-sdk-typescript/issues/351)) ([bf942f8](https://github.com/anthropics/anthropic-sdk-typescript/commit/bf942f87149e126d36e4451d1d91719dbfe0a718)) +* **internal:** make toFile use input file's options ([#343](https://github.com/anthropics/anthropic-sdk-typescript/issues/343)) ([3ef7ac4](https://github.com/anthropics/anthropic-sdk-typescript/commit/3ef7ac4a8f62f5eef2d6105c68833cb71ff1eb67)) +* **internal:** support pnpm git installs ([#579](https://github.com/anthropics/anthropic-sdk-typescript/issues/579)) ([4f861d0](https://github.com/anthropics/anthropic-sdk-typescript/commit/4f861d0bdc6f3b22ae63926aa9071931b58b0e57)) +* **MessageStream:** handle errors more gracefully in async iterator ([#301](https://github.com/anthropics/anthropic-sdk-typescript/issues/301)) ([95232ed](https://github.com/anthropics/anthropic-sdk-typescript/commit/95232eda6bcdf420fbf85625c7ff6baabab60f08)) +* **package:** revert recent client file change ([#409](https://github.com/anthropics/anthropic-sdk-typescript/issues/409)) ([26147bf](https://github.com/anthropics/anthropic-sdk-typescript/commit/26147bf397b88ac91fe2251da843163094b6dd3f)) +* **partial-json:** don't error on unknown tokens ([75e6dd9](https://github.com/anthropics/anthropic-sdk-typescript/commit/75e6dd927464d27baa9992f9769d307fec3e5ad5)) +* **partial-json:** handle `null` token properly ([8479a30](https://github.com/anthropics/anthropic-sdk-typescript/commit/8479a3073fe74bf13c28125f6e7bb60e3f67124f)) +* send correct Accept header for certain endpoints ([#651](https://github.com/anthropics/anthropic-sdk-typescript/issues/651)) ([5668abf](https://github.com/anthropics/anthropic-sdk-typescript/commit/5668abf1f81a899764ecd1abaede07b45e18e712)) +* **streaming:** correct accumulation of output tokens ([#361](https://github.com/anthropics/anthropic-sdk-typescript/issues/361)) ([6e78091](https://github.com/anthropics/anthropic-sdk-typescript/commit/6e780919f5bef447fcaa61e326d58234873e951e)) +* **streaming:** correct error message serialisation ([#524](https://github.com/anthropics/anthropic-sdk-typescript/issues/524)) ([45b0018](https://github.com/anthropics/anthropic-sdk-typescript/commit/45b0018ac6561f4dc832e04ecf2bac5f0ba10ec8)) +* **streaming:** correctly handle trailing new lines in byte chunks ([#317](https://github.com/anthropics/anthropic-sdk-typescript/issues/317)) ([c5385a1](https://github.com/anthropics/anthropic-sdk-typescript/commit/c5385a1b57c635a5b07ca31cc356d0e75903aa8f)) +* **streaming:** handle special line characters and fix multi-byte character decoding ([#370](https://github.com/anthropics/anthropic-sdk-typescript/issues/370)) ([255c91f](https://github.com/anthropics/anthropic-sdk-typescript/commit/255c91ff2be483a63b7d238dc4457f2b60dd7c4b)) +* **types:** accept undefined for optional client options ([#257](https://github.com/anthropics/anthropic-sdk-typescript/issues/257)) ([3af0266](https://github.com/anthropics/anthropic-sdk-typescript/commit/3af02660f57ce195073255c65df0be2f0ab0f5e3)) +* **types:** add missing token-counting-2024-11-01 ([f99a700](https://github.com/anthropics/anthropic-sdk-typescript/commit/f99a700c71029bdde1b13b3b14cac3d02b96edd4)) +* **types:** add missing token-counting-2024-11-01 ([#583](https://github.com/anthropics/anthropic-sdk-typescript/issues/583)) ([86c5ade](https://github.com/anthropics/anthropic-sdk-typescript/commit/86c5adebf10927609fea29afc4ff7c714ceae50b)) +* **types:** avoid errors on certain TS versions ([8a8a23f](https://github.com/anthropics/anthropic-sdk-typescript/commit/8a8a23f847f4a1d4305c7fb633819fb35c95fb79)) +* **types:** correct typo claude-2.1' to claude-2.1 ([#352](https://github.com/anthropics/anthropic-sdk-typescript/issues/352)) ([01a1fa0](https://github.com/anthropics/anthropic-sdk-typescript/commit/01a1fa080b6a6a9a7bc6ff58cfdb33fe8e101555)) +* **types:** correctly mark type as a required property in requests ([#371](https://github.com/anthropics/anthropic-sdk-typescript/issues/371)) ([06fc0f7](https://github.com/anthropics/anthropic-sdk-typescript/commit/06fc0f74f7769628f4001b9b739c463cd84e7e6f)) +* **types:** remove anthropic-instant-1.2 model ([#599](https://github.com/anthropics/anthropic-sdk-typescript/issues/599)) ([0f9db5c](https://github.com/anthropics/anthropic-sdk-typescript/commit/0f9db5c0b9ab7ca4d08a675237a893b66c281850)) +* **types:** remove leftover polyfill usage ([#532](https://github.com/anthropics/anthropic-sdk-typescript/issues/532)) ([369bac0](https://github.com/anthropics/anthropic-sdk-typescript/commit/369bac0bef84605c7dd50f1f9444fd9f32cb1475)) +* **types:** remove misleading betas TypedDict property for the Batch API ([#559](https://github.com/anthropics/anthropic-sdk-typescript/issues/559)) ([d80b407](https://github.com/anthropics/anthropic-sdk-typescript/commit/d80b4077dd028fc263ec3f79d2cb5df3c51d1874)) +* **uploads:** avoid making redundant memory copies ([#520](https://github.com/anthropics/anthropic-sdk-typescript/issues/520)) ([abdb763](https://github.com/anthropics/anthropic-sdk-typescript/commit/abdb7632cb47ed4014c8c47b3117040d7d37abf6)) +* use default base url if BASE_URL env var is blank ([#250](https://github.com/anthropics/anthropic-sdk-typescript/issues/250)) ([76b1429](https://github.com/anthropics/anthropic-sdk-typescript/commit/76b1429d0185a7915da19d88aa856559c516bbfd)) +* use relative paths ([#475](https://github.com/anthropics/anthropic-sdk-typescript/issues/475)) ([dfd0eca](https://github.com/anthropics/anthropic-sdk-typescript/commit/dfd0ecaf8981261678b9fe6b8667c9195f8b623b)) +* **vertex:** add beta.messages.countTokens method ([2cbeabc](https://github.com/anthropics/anthropic-sdk-typescript/commit/2cbeabc6f0175297c98b5d706a0038d793150e8e)) +* **vertex:** correct core client dependency constraint ([#384](https://github.com/anthropics/anthropic-sdk-typescript/issues/384)) ([10b9334](https://github.com/anthropics/anthropic-sdk-typescript/commit/10b93342c4b18a43797f078b66164fa31314334b)) +* **vertex:** correct messages beta handling ([a41193d](https://github.com/anthropics/anthropic-sdk-typescript/commit/a41193d112f47faaae88872e8764b631dbad1941)) +* **vertex:** don't mutate request body inputs ([2709c1f](https://github.com/anthropics/anthropic-sdk-typescript/commit/2709c1fb255282321fab296e709651a79017fe37)) +* **vertex:** remove `anthropic_version` deletion for token counting ([beefeb7](https://github.com/anthropics/anthropic-sdk-typescript/commit/beefeb74060196c564de14ddb6a39734f7b0352e)) + + +### Reverts + +* disable isolatedModules and change imports ([#575](https://github.com/anthropics/anthropic-sdk-typescript/issues/575)) ([007ff79](https://github.com/anthropics/anthropic-sdk-typescript/commit/007ff79247dfbecb6708402f2e0847c022c6d1e1)) + + +### Chores + +* add .keep files for examples and custom code directories ([#249](https://github.com/anthropics/anthropic-sdk-typescript/issues/249)) ([6fa9ad2](https://github.com/anthropics/anthropic-sdk-typescript/commit/6fa9ad20e512db0fe2bc6a7c5e9150206bf05f8d)) +* **api:** add title ([#564](https://github.com/anthropics/anthropic-sdk-typescript/issues/564)) ([665ebae](https://github.com/anthropics/anthropic-sdk-typescript/commit/665ebaee0b3a8d1ca85e7935b857ab9e00586a65)) +* **api:** deprecate claude-1 models ([c7557f1](https://github.com/anthropics/anthropic-sdk-typescript/commit/c7557f14ece5a693505c27ccf562e06472ab60f1)) +* **api:** update spec version ([#607](https://github.com/anthropics/anthropic-sdk-typescript/issues/607)) ([08ad02f](https://github.com/anthropics/anthropic-sdk-typescript/commit/08ad02fd72e3097da9daf89060ca5f66065ee113)) +* **api:** update spec version ([#629](https://github.com/anthropics/anthropic-sdk-typescript/issues/629)) ([1f072f8](https://github.com/anthropics/anthropic-sdk-typescript/commit/1f072f886af1edda47da0ee7c2d3041b15ff232e)) +* **bedrock,vertex:** remove unsupported countTokens method ([#597](https://github.com/anthropics/anthropic-sdk-typescript/issues/597)) ([6f6db16](https://github.com/anthropics/anthropic-sdk-typescript/commit/6f6db164d2526c2fb272151f4d68140da27ce1ea)) +* **bedrock:** move bedrock SDK to the main repo ([#274](https://github.com/anthropics/anthropic-sdk-typescript/issues/274)) ([1a565fe](https://github.com/anthropics/anthropic-sdk-typescript/commit/1a565feddd19c3dbe62f087fc9f13520bb69fc0e)) +* **bedrock:** remove unsupported methods ([8bb04ed](https://github.com/anthropics/anthropic-sdk-typescript/commit/8bb04ed2370c894b080d56d37e960ad4c3dc5925)) +* **bedrock:** use `chunk` for internal SSE parsing instead of `completion` ([#472](https://github.com/anthropics/anthropic-sdk-typescript/issues/472)) ([9515f60](https://github.com/anthropics/anthropic-sdk-typescript/commit/9515f6035e8b79a5335286c8cc1591d83ee51216)) +* better object fallback behaviour for casting errors ([#503](https://github.com/anthropics/anthropic-sdk-typescript/issues/503)) ([ab12feb](https://github.com/anthropics/anthropic-sdk-typescript/commit/ab12feb1f6a6987ede24507844c50fa8682c01f4)) +* bump testing data uri ([#637](https://github.com/anthropics/anthropic-sdk-typescript/issues/637)) ([135cb8b](https://github.com/anthropics/anthropic-sdk-typescript/commit/135cb8b68a2bd802e94b0885b3a1e8af09f76775)) +* **ci:** add CODEOWNERS file ([#498](https://github.com/anthropics/anthropic-sdk-typescript/issues/498)) ([45ae01b](https://github.com/anthropics/anthropic-sdk-typescript/commit/45ae01b24c08c9de316999e129ab8b6e8442c11d)) +* **ci:** also run workflows for PRs targeting `next` ([#464](https://github.com/anthropics/anthropic-sdk-typescript/issues/464)) ([c443e9f](https://github.com/anthropics/anthropic-sdk-typescript/commit/c443e9fb4c331fa9a24b4374c2c4acfa42384143)) +* **ci:** bump prism mock server version ([#490](https://github.com/anthropics/anthropic-sdk-typescript/issues/490)) ([686ced5](https://github.com/anthropics/anthropic-sdk-typescript/commit/686ced5275df8294886102a5709ad5f0c78657d9)) +* **ci:** check for build errors ([#511](https://github.com/anthropics/anthropic-sdk-typescript/issues/511)) ([8299bec](https://github.com/anthropics/anthropic-sdk-typescript/commit/8299becb8e1ff2a334b1b4f1d5ae1b84cb629ba4)) +* **ci:** fix publish packages script ([#272](https://github.com/anthropics/anthropic-sdk-typescript/issues/272)) ([a9fef06](https://github.com/anthropics/anthropic-sdk-typescript/commit/a9fef06b75c24ea7a0a810e36827371323c21874)) +* **ci:** install deps via ./script/bootstrap ([#515](https://github.com/anthropics/anthropic-sdk-typescript/issues/515)) ([38d0481](https://github.com/anthropics/anthropic-sdk-typescript/commit/38d048130fa33ae2a0966a2cd0040a109fde5c4d)) +* **ci:** minor changes ([#488](https://github.com/anthropics/anthropic-sdk-typescript/issues/488)) ([61c327f](https://github.com/anthropics/anthropic-sdk-typescript/commit/61c327f2c39d44073206b5427b67889056fede08)) +* **ci:** remove unneeded workflow ([#594](https://github.com/anthropics/anthropic-sdk-typescript/issues/594)) ([4890611](https://github.com/anthropics/anthropic-sdk-typescript/commit/4890611b27c28c58bae4a4daad0cd14fadd4c7a4)) +* **ci:** update actions/setup-node action to v4 ([#295](https://github.com/anthropics/anthropic-sdk-typescript/issues/295)) ([ad24bde](https://github.com/anthropics/anthropic-sdk-typescript/commit/ad24bde8528fc43c6549446cd7cc9bca8acb8472)) +* **client:** drop unused devDependency ([#610](https://github.com/anthropics/anthropic-sdk-typescript/issues/610)) ([9f07abc](https://github.com/anthropics/anthropic-sdk-typescript/commit/9f07abcdc40b9ae6dd341715a1b97341b3d89e43)) +* deprecate more models ([ab8ed5f](https://github.com/anthropics/anthropic-sdk-typescript/commit/ab8ed5f89fdd1c6063b746df2f2f23f671a375ac)) +* **deps:** bump yarn to v1.22.22 ([#369](https://github.com/anthropics/anthropic-sdk-typescript/issues/369)) ([9b7df0d](https://github.com/anthropics/anthropic-sdk-typescript/commit/9b7df0d944d241d73528dc45d9fcc34495e28acf)) +* **deps:** remove unused dependency digest-fetch ([#368](https://github.com/anthropics/anthropic-sdk-typescript/issues/368)) ([62790cb](https://github.com/anthropics/anthropic-sdk-typescript/commit/62790cb93abd27d63c2d6678159803972dc20606)) +* **docs/api:** update prompt caching helpers ([38e0959](https://github.com/anthropics/anthropic-sdk-typescript/commit/38e095991454794f1747e392e439adfc22322dda)) +* **docs:** add SECURITY.md ([#411](https://github.com/anthropics/anthropic-sdk-typescript/issues/411)) ([a60bc90](https://github.com/anthropics/anthropic-sdk-typescript/commit/a60bc909889473b367758788efe7cba6d376abd7)) +* **docs:** fix incorrect client var names ([#479](https://github.com/anthropics/anthropic-sdk-typescript/issues/479)) ([61625d2](https://github.com/anthropics/anthropic-sdk-typescript/commit/61625d216243e14a823c9a369972d3f551ddadb4)) +* **docs:** fix typo ([#423](https://github.com/anthropics/anthropic-sdk-typescript/issues/423)) ([ec36603](https://github.com/anthropics/anthropic-sdk-typescript/commit/ec36603bcb1dc56b80bbcfdc34dccac694319e76)) +* **docs:** mention install from git repo ([#302](https://github.com/anthropics/anthropic-sdk-typescript/issues/302)) ([1852a80](https://github.com/anthropics/anthropic-sdk-typescript/commit/1852a80df04331883eee3af566ae55e5ea49e1ec)) +* **docs:** mention lack of support for web browser runtimes ([#468](https://github.com/anthropics/anthropic-sdk-typescript/issues/468)) ([879d9da](https://github.com/anthropics/anthropic-sdk-typescript/commit/879d9dab5bdc02b6bb63f52329f81ab6627e5d92)) +* **docs:** minor update to formatting of API link in README ([#467](https://github.com/anthropics/anthropic-sdk-typescript/issues/467)) ([d28471d](https://github.com/anthropics/anthropic-sdk-typescript/commit/d28471db14d3d801f924c9af8c75f560cafb7e74)) +* **docs:** remove references to old bedrock package ([#289](https://github.com/anthropics/anthropic-sdk-typescript/issues/289)) ([b2b0173](https://github.com/anthropics/anthropic-sdk-typescript/commit/b2b0173fed0477416fb35162dcff15756996ec30)) +* **docs:** rename anthropic const to client ([#471](https://github.com/anthropics/anthropic-sdk-typescript/issues/471)) ([8274f4b](https://github.com/anthropics/anthropic-sdk-typescript/commit/8274f4bbace5afa5956c1788bb244bd57c7f5c0f)) +* **docs:** update browser support information ([#522](https://github.com/anthropics/anthropic-sdk-typescript/issues/522)) ([02f0fc5](https://github.com/anthropics/anthropic-sdk-typescript/commit/02f0fc513dc694a9c5b7ab1d1a851fc798131e3f)) +* **docs:** use client instead of package name in Node examples ([#469](https://github.com/anthropics/anthropic-sdk-typescript/issues/469)) ([4d899d9](https://github.com/anthropics/anthropic-sdk-typescript/commit/4d899d94aecc8f232742f531f1216bfcbb042a60)) +* **examples:** minor formatting changes ([#491](https://github.com/anthropics/anthropic-sdk-typescript/issues/491)) ([7193564](https://github.com/anthropics/anthropic-sdk-typescript/commit/7193564cc21500f5f8fd88be035f79920a8a9df4)) +* fix error handler in readme ([#307](https://github.com/anthropics/anthropic-sdk-typescript/issues/307)) ([2346840](https://github.com/anthropics/anthropic-sdk-typescript/commit/23468407acc9c7baaadb9501bcdacab881b60708)) +* gitignore test server logs ([#451](https://github.com/anthropics/anthropic-sdk-typescript/issues/451)) ([c0cf3c1](https://github.com/anthropics/anthropic-sdk-typescript/commit/c0cf3c11b71f9303c9f945278b9d352d8ac41a10)) +* improve browser error message ([#613](https://github.com/anthropics/anthropic-sdk-typescript/issues/613)) ([4307bef](https://github.com/anthropics/anthropic-sdk-typescript/commit/4307bef8c20ef38a4d0fea6a112f60021d9045d9)) +* **interal:** make link to api.md relative ([#278](https://github.com/anthropics/anthropic-sdk-typescript/issues/278)) ([5d421e6](https://github.com/anthropics/anthropic-sdk-typescript/commit/5d421e633588c4ff859b60f0b38aec153b695ece)) +* **internal:** add constant for default timeout ([#480](https://github.com/anthropics/anthropic-sdk-typescript/issues/480)) ([2877590](https://github.com/anthropics/anthropic-sdk-typescript/commit/2877590cd894a5bf4d8e36f00a63f7fb81ea3dbc)) +* **internal:** add dev dependency ([#531](https://github.com/anthropics/anthropic-sdk-typescript/issues/531)) ([49ce796](https://github.com/anthropics/anthropic-sdk-typescript/commit/49ce796eb0b705a4825d84e4c7848c3052fca8cd)) +* **internal:** add explicit type annotation to decoder ([#324](https://github.com/anthropics/anthropic-sdk-typescript/issues/324)) ([ee4fc22](https://github.com/anthropics/anthropic-sdk-typescript/commit/ee4fc228ce208a24bc4c716bf5e4097787c4c9fa)) +* **internal:** add internal helpers & improve build scripts ([#261](https://github.com/anthropics/anthropic-sdk-typescript/issues/261)) ([102bc8c](https://github.com/anthropics/anthropic-sdk-typescript/commit/102bc8c319bb3ca0971baebae5b24718b665aae1)) +* **internal:** add link to openapi spec ([#406](https://github.com/anthropics/anthropic-sdk-typescript/issues/406)) ([6537ba6](https://github.com/anthropics/anthropic-sdk-typescript/commit/6537ba6cec2f6ce8ba7a7c10a33f8245f5f33563)) +* **internal:** add scripts/test and scripts/mock ([#403](https://github.com/anthropics/anthropic-sdk-typescript/issues/403)) ([3a89120](https://github.com/anthropics/anthropic-sdk-typescript/commit/3a89120500775d29d2cf394cb83448eee12c74e9)) +* **internal:** add slightly better logging to scripts ([#415](https://github.com/anthropics/anthropic-sdk-typescript/issues/415)) ([6704d90](https://github.com/anthropics/anthropic-sdk-typescript/commit/6704d90e2f4321dce2375199c9ec3f6bfbdfe856)) +* **internal:** add test ([#660](https://github.com/anthropics/anthropic-sdk-typescript/issues/660)) ([e670066](https://github.com/anthropics/anthropic-sdk-typescript/commit/e670066b42925a3bb84115a5ef1df3df70ea37f6)) +* **internal:** add type ([#359](https://github.com/anthropics/anthropic-sdk-typescript/issues/359)) ([2a79781](https://github.com/anthropics/anthropic-sdk-typescript/commit/2a79781263265ad39bdfc19c3293756fdad2c55b)) +* **internal:** bump cross-spawn to v7.0.6 ([#624](https://github.com/anthropics/anthropic-sdk-typescript/issues/624)) ([2f75798](https://github.com/anthropics/anthropic-sdk-typescript/commit/2f75798f0b9df3c26b5271aeadfc3be8f1bd16ad)) +* **internal:** bump prism version ([#407](https://github.com/anthropics/anthropic-sdk-typescript/issues/407)) ([2e445e3](https://github.com/anthropics/anthropic-sdk-typescript/commit/2e445e3e267b2c25cda5808b8ea21c98b977b7f8)) +* **internal:** bumps eslint and related dependencies ([#570](https://github.com/anthropics/anthropic-sdk-typescript/issues/570)) ([0f8b00c](https://github.com/anthropics/anthropic-sdk-typescript/commit/0f8b00c74fc08b8376ad1bcf7b406f650fdf28aa)) +* **internal:** debug logging for retries; speculative retry-after-ms support ([#256](https://github.com/anthropics/anthropic-sdk-typescript/issues/256)) ([334edb6](https://github.com/anthropics/anthropic-sdk-typescript/commit/334edb66a75a2e214276344c24b8fb80dba57be8)) +* **internal:** dependency updates ([#519](https://github.com/anthropics/anthropic-sdk-typescript/issues/519)) ([40ebb5f](https://github.com/anthropics/anthropic-sdk-typescript/commit/40ebb5f25ff5eb250699beaec41a016789bff1c8)) +* **internal:** don't re-export streaming type ([#267](https://github.com/anthropics/anthropic-sdk-typescript/issues/267)) ([a5b0ab1](https://github.com/anthropics/anthropic-sdk-typescript/commit/a5b0ab18f4959e8cd28c7aab07509a3431180ab2)) +* **internal:** enable building when git installed ([#279](https://github.com/anthropics/anthropic-sdk-typescript/issues/279)) ([fcdfc41](https://github.com/anthropics/anthropic-sdk-typescript/commit/fcdfc419bb11c0e88f44d1760267a67320b95472)) +* **internal:** fix generated version numbers ([#413](https://github.com/anthropics/anthropic-sdk-typescript/issues/413)) ([471430d](https://github.com/anthropics/anthropic-sdk-typescript/commit/471430dc1bfc7317b737bf778bda45aa591b087e)) +* **internal:** fix some typos ([#633](https://github.com/anthropics/anthropic-sdk-typescript/issues/633)) ([ed64904](https://github.com/anthropics/anthropic-sdk-typescript/commit/ed64904c1ae2bddba987675041c829ca03737841)) +* **internal:** formatting ([#390](https://github.com/anthropics/anthropic-sdk-typescript/issues/390)) ([53738e2](https://github.com/anthropics/anthropic-sdk-typescript/commit/53738e2ce7a7875756b8375a2ac46e9ec0adb22c)) +* **internal:** improve type signatures ([#247](https://github.com/anthropics/anthropic-sdk-typescript/issues/247)) ([266d32e](https://github.com/anthropics/anthropic-sdk-typescript/commit/266d32e7358c7ac52718ab2e8cc38d6d2fbe7587)) +* **internal:** minor changes to tests ([#465](https://github.com/anthropics/anthropic-sdk-typescript/issues/465)) ([86c901d](https://github.com/anthropics/anthropic-sdk-typescript/commit/86c901dedd0ad2dbdb0856a5a4247b698da28438)) +* **internal:** minor reformatting ([#444](https://github.com/anthropics/anthropic-sdk-typescript/issues/444)) ([f224eff](https://github.com/anthropics/anthropic-sdk-typescript/commit/f224effbce6dca31ce636b5e8c17d88c3ba5e241)) +* **internal:** minor streaming updates ([#264](https://github.com/anthropics/anthropic-sdk-typescript/issues/264)) ([8e13801](https://github.com/anthropics/anthropic-sdk-typescript/commit/8e1380166915a85eb1c5459ea0c34e02bd264a43)) +* **internal:** move client class to separate file ([#408](https://github.com/anthropics/anthropic-sdk-typescript/issues/408)) ([11304ca](https://github.com/anthropics/anthropic-sdk-typescript/commit/11304cafb551653e77be34336810dbbc7055b8e3)) +* **internal:** move LineDecoder to a separate file ([#541](https://github.com/anthropics/anthropic-sdk-typescript/issues/541)) ([ef81591](https://github.com/anthropics/anthropic-sdk-typescript/commit/ef8159171a386f3faf27699e9b7b73b47ebcab25)) +* **internal:** narrow type into stringifyQuery ([#253](https://github.com/anthropics/anthropic-sdk-typescript/issues/253)) ([2a3a126](https://github.com/anthropics/anthropic-sdk-typescript/commit/2a3a1268f29dfbbfe792bda88525b424deeeb346)) +* **internal:** pass props through internal parser ([#549](https://github.com/anthropics/anthropic-sdk-typescript/issues/549)) ([d225d1d](https://github.com/anthropics/anthropic-sdk-typescript/commit/d225d1d58b7b859370f550022aff0a8f95fc988a)) +* **internal:** refactor release environment script ([#294](https://github.com/anthropics/anthropic-sdk-typescript/issues/294)) ([ef35095](https://github.com/anthropics/anthropic-sdk-typescript/commit/ef350957bfc8982eac780cfb5dfac693cd35e80b)) +* **internal:** refactor scripts ([#404](https://github.com/anthropics/anthropic-sdk-typescript/issues/404)) ([60d1d00](https://github.com/anthropics/anthropic-sdk-typescript/commit/60d1d0035cb066a244f36f384f9d2f828d7c8de6)) +* **internal:** reformat pacakge.json ([#284](https://github.com/anthropics/anthropic-sdk-typescript/issues/284)) ([ebd573c](https://github.com/anthropics/anthropic-sdk-typescript/commit/ebd573c095b68abf7eb5e28a830a6a7eabe1b188)) +* **internal:** remove old reference to check-test-server ([e31a467](https://github.com/anthropics/anthropic-sdk-typescript/commit/e31a467163d801f1af1f25e967bdab226f5942ac)) +* **internal:** remove unnecessary getRequestClient function ([#623](https://github.com/anthropics/anthropic-sdk-typescript/issues/623)) ([e1791a0](https://github.com/anthropics/anthropic-sdk-typescript/commit/e1791a07e024416fad3655feee352257e86ca371)) +* **internal:** replace deprecated aws-sdk packages with [@smithy](https://github.com/smithy) ([#447](https://github.com/anthropics/anthropic-sdk-typescript/issues/447)) ([e21df2d](https://github.com/anthropics/anthropic-sdk-typescript/commit/e21df2df1ebb9edbbd60a5af2c1ec9c52a9bd28b)) +* **internal:** run build script over sub-packages ([c4de255](https://github.com/anthropics/anthropic-sdk-typescript/commit/c4de255fa66e4c5b3fb8f463a362bda5da7380e9)) +* **internal:** support pre-release versioning ([#270](https://github.com/anthropics/anthropic-sdk-typescript/issues/270)) ([0456d30](https://github.com/anthropics/anthropic-sdk-typescript/commit/0456d3012cbe17377d3bf843c4bfa9540805b7cc)) +* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([5e992e1](https://github.com/anthropics/anthropic-sdk-typescript/commit/5e992e1a9f75eceb948242498b6818d9af89a60e)) +* **internal:** update deps ([#296](https://github.com/anthropics/anthropic-sdk-typescript/issues/296)) ([5b58da3](https://github.com/anthropics/anthropic-sdk-typescript/commit/5b58da385c005956d68df6e1e7f823d428731b16)) +* **internal:** update examples ([#649](https://github.com/anthropics/anthropic-sdk-typescript/issues/649)) ([106ddfd](https://github.com/anthropics/anthropic-sdk-typescript/commit/106ddfdf91989b044bcc4b18d7d3f0f0ef75ecac)) +* **internal:** update generated pragma comment ([#341](https://github.com/anthropics/anthropic-sdk-typescript/issues/341)) ([9d562f3](https://github.com/anthropics/anthropic-sdk-typescript/commit/9d562f33f75d6cd2bc1056ef64b9d723aeb66912)) +* **internal:** update gitignore ([#388](https://github.com/anthropics/anthropic-sdk-typescript/issues/388)) ([5d5cc50](https://github.com/anthropics/anthropic-sdk-typescript/commit/5d5cc504ba8f0da67146bf79634a281445e67da0)) +* **internal:** update isAbsoluteURL ([#627](https://github.com/anthropics/anthropic-sdk-typescript/issues/627)) ([43f6929](https://github.com/anthropics/anthropic-sdk-typescript/commit/43f6929f1fbeb145823ecceb94a1cad221810bb5)) +* **internal:** update lock files ([#377](https://github.com/anthropics/anthropic-sdk-typescript/issues/377)) ([0029ce4](https://github.com/anthropics/anthropic-sdk-typescript/commit/0029ce4c4516e22a970d67d211d37e95519b2786)) +* **internal:** update publish npm script ([#483](https://github.com/anthropics/anthropic-sdk-typescript/issues/483)) ([404690c](https://github.com/anthropics/anthropic-sdk-typescript/commit/404690c80f7032b9d49bde1efd53a897d1d19580)) +* **internal:** update release-please config ([#269](https://github.com/anthropics/anthropic-sdk-typescript/issues/269)) ([74719fc](https://github.com/anthropics/anthropic-sdk-typescript/commit/74719fc4321aadd7c4622458623073cd3adad8e8)) +* **internal:** update resource client type ([#263](https://github.com/anthropics/anthropic-sdk-typescript/issues/263)) ([9876f1e](https://github.com/anthropics/anthropic-sdk-typescript/commit/9876f1e25c19c8171fd1da09b5c7ac7922e805bb)) +* **internal:** update spec ([#566](https://github.com/anthropics/anthropic-sdk-typescript/issues/566)) ([36fb9c1](https://github.com/anthropics/anthropic-sdk-typescript/commit/36fb9c194a4189bd42ef299f0a8f587989650608)) +* **internal:** update spec ([#630](https://github.com/anthropics/anthropic-sdk-typescript/issues/630)) ([327b611](https://github.com/anthropics/anthropic-sdk-typescript/commit/327b611ef16c516f4ac487a87995f0a5cad2e078)) +* **internal:** update spec URL ([#554](https://github.com/anthropics/anthropic-sdk-typescript/issues/554)) ([93d24c0](https://github.com/anthropics/anthropic-sdk-typescript/commit/93d24c098162f009dedcb4173755b8d7d4b8f948)) +* **internal:** update spec version ([#571](https://github.com/anthropics/anthropic-sdk-typescript/issues/571)) ([ac5d51b](https://github.com/anthropics/anthropic-sdk-typescript/commit/ac5d51b7ebfff00260d63d6a587fa759537376e9)) +* **internal:** updates ([#487](https://github.com/anthropics/anthropic-sdk-typescript/issues/487)) ([0d72653](https://github.com/anthropics/anthropic-sdk-typescript/commit/0d726537c7c66d9954ee5b6fbd26503ab8dc2e19)) +* **internal:** use @swc/jest for running tests ([#397](https://github.com/anthropics/anthropic-sdk-typescript/issues/397)) ([b73b64e](https://github.com/anthropics/anthropic-sdk-typescript/commit/b73b64e15540b3db53de310797cfd8d25c5e3911)) +* **internal:** use actions/checkout@v4 for codeflow ([#400](https://github.com/anthropics/anthropic-sdk-typescript/issues/400)) ([50e5e85](https://github.com/anthropics/anthropic-sdk-typescript/commit/50e5e8591907be39fb9420f7d132da8fd24c9b64)) +* **internal:** use reexports not destructuring ([#604](https://github.com/anthropics/anthropic-sdk-typescript/issues/604)) ([9f2d9b1](https://github.com/anthropics/anthropic-sdk-typescript/commit/9f2d9b12bed606650520c0609215716981b8ca9a)) +* **package:** fix formatting ([#283](https://github.com/anthropics/anthropic-sdk-typescript/issues/283)) ([8030ed3](https://github.com/anthropics/anthropic-sdk-typescript/commit/8030ed3e2734c8e059aa9b988f374cfab87559d1)) +* remove redundant word in comment ([#615](https://github.com/anthropics/anthropic-sdk-typescript/issues/615)) ([ff0a318](https://github.com/anthropics/anthropic-sdk-typescript/commit/ff0a318e2a163afed387f80658476a44a7a3977a)) +* remove unused build-deno condition ([#585](https://github.com/anthropics/anthropic-sdk-typescript/issues/585)) ([461e300](https://github.com/anthropics/anthropic-sdk-typescript/commit/461e300db3c1317a9c09062cafaebbdcd4345c9f)) +* respect `application/vnd.api+json` content-type header ([#286](https://github.com/anthropics/anthropic-sdk-typescript/issues/286)) ([cd2d75b](https://github.com/anthropics/anthropic-sdk-typescript/commit/cd2d75bd02b84321184f0ba9f6da98b726d37eec)) +* run tsc as part of lint script ([#513](https://github.com/anthropics/anthropic-sdk-typescript/issues/513)) ([ffe75f4](https://github.com/anthropics/anthropic-sdk-typescript/commit/ffe75f4b4395d4ab17d1a21fe94b925fefb8f5ae)) +* sync openapi version ([#481](https://github.com/anthropics/anthropic-sdk-typescript/issues/481)) ([cc9e04d](https://github.com/anthropics/anthropic-sdk-typescript/commit/cc9e04d6a24dd798922ff7d97ece006de83d7d2c)) +* sync openapi version ([#485](https://github.com/anthropics/anthropic-sdk-typescript/issues/485)) ([159011f](https://github.com/anthropics/anthropic-sdk-typescript/commit/159011fb4a596cd8fb3c331ae97a6d95d104782f)) +* sync openapi version ([#486](https://github.com/anthropics/anthropic-sdk-typescript/issues/486)) ([59a1288](https://github.com/anthropics/anthropic-sdk-typescript/commit/59a1288ad361baf67ffe626563df57e2f6cac9e8)) +* sync spec ([#470](https://github.com/anthropics/anthropic-sdk-typescript/issues/470)) ([5720534](https://github.com/anthropics/anthropic-sdk-typescript/commit/5720534c066d16cf0437e28d2e008528ce5a4bbd)) +* **tests:** add unit tests for partial-json-parser ([a96f91c](https://github.com/anthropics/anthropic-sdk-typescript/commit/a96f91cdb955cbb1ca37bc159e1b6dba1d068857)) +* **tests:** limit array example length ([#611](https://github.com/anthropics/anthropic-sdk-typescript/issues/611)) ([b0cd4a9](https://github.com/anthropics/anthropic-sdk-typescript/commit/b0cd4a9b15ad16718775c6f8a2ea706886dcff28)) +* **tests:** update prism version ([#473](https://github.com/anthropics/anthropic-sdk-typescript/issues/473)) ([869e9f0](https://github.com/anthropics/anthropic-sdk-typescript/commit/869e9f043cfd320bc15133feab431cbe608e0a56)) +* **types:** add `| undefined` to client options properties ([#656](https://github.com/anthropics/anthropic-sdk-typescript/issues/656)) ([9de3762](https://github.com/anthropics/anthropic-sdk-typescript/commit/9de37623907d99107e87e437e6094e545733df92)) +* **types:** consistent naming for text block types ([#373](https://github.com/anthropics/anthropic-sdk-typescript/issues/373)) ([b1b743f](https://github.com/anthropics/anthropic-sdk-typescript/commit/b1b743f4e633b0974b956530ccf5244227af5178)) +* **types:** fix accidental exposure of Buffer type to cloudflare ([#319](https://github.com/anthropics/anthropic-sdk-typescript/issues/319)) ([a5e8d6d](https://github.com/anthropics/anthropic-sdk-typescript/commit/a5e8d6d04cb9c8224eccd5e0e211370223cd18b1)) +* **types:** nicer error class types + jsdocs ([#626](https://github.com/anthropics/anthropic-sdk-typescript/issues/626)) ([b07be1d](https://github.com/anthropics/anthropic-sdk-typescript/commit/b07be1d05b0905a26980bc4401ee29f93b6390db)) +* update examples ([459956a](https://github.com/anthropics/anthropic-sdk-typescript/commit/459956ac44b5a2fd1dd0d0828e0281875b5900e9)) + + +### Documentation + +* add a CONTRIBUTING.md ([#280](https://github.com/anthropics/anthropic-sdk-typescript/issues/280)) ([eb48958](https://github.com/anthropics/anthropic-sdk-typescript/commit/eb48958298ccac4da6e5a9a875d4196fe471412b)) +* **bedrock:** fix dead link ([#356](https://github.com/anthropics/anthropic-sdk-typescript/issues/356)) ([131ba63](https://github.com/anthropics/anthropic-sdk-typescript/commit/131ba632f2a29e51842430cbdaae65b2002a7926)) +* **contributing:** improve wording ([#299](https://github.com/anthropics/anthropic-sdk-typescript/issues/299)) ([623e4f6](https://github.com/anthropics/anthropic-sdk-typescript/commit/623e4f615541650ed08f1bdeb21c90b2ec23891e)) +* deprecate old access token getter ([#322](https://github.com/anthropics/anthropic-sdk-typescript/issues/322)) ([25aa977](https://github.com/anthropics/anthropic-sdk-typescript/commit/25aa977c83820babbaf18a7061b8a55fbbfe69c3)) +* fix missing async in readme code sample ([#255](https://github.com/anthropics/anthropic-sdk-typescript/issues/255)) ([6713fd7](https://github.com/anthropics/anthropic-sdk-typescript/commit/6713fd7b09836bceb05c05d75e43d59eee965163)) +* fix typo in CONTRIBUTING.md ([#340](https://github.com/anthropics/anthropic-sdk-typescript/issues/340)) ([5ce4159](https://github.com/anthropics/anthropic-sdk-typescript/commit/5ce41591dd1f96ad071ff9ea2ed675f89b68bef2)) +* **helpers:** mention inputJson event ([e991c62](https://github.com/anthropics/anthropic-sdk-typescript/commit/e991c62750c9d85c3902bb9889bf3f8aea6cd036)) +* improve and reference contributing documentation ([#539](https://github.com/anthropics/anthropic-sdk-typescript/issues/539)) ([556d460](https://github.com/anthropics/anthropic-sdk-typescript/commit/556d460606c2efebcf2d75c1a41841d2711b5631)) +* minor formatting changes ([#641](https://github.com/anthropics/anthropic-sdk-typescript/issues/641)) ([449b203](https://github.com/anthropics/anthropic-sdk-typescript/commit/449b203b0bbddcf9218d9b76379c9c9830393104)) +* **readme:** add alpha callout ([#646](https://github.com/anthropics/anthropic-sdk-typescript/issues/646)) ([d1fc383](https://github.com/anthropics/anthropic-sdk-typescript/commit/d1fc383a285a832dccf6d84d78b044d57003b112)) +* **readme:** add bundle size badge ([#426](https://github.com/anthropics/anthropic-sdk-typescript/issues/426)) ([d2b6aef](https://github.com/anthropics/anthropic-sdk-typescript/commit/d2b6aef52142cb917e0ea146a1a6e2aefc0b4d7e)) +* **readme:** change undocumented params wording ([#363](https://github.com/anthropics/anthropic-sdk-typescript/issues/363)) ([3cd5957](https://github.com/anthropics/anthropic-sdk-typescript/commit/3cd5957e98f5eb95e2cd23585790f4be75b9f1aa)) +* **readme:** consistent use of sentence case in headings ([#347](https://github.com/anthropics/anthropic-sdk-typescript/issues/347)) ([9aaaa76](https://github.com/anthropics/anthropic-sdk-typescript/commit/9aaaa76a41b759b24542ee7695072926cb522b0e)) +* **readme:** document how to make undocumented requests ([#349](https://github.com/anthropics/anthropic-sdk-typescript/issues/349)) ([95647ce](https://github.com/anthropics/anthropic-sdk-typescript/commit/95647cea215f374bb473be94255591b64bfde991)) +* **readme:** fix header for streaming helpers ([#293](https://github.com/anthropics/anthropic-sdk-typescript/issues/293)) ([a3a0c57](https://github.com/anthropics/anthropic-sdk-typescript/commit/a3a0c5703edc093786e8144ada28925191df35c5)) +* **readme:** fix https proxy example ([#310](https://github.com/anthropics/anthropic-sdk-typescript/issues/310)) ([165f1d8](https://github.com/anthropics/anthropic-sdk-typescript/commit/165f1d8c6e3fdff0c165f4341e1fc7527b4fb310)) +* **readme:** fix https proxy example ([#311](https://github.com/anthropics/anthropic-sdk-typescript/issues/311)) ([2161c86](https://github.com/anthropics/anthropic-sdk-typescript/commit/2161c86e20b1da1d9c2ec33cc60da6e743e9ee9f)) +* **readme:** fix misplaced period ([#650](https://github.com/anthropics/anthropic-sdk-typescript/issues/650)) ([32ea63f](https://github.com/anthropics/anthropic-sdk-typescript/commit/32ea63f070436adac9e124b848615b3dfb789c7f)) +* **readme:** fix Request IDs example ([#659](https://github.com/anthropics/anthropic-sdk-typescript/issues/659)) ([7a68f81](https://github.com/anthropics/anthropic-sdk-typescript/commit/7a68f81148040b9defa52fe1dc88d2ffeafd791e)) +* **readme:** fix typo in custom fetch implementation ([#300](https://github.com/anthropics/anthropic-sdk-typescript/issues/300)) ([d55c320](https://github.com/anthropics/anthropic-sdk-typescript/commit/d55c320ce8684d7ffde6194b76232703806c6b3a)) +* **readme:** improve api reference ([#254](https://github.com/anthropics/anthropic-sdk-typescript/issues/254)) ([618b85b](https://github.com/anthropics/anthropic-sdk-typescript/commit/618b85b1a43ecd4b89671880a45ee7868cee101a)) +* **readme:** mention tool use ([#375](https://github.com/anthropics/anthropic-sdk-typescript/issues/375)) ([c08bdd4](https://github.com/anthropics/anthropic-sdk-typescript/commit/c08bdd4b91078ef9d18191771fbd300edb599fe7)) +* **readme:** minor typo fixes ([#577](https://github.com/anthropics/anthropic-sdk-typescript/issues/577)) ([a143beb](https://github.com/anthropics/anthropic-sdk-typescript/commit/a143beb2b4f6204b573511bae88d1ecae4526593)) +* **readme:** reference bedrock sdk ([#309](https://github.com/anthropics/anthropic-sdk-typescript/issues/309)) ([c94dea7](https://github.com/anthropics/anthropic-sdk-typescript/commit/c94dea791588ca1f2da4053f25f37f8984d2e47c)) +* **readme:** update formatting and clarity for CORS flag ([54421d7](https://github.com/anthropics/anthropic-sdk-typescript/commit/54421d79ab87a818a77a49903bc4249f5b422b4e)) +* remove extraneous --save and yarn install instructions ([#323](https://github.com/anthropics/anthropic-sdk-typescript/issues/323)) ([57f8656](https://github.com/anthropics/anthropic-sdk-typescript/commit/57f8656d9b61c334e2f1ac7ff7cce118bc4bf46d)) +* remove suggestion to use `npm` call out ([#614](https://github.com/anthropics/anthropic-sdk-typescript/issues/614)) ([5349c08](https://github.com/anthropics/anthropic-sdk-typescript/commit/5349c08e0fe1935cf343833124a59f44932a1df0)) +* update CONTRIBUTING.md ([#528](https://github.com/anthropics/anthropic-sdk-typescript/issues/528)) ([b2f7f82](https://github.com/anthropics/anthropic-sdk-typescript/commit/b2f7f82e2d1150605a5abb50a8521f7339149d2f)) +* update models in vertex examples ([#331](https://github.com/anthropics/anthropic-sdk-typescript/issues/331)) ([0e1b5c0](https://github.com/anthropics/anthropic-sdk-typescript/commit/0e1b5c0f79f02dd12a69778609b0857bd47dadcd)) +* use latest sonnet in example snippets ([#625](https://github.com/anthropics/anthropic-sdk-typescript/issues/625)) ([a965791](https://github.com/anthropics/anthropic-sdk-typescript/commit/a9657918aaf1246609105cbafaf4bb043b146356)) + + +### Refactors + +* **api:** mark completions API as legacy ([#291](https://github.com/anthropics/anthropic-sdk-typescript/issues/291)) ([eb210e2](https://github.com/anthropics/anthropic-sdk-typescript/commit/eb210e23b7b21951706c92a3536ba2de3b4c0b00)) +* enable isolatedModules and change imports ([#573](https://github.com/anthropics/anthropic-sdk-typescript/issues/573)) ([20864db](https://github.com/anthropics/anthropic-sdk-typescript/commit/20864db22ece0b4d3d50a08b5037f7b3b1b4ffb5)) +* extract model out to a named type and rename partialjson ([#477](https://github.com/anthropics/anthropic-sdk-typescript/issues/477)) ([e64cd50](https://github.com/anthropics/anthropic-sdk-typescript/commit/e64cd505d3d645144c3e9ff79cc4086f1f6ddf8e)) +* **types:** improve metadata types ([#546](https://github.com/anthropics/anthropic-sdk-typescript/issues/546)) ([d1be006](https://github.com/anthropics/anthropic-sdk-typescript/commit/d1be0067c63118916f9d026596139d779dd0b2ff)) +* **types:** improve tool type names ([#543](https://github.com/anthropics/anthropic-sdk-typescript/issues/543)) ([0c26a5b](https://github.com/anthropics/anthropic-sdk-typescript/commit/0c26a5b1197c9661ea902dfaa4353976b8d73e15)) +* **types:** improve tool type names ([#544](https://github.com/anthropics/anthropic-sdk-typescript/issues/544)) ([e21e129](https://github.com/anthropics/anthropic-sdk-typescript/commit/e21e129db71dba474e2277be966a22b2d25afc8d)) +* use type imports for type-only imports ([#580](https://github.com/anthropics/anthropic-sdk-typescript/issues/580)) ([029e485](https://github.com/anthropics/anthropic-sdk-typescript/commit/029e485d74f09582484de149825b93f46096878e)) + + +### Build System + +* configure UTF-8 locale in devcontainer ([#393](https://github.com/anthropics/anthropic-sdk-typescript/issues/393)) ([6aeb955](https://github.com/anthropics/anthropic-sdk-typescript/commit/6aeb955cd6bbd553ec0d9ae703f0c199c5470ac8)) + ## 0.35.0 (2025-01-21) Full Changelog: [sdk-v0.34.0...sdk-v0.35.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.34.0...sdk-v0.35.0) diff --git a/package.json b/package.json index aa23123e..634d1a3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@anthropic-ai/sdk", - "version": "0.35.0", + "version": "0.36.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 12fec54c..5bbdf709 100644 --- a/packages/bedrock-sdk/CHANGELOG.md +++ b/packages/bedrock-sdk/CHANGELOG.md @@ -1,5 +1,47 @@ # Changelog +## 0.13.0 (2025-01-21) + +Full Changelog: [bedrock-sdk-v0.12.2...bedrock-sdk-v0.13.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/bedrock-sdk-v0.12.2...bedrock-sdk-v0.13.0) + +### Features + +* **bedrock:** add beta.messages.create() method ([faf8484](https://github.com/anthropics/anthropic-sdk-typescript/commit/faf84848e42ec02994003283bf6178aa55233531)) +* **bedrock:** add messages API ([#305](https://github.com/anthropics/anthropic-sdk-typescript/issues/305)) ([072a5ed](https://github.com/anthropics/anthropic-sdk-typescript/commit/072a5ed642cbbdeee45532359d1ee5baea0b78fd)) +* **bedrock:** support tools ([2aeff91](https://github.com/anthropics/anthropic-sdk-typescript/commit/2aeff9187f3ebfa010c95715814a7e34f85ac6dd)) +* **messages:** add support for image inputs ([#303](https://github.com/anthropics/anthropic-sdk-typescript/issues/303)) ([1b87d9e](https://github.com/anthropics/anthropic-sdk-typescript/commit/1b87d9ea141defa81fa31ee47673b47e19cc8cb1)) + + +### Bug Fixes + +* **bedrock:** correct messages beta handling ([f34d67a](https://github.com/anthropics/anthropic-sdk-typescript/commit/f34d67abca1270f04f9bbf6ce430ce67b36d4932)) +* **bedrock:** don't mutate request body inputs ([4523ca9](https://github.com/anthropics/anthropic-sdk-typescript/commit/4523ca92b0fa194c2de0ac8bbc7e66873ec5e817)) +* **types:** correctly mark type as a required property in requests ([#371](https://github.com/anthropics/anthropic-sdk-typescript/issues/371)) ([06fc0f7](https://github.com/anthropics/anthropic-sdk-typescript/commit/06fc0f74f7769628f4001b9b739c463cd84e7e6f)) + + +### Chores + +* **bedrock,vertex:** remove unsupported countTokens method ([#597](https://github.com/anthropics/anthropic-sdk-typescript/issues/597)) ([6f6db16](https://github.com/anthropics/anthropic-sdk-typescript/commit/6f6db164d2526c2fb272151f4d68140da27ce1ea)) +* **bedrock:** move bedrock SDK to the main repo ([#274](https://github.com/anthropics/anthropic-sdk-typescript/issues/274)) ([1a565fe](https://github.com/anthropics/anthropic-sdk-typescript/commit/1a565feddd19c3dbe62f087fc9f13520bb69fc0e)) +* **bedrock:** remove unsupported methods ([8bb04ed](https://github.com/anthropics/anthropic-sdk-typescript/commit/8bb04ed2370c894b080d56d37e960ad4c3dc5925)) +* **bedrock:** use `chunk` for internal SSE parsing instead of `completion` ([#472](https://github.com/anthropics/anthropic-sdk-typescript/issues/472)) ([9515f60](https://github.com/anthropics/anthropic-sdk-typescript/commit/9515f6035e8b79a5335286c8cc1591d83ee51216)) +* **deps:** remove unused dependency digest-fetch ([#368](https://github.com/anthropics/anthropic-sdk-typescript/issues/368)) ([62790cb](https://github.com/anthropics/anthropic-sdk-typescript/commit/62790cb93abd27d63c2d6678159803972dc20606)) +* **docs:** rename anthropic const to client ([#471](https://github.com/anthropics/anthropic-sdk-typescript/issues/471)) ([8274f4b](https://github.com/anthropics/anthropic-sdk-typescript/commit/8274f4bbace5afa5956c1788bb244bd57c7f5c0f)) +* **internal:** fix generated version numbers ([#413](https://github.com/anthropics/anthropic-sdk-typescript/issues/413)) ([471430d](https://github.com/anthropics/anthropic-sdk-typescript/commit/471430dc1bfc7317b737bf778bda45aa591b087e)) +* **internal:** refactor scripts ([#404](https://github.com/anthropics/anthropic-sdk-typescript/issues/404)) ([60d1d00](https://github.com/anthropics/anthropic-sdk-typescript/commit/60d1d0035cb066a244f36f384f9d2f828d7c8de6)) +* **internal:** remove old reference to check-test-server ([e31a467](https://github.com/anthropics/anthropic-sdk-typescript/commit/e31a467163d801f1af1f25e967bdab226f5942ac)) +* **internal:** replace deprecated aws-sdk packages with [@smithy](https://github.com/smithy) ([#447](https://github.com/anthropics/anthropic-sdk-typescript/issues/447)) ([e21df2d](https://github.com/anthropics/anthropic-sdk-typescript/commit/e21df2df1ebb9edbbd60a5af2c1ec9c52a9bd28b)) +* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([5e992e1](https://github.com/anthropics/anthropic-sdk-typescript/commit/5e992e1a9f75eceb948242498b6818d9af89a60e)) +* **internal:** update lock files ([#377](https://github.com/anthropics/anthropic-sdk-typescript/issues/377)) ([0029ce4](https://github.com/anthropics/anthropic-sdk-typescript/commit/0029ce4c4516e22a970d67d211d37e95519b2786)) + + +### Documentation + +* **bedrock:** fix dead link ([#356](https://github.com/anthropics/anthropic-sdk-typescript/issues/356)) ([131ba63](https://github.com/anthropics/anthropic-sdk-typescript/commit/131ba632f2a29e51842430cbdaae65b2002a7926)) +* **readme:** mention tool use ([#375](https://github.com/anthropics/anthropic-sdk-typescript/issues/375)) ([c08bdd4](https://github.com/anthropics/anthropic-sdk-typescript/commit/c08bdd4b91078ef9d18191771fbd300edb599fe7)) +* remove extraneous --save and yarn install instructions ([#323](https://github.com/anthropics/anthropic-sdk-typescript/issues/323)) ([57f8656](https://github.com/anthropics/anthropic-sdk-typescript/commit/57f8656d9b61c334e2f1ac7ff7cce118bc4bf46d)) +* use latest sonnet in example snippets ([#625](https://github.com/anthropics/anthropic-sdk-typescript/issues/625)) ([a965791](https://github.com/anthropics/anthropic-sdk-typescript/commit/a9657918aaf1246609105cbafaf4bb043b146356)) + ## 0.12.2 (2025-01-21) Full Changelog: [bedrock-sdk-v0.12.1...bedrock-sdk-v0.12.2](https://github.com/anthropics/anthropic-sdk-typescript/compare/bedrock-sdk-v0.12.1...bedrock-sdk-v0.12.2) diff --git a/packages/bedrock-sdk/package.json b/packages/bedrock-sdk/package.json index 8e7a906d..3570920a 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.2", + "version": "0.13.0", "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 a7b69551..ad10daa0 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.35.0" + version "0.36.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 e01d1d71..e7a59b2b 100644 --- a/packages/vertex-sdk/CHANGELOG.md +++ b/packages/vertex-sdk/CHANGELOG.md @@ -1,5 +1,54 @@ # Changelog +## 0.7.0 (2025-01-21) + +Full Changelog: [vertex-sdk-v0.6.3...vertex-sdk-v0.7.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/vertex-sdk-v0.6.3...vertex-sdk-v0.7.0) + +### ⚠ BREAKING CHANGES + +* **api:** messages is generally available ([#287](https://github.com/anthropics/anthropic-sdk-typescript/issues/287)) + +### Features + +* **api:** messages is generally available ([#287](https://github.com/anthropics/anthropic-sdk-typescript/issues/287)) ([57b7135](https://github.com/anthropics/anthropic-sdk-typescript/commit/57b713508614e9d125c22d64c4c5fabaa7c75ad8)) +* **vertex:** add beta.messages.create() ([08a8928](https://github.com/anthropics/anthropic-sdk-typescript/commit/08a8928fb1fa701f4330720ea2e9d4db81b6b17a)) +* **vertex:** add support for google vertex ([#265](https://github.com/anthropics/anthropic-sdk-typescript/issues/265)) ([96f9b55](https://github.com/anthropics/anthropic-sdk-typescript/commit/96f9b55feb9059184a2a1c0ec52c5f8dad862a32)) +* **vertex:** add support for overriding google auth ([#338](https://github.com/anthropics/anthropic-sdk-typescript/issues/338)) ([f268237](https://github.com/anthropics/anthropic-sdk-typescript/commit/f26823762219f78dce487165331312612c4399b9)) +* **vertex:** api is no longer in private beta ([#344](https://github.com/anthropics/anthropic-sdk-typescript/issues/344)) ([a151de7](https://github.com/anthropics/anthropic-sdk-typescript/commit/a151de7a9416b899a4eb22b21978f2b03f087396)) +* **vertex:** support token counting ([a4a3729](https://github.com/anthropics/anthropic-sdk-typescript/commit/a4a372947b250e195f5c45ffd928a2d966b23f0d)) +* **vertex:** support tools ([d9e9e3c](https://github.com/anthropics/anthropic-sdk-typescript/commit/d9e9e3c789d9a90c247bdade764d60e9fd8a8add)) + + +### Bug Fixes + +* **types:** correctly mark type as a required property in requests ([#371](https://github.com/anthropics/anthropic-sdk-typescript/issues/371)) ([06fc0f7](https://github.com/anthropics/anthropic-sdk-typescript/commit/06fc0f74f7769628f4001b9b739c463cd84e7e6f)) +* **vertex:** add beta.messages.countTokens method ([2cbeabc](https://github.com/anthropics/anthropic-sdk-typescript/commit/2cbeabc6f0175297c98b5d706a0038d793150e8e)) +* **vertex:** correct core client dependency constraint ([#384](https://github.com/anthropics/anthropic-sdk-typescript/issues/384)) ([10b9334](https://github.com/anthropics/anthropic-sdk-typescript/commit/10b93342c4b18a43797f078b66164fa31314334b)) +* **vertex:** correct messages beta handling ([a41193d](https://github.com/anthropics/anthropic-sdk-typescript/commit/a41193d112f47faaae88872e8764b631dbad1941)) +* **vertex:** don't mutate request body inputs ([2709c1f](https://github.com/anthropics/anthropic-sdk-typescript/commit/2709c1fb255282321fab296e709651a79017fe37)) +* **vertex:** remove `anthropic_version` deletion for token counting ([beefeb7](https://github.com/anthropics/anthropic-sdk-typescript/commit/beefeb74060196c564de14ddb6a39734f7b0352e)) + + +### Chores + +* **bedrock,vertex:** remove unsupported countTokens method ([#597](https://github.com/anthropics/anthropic-sdk-typescript/issues/597)) ([6f6db16](https://github.com/anthropics/anthropic-sdk-typescript/commit/6f6db164d2526c2fb272151f4d68140da27ce1ea)) +* **deps:** remove unused dependency digest-fetch ([#368](https://github.com/anthropics/anthropic-sdk-typescript/issues/368)) ([62790cb](https://github.com/anthropics/anthropic-sdk-typescript/commit/62790cb93abd27d63c2d6678159803972dc20606)) +* **internal:** don't re-export streaming type ([#267](https://github.com/anthropics/anthropic-sdk-typescript/issues/267)) ([a5b0ab1](https://github.com/anthropics/anthropic-sdk-typescript/commit/a5b0ab18f4959e8cd28c7aab07509a3431180ab2)) +* **internal:** fix generated version numbers ([#413](https://github.com/anthropics/anthropic-sdk-typescript/issues/413)) ([471430d](https://github.com/anthropics/anthropic-sdk-typescript/commit/471430dc1bfc7317b737bf778bda45aa591b087e)) +* **internal:** refactor scripts ([#404](https://github.com/anthropics/anthropic-sdk-typescript/issues/404)) ([60d1d00](https://github.com/anthropics/anthropic-sdk-typescript/commit/60d1d0035cb066a244f36f384f9d2f828d7c8de6)) +* **internal:** remove old reference to check-test-server ([e31a467](https://github.com/anthropics/anthropic-sdk-typescript/commit/e31a467163d801f1af1f25e967bdab226f5942ac)) +* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([5e992e1](https://github.com/anthropics/anthropic-sdk-typescript/commit/5e992e1a9f75eceb948242498b6818d9af89a60e)) +* **internal:** update lock files ([#377](https://github.com/anthropics/anthropic-sdk-typescript/issues/377)) ([0029ce4](https://github.com/anthropics/anthropic-sdk-typescript/commit/0029ce4c4516e22a970d67d211d37e95519b2786)) +* **internal:** update release-please config ([#269](https://github.com/anthropics/anthropic-sdk-typescript/issues/269)) ([74719fc](https://github.com/anthropics/anthropic-sdk-typescript/commit/74719fc4321aadd7c4622458623073cd3adad8e8)) + + +### Documentation + +* **readme:** mention tool use ([#375](https://github.com/anthropics/anthropic-sdk-typescript/issues/375)) ([c08bdd4](https://github.com/anthropics/anthropic-sdk-typescript/commit/c08bdd4b91078ef9d18191771fbd300edb599fe7)) +* remove extraneous --save and yarn install instructions ([#323](https://github.com/anthropics/anthropic-sdk-typescript/issues/323)) ([57f8656](https://github.com/anthropics/anthropic-sdk-typescript/commit/57f8656d9b61c334e2f1ac7ff7cce118bc4bf46d)) +* update models in vertex examples ([#331](https://github.com/anthropics/anthropic-sdk-typescript/issues/331)) ([0e1b5c0](https://github.com/anthropics/anthropic-sdk-typescript/commit/0e1b5c0f79f02dd12a69778609b0857bd47dadcd)) +* use latest sonnet in example snippets ([#625](https://github.com/anthropics/anthropic-sdk-typescript/issues/625)) ([a965791](https://github.com/anthropics/anthropic-sdk-typescript/commit/a9657918aaf1246609105cbafaf4bb043b146356)) + ## 0.6.3 (2025-01-21) Full Changelog: [vertex-sdk-v0.6.2...vertex-sdk-v0.6.3](https://github.com/anthropics/anthropic-sdk-typescript/compare/vertex-sdk-v0.6.2...vertex-sdk-v0.6.3) diff --git a/packages/vertex-sdk/package.json b/packages/vertex-sdk/package.json index ae4cf6f9..2315bba3 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.3", + "version": "0.7.0", "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 c3324b37..98c3e9c2 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.35.0" + version "0.36.0" # x-release-please-end-version dependencies: "@types/node" "^18.11.18" diff --git a/src/version.ts b/src/version.ts index 3f1d4329..018dddd7 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.35.0'; // x-release-please-version +export const VERSION = '0.36.0'; // x-release-please-version