Skip to content

Releases: anthropics/anthropic-sdk-typescript

v0.6.1

23 Aug 12:57
Compare
Choose a tag to compare

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)

v0.6.0

12 Aug 01:12
Compare
Choose a tag to compare

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)

v0.5.10

01 Aug 22:36
Compare
Choose a tag to compare

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)

v0.5.9

29 Jul 01:31
Compare
Choose a tag to compare

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)

v0.5.8

22 Jul 01:38
Compare
Choose a tag to compare

0.5.8 (2023-07-22)

Features

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

v0.5.7

19 Jul 22:24
Compare
Choose a tag to compare

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)

v0.5.6

15 Jul 21:16
Compare
Choose a tag to compare

0.5.6 (2023-07-15)

Bug Fixes

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

v0.5.5

14 Jul 16:13
Compare
Choose a tag to compare

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)

v0.5.4

11 Jul 13:40
97bd635
Compare
Choose a tag to compare

v0.5.3

10 Jul 03:38
Compare
Choose a tag to compare

What's Changed

  • fix(streaming): fix response body streaming in non-Chrome environments #38
  • feat(client): improve timeout handling to reuse agent #37
  • fix: fix errors in package source files when users go to definition in VSCode #36
  • fix: support PromiseLike input to toFile #35
  • refactor: improve streaming implementation #34

Full Changelog: v0.5.2...v0.5.3