UNPKG

@anthropic-ai/sdk

Version:

The official TypeScript library for the Anthropic API

764 lines (431 loc) 165 kB
# Changelog ## 0.81.0 (2026-03-31) Full Changelog: [sdk-v0.80.0...sdk-v0.81.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.80.0...sdk-v0.81.0) ### Features * add .type field to APIError for error kind identification ([#790](https://github.com/anthropics/anthropic-sdk-typescript/issues/790)) ([4bf637d](https://github.com/anthropics/anthropic-sdk-typescript/commit/4bf637d962c2203ca7977d4e5447e2b083e29188)) ### Bug Fixes * **memory:** append path separator in validatePath prefix check ([0ac69b3](https://github.com/anthropics/anthropic-sdk-typescript/commit/0ac69b3438ee9c96b21a7d3c39c07b7cdb6995d9)) ### Chores * **ci:** run builds on CI even if only spec metadata changed ([70b657a](https://github.com/anthropics/anthropic-sdk-typescript/commit/70b657aac1be76e941885dfe9d683c45a57ad005)) * **ci:** skip lint on metadata-only changes ([69bdc94](https://github.com/anthropics/anthropic-sdk-typescript/commit/69bdc94a16e5402b8fd19d54a1f4695cba834dbb)) * **internal:** codegen related update ([7ff7390](https://github.com/anthropics/anthropic-sdk-typescript/commit/7ff7390029867195adf78e6dbfaa43d8bb0a9720)) * **internal:** update gitignore ([46d6667](https://github.com/anthropics/anthropic-sdk-typescript/commit/46d66675d59da125c0a00cc8feb6a13bc6105637)) * **internal:** update multipart form array serialization ([d55b07d](https://github.com/anthropics/anthropic-sdk-typescript/commit/d55b07d4f791763738fd54a032cd421b6d16d151)) * **tests:** bump steady to v0.19.4 ([4957a5e](https://github.com/anthropics/anthropic-sdk-typescript/commit/4957a5e65bdc77528f81c123ec2865784c064055)) * **tests:** bump steady to v0.19.5 ([c511ae0](https://github.com/anthropics/anthropic-sdk-typescript/commit/c511ae042129805400c5286a02d3c45f49e51ca6)) * **tests:** bump steady to v0.19.6 ([6d2b4b9](https://github.com/anthropics/anthropic-sdk-typescript/commit/6d2b4b910a687c2cf73bb51450ce24c704fdc384)) * **tests:** bump steady to v0.19.7 ([d6cff9d](https://github.com/anthropics/anthropic-sdk-typescript/commit/d6cff9d2c8688fb95dc6af0f89ae33480f9758e0)) * **tests:** bump steady to v0.20.1 ([284561f](https://github.com/anthropics/anthropic-sdk-typescript/commit/284561fe36b244f5b6ab624ec2608c07f71f476e)) ## 0.80.0 (2026-03-18) Full Changelog: [sdk-v0.79.0...sdk-v0.80.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.79.0...sdk-v0.80.0) ### Features * **api:** manual updates ([dd12f1a](https://github.com/anthropics/anthropic-sdk-typescript/commit/dd12f1a29c4a8f4554caa8c7023bddadfb69e9b0)) * **api:** manual updates ([9c0a077](https://github.com/anthropics/anthropic-sdk-typescript/commit/9c0a0778d73ffe2f84cf4a3d593f8f645d776b02)) ### Chores * **internal:** tweak CI branches ([4a5819e](https://github.com/anthropics/anthropic-sdk-typescript/commit/4a5819e9e820a926add4df134a6a4d6d0e65c196)) ## 0.79.0 (2026-03-16) Full Changelog: [sdk-v0.78.0...sdk-v0.79.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.78.0...sdk-v0.79.0) ### Features * add support for filesystem memory tools ([#599](https://github.com/anthropics/anthropic-sdk-typescript/issues/599)) ([1064199](https://github.com/anthropics/anthropic-sdk-typescript/commit/106419918ec0098cd74df5541dd7fd9134268f6e)) * **api:** chore(config): clean up model enum list ([#31](https://github.com/anthropics/anthropic-sdk-typescript/issues/31)) ([07727a6](https://github.com/anthropics/anthropic-sdk-typescript/commit/07727a63c4d3685a20de3067a563396b2d2adbb2)) * **api:** GA thinking-display-setting ([4dc8df4](https://github.com/anthropics/anthropic-sdk-typescript/commit/4dc8df4b7d098b7e748ca952ac18e5e22264a4c8)) * **tests:** update mock server ([e5c3be9](https://github.com/anthropics/anthropic-sdk-typescript/commit/e5c3be981177874b4f9ab5d1a56e4c8cfb7a6744)) ### Bug Fixes * **docs/contributing:** correct pnpm link command ([16bf66c](https://github.com/anthropics/anthropic-sdk-typescript/commit/16bf66c4ab9334f2f817f29e8834ff82f1689e9e)) * **internal:** skip tests that depend on mock server ([07417e5](https://github.com/anthropics/anthropic-sdk-typescript/commit/07417e521b35b01670cb0334aa3f23e77ba38cbc)) * **zod:** use v4 import path for Zod ^3.25 compatibility ([#925](https://github.com/anthropics/anthropic-sdk-typescript/issues/925)) ([c6c0ac8](https://github.com/anthropics/anthropic-sdk-typescript/commit/c6c0ac8a3091ad83890fb6813e4a0ee2a6e45bba)) ### Chores * **client:** remove unused import ([3827ab5](https://github.com/anthropics/anthropic-sdk-typescript/commit/3827ab5d56d37b659cfa7b25f16a42f41ad99b29)) * **internal:** codegen related update ([2c1fc10](https://github.com/anthropics/anthropic-sdk-typescript/commit/2c1fc106f8c83a13bda1a7f755e53120b3c3919d)) * **internal:** improve import alias names ([5b9615b](https://github.com/anthropics/anthropic-sdk-typescript/commit/5b9615b51007cc0bb9cea9de9dc5f2acc9fa77e8)) * **internal:** move stringifyQuery implementation to internal function ([16239f3](https://github.com/anthropics/anthropic-sdk-typescript/commit/16239f3bd4efddaf01a35a182014131e983ee738)) * **internal:** update dependencies to address dependabot vulnerabilities ([6fdea5e](https://github.com/anthropics/anthropic-sdk-typescript/commit/6fdea5ebdf767da93bff7e55a7035772610ba287)) * **mcp-server:** improve instructions ([66e5363](https://github.com/anthropics/anthropic-sdk-typescript/commit/66e5363c114c2c5950a4a1674c1264c30619bc43)) * remove accidentally committed file ([#929](https://github.com/anthropics/anthropic-sdk-typescript/issues/929)) ([0989113](https://github.com/anthropics/anthropic-sdk-typescript/commit/0989113a5a34fbf85a2a0f87b5ab78ea7d297fd4)) * **tests:** unskip tests that are now supported in steady ([616a98a](https://github.com/anthropics/anthropic-sdk-typescript/commit/616a98a2363b3c77ebd4bc54eaae1b9003d323f9)) ### Documentation * streamline and standardize docs ([#687](https://github.com/anthropics/anthropic-sdk-typescript/issues/687)) ([dbdc5d3](https://github.com/anthropics/anthropic-sdk-typescript/commit/dbdc5d3c8246732c9b477a1503618243e13e9bd6)) ## 0.78.0 (2026-02-19) Full Changelog: [sdk-v0.77.0...sdk-v0.78.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.77.0...sdk-v0.78.0) ### Features * **api:** Add top-level cache control (automatic caching) ([1e2f83d](https://github.com/anthropics/anthropic-sdk-typescript/commit/1e2f83d0bb2c3e98302d1b17fcb4888b17889f6d)) ### Bug Fixes * **bedrock:** eliminate race condition in AWS credential resolution ([#901](https://github.com/anthropics/anthropic-sdk-typescript/issues/901)) ([e5a101d](https://github.com/anthropics/anthropic-sdk-typescript/commit/e5a101d060cdce65872ec787e792c94799dcc295)) * **client:** format batches test file ([821e9bf](https://github.com/anthropics/anthropic-sdk-typescript/commit/821e9bf13db32c8b632352292948f64a057a9d55)) * **tests:** fix issue in batches test ([5f4ccf8](https://github.com/anthropics/anthropic-sdk-typescript/commit/5f4ccf8779e69226a5c9307e3422f6779e8fda6b)) ### Chores * update mock server docs ([25d337f](https://github.com/anthropics/anthropic-sdk-typescript/commit/25d337f484b9236b03e26e1f4c67b1a2d96c6c23)) ## 0.77.0 (2026-02-18) Full Changelog: [sdk-v0.76.0...sdk-v0.77.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.76.0...sdk-v0.77.0) ### Features * **api:** fix shared UserLocation and error code types ([c84038f](https://github.com/anthropics/anthropic-sdk-typescript/commit/c84038f4eddafc2c5415ab4eaef40326b7af376c)) ### Bug Fixes * add backward-compat namespace re-exports for UserLocation ([#706](https://github.com/anthropics/anthropic-sdk-typescript/issues/706)) ([b88834f](https://github.com/anthropics/anthropic-sdk-typescript/commit/b88834fc82bb9d1ae0cf16bd264d5ef4d1edbcff)) ## 0.76.0 (2026-02-18) Full Changelog: [sdk-v0.75.0...sdk-v0.76.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.75.0...sdk-v0.76.0) ### Features * **api:** manual updates ([25fe41c](https://github.com/anthropics/anthropic-sdk-typescript/commit/25fe41cdf61a1d8c0a5700955bf3c00f28900339)) ## 0.75.0 (2026-02-17) Full Changelog: [sdk-v0.74.0...sdk-v0.75.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.74.0...sdk-v0.75.0) ### Features * **api:** Releasing claude-sonnet-4-6 ([d75e1c0](https://github.com/anthropics/anthropic-sdk-typescript/commit/d75e1c07bf8c1082610c6493eaa2864a9c042ae8)) ### Bug Fixes * **api:** fix spec errors ([aa99e46](https://github.com/anthropics/anthropic-sdk-typescript/commit/aa99e46bbb1d7d8bbc79a1fd974091bc87d75688)) * **tests:** fix erroneous speed tests ([#699](https://github.com/anthropics/anthropic-sdk-typescript/issues/699)) ([fcac1ca](https://github.com/anthropics/anthropic-sdk-typescript/commit/fcac1ca6d25051073e4e13470730fbb1872926e7)) ### Chores * **internal/client:** fix form-urlencoded requests ([cba82b4](https://github.com/anthropics/anthropic-sdk-typescript/commit/cba82b422f5f6d64d127b367ec247bb4953f75ef)) * **internal:** avoid type checking errors with ts-reset ([c723296](https://github.com/anthropics/anthropic-sdk-typescript/commit/c723296478726adece8fbc72d2b0bf434e83eee8)) * **readme:** change badge color to blue ([3f7e788](https://github.com/anthropics/anthropic-sdk-typescript/commit/3f7e7881ce851049fb1aa208d52eaa3796b6b6e1)) ## 0.74.0 (2026-02-07) Full Changelog: [sdk-v0.73.0...sdk-v0.74.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.73.0...sdk-v0.74.0) ### Features * **api:** enabling fast-mode in claude-opus-4-6 ([e337981](https://github.com/anthropics/anthropic-sdk-typescript/commit/e337981a7b7dad1dc3d836b1dcfbc7c61e5e13eb)) ## 0.73.0 (2026-02-05) Full Changelog: [sdk-v0.72.1...sdk-v0.73.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.72.1...sdk-v0.73.0) ### Features * **api:** Release Claude Opus 4.6, adaptive thinking, and other features ([f741f92](https://github.com/anthropics/anthropic-sdk-typescript/commit/f741f921d10e020d3c67c7a3f8442f0c4adf229d)) ### Bug Fixes * **client:** avoid memory leak in abort signal listener ([#895](https://github.com/anthropics/anthropic-sdk-typescript/issues/895)) ([3bdd153](https://github.com/anthropics/anthropic-sdk-typescript/commit/3bdd153c43280adf233a2d7d7d9bb55cd5ad4c26)) * **client:** avoid memory leak with abort signals ([53e47df](https://github.com/anthropics/anthropic-sdk-typescript/commit/53e47dfa6985e6a206c475b8c920b8a97c27e17e)) * **client:** avoid removing abort listener too early ([cd6e832](https://github.com/anthropics/anthropic-sdk-typescript/commit/cd6e83255a2e5644872902ee878c9aba881976cb)) ### Chores * **client:** do not parse responses with empty content-length ([2be2df9](https://github.com/anthropics/anthropic-sdk-typescript/commit/2be2df928d1564286cddc9765fd9959f9649d314)) * **client:** restructure abort controller binding ([0eeacb6](https://github.com/anthropics/anthropic-sdk-typescript/commit/0eeacb6c310d961e09ac3d00b4b2e50957b31e2f)) * **internal:** fix pagination internals not accepting option promises ([7c23a3f](https://github.com/anthropics/anthropic-sdk-typescript/commit/7c23a3f93d039116845b045ede8863ffbafbad85)) * remove claude-code-review workflow ([#644](https://github.com/anthropics/anthropic-sdk-typescript/issues/644)) ([ad09c76](https://github.com/anthropics/anthropic-sdk-typescript/commit/ad09c76b0d323c0a867d23f765f20909cddbd885)) ## 0.72.1 (2026-01-30) Full Changelog: [sdk-v0.72.0...sdk-v0.72.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.72.0...sdk-v0.72.1) ### Bug Fixes * **client:** remove OutputFormat exports from index.ts ([bf2cf08](https://github.com/anthropics/anthropic-sdk-typescript/commit/bf2cf081eedb1fef7270c042ba24dfc9f474cab0)) ## 0.72.0 (2026-01-29) Full Changelog: [sdk-v0.71.2...sdk-v0.72.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.71.2...sdk-v0.72.0) ### Features * **api:** add support for Structured Outputs in the Messages API ([eeb7fab](https://github.com/anthropics/anthropic-sdk-typescript/commit/eeb7fabbedb4cd381addb49e02e77574324af43a)) * **api:** migrate sending message format in output_config rather than output_format ([99f4066](https://github.com/anthropics/anthropic-sdk-typescript/commit/99f40668ee2c1b25f527eb34f41eadf79550a73f)) * **ci:** add breaking change detection workflow ([b181568](https://github.com/anthropics/anthropic-sdk-typescript/commit/b181568601537957f91f7123420d8d0f4625c2b7)) * **client:** migrate structured output format ([#625](https://github.com/anthropics/anthropic-sdk-typescript/issues/625)) ([abcdddc](https://github.com/anthropics/anthropic-sdk-typescript/commit/abcdddcec1c06126405115b2cd63ecde9ec2441b)) * **helpers:** add MCP SDK helper functions ([#610](https://github.com/anthropics/anthropic-sdk-typescript/issues/610)) ([b6c3963](https://github.com/anthropics/anthropic-sdk-typescript/commit/b6c396320323e93c31d23fcfa779765c23337c8a)) ### Bug Fixes * **mcp:** correct code tool API endpoint ([4bd6ad6](https://github.com/anthropics/anthropic-sdk-typescript/commit/4bd6ad6a15ad5c11abb4ba2f9ac8c5d9aa756fec)) * **mcp:** return correct lines on typescript errors ([c425959](https://github.com/anthropics/anthropic-sdk-typescript/commit/c425959190cf04b4b14dfd83334ce2b854badbd1)) ### Chores * break long lines in snippets into multiline ([2c44e2d](https://github.com/anthropics/anthropic-sdk-typescript/commit/2c44e2d92b37769eba9dad65a89315cd5a772e99)) * **ci:** Add Claude Code GitHub Workflow ([#612](https://github.com/anthropics/anthropic-sdk-typescript/issues/612)) ([28a9a00](https://github.com/anthropics/anthropic-sdk-typescript/commit/28a9a00d902ae87b9dcd9942a3571dc09976eb5b)) * **ci:** fix multi package publishing ([b9e3ab9](https://github.com/anthropics/anthropic-sdk-typescript/commit/b9e3ab9b74ba29c2675d08546dd417fbd62456a6)) * **ci:** upgrade `actions/github-script` ([ff9dd44](https://github.com/anthropics/anthropic-sdk-typescript/commit/ff9dd44c3435bdda56db6fbad09e25c714401a44)) * **internal:** codegen related update ([754de58](https://github.com/anthropics/anthropic-sdk-typescript/commit/754de5895cdbf54c82bda835aa5e6cf717c9982f)) * **internal:** codegen related update ([cb411e4](https://github.com/anthropics/anthropic-sdk-typescript/commit/cb411e4a1638e15570eb774500c1a022d4be41ae)) * **internal:** update `actions/checkout` version ([c0057be](https://github.com/anthropics/anthropic-sdk-typescript/commit/c0057be99f9b3e01960640cc57befa832954df47)) * **internal:** upgrade babel, qs, js-yaml ([494d9ed](https://github.com/anthropics/anthropic-sdk-typescript/commit/494d9ed99f89e790d612245859a2dc57ec447598)) * **internal:** version bump ([24ecc83](https://github.com/anthropics/anthropic-sdk-typescript/commit/24ecc838b0adbb837b14fe24fac0895d81ea8891)) * **tests:** remove extraneous header test ([076a87c](https://github.com/anthropics/anthropic-sdk-typescript/commit/076a87cd41bad9e8bd5bb07fa1af0434321ce60b)) ### Documentation * tool use documentation link ([#873](https://github.com/anthropics/anthropic-sdk-typescript/issues/873)) ([664cdd6](https://github.com/anthropics/anthropic-sdk-typescript/commit/664cdd6bc91641bf610155d470a14c67a177a08d)) * update import paths for beta helpers ([#834](https://github.com/anthropics/anthropic-sdk-typescript/issues/834)) ([d08fd40](https://github.com/anthropics/anthropic-sdk-typescript/commit/d08fd40c7c8b3637963a7a042ce82624963597f6)) * update README with Claude branding ([#611](https://github.com/anthropics/anthropic-sdk-typescript/issues/611)) ([2a9a5f7](https://github.com/anthropics/anthropic-sdk-typescript/commit/2a9a5f7f94d2fe807bcc73aa6a3a92f8e50db763)) ## 0.71.2 (2025-12-05) Full Changelog: [sdk-v0.71.1...sdk-v0.71.2](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.71.1...sdk-v0.71.2) ### Bug Fixes * **streams:** ensure errors are catchable ([#856](https://github.com/anthropics/anthropic-sdk-typescript/issues/856)) ([a480eaf](https://github.com/anthropics/anthropic-sdk-typescript/commit/a480eafbcbebc83510446b6280f91f969de531f9)) ## 0.71.1 (2025-12-04) Full Changelog: [sdk-v0.71.0...sdk-v0.71.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.71.0...sdk-v0.71.1) ### Bug Fixes * **parser:** use correct naming for parsed text blocks ([6472bcd](https://github.com/anthropics/anthropic-sdk-typescript/commit/6472bcd222f826a131d1abf20301a57749993d2f)) * **structured outputs:** ensure parsed is not enumerable ([860175f](https://github.com/anthropics/anthropic-sdk-typescript/commit/860175ff77caf258a0ed3a0177f53f3a4a771064)), closes [#857](https://github.com/anthropics/anthropic-sdk-typescript/issues/857) ### Chores * add deprecation warnings for accessing .parsed ([ae7a637](https://github.com/anthropics/anthropic-sdk-typescript/commit/ae7a637b86f8fa318df2257564c0a71ae37c0381)) * **client:** fix logger property type ([e3e4d7c](https://github.com/anthropics/anthropic-sdk-typescript/commit/e3e4d7c40c986668ed46a3f4040d60bfd2c7e76b)) * **internal:** upgrade eslint ([5fbe661](https://github.com/anthropics/anthropic-sdk-typescript/commit/5fbe661d009446ab98c7b7488a8955238276b55e)) ## 0.71.0 (2025-11-24) Full Changelog: [sdk-v0.70.1...sdk-v0.71.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.70.1...sdk-v0.71.0) ### Features * **api:** adds support for Claude Opus 4.5, Effort, Advance Tool Use Features, Autocompaction, and Computer Use v5 ([f3a0dac](https://github.com/anthropics/anthropic-sdk-typescript/commit/f3a0dac4c6248f4e06231868fd64eec8034a68ba)) ### Chores * fix ci errors ([8d96290](https://github.com/anthropics/anthropic-sdk-typescript/commit/8d9629004e35a77413a839c14874e323ced34f95)) * include publishConfig in all package.json files ([4c72960](https://github.com/anthropics/anthropic-sdk-typescript/commit/4c72960c5f494317d3f88816b941ffa103bf24d5)) * **readme:** fix example import ([4e8983a](https://github.com/anthropics/anthropic-sdk-typescript/commit/4e8983add6a035ea0a1dad2f84e68ead5cc9f29b)) ## 0.70.1 (2025-11-20) Full Changelog: [sdk-v0.70.0...sdk-v0.70.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.70.0...sdk-v0.70.1) ### Bug Fixes * **structured outputs:** use correct beta header ([626662c](https://github.com/anthropics/anthropic-sdk-typescript/commit/626662cff81896fbbb691e0ed353eede4c463421)) ## 0.70.0 (2025-11-18) Full Changelog: [sdk-v0.69.0...sdk-v0.70.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.69.0...sdk-v0.70.0) ### Features * add Foundry SDK ([40b0e87](https://github.com/anthropics/anthropic-sdk-typescript/commit/40b0e87047887dee3f9fab6e02fa65a1d728cf1e)) ## 0.69.0 (2025-11-14) Full Changelog: [sdk-v0.68.0...sdk-v0.69.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.68.0...sdk-v0.69.0) ### Features * **api:** add support for structured outputs beta ([e6562d7](https://github.com/anthropics/anthropic-sdk-typescript/commit/e6562d72502030e6cf90a31192b21b23c0b03422)) ## 0.68.0 (2025-10-28) Full Changelog: [sdk-v0.67.1...sdk-v0.68.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.67.1...sdk-v0.68.0) ### Features * **api:** add ability to clear thinking in context management ([d8707d3](https://github.com/anthropics/anthropic-sdk-typescript/commit/d8707d3cc9f7f2fe59c0b4d4c84c184dd47f8689)) ## 0.67.1 (2025-10-28) Full Changelog: [sdk-v0.67.0...sdk-v0.67.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.67.0...sdk-v0.67.1) ### Chores * **api:** mark older sonnet models as deprecated ([64ad72d](https://github.com/anthropics/anthropic-sdk-typescript/commit/64ad72d04dcd1e229cf1ea1bdde35494822ee916)) ## 0.67.0 (2025-10-16) Full Changelog: [sdk-v0.66.0...sdk-v0.67.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.66.0...sdk-v0.67.0) ### Features * **api:** adding support for agent skills ([0b7d97f](https://github.com/anthropics/anthropic-sdk-typescript/commit/0b7d97ff19d6e262eb484652e5ba344acbb2f1f0)) ## 0.66.0 (2025-10-15) Full Changelog: [sdk-v0.65.0...sdk-v0.66.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.65.0...sdk-v0.66.0) ### Features * **api:** manual updates ([7605d04](https://github.com/anthropics/anthropic-sdk-typescript/commit/7605d046c41e5e9e8a5e2e28b9e6b3f996766dea)) ### Bug Fixes * **tool-runner:** fix unhandled promise error for streams ([4f6bc94](https://github.com/anthropics/anthropic-sdk-typescript/commit/4f6bc9476b3914c742dd5ef2302ca367c6a1169b)) ### Chores * **client:** add context-management-2025-06-27 beta header ([c6efc98](https://github.com/anthropics/anthropic-sdk-typescript/commit/c6efc98e9507ba41b9336687e78f9362345036f9)) * **client:** add model-context-window-exceeded-2025-08-26 beta header ([06d2513](https://github.com/anthropics/anthropic-sdk-typescript/commit/06d25137453f44717c0ed6abffd12669fab5e29f)) * **internal:** use npm pack for build uploads ([55c0ad7](https://github.com/anthropics/anthropic-sdk-typescript/commit/55c0ad7609d11e93a0cd048651dc6331b36581d9)) * **jsdoc:** fix [@link](https://github.com/link) annotations to refer only to parts of the package‘s public interface ([62c1b5e](https://github.com/anthropics/anthropic-sdk-typescript/commit/62c1b5ee6d2580eb9baa8ede08b24247d4457218)) ## 0.65.0 (2025-09-29) Full Changelog: [sdk-v0.64.0...sdk-v0.65.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.64.0...sdk-v0.65.0) ### Features * **api:** adds support for Claude Sonnet 4.5 and context management features ([3f0b0fb](https://github.com/anthropics/anthropic-sdk-typescript/commit/3f0b0fb25317ebc60f970eddfee0e4a7cf6f6fb8)) ### Chores * **internal:** codegen related update ([724a2b1](https://github.com/anthropics/anthropic-sdk-typescript/commit/724a2b1a0cea4631ccdbef5a1b7cc69a767e6c41)) * **internal:** ignore .eslintcache ([56a5f30](https://github.com/anthropics/anthropic-sdk-typescript/commit/56a5f30285efab611c7c5bbbc3f308105ba0f031)) ## 0.64.0 (2025-09-26) Full Changelog: [sdk-v0.63.1...sdk-v0.64.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.63.1...sdk-v0.64.0) ### Features * **toolRunner:** support custom headers ([ac6a7a3](https://github.com/anthropics/anthropic-sdk-typescript/commit/ac6a7a39335258e09238d7c970b2d45f504df816)) ### Performance Improvements * faster formatting ([32d6185](https://github.com/anthropics/anthropic-sdk-typescript/commit/32d6185b0d944d12c9c160f3055dd9d5ade44d8a)) ### Chores * **internal:** fix incremental formatting in some cases ([2bdf8ee](https://github.com/anthropics/anthropic-sdk-typescript/commit/2bdf8ee858fec58e011218ae1c9925c66bf2b982)) * **internal:** remove deprecated `compilerOptions.baseUrl` from tsconfig.json ([2817c45](https://github.com/anthropics/anthropic-sdk-typescript/commit/2817c4543abbcf10947e9ae812d88604cf812c33)) ## 0.63.1 (2025-09-23) Full Changelog: [sdk-v0.63.0...sdk-v0.63.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.63.0...sdk-v0.63.1) ### Bug Fixes * **helpers/zod:** fix compat with zod 3 ([a2952e1](https://github.com/anthropics/anthropic-sdk-typescript/commit/a2952e1a64e4dfb2a03f90c9af4e816627bf85e7)) ### Chores * do not install brew dependencies in ./scripts/bootstrap by default ([115d81a](https://github.com/anthropics/anthropic-sdk-typescript/commit/115d81aef0623746220fb13c58c4ba87603a511d)) * **internal:** update CI ([dfa991a](https://github.com/anthropics/anthropic-sdk-typescript/commit/dfa991aca8f4cbbbf5af8ea32bb5be0a8dae1ace)) * **package:** lower zod peer dependency constraints ([b40cfec](https://github.com/anthropics/anthropic-sdk-typescript/commit/b40cfeca234432f9a0b1b3ddd8b90c29ff25be02)) ## 0.63.0 (2025-09-17) Full Changelog: [sdk-v0.62.0...sdk-v0.63.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.62.0...sdk-v0.63.0) ### Features * **client:** add support for toolRunner helpers ([28f5837](https://github.com/anthropics/anthropic-sdk-typescript/commit/28f583739d4f15c202ecc88002cd8abc9d3aed76)) ### Chores * **internal:** fix tests ([003617d](https://github.com/anthropics/anthropic-sdk-typescript/commit/003617d1b1386bbddadb102e0e8e7922d23c1643)) * **vertex:** update model string to valid example ([7b77da0](https://github.com/anthropics/anthropic-sdk-typescript/commit/7b77da02620a886b50d984a797a74b650ea88181)) ## 0.62.0 (2025-09-10) Full Changelog: [sdk-v0.61.0...sdk-v0.62.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.61.0...sdk-v0.62.0) ### Features * **api:** adds support for Documents in tool results ([5d971f9](https://github.com/anthropics/anthropic-sdk-typescript/commit/5d971f928897ff79acbd418ca9bf0dd9bc6e16a4)) * **api:** adds support for web_fetch_20250910 tool ([c663898](https://github.com/anthropics/anthropic-sdk-typescript/commit/c663898d51f0e82b418e61814e2937256e70bad0)) ## 0.61.0 (2025-09-02) Full Changelog: [sdk-v0.60.0...sdk-v0.61.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.60.0...sdk-v0.61.0) ### Features * **client:** adds support for code-execution-2025-08-26 tool ([91dd1bb](https://github.com/anthropics/anthropic-sdk-typescript/commit/91dd1bb6ae63a2fbca28de543fadd8fc34a35e05)) * **mcp:** add code execution tool ([2f9cfba](https://github.com/anthropics/anthropic-sdk-typescript/commit/2f9cfba68f843b12aa96885bbe7332567384be22)) ### Chores * add package to package.json ([3ee3632](https://github.com/anthropics/anthropic-sdk-typescript/commit/3ee36323eb384804f24ebded6f789b818f4473dc)) * **client:** qualify global Blob ([e6bfd68](https://github.com/anthropics/anthropic-sdk-typescript/commit/e6bfd68de63ad0d4823aa1da81826fed50636d99)) * **deps:** update dependency @types/node to v20.17.58 ([e3577f1](https://github.com/anthropics/anthropic-sdk-typescript/commit/e3577f11939a4af7df07bd6697cbde1aeb0fd4b3)) * **internal:** formatting change ([c8f4029](https://github.com/anthropics/anthropic-sdk-typescript/commit/c8f4029d07da07624d319422a38266af6a17a8c7)) * **internal:** update global Error reference ([c82be0d](https://github.com/anthropics/anthropic-sdk-typescript/commit/c82be0d1700cb722243aefba3d63c0e412af85c1)) * update CI script ([92f4e99](https://github.com/anthropics/anthropic-sdk-typescript/commit/92f4e993c3565e729419d247aacab395ff8d3a16)) ### Documentation * fix default timeout comment ([#812](https://github.com/anthropics/anthropic-sdk-typescript/issues/812)) ([a59964d](https://github.com/anthropics/anthropic-sdk-typescript/commit/a59964d03726169df1991d43a634dbda77ff7997)) ## 0.60.0 (2025-08-13) Full Changelog: [sdk-v0.59.0...sdk-v0.60.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.59.0...sdk-v0.60.0) ### Features * **api:** makes 1 hour TTL Cache Control generally available ([b3c97bd](https://github.com/anthropics/anthropic-sdk-typescript/commit/b3c97bddd98829c6f0a6e6b4f118820d92f1f457)) * **betas:** add context-1m-2025-08-07 ([a5f6db8](https://github.com/anthropics/anthropic-sdk-typescript/commit/a5f6db8dc645a64896ac2835b2fd7d3d3754121e)) ### Chores * deprecate older claude-3-5 sonnet models ([#488](https://github.com/anthropics/anthropic-sdk-typescript/issues/488)) ([4fc9f76](https://github.com/anthropics/anthropic-sdk-typescript/commit/4fc9f7638058cff5890f4a989df41726a2abb798)) * **internal:** update comment in script ([8157062](https://github.com/anthropics/anthropic-sdk-typescript/commit/81570622d168226e75275af72c7ebf9d81945df7)) * **internal:** update test skipping reason ([4ea623a](https://github.com/anthropics/anthropic-sdk-typescript/commit/4ea623a734493c9c333832d703cc80cb1a290831)) * update @stainless-api/prism-cli to v5.15.0 ([43616bd](https://github.com/anthropics/anthropic-sdk-typescript/commit/43616bddad0d832e27fc2506c14a51337d09673f)) ### Documentation * **readme:** clarify beta feature usage ([3196064](https://github.com/anthropics/anthropic-sdk-typescript/commit/3196064705a952845893d0d9cb677be0f1516f62)) ## 0.59.0 (2025-08-08) Full Changelog: [sdk-v0.58.0...sdk-v0.59.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.58.0...sdk-v0.59.0) ### Features * **api:** search result content blocks ([f372c0d](https://github.com/anthropics/anthropic-sdk-typescript/commit/f372c0dc7e3ecd6376de657431c2a3053be7bc84)) ### Chores * **internal:** move publish config ([5c1689e](https://github.com/anthropics/anthropic-sdk-typescript/commit/5c1689e277b9b7313a3c21217acea09bbe6da6e8)) ## 0.58.0 (2025-08-05) Full Changelog: [sdk-v0.57.0...sdk-v0.58.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.57.0...sdk-v0.58.0) ### Features * **api:** add claude-opus-4-1-20250805 ([08c61db](https://github.com/anthropics/anthropic-sdk-typescript/commit/08c61dbcb1f7e7fa6889d4578b38717586bfec20)) * **api:** adds support for text_editor_20250728 tool ([ca57d74](https://github.com/anthropics/anthropic-sdk-typescript/commit/ca57d7444db6512880786aec7cc11c32522e86f0)) * **api:** removed older deprecated models ([352a5fd](https://github.com/anthropics/anthropic-sdk-typescript/commit/352a5fd17372ac37277a2f001122973537579968)) * update streaming error message to say 'required' not 'recommended' ([ffac3e0](https://github.com/anthropics/anthropic-sdk-typescript/commit/ffac3e0dd9162c88a98102c204aea08a9c9a60e7)) * update streaming error message to say 'required' not 'recommended' ([82a9ae5](https://github.com/anthropics/anthropic-sdk-typescript/commit/82a9ae5835c3dde1f061fc4147e5c06dbf546ef2)) * **vertex:** support global endpoint ([#449](https://github.com/anthropics/anthropic-sdk-typescript/issues/449)) ([1c42030](https://github.com/anthropics/anthropic-sdk-typescript/commit/1c420301c4a1e9a2bfacf45067eb5473a7cdb53c)) ### Bug Fixes * **internal/bootstrap:** install dependencies for all packages ([d3734f9](https://github.com/anthropics/anthropic-sdk-typescript/commit/d3734f98ebecaee5d37206794bc35fcac9c8b3ec)) * **internal/bootstrap:** only build main package ([82428c7](https://github.com/anthropics/anthropic-sdk-typescript/commit/82428c728c9cd164d43087a8d3c055b3aa8a14d3)) * **internal/bootstrap:** run build before installing other packages ([301f504](https://github.com/anthropics/anthropic-sdk-typescript/commit/301f50444bdb28a68c6dd8e012422a7267617e80)) * **internal/test:** use jest directly ([dab423b](https://github.com/anthropics/anthropic-sdk-typescript/commit/dab423bc7fe5be2c97ba311c4fc38532a2bdf293)) ### Chores * **client:** add TextEditor_20250429 tool ([bcb557d](https://github.com/anthropics/anthropic-sdk-typescript/commit/bcb557d23e13e6ea73020bf1247447a54b317653)) * **internal:** remove redundant imports config ([555769d](https://github.com/anthropics/anthropic-sdk-typescript/commit/555769da822dc3b105b96d1481108b9b62666c99)) * **internal:** version bump ([eb97e85](https://github.com/anthropics/anthropic-sdk-typescript/commit/eb97e8577279fb150582297d2a0924a297185c3c)) ## 0.57.0 (2025-07-21) Full Changelog: [sdk-v0.56.0...sdk-v0.57.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.56.0...sdk-v0.57.0) ### Features * **bedrock:** better edge runtime support ([#462](https://github.com/anthropics/anthropic-sdk-typescript/issues/462)) ([5f8d1bb](https://github.com/anthropics/anthropic-sdk-typescript/commit/5f8d1bb6a1e7a71acf7a89a090bb2296c050e1d2)) * **client:** add breaking change detection to CI ([04332aa](https://github.com/anthropics/anthropic-sdk-typescript/commit/04332aa52c371a2c3126c8c188e9855898017772)) ### Bug Fixes * **bedrock:** fix lint errors ([aa40e9c](https://github.com/anthropics/anthropic-sdk-typescript/commit/aa40e9c6987a23ca964683a72fb89c9f570528bd)) * **internal:** fix type error for fromSSEResponse call ([2405664](https://github.com/anthropics/anthropic-sdk-typescript/commit/2405664427fb313a785ee6fb7d5e357388dcf5d7)) * **vertex:** fix lint errors ([7772f78](https://github.com/anthropics/anthropic-sdk-typescript/commit/7772f78a34dbfcf5c6fc1e149e4d851de9e722f8)) ### Chores * make some internal functions async ([9cc6c55](https://github.com/anthropics/anthropic-sdk-typescript/commit/9cc6c55713308f91f56e5f9c4c02966b421cee7f)) * **ts:** reorder package.json imports ([e02b0a1](https://github.com/anthropics/anthropic-sdk-typescript/commit/e02b0a1e8c58499e7881f17688a75c0e8c405985)) ## 0.56.0 (2025-07-03) Full Changelog: [sdk-v0.55.1...sdk-v0.56.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.55.1...sdk-v0.56.0) ### Features * **api:** add support for Search Result Content Blocks ([2910b28](https://github.com/anthropics/anthropic-sdk-typescript/commit/2910b280ef8ab8888dbad59e2ab97c63565879cb)) * **tests:** add fixture-based streaming tests and improve test coverage ([00424bc](https://github.com/anthropics/anthropic-sdk-typescript/commit/00424bc033895c20f2f73d9311c85dabfe0e9a9f)) * **vertex:** add AuthClient interface support for improved auth flexibility ([b6f86e2](https://github.com/anthropics/anthropic-sdk-typescript/commit/b6f86e29396f5521eeaae43d43084a76e3e518fe)) ### Bug Fixes * avoid console usage ([e5ab01d](https://github.com/anthropics/anthropic-sdk-typescript/commit/e5ab01dd3f0a9a9904b000f4599a05f4200e1f67)) * **bedrock:** fix bedrock logger ([f183bc9](https://github.com/anthropics/anthropic-sdk-typescript/commit/f183bc97bc5a83b0e00053740caa387a1c98c322)) ### Chores * add docs to RequestOptions type ([38cb967](https://github.com/anthropics/anthropic-sdk-typescript/commit/38cb9676c929e86a1048bd086c5c26129aeea46d)) * **api:** update BetaCitationSearchResultLocation ([760be6b](https://github.com/anthropics/anthropic-sdk-typescript/commit/760be6be14ae6b10004841aa97db2b3871ac15aa)) ### Documentation * model in examples ([9385376](https://github.com/anthropics/anthropic-sdk-typescript/commit/9385376d8352040bccf9563ab985438b55dbbdae)) * more beta updates ([7d8b8ac](https://github.com/anthropics/anthropic-sdk-typescript/commit/7d8b8ac2f219c0a64beeecfdd4f2be90c5786201)) * update model in readme ([b1799f7](https://github.com/anthropics/anthropic-sdk-typescript/commit/b1799f7efa15938ecc00e2a65d90ecb03da9dda0)) * update models and non-beta batches ([5305cdb](https://github.com/anthropics/anthropic-sdk-typescript/commit/5305cdbd65e6b1b7b8c460c1cea845b23fddc770)) ## 0.55.1 (2025-06-30) Full Changelog: [sdk-v0.55.0...sdk-v0.55.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.55.0...sdk-v0.55.1) ### Bug Fixes * **ci:** release-doctor — report correct token name ([5fa2ebf](https://github.com/anthropics/anthropic-sdk-typescript/commit/5fa2ebfd2c13ddfb7811160da795d0935161d7d7)) * **client:** get fetchOptions type more reliably ([60673ab](https://github.com/anthropics/anthropic-sdk-typescript/commit/60673abd8ca59ec0491a205ae259cc36cb640a22)) * **client:** use proxy in bedrock when requesting credentials from AWS ([8cfd227](https://github.com/anthropics/anthropic-sdk-typescript/commit/8cfd227dd82686101ea54d5d32a0c1d6ad04d336)) ### Chores * **ci:** only run for pushes and fork pull requests ([3d1c911](https://github.com/anthropics/anthropic-sdk-typescript/commit/3d1c911d8c2cf2c9999ba1284c036edbf4f0078e)) * **client:** improve path param validation ([1638f13](https://github.com/anthropics/anthropic-sdk-typescript/commit/1638f1315b1eb836dc933e41f8d89222a4374e35)) ## 0.55.0 (2025-06-24) Full Changelog: [sdk-v0.54.0...sdk-v0.55.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.54.0...sdk-v0.55.0) ### Features * **client:** add support for endpoint-specific base URLs ([9be46a8](https://github.com/anthropics/anthropic-sdk-typescript/commit/9be46a802deaab8689d1986c4e33315111ec0133)) ### Bug Fixes * **client:** explicitly copy fetch in withOptions ([3a5909b](https://github.com/anthropics/anthropic-sdk-typescript/commit/3a5909bae831701d2124783ec141ddda527daf30)) * **internal:** resolve conflict ([acfff05](https://github.com/anthropics/anthropic-sdk-typescript/commit/acfff053f3638700d14e51ff1f180d7a476ecc20)) * publish script — handle NPM errors correctly ([c4a6666](https://github.com/anthropics/anthropic-sdk-typescript/commit/c4a66664f0b36cfae88bd4f788f58d6a61045862)) * **stream:** avoid event listener leak ([eb272af](https://github.com/anthropics/anthropic-sdk-typescript/commit/eb272af39becf87549859f7257ec272facf590b2)) ### Chores * **ci:** enable for pull requests ([8505818](https://github.com/anthropics/anthropic-sdk-typescript/commit/85058186ac5bd044046a6bf60bf27405923b193a)) * **client:** refactor imports ([d5dff04](https://github.com/anthropics/anthropic-sdk-typescript/commit/d5dff0418054494f170359735e0ceba8b0283abf)) * **internal:** add pure annotations, make base APIResource abstract ([183d39c](https://github.com/anthropics/anthropic-sdk-typescript/commit/183d39cb7880a7d6d22015ca32de539b3594bae3)) * **readme:** update badges ([147f321](https://github.com/anthropics/anthropic-sdk-typescript/commit/147f3211972fd2d28c777fd3feea37b6db8ab621)) * **readme:** use better example snippet for undocumented params ([5beafd5](https://github.com/anthropics/anthropic-sdk-typescript/commit/5beafd5f5c0488c051a1fd7a32d7eea976bf671d)) ## 0.54.0 (2025-06-11) Full Changelog: [sdk-v0.53.0...sdk-v0.54.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.53.0...sdk-v0.54.0) ### Features * **api:** api update ([e923aa1](https://github.com/anthropics/anthropic-sdk-typescript/commit/e923aa1b48b1739def4d5d97756678979b4c01a3)) * **api:** api update ([4877181](https://github.com/anthropics/anthropic-sdk-typescript/commit/4877181c118ebcf1b5d98ca4bfd26acf5dbdedab)) * **api:** manual updates ([99b0111](https://github.com/anthropics/anthropic-sdk-typescript/commit/99b0111ec289eb4454c1290f80600d653a5a9c30)) * **client:** add support for fine-grained-tool-streaming-2025-05-14 ([6b35dd9](https://github.com/anthropics/anthropic-sdk-typescript/commit/6b35dd968b47e6ed486ed6d0a7b8d29cf1928aaf)) ### Bug Fixes * **client:** deprecate BetaBase64PDFBlock in favor of BetaRequestDocumentBlock ([7fa10db](https://github.com/anthropics/anthropic-sdk-typescript/commit/7fa10db38d56f8839be3a3197b77a4c8f24fa42a)) * **client:** improve error message in parsing JSON ([7c0cb84](https://github.com/anthropics/anthropic-sdk-typescript/commit/7c0cb8414473ffff3939f105d1bdb92b7d02ab5e)) * **internal:** revert unintentional changes ([28dccec](https://github.com/anthropics/anthropic-sdk-typescript/commit/28dccec451d0426e7a0afe6de1122e5fddb057f5)) ### Chores * avoid type error in certain environments ([48c1a41](https://github.com/anthropics/anthropic-sdk-typescript/commit/48c1a4143bf2a6cae73007532e8292922a0b4fb8)) * **tests:** add testing for invalid json raising ([52260c1](https://github.com/anthropics/anthropic-sdk-typescript/commit/52260c196ab91be10354770362b0e2191607337b)) ## 0.53.0 (2025-06-04) Full Changelog: [sdk-v0.52.0...sdk-v0.53.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.52.0...sdk-v0.53.0) ### Features * **client:** add support for new text_editor_20250429 tool ([e49ebfb](https://github.com/anthropics/anthropic-sdk-typescript/commit/e49ebfb23729c5554796a2ef6b19869d2fb8854e)) ### Bug Fixes * **client:** correctly track input from server_tool_use input deltas ([4a14253](https://github.com/anthropics/anthropic-sdk-typescript/commit/4a142533c0e56b6cca120b15dc78779000496bc2)) * **client:** fix link to streaming responses docs ([2ad98be](https://github.com/anthropics/anthropic-sdk-typescript/commit/2ad98be9088517715571438ef0cd577f428b50a4)) * compat with more runtimes ([3c70ae3](https://github.com/anthropics/anthropic-sdk-typescript/commit/3c70ae35411566ae39428d1b0583fd9fe1b4f2a6)) ### Chores * adjust eslint.config.mjs ignore pattern ([ab404cf](https://github.com/anthropics/anthropic-sdk-typescript/commit/ab404cfddd74d6203acfb63c8e56c6727ab9ec9a)) * **ci:** fix release workflow ([7e2e566](https://github.com/anthropics/anthropic-sdk-typescript/commit/7e2e5666b65168e926d32500a73f849e9d61fb17)) * **deps:** bump eslint-plugin-prettier ([8f973c4](https://github.com/anthropics/anthropic-sdk-typescript/commit/8f973c428734fe37710f46cbbcb2c79a046246d9)) * **docs:** use top-level-await in example snippets ([b4a60ee](https://github.com/anthropics/anthropic-sdk-typescript/commit/b4a60ee8a6912d7cfb68849b6369124260da69ed)) * **examples:** show how to pass an authorization token to an MCP server ([340461b](https://github.com/anthropics/anthropic-sdk-typescript/commit/340461b39d9e27e281affda7ff9359c04bde3878)) * improve publish-npm script --latest tag logic ([4a7bdc0](https://github.com/anthropics/anthropic-sdk-typescript/commit/4a7bdc07f5bbc0da266daaa163319665400318c9)) * **internal:** codegen related update ([345af47](https://github.com/anthropics/anthropic-sdk-typescript/commit/345af474e599d8083aa473d043061ed64d9bd284)) * **internal:** codegen related update ([6d924ef](https://github.com/anthropics/anthropic-sdk-typescript/commit/6d924efc8669b6cdadf4bb23612ca08afa3c7885)) * **internal:** fix readablestream types in node 20 ([b68745b](https://github.com/anthropics/anthropic-sdk-typescript/commit/b68745b6a98aa0f12b9ce2e97d24a0cbed47758e)) * **internal:** fix release workflows ([a8da56f](https://github.com/anthropics/anthropic-sdk-typescript/commit/a8da56f2ce042804925ec882cbdbe2ba1d66a183)) ### Documentation * **pagination:** improve naming ([8e62803](https://github.com/anthropics/anthropic-sdk-typescript/commit/8e62803aca24e182bf2202b1ea8ae9c6e3061883)) ## 0.52.0 (2025-05-22) Full Changelog: [sdk-v0.51.0...sdk-v0.52.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.51.0...sdk-v0.52.0) ### Features * **api:** add claude 4 models, files API, code execution tool, MCP connector and more ([769f9da](https://github.com/anthropics/anthropic-sdk-typescript/commit/769f9da91cf4480d1e4aa4bb488d6d9cc2471985)) ### Chores * **internal:** codegen related update ([2ed236d](https://github.com/anthropics/anthropic-sdk-typescript/commit/2ed236ddb9977a91289c4799692a583f460ce8b6)) * **internal:** version bump ([8ebaf61](https://github.com/anthropics/anthropic-sdk-typescript/commit/8ebaf616d2e5c6aebc153f19a403dde41ab5a9f1)) ## 0.51.0 (2025-05-15) Full Changelog: [sdk-v0.50.4...sdk-v0.51.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.50.4...sdk-v0.51.0) ### Features * **bedrock:** support skipAuth on Bedrock client to bypass local auth requirements ([b661c5f](https://github.com/anthropics/anthropic-sdk-typescript/commit/b661c5fe4d93fa749de5b7cbbce98dc224a68adc)) ### Bug Fixes * **bedrock:** support model names with slashes ([cb5fa8a](https://github.com/anthropics/anthropic-sdk-typescript/commit/cb5fa8a8f55ed12382aeb5f09110b0d5fefc46bb)) ### Chores * **package:** remove engines ([f0378ec](https://github.com/anthropics/anthropic-sdk-typescript/commit/f0378ec0be0cac0b165d169a05548692f8ef3b69)) ## 0.50.4 (2025-05-12) Full Changelog: [sdk-v0.50.3...sdk-v0.50.4](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.50.3...sdk-v0.50.4) ### Bug Fixes * **stream:** correctly accumulate usage ([c55b4f0](https://github.com/anthropics/anthropic-sdk-typescript/commit/c55b4f01cdd545faf93d6f463caef6f6c5839f07)) ## 0.50.3 (2025-05-09) Full Changelog: [sdk-v0.50.2...sdk-v0.50.3](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.50.2...sdk-v0.50.3) ### Bug Fixes * **client:** always overwrite when merging headers ([657912a](https://github.com/anthropics/anthropic-sdk-typescript/commit/657912ad66f86e878291a4cab5436844efbb633b)) * **client:** always overwrite when merging headers ([bf70c9f](https://github.com/anthropics/anthropic-sdk-typescript/commit/bf70c9f6c8031616cb3927d86272dbcce2158b4e)) ## 0.50.2 (2025-05-09) Full Changelog: [sdk-v0.50.1...sdk-v0.50.2](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.50.1...sdk-v0.50.2) ### Bug Fixes * **ci:** bump publish workflow to node 20 ([306a081](https://github.com/anthropics/anthropic-sdk-typescript/commit/306a0816c3fe383ae8ac78a43ebb57927597417e)) ### Chores * **internal:** minor sync ([d89476f](https://github.com/anthropics/anthropic-sdk-typescript/commit/d89476ffacccdf1c30c03bbfac8ae3280a4e8d08)) * sync repo ([508e385](https://github.com/anthropics/anthropic-sdk-typescript/commit/508e38511c13ba8842065d0dafbc7f462abe0322)) ### Documentation * update readme ([ef0c60a](https://github.com/anthropics/anthropic-sdk-typescript/commit/ef0c60afc9ebc690c6179466a22d3e26c77f71db)) ## 0.50.1 (2025-05-09) Full Changelog: [sdk-v0.50.0...sdk-v0.50.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.50.0...sdk-v0.50.1) ## 0.50.0 (2025-05-09) Full Changelog: [sdk-v0.41.0...sdk-v0.50.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.41.0...sdk-v0.42.0) ### Features * **api:** adds web search capabilities to the Claude API ([b36623f](https://github.com/anthropics/anthropic-sdk-typescript/commit/b36623f33134e937ba8fc7585ab5fab3b31203ed)) * **api:** manual updates ([80d5daa](https://github.com/anthropics/anthropic-sdk-typescript/commit/80d5daaff943536fbf300f5f19d7c9922294e837)) * **api:** manual updates ([3124e2b](https://github.com/anthropics/anthropic-sdk-typescript/commit/3124e2b5fc5d279403f409168186cb08de3b0d13)) * **client:** add withOptions helper ([caab783](https://github.com/anthropics/anthropic-sdk-typescript/commit/caab78382741526d50e0c6d3a3e2834ac889fbd7)) ### Bug Fixes * **bedrock,vertex:** update to new SDK version ([cb620bb](https://github.com/anthropics/anthropic-sdk-typescript/commit/cb620bbb60e64f27168f74db7a48ad8c2d5f953e)) * **client:** send all configured auth headers ([3961628](https://github.com/anthropics/anthropic-sdk-typescript/commit/3961628811d807cc967b9f0f781e55415b578f5d)) * **internal:** fix file uploads in node 18 jest ([1071b34](https://github.com/anthropics/anthropic-sdk-typescript/commit/1071b342d56a81d375f2b373c649843f800a3ad5)) * **mcp:** remove unused tools.ts ([4c4d763](https://github.com/anthropics/anthropic-sdk-typescript/commit/4c4d7635bf6c6ef3fd810adefb3a290ad0f59576)) * **messages:** updates for server tools ([c2709b2](https://github.com/anthropics/anthropic-sdk-typescript/commit/c2709b27b17a5a80daf399b7bfca41b953706d51)) * update old links ([f33a68a](https://github.com/anthropics/anthropic-sdk-typescript/commit/f33a68abddd29ef8f8fe1a334d7dcd259595c4cb)) * **vertex,bedrock:** correct build script ([df895a7](https://github.com/anthropics/anthropic-sdk-typescript/commit/df895a7d7cbd51422343fca95ab9f1d58918b2a1)) ### Chores * **bedrock:** add `skipAuth` option to allow users to let authorization be handled elsewhere ([ee58772](https://github.com/anthropics/anthropic-sdk-typescript/commit/ee587723718109797efa80b020076c43a300f1b9)) * **bedrock:** bump [@aws-sdk](https://github.com/aws-sdk) dependencies ([ff925db](https://github.com/anthropics/anthropic-sdk-typescript/commit/ff925db987a66950c997ec50b9c55e67152d1945)) * **bedrock:** bump @aws-sdk/credential-providers ([9f611d6](https://github.com/anthropics/anthropic-sdk-typescript/commit/9f611d6ba8c6b3de02c3183e4f2f42d1540525f0)) * **ci:** add timeout thresholds for CI jobs ([385f900](https://github.com/anthropics/anthropic-sdk-typescript/commit/385f900ae36892a8c65e2568faf46ce7bb011206)) * **ci:** only use depot for staging repos ([1f05880](https://github.com/anthropics/anthropic-sdk-typescript/commit/1f058806ccd549aa99194fc8b808ab21c7655bcf)) * **ci:** run on more branches and use depot runners ([7176150](https://github.com/anthropics/anthropic-sdk-typescript/commit/7176150915334f06ac2ee3ed854ddf6752c1e113)) * **client:** drop support for EOL node versions ([ffbb2da](https://github.com/anthropics/anthropic-sdk-typescript/commit/ffbb2dac2b9e3b82c57d043dfb279ab95948cbc0)) * **client:** minor internal fixes ([595678f](https://github.com/anthropics/anthropic-sdk-typescript/commit/595678f2b8588f20d7ca3d9219878a4d72c56c7d)) * **internal:** codegen related update ([a6ae129](https://github.com/anthropics/anthropic-sdk-typescript/commit/a6ae12953f6f841d4585a8cf8cf03fa24f17d57c)) * **internal:** fix format script ([9ce30ba](https://github.com/anthropics/anthropic-sdk-typescript/commit/9ce30ba225a37feb50c0089164bbec830ab18a1c)) * **internal:** formatting fixes ([7bd4594](https://github.com/anthropics/anthropic-sdk-typescript/commit/7bd45941a46703db869161fd0585cd209efc782c)) * **internal:** improve index signature formatting ([7dc3e19](https://github.com/anthropics/anthropic-sdk-typescript/commit/7dc3e190c854623c030d20530cef2f16798dae50)) * **internal:** improve node 18 shims ([c6780dd](https://github.com/anthropics/anthropic-sdk-typescript/commit/c6780ddc12282ae1e6796825c713bacf5a50812c)) * **internal:** reduce CI branch coverage ([464431d](https://github.com/anthropics/anthropic-sdk-typescript/commit/464431d1e57954812b10baa04d12795f4cba6b76)) * **internal:** refactor utils ([b3dee57](https://github.com/anthropics/anthropic-sdk-typescript/commit/b3dee573e69afe41d1c588e732780b5d370980dd)) * **internal:** share typescript helpers ([74187db](https://github.com/anthropics/anthropic-sdk-typescript/commit/74187dbc73585c68aa6ae0f05bcba6053d257434)) * **internal:** upload builds and expand CI branch coverage ([bbda5d3](https://github.com/anthropics/anthropic-sdk-typescript/commit/bbda5d3ccd5c10abbd0727c33c9d63bd366ef557)) * **perf:** faster base64 decoding ([975795a](https://github.com/anthropics/anthropic-sdk-typescript/commit/975795a61b3067396035621638feb631a7e44dbc)) * **tests:** improve enum examples ([66cf6d4](https://github.com/anthropics/anthropic-sdk-typescript/commit/66cf6d4d460f93c728aeee069af4f134b853b7d7)) ### Documentation * **readme:** fix typo ([6f8fce9](https://github.com/anthropics/anthropic-sdk-typescript/commit/6f8fce9cf7a921b0fc7a5cf0aada0ce130667082)) ## 0.41.0 (2025-05-07) Full Changelog: [sdk-v0.40.1...sdk-v0.41.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.40.1...sdk-v0.41.0) ### Features * **api:** adds web search capabilities to the Cla