140 KiB
Changelog
0.65.0 (2025-09-29)
Full Changelog: sdk-v0.64.0...sdk-v0.65.0
Features
- api: adds support for Claude Sonnet 4.5 and context management features (3f0b0fb)
Chores
0.64.0 (2025-09-26)
Full Changelog: sdk-v0.63.1...sdk-v0.64.0
Features
- toolRunner: support custom headers (ac6a7a3)
Performance Improvements
- faster formatting (32d6185)
Chores
- internal: fix incremental formatting in some cases (2bdf8ee)
- internal: remove deprecated
compilerOptions.baseUrlfrom tsconfig.json (2817c45)
0.63.1 (2025-09-23)
Full Changelog: sdk-v0.63.0...sdk-v0.63.1
Bug Fixes
- helpers/zod: fix compat with zod 3 (a2952e1)
Chores
- do not install brew dependencies in ./scripts/bootstrap by default (115d81a)
- internal: update CI (dfa991a)
- package: lower zod peer dependency constraints (b40cfec)
0.63.0 (2025-09-17)
Full Changelog: sdk-v0.62.0...sdk-v0.63.0
Features
- client: add support for toolRunner helpers (28f5837)
Chores
0.62.0 (2025-09-10)
Full Changelog: sdk-v0.61.0...sdk-v0.62.0
Features
- api: adds support for Documents in tool results (5d971f9)
- api: adds support for web_fetch_20250910 tool (c663898)
0.61.0 (2025-09-02)
Full Changelog: sdk-v0.60.0...sdk-v0.61.0
Features
- client: adds support for code-execution-2025-08-26 tool (91dd1bb)
- mcp: add code execution tool (2f9cfba)
Chores
- add package to package.json (3ee3632)
- client: qualify global Blob (e6bfd68)
- deps: update dependency @types/node to v20.17.58 (e3577f1)
- internal: formatting change (c8f4029)
- internal: update global Error reference (c82be0d)
- update CI script (92f4e99)
Documentation
0.60.0 (2025-08-13)
Full Changelog: sdk-v0.59.0...sdk-v0.60.0
Features
- api: makes 1 hour TTL Cache Control generally available (b3c97bd)
- betas: add context-1m-2025-08-07 (a5f6db8)
Chores
- deprecate older claude-3-5 sonnet models (#488) (4fc9f76)
- internal: update comment in script (8157062)
- internal: update test skipping reason (4ea623a)
- update @stainless-api/prism-cli to v5.15.0 (43616bd)
Documentation
- readme: clarify beta feature usage (3196064)
0.59.0 (2025-08-08)
Full Changelog: sdk-v0.58.0...sdk-v0.59.0
Features
- api: search result content blocks (f372c0d)
Chores
- internal: move publish config (5c1689e)
0.58.0 (2025-08-05)
Full Changelog: sdk-v0.57.0...sdk-v0.58.0
Features
- api: add claude-opus-4-1-20250805 (08c61db)
- api: adds support for text_editor_20250728 tool (ca57d74)
- api: removed older deprecated models (352a5fd)
- update streaming error message to say 'required' not 'recommended' (ffac3e0)
- update streaming error message to say 'required' not 'recommended' (82a9ae5)
- vertex: support global endpoint (#449) (1c42030)
Bug Fixes
- internal/bootstrap: install dependencies for all packages (d3734f9)
- internal/bootstrap: only build main package (82428c7)
- internal/bootstrap: run build before installing other packages (301f504)
- internal/test: use jest directly (dab423b)
Chores
- client: add TextEditor_20250429 tool (bcb557d)
- internal: remove redundant imports config (555769d)
- internal: version bump (eb97e85)
0.57.0 (2025-07-21)
Full Changelog: sdk-v0.56.0...sdk-v0.57.0
Features
- bedrock: better edge runtime support (#462) (5f8d1bb)
- client: add breaking change detection to CI (04332aa)
Bug Fixes
- bedrock: fix lint errors (aa40e9c)
- internal: fix type error for fromSSEResponse call (2405664)
- vertex: fix lint errors (7772f78)
Chores
0.56.0 (2025-07-03)
Full Changelog: sdk-v0.55.1...sdk-v0.56.0
Features
- api: add support for Search Result Content Blocks (2910b28)
- tests: add fixture-based streaming tests and improve test coverage (00424bc)
- vertex: add AuthClient interface support for improved auth flexibility (b6f86e2)
Bug Fixes
Chores
Documentation
- model in examples (9385376)
- more beta updates (7d8b8ac)
- update model in readme (b1799f7)
- update models and non-beta batches (5305cdb)
0.55.1 (2025-06-30)
Full Changelog: sdk-v0.55.0...sdk-v0.55.1
Bug Fixes
- ci: release-doctor — report correct token name (5fa2ebf)
- client: get fetchOptions type more reliably (60673ab)
- client: use proxy in bedrock when requesting credentials from AWS (8cfd227)
Chores
- ci: only run for pushes and fork pull requests (3d1c911)
- client: improve path param validation (1638f13)
0.55.0 (2025-06-24)
Full Changelog: sdk-v0.54.0...sdk-v0.55.0
Features
- client: add support for endpoint-specific base URLs (9be46a8)
Bug Fixes
- client: explicitly copy fetch in withOptions (3a5909b)
- internal: resolve conflict (acfff05)
- publish script — handle NPM errors correctly (c4a6666)
- stream: avoid event listener leak (eb272af)
Chores
- ci: enable for pull requests (8505818)
- client: refactor imports (d5dff04)
- internal: add pure annotations, make base APIResource abstract (183d39c)
- readme: update badges (147f321)
- readme: use better example snippet for undocumented params (5beafd5)
0.54.0 (2025-06-11)
Full Changelog: sdk-v0.53.0...sdk-v0.54.0
Features
- api: api update (e923aa1)
- api: api update (4877181)
- api: manual updates (99b0111)
- client: add support for fine-grained-tool-streaming-2025-05-14 (6b35dd9)
Bug Fixes
- client: deprecate BetaBase64PDFBlock in favor of BetaRequestDocumentBlock (7fa10db)
- client: improve error message in parsing JSON (7c0cb84)
- internal: revert unintentional changes (28dccec)
Chores
- avoid type error in certain environments (48c1a41)
- tests: add testing for invalid json raising (52260c1)
0.53.0 (2025-06-04)
Full Changelog: sdk-v0.52.0...sdk-v0.53.0
Features
- client: add support for new text_editor_20250429 tool (e49ebfb)
Bug Fixes
- client: correctly track input from server_tool_use input deltas (4a14253)
- client: fix link to streaming responses docs (2ad98be)
- compat with more runtimes (3c70ae3)
Chores
- adjust eslint.config.mjs ignore pattern (ab404cf)
- ci: fix release workflow (7e2e566)
- deps: bump eslint-plugin-prettier (8f973c4)
- docs: use top-level-await in example snippets (b4a60ee)
- examples: show how to pass an authorization token to an MCP server (340461b)
- improve publish-npm script --latest tag logic (4a7bdc0)
- internal: codegen related update (345af47)
- internal: codegen related update (6d924ef)
- internal: fix readablestream types in node 20 (b68745b)
- internal: fix release workflows (a8da56f)
Documentation
- pagination: improve naming (8e62803)
0.52.0 (2025-05-22)
Full Changelog: sdk-v0.51.0...sdk-v0.52.0
Features
- api: add claude 4 models, files API, code execution tool, MCP connector and more (769f9da)
Chores
0.51.0 (2025-05-15)
Full Changelog: sdk-v0.50.4...sdk-v0.51.0
Features
- bedrock: support skipAuth on Bedrock client to bypass local auth requirements (b661c5f)
Bug Fixes
- bedrock: support model names with slashes (cb5fa8a)
Chores
- package: remove engines (f0378ec)
0.50.4 (2025-05-12)
Full Changelog: sdk-v0.50.3...sdk-v0.50.4
Bug Fixes
- stream: correctly accumulate usage (c55b4f0)
0.50.3 (2025-05-09)
Full Changelog: sdk-v0.50.2...sdk-v0.50.3
Bug Fixes
- client: always overwrite when merging headers (657912a)
- client: always overwrite when merging headers (bf70c9f)
0.50.2 (2025-05-09)
Full Changelog: sdk-v0.50.1...sdk-v0.50.2
Bug Fixes
- ci: bump publish workflow to node 20 (306a081)
Chores
Documentation
- update readme (ef0c60a)
0.50.1 (2025-05-09)
Full Changelog: sdk-v0.50.0...sdk-v0.50.1
0.50.0 (2025-05-09)
Full Changelog: sdk-v0.41.0...sdk-v0.50.0
Features
- api: adds web search capabilities to the Claude API (b36623f)
- api: manual updates (80d5daa)
- api: manual updates (3124e2b)
- client: add withOptions helper (caab783)
Bug Fixes
- bedrock,vertex: update to new SDK version (cb620bb)
- client: send all configured auth headers (3961628)
- internal: fix file uploads in node 18 jest (1071b34)
- mcp: remove unused tools.ts (4c4d763)
- messages: updates for server tools (c2709b2)
- update old links (f33a68a)
- vertex,bedrock: correct build script (df895a7)
Chores
- bedrock: add
skipAuthoption to allow users to let authorization be handled elsewhere (ee58772) - bedrock: bump @aws-sdk dependencies (ff925db)
- bedrock: bump @aws-sdk/credential-providers (9f611d6)
- ci: add timeout thresholds for CI jobs (385f900)
- ci: only use depot for staging repos (1f05880)
- ci: run on more branches and use depot runners (7176150)
- client: drop support for EOL node versions (ffbb2da)
- client: minor internal fixes (595678f)
- internal: codegen related update (a6ae129)
- internal: fix format script (9ce30ba)
- internal: formatting fixes (7bd4594)
- internal: improve index signature formatting (7dc3e19)
- internal: improve node 18 shims (c6780dd)
- internal: reduce CI branch coverage (464431d)
- internal: refactor utils (b3dee57)
- internal: share typescript helpers (74187db)
- internal: upload builds and expand CI branch coverage (bbda5d3)
- perf: faster base64 decoding (975795a)
- tests: improve enum examples (66cf6d4)
Documentation
- readme: fix typo (6f8fce9)
0.41.0 (2025-05-07)
Full Changelog: sdk-v0.40.1...sdk-v0.41.0
Features
- api: adds web search capabilities to the Claude API (fae7e52)
Chores
- ci: bump node version for release workflows (3502747)
Documentation
0.40.1 (2025-04-28)
Full Changelog: sdk-v0.40.0...sdk-v0.40.1
Chores
0.40.0 (2025-04-25)
Full Changelog: sdk-v0.39.0...sdk-v0.40.0
Features
- add SKIP_BREW env var to ./scripts/bootstrap (#710) (1b8376a)
- api: extract ContentBlockDelta events into their own schemas (#732) (fd0ec83)
- api: manual updates (39b64c9)
- api: manual updates (771e05b)
- api: manual updates (ca6dbd6)
- api: manual updates (14df8cc)
- client: accept RFC6838 JSON content types (#713) (fc32787)
- mcp: allow opt-in mcp resources and endpoints (#720) (9f3a54e)
Bug Fixes
- api: improve type resolution when importing as a package (#738) (8992ed4)
- avoid type error in certain environments (#723) (208fdaf)
- client: deduplicate stop reason type (#726) (2d7cef1)
- client: send
X-Stainless-Timeoutin seconds (#733) (cae4f77) - client: send all configured auth headers (#742) (86708b4)
- exports: ensure resource imports don't require /index (#717) (56b2a80)
- internal: work around https://github.com/vercel/next.js/issues/76881 (#727) (36ea0ef)
- mcp: remove unused tools.ts (#740) (26793e7)
- remove duplicate exports (2df4cdd)
Chores
- add hash of OpenAPI spec/config inputs to .stats.yml (#725) (271be7d)
- bedrock: bump @aws-sdk/credential-providers (a4d88d7)
- ci: add timeout thresholds for CI jobs (1080c70)
- ci: only use depot for staging repos (359dafa)
- ci: run on more branches and use depot runners (3331315)
- client: minor internal fixes (fcf3e35)
- internal: add aliases for Record and Array (#735) (e0a4bec)
- internal: add back release workflow (68d54e5)
- internal: codegen related update (#737) (2a368bb)
- internal: fix lint (2cf3641)
- internal: import ordering changes (#708) (a5680e1)
- internal: improve index signature formatting (#739) (627c5fa)
- internal: reduce CI branch coverage (6ed0bd6)
- internal: remove CI condition (#730) (cc31518)
- internal: remove extra empty newlines (#716) (4d3c024)
- internal: update config (#728) (ababd80)
- internal: upload builds and expand CI branch coverage (#744) (0b7432a)
- tests: improve enum examples (#743) (c1c93a7)
0.39.0 (2025-02-28)
Full Changelog: sdk-v0.38.0...sdk-v0.39.0
Features
Documentation
0.38.0 (2025-02-27)
Full Changelog: sdk-v0.37.0...sdk-v0.38.0
Features
Chores
Documentation
- add thinking examples (db6f761)
0.37.0 (2025-02-24)
Full Changelog: sdk-v0.36.3...sdk-v0.37.0
Features
- api: add claude-3.7 + support for thinking (ffab311)
- client: send
X-Stainless-Timeoutheader (#679) (1172430) - pagination: avoid fetching when has_more: false (#680) (d4df248)
Bug Fixes
- client: fix export map for index exports (#684) (56d9c7a)
- correctly decode multi-byte characters over multiple chunks (#681) (e369e3d)
- optimize sse chunk reading off-by-one error (#686) (53669af)
Chores
- api: update openapi spec url (#678) (84401b1)
- internal: add missing return type annotation (#685) (a8862b9)
- internal: fix devcontainers setup (#689) (8665946)
- internal: reorder model constants (#676) (52a2a11)
- internal: update models used in tests (52a2a11)
0.36.3 (2025-01-27)
Full Changelog: sdk-v0.36.2...sdk-v0.36.3
Bug Fixes
Chores
0.36.2 (2025-01-23)
Full Changelog: sdk-v0.36.1...sdk-v0.36.2
Bug Fixes
- bedrock: update streaming util import (255c059)
0.36.1 (2025-01-23)
Full Changelog: sdk-v0.36.0...sdk-v0.36.1
Chores
- tests: fix types (9efe3ee)
0.36.0 (2025-01-23)
Full Changelog: sdk-v0.35.0...sdk-v0.36.0
Features
- api: add citations (#668) (1fef177)
- client: support results endpoint (#666) (db5fffe)
- stream: expose
responseproperty as well (b0235c7)
Chores
- bedrock: bump dependency on @anthropic-ai/sdk (8745ca2)
- internal: fix import (628b55e)
- internal: minor restructuring (#664) (57aefa7)
- vertex: bump dependency on @anthropic-ai/sdk (a1c7fcd)
0.35.0 (2025-01-21)
Full Changelog: sdk-v0.34.0...sdk-v0.35.0
Features
- add beta message streaming helpers (#655) (d7b5af1)
- stream: add
.withResponse()(#654) (b54477f) - streaming: add
.request_idgetter (4572478)
Bug Fixes
- docs: correct results return type (#657) (4e6d031)
- examples: add token counting example (2498e2e)
- send correct Accept header for certain endpoints (#651) (17ffaeb)
- vertex: add beta.messages.countTokens method (51d3f23)
Chores
- deprecate more models (661f5f9)
- internal: add test (#660) (3ec7d1a)
- internal: temporary revert commit (#643) (43dd43c)
- internal: update examples (#649) (036a239)
- types: add
| undefinedto client options properties (#656) (d642298)
Documentation
0.34.0 (2024-12-20)
Full Changelog: sdk-v0.33.1...sdk-v0.34.0
Features
Bug Fixes
Chores
Documentation
0.33.1 (2024-12-17)
Full Changelog: sdk-v0.33.0...sdk-v0.33.1
Bug Fixes
- vertex: remove
anthropic_versiondeletion for token counting (88221be)
Chores
0.33.0 (2024-12-17)
Full Changelog: sdk-v0.32.1...sdk-v0.33.0
Features
- 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)
Bug Fixes
- docs: add missing await to pagination example (#609) (e303077)
- types: remove anthropic-instant-1.2 model (#599) (e222a4d)
Chores
- 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)
Documentation
- remove suggestion to use
npmcall out (#614) (6369261) - use latest sonnet in example snippets (#625) (f70882b)
0.32.1 (2024-11-05)
Full Changelog: sdk-v0.32.0...sdk-v0.32.1
Bug Fixes
- bedrock: don't mutate request body inputs (f83b535)
- vertex: don't mutate request body inputs (e9a82e5)
0.32.0 (2024-11-04)
Full Changelog: sdk-v0.31.0...sdk-v0.32.0
Features
Bug Fixes
- don't require deno to run build-deno (#586) (0e431d6)
- types: add missing token-counting-2024-11-01 (#583) (13d629c)
Chores
0.31.0 (2024-11-01)
Full Changelog: sdk-v0.30.1...sdk-v0.31.0
Features
Bug Fixes
- countTokens: correctly set beta header (1680757)
- internal: support pnpm git installs (#579) (86bb102)
- types: add missing token-counting-2024-11-01 (aff1546)
Reverts
Chores
Documentation
Refactors
- enable isolatedModules and change imports (#573) (9068b4b)
- use type imports for type-only imports (#580) (2c8a337)
0.30.1 (2024-10-23)
Full Changelog: sdk-v0.30.0...sdk-v0.30.1
Bug Fixes
Chores
0.30.0 (2024-10-22)
Full Changelog: sdk-v0.29.2...sdk-v0.30.0
Features
- api: add new model and
computer-use-2024-10-22beta (6981d89) - bedrock: add beta.messages.create() method (6317592)
- vertex: add beta.messages.create() (22cfdba)
Bug Fixes
Chores
0.29.2 (2024-10-17)
Full Changelog: sdk-v0.29.1...sdk-v0.29.2
Bug Fixes
0.29.1 (2024-10-15)
Full Changelog: sdk-v0.29.0...sdk-v0.29.1
Bug Fixes
Chores
0.29.0 (2024-10-08)
Full Changelog: sdk-v0.28.0...sdk-v0.29.0
Features
- api: add message batches api (4f114d5)
Chores
- internal: move LineDecoder to a separate file (#541) (fd42469)
- internal: pass props through internal parser (#549) (dd71955)
Refactors
- 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)
0.28.0 (2024-10-04)
Full Changelog: sdk-v0.27.3...sdk-v0.28.0
Features
- api: support disabling parallel tool use (#540) (df0032f)
- client: allow overriding retry count header (#536) (ec11f91)
- client: send retry count header (#533) (401b81c)
Bug Fixes
Chores
- better object fallback behaviour for casting errors (#503) (3660e97)
- better object fallback behaviour for casting errors (#526) (4ffb2e4)
- internal: add dev dependency (#531) (a9c127b)
Documentation
- improve and reference contributing documentation (#539) (cbef925)
- update CONTRIBUTING.md (#528) (2609dec)
0.27.3 (2024-09-09)
Full Changelog: sdk-v0.27.2...sdk-v0.27.3
Bug Fixes
- streaming: correct error message serialisation (#524) (e150fa4)
- uploads: avoid making redundant memory copies (#520) (b6d2638)
Chores
0.27.2 (2024-09-04)
Full Changelog: sdk-v0.27.1...sdk-v0.27.2
Bug Fixes
Chores
- 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)
0.27.1 (2024-08-27)
Full Changelog: sdk-v0.27.0...sdk-v0.27.1
Chores
0.27.0 (2024-08-21)
Full Changelog: sdk-v0.26.1...sdk-v0.27.0
Features
Documentation
- readme: update formatting and clarity for CORS flag (9cb2c35)
0.26.1 (2024-08-15)
Full Changelog: sdk-v0.26.0...sdk-v0.26.1
Chores
0.26.0 (2024-08-14)
Full Changelog: sdk-v0.25.2...sdk-v0.26.0
Features
Chores
0.25.2 (2024-08-12)
Full Changelog: sdk-v0.25.1...sdk-v0.25.2
Chores
0.25.1 (2024-08-09)
Full Changelog: sdk-v0.25.0...sdk-v0.25.1
Chores
- 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)
0.25.0 (2024-07-29)
Full Changelog: sdk-v0.24.3...sdk-v0.25.0
Features
- add back compat alias for InputJsonDelta (8b08161)
- client: make request-id header more accessible (#462) (5ea6f8b)
Bug Fixes
- compat: remove ReadableStream polyfill redundant since node v16 (#478) (75f5710)
- use relative paths (#475) (a8ca93c)
Chores
- bedrock: use
chunkfor 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)
Refactors
0.24.3 (2024-07-01)
Full Changelog: sdk-v0.24.2...sdk-v0.24.3
Bug Fixes
- types: avoid errors on certain TS versions (dd6aca5)
0.24.2 (2024-06-28)
Full Changelog: sdk-v0.24.1...sdk-v0.24.2
Bug Fixes
- partial-json: don't error on unknown tokens (d212ce1)
- partial-json: handle
nulltoken properly (f53742f)
Chores
0.24.1 (2024-06-25)
Full Changelog: sdk-v0.24.0...sdk-v0.24.1
Bug Fixes
Chores
- internal: minor reformatting (#444) (46790bb)
- internal: replace deprecated aws-sdk packages with @smithy (#447) (4328cbf)
0.24.0 (2024-06-20)
Full Changelog: sdk-v0.23.0...sdk-v0.24.0
Features
0.23.0 (2024-06-14)
Full Changelog: sdk-v0.22.0...sdk-v0.23.0
Features
Bug Fixes
0.22.0 (2024-05-30)
Full Changelog: sdk-v0.21.1...sdk-v0.22.0
Features
- 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)
Documentation
0.21.1 (2024-05-21)
Full Changelog: sdk-v0.21.0...sdk-v0.21.1
Chores
0.21.0 (2024-05-16)
Full Changelog: sdk-v0.20.9...sdk-v0.21.0
Features
- api: add
tool_choiceparam, image block params insidetool_result.content, and streaming fortool_useblocks (#418) (421a1e6)
Chores
- docs: add SECURITY.md (#411) (bf2ad84)
- internal: add slightly better logging to scripts (#415) (7a042d2)
- internal: fix generated version numbers (#413) (ea77063)
0.20.9 (2024-05-07)
Full Changelog: sdk-v0.20.8...sdk-v0.20.9
Bug Fixes
Chores
- 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)
0.20.8 (2024-04-29)
Full Changelog: sdk-v0.20.7...sdk-v0.20.8
Chores
- internal: add scripts/test and scripts/mock (#403) (bdc6011)
- internal: use actions/checkout@v4 for codeflow (#400) (6d565d3)
0.20.7 (2024-04-24)
Full Changelog: sdk-v0.20.6...sdk-v0.20.7
Chores
0.20.6 (2024-04-17)
Full Changelog: sdk-v0.20.5...sdk-v0.20.6
Build System
0.20.5 (2024-04-15)
Full Changelog: sdk-v0.20.4...sdk-v0.20.5
Chores
0.20.4 (2024-04-11)
Full Changelog: sdk-v0.20.3...sdk-v0.20.4
Chores
0.20.3 (2024-04-10)
Full Changelog: sdk-v0.20.2...sdk-v0.20.3
Bug Fixes
0.20.2 (2024-04-09)
Full Changelog: sdk-v0.20.1...sdk-v0.20.2
Chores
0.20.1 (2024-04-04)
Full Changelog: sdk-v0.20.0...sdk-v0.20.1
Documentation
0.20.0 (2024-04-04)
Full Changelog: sdk-v0.19.2...sdk-v0.20.0
Features
Bug Fixes
Chores
0.19.2 (2024-04-04)
Full Changelog: sdk-v0.19.1...sdk-v0.19.2
Bug Fixes
Chores
- deps: bump yarn to v1.22.22 (#369) (603d7b1)
- deps: remove unused dependency digest-fetch (#368) (df1df0f)
Documentation
0.19.1 (2024-03-29)
Full Changelog: sdk-v0.19.0...sdk-v0.19.1
Bug Fixes
- 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)
Chores
Documentation
- 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)
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
Chores
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
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
Bug Fixes
Chores
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
- update examples (459956a)
0.15.0 (2024-03-04)
Full Changelog: sdk-v0.14.1...sdk-v0.15.0
Features
Bug Fixes
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
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
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+jsoncontent-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
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
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
- fix missing async in readme code sample (#255) (553fb37)
- readme: improve api reference (#254) (3721927)
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
Documentation
- readme: add streaming helper documentation (#238) (d74ee71)
- readme: remove old migration guide (#236) (65dff0a)
- reformat README.md (#241) (eb12705)
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
- 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)
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
0.10.0 (2023-11-21)
Full Changelog: v0.9.1...v0.10.0
Features
Chores
0.9.1 (2023-11-14)
Full Changelog: v0.9.0...v0.9.1
Chores
- 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)
0.9.0 (2023-11-05)
Full Changelog: v0.8.1...v0.9.0
Features
Chores
Documentation
- document customizing fetch (#204) (d2df724)
- fix github links (#200) (4038acd)
- readme: mention version header (#205) (a8d8f07)
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
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
0.6.7 (2023-10-16)
Full Changelog: v0.6.6...v0.6.7
Bug Fixes
Chores
- add case insensitive get header function (#178) (13c398d)
- internal: add debug logs for stream responses (#182) (a1fa1b7)
- update comment (#179) (27a425e)
Documentation
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
- 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)
Documentation
- api.md: add shared models (#158) (33e5518)
- declare Bun 1.0 officially supported (#154) (429d8f4)
- readme: remove incorrect wording in opening (#156) (01973fe)
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
Chores
0.6.2 (2023-08-26)
Bug Fixes
Refactors
Chores
- internal: add helper method (#133) (4c6950a)
- internal: export HeadersInit type shim (#129) (bcd51bd)
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
- 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)
Refactors
0.5.10 (2023-08-01)
Refactors
Documentation
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
Refactors
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
0.5.5 (2023-07-13)
Features
Bug Fixes
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
toFilehelper 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
fetchfunction (#46) (7d54366)