Skip to content

Latest commit

 

History

History
718 lines (367 loc) · 49.9 KB

CHANGELOG.md

File metadata and controls

718 lines (367 loc) · 49.9 KB

Changelog

0.19.0 (2024-03-19)

Full Changelog: sdk-v0.18.0...sdk-v0.19.0

Features

  • vertex: add support for overriding google auth (#338) (28d98c4)
  • vertex: api is no longer in private beta (#344) (892127c)

Bug Fixes

  • internal: make toFile use input file's options (#343) (2dc2174)

Chores

  • internal: update generated pragma comment (#341) (fd60f63)

Documentation

0.18.0 (2024-03-13)

Full Changelog: sdk-v0.17.2...sdk-v0.18.0

Features

Documentation

0.17.2 (2024-03-12)

Full Changelog: sdk-v0.17.1...sdk-v0.17.2

Chores

  • internal: add explicit type annotation to decoder (#324) (7e172c7)

0.17.1 (2024-03-06)

Full Changelog: sdk-v0.17.0...sdk-v0.17.1

Documentation

  • deprecate old access token getter (#322) (1110548)
  • remove extraneous --save and yarn install instructions (#323) (775ecb9)

0.17.0 (2024-03-06)

Full Changelog: sdk-v0.16.1...sdk-v0.17.0

Features

  • api: add enum to model param for message (#315) (0c44de0)

Bug Fixes

  • streaming: correctly handle trailing new lines in byte chunks (#317) (0147b46)

Chores

  • types: fix accidental exposure of Buffer type to cloudflare (#319) (a5e4462)

Documentation

0.16.1 (2024-03-04)

Full Changelog: sdk-v0.16.0...sdk-v0.16.1

Chores

Documentation

0.16.0 (2024-03-04)

Full Changelog: sdk-v0.15.0...sdk-v0.16.0

Features

Chores

0.15.0 (2024-03-04)

Full Changelog: sdk-v0.14.1...sdk-v0.15.0

Features

  • messages: add support for image inputs (#303) (7663bd6)

Bug Fixes

  • MessageStream: handle errors more gracefully in async iterator (#301) (9cc0daa)

Chores

Documentation

  • contributing: improve wording (#299) (7697fa1)
  • readme: fix typo in custom fetch implementation (#300) (a4974c3)

0.14.1 (2024-02-22)

Full Changelog: sdk-v0.14.0...sdk-v0.14.1

Chores

  • 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)

Documentation

  • readme: fix header for streaming helpers (#293) (7278e6f)

Refactors

0.14.0 (2024-02-13)

Full Changelog: sdk-v0.13.1...sdk-v0.14.0

⚠ BREAKING CHANGES

  • api: messages is generally available (#287)

Features

  • api: messages is generally available (#287) (be0a828)

0.13.1 (2024-02-07)

Full Changelog: sdk-v0.13.0...sdk-v0.13.1

Chores

  • internal: reformat pacakge.json (#284) (3760c68)
  • respect application/vnd.api+json content-type header (#286) (daf0cae)

0.13.0 (2024-02-02)

Full Changelog: sdk-v0.12.8...sdk-v0.13.0

Features

Chores

0.12.8 (2024-02-02)

Full Changelog: sdk-v0.12.7...sdk-v0.12.8

Chores

  • interal: make link to api.md relative (#278) (46f8c28)
  • internal: enable building when git installed (#279) (3065001)

Documentation

0.12.7 (2024-01-31)

Full Changelog: sdk-v0.12.6...sdk-v0.12.7

Chores

  • bedrock: move bedrock SDK to the main repo (#274) (b4ef3a8)
  • ci: fix publish packages script (#272) (db3585d)

0.12.6 (2024-01-30)

Full Changelog: sdk-v0.12.5...sdk-v0.12.6

Chores

  • internal: support pre-release versioning (#270) (566069d)

0.12.5 (2024-01-25)

Full Changelog: sdk-v0.12.4...sdk-v0.12.5

Chores

  • internal: don't re-export streaming type (#267) (bcae5a9)
  • internal: update release-please config (#269) (80952e6)

0.12.4 (2024-01-23)

Full Changelog: sdk-v0.12.3...sdk-v0.12.4

Chores

  • internal: add internal helpers & improve build scripts (#261) (4c1504a)
  • internal: minor streaming updates (#264) (d4414ff)
  • internal: update resource client type (#263) (bc4f115)

0.12.3 (2024-01-19)

Full Changelog: v0.12.2...v0.12.3

Bug Fixes

  • allow body type in RequestOptions to be null (#259) (2f98de1)

0.12.2 (2024-01-18)

Full Changelog: v0.12.1...v0.12.2

Bug Fixes

  • 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)

Chores

  • internal: debug logging for retries; speculative retry-after-ms support (#256) (b4b70fd)
  • internal: narrow type into stringifyQuery (#253) (3f42e07)

Documentation

0.12.1 (2024-01-08)

Full Changelog: v0.12.0...v0.12.1

Bug Fixes

  • headers: always send lowercase headers and strip undefined (BREAKING in rare cases) (#245) (7703066)

Chores

  • add .keep files for examples and custom code directories (#249) (26b9062)
  • internal: improve type signatures (#247) (40edd29)

0.12.0 (2023-12-21)

Full Changelog: v0.11.0...v0.12.0

⚠ BREAKING CHANGES

  • remove anthropic-beta and x-api-key headers from param types (#243)

Bug Fixes

  • remove anthropic-beta and x-api-key headers from param types (#243) (60f67ae)

Documentation

Refactors

0.11.0 (2023-12-19)

Full Changelog: v0.10.2...v0.11.0

Features

  • api: add messages endpoint with streaming helpers (#235) (12b914f)
  • client: support reading the base url from an env variable (#223) (5bc3600)

Chores

Documentation

Build System

0.10.2 (2023-11-28)

Full Changelog: v0.10.1...v0.10.2

0.10.1 (2023-11-24)

Full Changelog: v0.10.0...v0.10.1

Chores

  • internal: remove file import and conditionally run prepare (#217) (8ac5c7a)

0.10.0 (2023-11-21)

Full Changelog: v0.9.1...v0.10.0

Features

  • allow installing package directly from github (#215) (3de3f1b)

Chores

0.9.1 (2023-11-14)

Full Changelog: v0.9.0...v0.9.1

Chores

0.9.0 (2023-11-05)

Full Changelog: v0.8.1...v0.9.0

Features

Chores

Documentation

0.8.1 (2023-10-25)

Full Changelog: v0.8.0...v0.8.1

Bug Fixes

0.8.0 (2023-10-24)

Full Changelog: v0.7.0...v0.8.0

Features

  • client: adjust retry behavior to be exponential backoff (#192) (747afe2)

0.7.0 (2023-10-19)

Full Changelog: v0.6.8...v0.7.0

Features

0.6.8 (2023-10-17)

Full Changelog: v0.6.7...v0.6.8

Bug Fixes

  • import web-streams-polyfill without overriding globals (#186) (e774e17)

0.6.7 (2023-10-16)

Full Changelog: v0.6.6...v0.6.7

Bug Fixes

  • improve status code in error messages (#183) (7d3bbd4)

Chores

Documentation

  • organisation -> organization (UK to US English) (#185) (70257d4)

Refactors

  • streaming: change Stream constructor signature (#174) (1951824)
  • test: refactor authentication tests (#176) (f59daad)

0.6.6 (2023-10-11)

Full Changelog: v0.6.5...v0.6.6

Chores

0.6.5 (2023-10-11)

Full Changelog: v0.6.4...v0.6.5

Features

  • 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)

Bug Fixes

  • 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)

Chores

Documentation

0.6.4 (2023-09-08)

Full Changelog: v0.6.3...v0.6.4

Features

Bug Fixes

  • 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)

Chores

Documentation

0.6.3 (2023-08-28)

Full Changelog: v0.6.2...v0.6.3

Bug Fixes

  • types: improve getNextPage() return type (#137) (713d603)

Chores

  • ci: setup workflows to create releases and release PRs (#135) (56229d9)

0.6.2 (2023-08-26)

Bug Fixes

  • stream: declare Stream.controller as public (#132) (ff33a89)

Refactors

  • remove unnecessary line in constructor (#131) (dcdf5e5)

Chores

0.6.1 (2023-08-23)

Features

  • 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)

Bug Fixes

  • 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)

Documentation

Chores

  • 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)

Features

  • client: add support for accessing the raw response object (#105) (c86b059)
  • client: detect browser usage (#101) (f4cae3f)
  • types: improve streaming params types (#102) (cdf808c)

Documentation

  • readme: minor updates (#107) (406fd97)
  • readme: remove beta status + document versioning policy (#100) (e9ef3d2)

Chores

Refactors

  • client: remove Stream.toReadableStream() (#110) (c370412)

0.5.10 (2023-08-01)

Refactors

Documentation

  • readme: add token counting reference (#94) (2c6a699)

Chores

  • 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)

Bug Fixes

  • 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)

Chores

  • internal: minor refactoring of client instantiation (#88) (2c53e1c)

Refactors

  • use destructuring arguments in client constructor and respect false values (#89) (8d4c686)

0.5.8 (2023-07-22)

Features

  • streaming: make requests immediately throw an error if an aborted signal is passed in (#79) (5c86597)

0.5.7 (2023-07-19)

Features

  • add flexible enum to model param (#73) (a6bbcad)
  • client: export ClientOptions interface (#75) (0315ce1)
  • deps: remove unneeded qs dep (#72) (0aea5a6)

Bug Fixes

  • 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)

Bug Fixes

  • fix errors with "named" client export in CJS (#67) (08ef69c)

0.5.5 (2023-07-13)

Features

  • client: add support for passing a signal request option (#55) (09604e9)

Bug Fixes

  • streaming: do not abort successfully completed streams (#53) (950dd49)

Documentation

  • examples: bump model to claude-2 in example scripts (#57) (f85c05d)
  • readme: improvements to formatting code snippets (#58) (67bae64)

Chores

  • 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)

0.5.4 (2023-07-11)

Features

  • api: reference claude-2 in examples (#50) (7c53ded)
  • client: support passing a custom fetch function (#46) (7d54366)

Bug Fixes

  • client: properly handle multi-byte characters in Content-Length (#47) (8dfff26)

Refactors

  • streaming: make response body streaming polyfill more spec-compliant (#44) (047d328)