Skip to content

chore: release main#955

Open
stainless-app[bot] wants to merge 12 commits intomainfrom
release-please--branches--main--changes--next
Open

chore: release main#955
stainless-app[bot] wants to merge 12 commits intomainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app bot commented Mar 20, 2026

✨ Stainless prepared a new release

sdk: 0.81.0

0.81.0 (2026-03-27)

Full Changelog: sdk-v0.80.0...sdk-v0.81.0

Features

  • add .type field to APIError for error kind identification (#790) (4bf637d)

Chores

  • ci: run builds on CI even if only spec metadata changed (70b657a)
  • ci: skip lint on metadata-only changes (69bdc94)
  • internal: codegen related update (7ff7390)
  • internal: update gitignore (46d6667)
  • internal: update multipart form array serialization (d55b07d)
  • tests: bump steady to v0.19.4 (4957a5e)
  • tests: bump steady to v0.19.5 (c511ae0)
  • tests: bump steady to v0.19.6 (6d2b4b9)
  • tests: bump steady to v0.19.7 (d6cff9d)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

@stainless-app stainless-app bot requested a review from a team as a code owner March 20, 2026 17:56
Expose `error.error.type` (e.g. `"rate_limit_error"`,
`"overloaded_error"`) as a top-level `.type` field on `APIError`. This
lets users identify error kinds uniformly across HTTP errors and
streaming errors, since streaming errors arrive as SSE error events with
HTTP 200 status (making `instanceof` and status code checks unreliable).

Equivalent of
stainless-sdks/anthropic-python#1587 for
TypeScript.

```typescript
try {
  for await (const event of stream) { /* ... */ }
} catch (err) {
  if (err instanceof Anthropic.APIError) {
    if (err.type === 'rate_limit_error' || err.type === 'overloaded_error') {
      // retry after backoff — works for both streaming and non-streaming
    }
  }
}
```
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from fbd3165 to f0c0b7e Compare March 20, 2026 18:34
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 4 times, most recently from ceb2e50 to 4b4a3d5 Compare March 23, 2026 05:29
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 4b4a3d5 to 729cbe5 Compare March 23, 2026 12:43
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 2 times, most recently from 4f2a4e9 to b9325b9 Compare March 24, 2026 05:27
Note that we still want to run tests, as these depend on the metadata.
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from b9325b9 to fac149d Compare March 24, 2026 15:20
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 3 times, most recently from 0181cb9 to 6b932b4 Compare March 26, 2026 05:30
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 6b932b4 to b746c36 Compare March 26, 2026 13:40
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 2 times, most recently from b2ca11d to f3a2326 Compare March 27, 2026 05:30
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from f3a2326 to c70a4f1 Compare March 27, 2026 15:14
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from c70a4f1 to 9adcd8b Compare March 27, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant