Full Changelog: sdk-v0.33.1...sdk-v0.34.0
Full Changelog: sdk-v0.33.0...sdk-v0.33.1
- vertex: remove
anthropic_version
deletion for token counting (88221be)
Full Changelog: sdk-v0.32.1...sdk-v0.33.0
- api: general availability updates (93d1316)
- api: general availability updates (#631) (b5c92e5)
- client: add ._request_id property to object responses (#596) (9d6d584)
- internal: make git install file structure match npm (#617) (d3dd7d5)
- vertex: support token counting (9e76b4d)
- docs: add missing await to pagination example (#609) (e303077)
- types: remove anthropic-instant-1.2 model (#599) (e222a4d)
- api: update spec version (#607) (ea44f9a)
- api: update spec version (#629) (a25295c)
- bedrock,vertex: remove unsupported countTokens method (#597) (17b7da5)
- bedrock: remove unsupported methods (6458dc1)
- ci: remove unneeded workflow (#594) (7572e48)
- client: drop unused devDependency (#610) (5d0d523)
- improve browser error message (#613) (c26121e)
- internal: bump cross-spawn to v7.0.6 (#624) (e58ba9a)
- internal: remove unnecessary getRequestClient function (#623) (882c45f)
- internal: update isAbsoluteURL (#627) (2528ea0)
- internal: update spec (#630) (82cac06)
- internal: use reexports not destructuring (#604) (e4daff2)
- remove redundant word in comment (#615) (ef57a10)
- tests: limit array example length (#611) (91dc181)
- types: nicer error class types + jsdocs (#626) (0287993)
- remove suggestion to use
npm
call out (#614) (6369261) - use latest sonnet in example snippets (#625) (f70882b)
Full Changelog: sdk-v0.32.0...sdk-v0.32.1
- bedrock: don't mutate request body inputs (f83b535)
- vertex: don't mutate request body inputs (e9a82e5)
Full Changelog: sdk-v0.31.0...sdk-v0.32.0
- don't require deno to run build-deno (#586) (0e431d6)
- types: add missing token-counting-2024-11-01 (#583) (13d629c)
Full Changelog: sdk-v0.30.1...sdk-v0.31.0
- countTokens: correctly set beta header (1680757)
- internal: support pnpm git installs (#579) (86bb102)
- types: add missing token-counting-2024-11-01 (aff1546)
- enable isolatedModules and change imports (#573) (9068b4b)
- use type imports for type-only imports (#580) (2c8a337)
Full Changelog: sdk-v0.30.0...sdk-v0.30.1
Full Changelog: sdk-v0.29.2...sdk-v0.30.0
- api: add new model and
computer-use-2024-10-22
beta (6981d89) - bedrock: add beta.messages.create() method (6317592)
- vertex: add beta.messages.create() (22cfdba)
Full Changelog: sdk-v0.29.1...sdk-v0.29.2
Full Changelog: sdk-v0.29.0...sdk-v0.29.1
Full Changelog: sdk-v0.28.0...sdk-v0.29.0
- api: add message batches api (4f114d5)
- internal: move LineDecoder to a separate file (#541) (fd42469)
- internal: pass props through internal parser (#549) (dd71955)
- types: improve metadata type names (#547) (cef499c)
- types: improve metadata types (#546) (3fe538b)
- types: improve tool type names (#543) (18dbe77)
- types: improve tool type names (#544) (fc2d823)
Full Changelog: sdk-v0.27.3...sdk-v0.28.0
- api: support disabling parallel tool use (#540) (df0032f)
- client: allow overriding retry count header (#536) (ec11f91)
- client: send retry count header (#533) (401b81c)
- better object fallback behaviour for casting errors (#503) (3660e97)
- better object fallback behaviour for casting errors (#526) (4ffb2e4)
- internal: add dev dependency (#531) (a9c127b)
- improve and reference contributing documentation (#539) (cbef925)
- update CONTRIBUTING.md (#528) (2609dec)
Full Changelog: sdk-v0.27.2...sdk-v0.27.3
- streaming: correct error message serialisation (#524) (e150fa4)
- uploads: avoid making redundant memory copies (#520) (b6d2638)
Full Changelog: sdk-v0.27.1...sdk-v0.27.2
- api: deprecate claude-1 models (53644d2)
- ci: install deps via ./script/bootstrap (#515) (90a8da1)
- internal: dependency updates (#519) (b7b0cd6)
- run tsc as part of lint script (#513) (c8127cf)
Full Changelog: sdk-v0.27.0...sdk-v0.27.1
Full Changelog: sdk-v0.26.1...sdk-v0.27.0
- readme: update formatting and clarity for CORS flag (9cb2c35)
Full Changelog: sdk-v0.26.0...sdk-v0.26.1
Full Changelog: sdk-v0.25.2...sdk-v0.26.0
Full Changelog: sdk-v0.25.1...sdk-v0.25.2
Full Changelog: sdk-v0.25.0...sdk-v0.25.1
- internal: update publish npm script (#483) (fb862ff)
- internal: updates (#487) (67a3325)
- sync openapi version (#481) (5fd7e21)
- sync openapi version (#485) (e74c522)
- sync openapi version (#486) (ad98e9e)
Full Changelog: sdk-v0.24.3...sdk-v0.25.0
- add back compat alias for InputJsonDelta (8b08161)
- client: make request-id header more accessible (#462) (5ea6f8b)
- compat: remove ReadableStream polyfill redundant since node v16 (#478) (75f5710)
- use relative paths (#475) (a8ca93c)
- bedrock: use
chunk
for internal SSE parsing instead ofcompletion
(#472) (0f6190a) - ci: also run workflows for PRs targeting
next
(#464) (cc405a8) - docs: fix incorrect client var names (#479) (a247935)
- docs: mention lack of support for web browser runtimes (#468) (968a7fb)
- docs: minor update to formatting of API link in README (#467) (50b9f2b)
- docs: rename anthropic const to client (#471) (e1a7f9f)
- docs: use client instead of package name in Node examples (#469) (8961ebf)
- internal: add constant for default timeout (#480) (dc89753)
- internal: minor changes to tests (#465) (c1fd563)
- internal: remove old reference to check-test-server (8dc9afc)
- sync spec (#470) (b493aa4)
- tests: update prism version (#473) (6f21ecf)
Full Changelog: sdk-v0.24.2...sdk-v0.24.3
- types: avoid errors on certain TS versions (dd6aca5)
Full Changelog: sdk-v0.24.1...sdk-v0.24.2
- partial-json: don't error on unknown tokens (d212ce1)
- partial-json: handle
null
token properly (f53742f)
Full Changelog: sdk-v0.24.0...sdk-v0.24.1
- internal: minor reformatting (#444) (46790bb)
- internal: replace deprecated aws-sdk packages with @smithy (#447) (4328cbf)
Full Changelog: sdk-v0.23.0...sdk-v0.24.0
Full Changelog: sdk-v0.22.0...sdk-v0.23.0
Full Changelog: sdk-v0.21.1...sdk-v0.22.0
- api/types: add stream event type aliases with a Raw prefix (#428) (1e367e4)
- api: tool use is GA and available on 3P (#429) (2decf85)
- bedrock: support tools (91fc61a)
- streaming: add tools support (4c83bb1)
- vertex: support tools (acf0aa7)
Full Changelog: sdk-v0.21.0...sdk-v0.21.1
Full Changelog: sdk-v0.20.9...sdk-v0.21.0
- api: add
tool_choice
param, image block params insidetool_result.content
, and streaming fortool_use
blocks (#418) (421a1e6)
- docs: add SECURITY.md (#411) (bf2ad84)
- internal: add slightly better logging to scripts (#415) (7a042d2)
- internal: fix generated version numbers (#413) (ea77063)
Full Changelog: sdk-v0.20.8...sdk-v0.20.9
- internal: add link to openapi spec (#406) (39c856d)
- internal: bump prism version (#407) (0c1eb5d)
- internal: move client class to separate file (#408) (b5e1e4a)
- internal: refactor scripts (#404) (f60e2d8)
Full Changelog: sdk-v0.20.7...sdk-v0.20.8
- internal: add scripts/test and scripts/mock (#403) (bdc6011)
- internal: use actions/checkout@v4 for codeflow (#400) (6d565d3)
Full Changelog: sdk-v0.20.6...sdk-v0.20.7
Full Changelog: sdk-v0.20.5...sdk-v0.20.6
Full Changelog: sdk-v0.20.4...sdk-v0.20.5
Full Changelog: sdk-v0.20.3...sdk-v0.20.4
Full Changelog: sdk-v0.20.2...sdk-v0.20.3
Full Changelog: sdk-v0.20.1...sdk-v0.20.2
Full Changelog: sdk-v0.20.0...sdk-v0.20.1
Full Changelog: sdk-v0.19.2...sdk-v0.20.0
Full Changelog: sdk-v0.19.1...sdk-v0.19.2
- deps: bump yarn to v1.22.22 (#369) (603d7b1)
- deps: remove unused dependency digest-fetch (#368) (df1df0f)
Full Changelog: sdk-v0.19.0...sdk-v0.19.1
- client: correctly send deno version header (#354) (ad5162b)
- handle process.env being undefined in debug func (#351) (3b0f38a)
- streaming: correct accumulation of output tokens (#361) (76af283)
- types: correct typo claude-2.1' to claude-2.1 (#352) (0d5efb9)
- bedrock: fix dead link (#356) (a953e00)
- readme: consistent use of sentence case in headings (#347) (30f45d1)
- readme: document how to make undocumented requests (#349) (f92c50a)
Full Changelog: sdk-v0.18.0...sdk-v0.19.0
- vertex: add support for overriding google auth (#338) (28d98c4)
- vertex: api is no longer in private beta (#344) (892127c)
Full Changelog: sdk-v0.17.2...sdk-v0.18.0
Full Changelog: sdk-v0.17.1...sdk-v0.17.2
Full Changelog: sdk-v0.17.0...sdk-v0.17.1
- deprecate old access token getter (#322) (1110548)
- remove extraneous --save and yarn install instructions (#323) (775ecb9)
Full Changelog: sdk-v0.16.1...sdk-v0.17.0
Full Changelog: sdk-v0.16.0...sdk-v0.16.1
Full Changelog: sdk-v0.15.0...sdk-v0.16.0
- update examples (459956a)
Full Changelog: sdk-v0.14.1...sdk-v0.15.0
- contributing: improve wording (#299) (7697fa1)
- readme: fix typo in custom fetch implementation (#300) (a4974c3)
Full Changelog: sdk-v0.14.0...sdk-v0.14.1
- ci: update actions/setup-node action to v4 (#295) (359a856)
- docs: remove references to old bedrock package (#289) (33b935e)
- internal: refactor release environment script (#294) (b7f8714)
Full Changelog: sdk-v0.13.1...sdk-v0.14.0
- api: messages is generally available (#287)
Full Changelog: sdk-v0.13.0...sdk-v0.13.1
- internal: reformat pacakge.json (#284) (3760c68)
- respect
application/vnd.api+json
content-type header (#286) (daf0cae)
Full Changelog: sdk-v0.12.8...sdk-v0.13.0
Full Changelog: sdk-v0.12.7...sdk-v0.12.8
- interal: make link to api.md relative (#278) (46f8c28)
- internal: enable building when git installed (#279) (3065001)
Full Changelog: sdk-v0.12.6...sdk-v0.12.7
- bedrock: move bedrock SDK to the main repo (#274) (b4ef3a8)
- ci: fix publish packages script (#272) (db3585d)
Full Changelog: sdk-v0.12.5...sdk-v0.12.6
Full Changelog: sdk-v0.12.4...sdk-v0.12.5
- internal: don't re-export streaming type (#267) (bcae5a9)
- internal: update release-please config (#269) (80952e6)
Full Changelog: sdk-v0.12.3...sdk-v0.12.4
- internal: add internal helpers & improve build scripts (#261) (4c1504a)
- internal: minor streaming updates (#264) (d4414ff)
- internal: update resource client type (#263) (bc4f115)
Full Changelog: v0.12.2...v0.12.3
Full Changelog: v0.12.1...v0.12.2
- ci: ignore stainless-app edits to release PR title (#258) (87e4ba8)
- types: accept undefined for optional client options (#257) (a0e2c4a)
- use default base url if BASE_URL env var is blank (#250) (e38f32f)
- internal: debug logging for retries; speculative retry-after-ms support (#256) (b4b70fd)
- internal: narrow type into stringifyQuery (#253) (3f42e07)
- fix missing async in readme code sample (#255) (553fb37)
- readme: improve api reference (#254) (3721927)
Full Changelog: v0.12.0...v0.12.1
- headers: always send lowercase headers and strip undefined (BREAKING in rare cases) (#245) (7703066)
- add .keep files for examples and custom code directories (#249) (26b9062)
- internal: improve type signatures (#247) (40edd29)
Full Changelog: v0.11.0...v0.12.0
- remove anthropic-beta and x-api-key headers from param types (#243)
- readme: add streaming helper documentation (#238) (d74ee71)
- readme: remove old migration guide (#236) (65dff0a)
- reformat README.md (#241) (eb12705)
Full Changelog: v0.10.2...v0.11.0
- api: add messages endpoint with streaming helpers (#235) (12b914f)
- client: support reading the base url from an env variable (#223) (5bc3600)
- ci: run release workflow once per day (#232) (115479f)
- deps: update dependency ts-jest to v29.1.1 (#233) (bec6ab1)
- deps: update jest (#234) (5506174)
- update dependencies (#231) (4e34536)
- update prettier (#230) (173603e)
Full Changelog: v0.10.1...v0.10.2
Full Changelog: v0.10.0...v0.10.1
Full Changelog: v0.9.1...v0.10.0
Full Changelog: v0.9.0...v0.9.1
- ci: update release-please config (#206) (270b0b7)
- docs: fix github links (#208) (b316603)
- internal: update APIResource structure (#211) (0d6bbce)
- internal: update jest config (#210) (b0c64eb)
- internal: update tsconfig (#209) (81b3e0b)
Full Changelog: v0.8.1...v0.9.0
- document customizing fetch (#204) (d2df724)
- fix github links (#200) (4038acd)
- readme: mention version header (#205) (a8d8f07)
Full Changelog: v0.8.0...v0.8.1
Full Changelog: v0.7.0...v0.8.0
Full Changelog: v0.6.8...v0.7.0
Full Changelog: v0.6.7...v0.6.8
Full Changelog: v0.6.6...v0.6.7
- add case insensitive get header function (#178) (13c398d)
- internal: add debug logs for stream responses (#182) (a1fa1b7)
- update comment (#179) (27a425e)
- streaming: change Stream constructor signature (#174) (1951824)
- test: refactor authentication tests (#176) (f59daad)
Full Changelog: v0.6.5...v0.6.6
Full Changelog: v0.6.4...v0.6.5
- client: handle retry-after with a date (#162) (31bd609)
- client: retry on 408 Request Timeout (#151) (3523ffe)
- client: support importing node or web shims manually (#157) (c1237fe)
- errors: add status code to error message (#155) (76cf128)
- package: export a root error type (#160) (51d8d60)
- client: eliminate circular imports, which cause runtime errors in webpack dev bundles (#170) (4a86733)
- fix namespace exports regression (#171) (0689a91)
- prevent ReferenceError, update compatibility to ES2020 and Node 18+ (#169) (9753314)
- internal: bump lock file (#159) (e6030fa)
- internal: minor formatting improvement (#168) (6447608)
- internal: update lock file (#161) (370ce3c)
- internal: update lock file (#163) (4a37181)
- internal: update lock file (#164) (939c155)
- api.md: add shared models (#158) (33e5518)
- declare Bun 1.0 officially supported (#154) (429d8f4)
- readme: remove incorrect wording in opening (#156) (01973fe)
Full Changelog: v0.6.3...v0.6.4
- client: fix TS errors that appear when users Go to Source in VSCode (#142) (f7bfbea)
- client: handle case where the client is instantiated with a undefined baseURL (#143) (10e5203)
- client: use explicit file extensions in _shims imports (#141) (10fd687)
- fix module not found errors in Vercel edge (#148) (72e51a1)
- readme: update link to api.md to use the correct branch (#145) (5db78ed)
Full Changelog: v0.6.2...v0.6.3
0.6.2 (2023-08-26)
- internal: add helper method (#133) (4c6950a)
- internal: export HeadersInit type shim (#129) (bcd51bd)
0.6.1 (2023-08-23)
- allow a default timeout to be set for clients (#113) (1c5b2e2)
- client: improve compatibility with Bun (#119) (fe4f5d5)
- docs: add documentation to the client constructor (#118) (79303f9)
- types: export RequestOptions type (#127) (9769751)
- types: remove footgun with streaming params (#125) (3ed67b6)
- client: fix TypeError when a request gets retried (#117) (0ade979)
- core: fix navigator check for strange environments (#124) (c783604)
- types: add catch-all overload to streaming methods (#123) (7c229a2)
- assign default reviewers to release PRs (#115) (1df3965)
- internal: add missing eslint-plugin-prettier (#122) (66bede0)
- internal: fix error happening in CloudFlare pages (#116) (b0dc7b3)
- internal: minor reformatting of code (#120) (4bcaf9e)
0.6.0 (2023-08-12)
- client: add support for accessing the raw response object (#105) (c86b059)
- client: detect browser usage (#101) (f4cae3f)
- types: improve streaming params types (#102) (cdf808c)
- readme: minor updates (#107) (406fd97)
- readme: remove beta status + document versioning policy (#100) (e9ef3d2)
- docs: remove trailing spaces (#108) (4ba2c6f)
- internal: conditionally include bin during build output (#109) (58ac305)
- internal: fix deno build (#98) (f011e04)
- internal: remove deno build (#103) (9af1527)
0.5.10 (2023-08-01)
- internal: allow the build script to be run without yarn installed (#91) (9bd2b28)
- internal: fix deno build (#96) (3fdab4e)
0.5.9 (2023-07-29)
- client: handle undefined process in more places (#87) (d950c25)
- examples: avoid swallowing errors in example scripts (#82) (b27cfe9)
- fix undefined message in errors (#86) (5714a14)
0.5.8 (2023-07-22)
- streaming: make requests immediately throw an error if an aborted signal is passed in (#79) (5c86597)
0.5.7 (2023-07-19)
- add flexible enum to model param (#73) (a6bbcad)
- client: export ClientOptions interface (#75) (0315ce1)
- deps: remove unneeded qs dep (#72) (0aea5a6)
- client: fix errors with file uploads in the browser (#76) (ac48fa7)
- fix error in environments without
TextEncoder
(#70) (5b78e05) - fix export map order (#74) (51e70cb)
0.5.6 (2023-07-15)
0.5.5 (2023-07-13)
- examples: bump model to claude-2 in example scripts (#57) (f85c05d)
- readme: improvements to formatting code snippets (#58) (67bae64)
- internal: add helper function for b64 (#62) (04e303c)
- internal: let
toFile
helper accept promises to objects with name/type properties (#63) (93f9af2) - internal: remove unneeded type var usage (#59) (42fc4a9)