Skip to content

v0.4.0

Choose a tag to compare

@stainless-app stainless-app released this 13 May 14:18
d0b607a

0.4.0 (2025-05-13)

Full Changelog: v0.3.0...v0.4.0

⚠ BREAKING CHANGES

  • client: extract auto pagination to shared classes
  • client: Migration: - If you were referencing the AutoPager class on a specific *Page or *PageAsync type, then you should instead reference the shared AutoPager and AutoPagerAsync types, under the core package
    • AutoPagerAsync now has different usage. You can call .subscribe(...) on the returned object instead to get called back each page item. You can also call onCompleteFuture() to get a future that completes when all items have been processed. Finally, you can call .close() on the returned object to stop auto-paginating early
    • If you were referencing getNextPage or getNextPageParams:
      • Swap to nextPage() and nextPageParams()
      • Note that these both now return non-optional types (use hasNextPage() before calling these, since they will throw if it's impossible to get another page)

Features

  • api: add support for voice call and preferred channel (dd3d6ad)
  • client: allow providing some params positionally (05f45f3)
  • client: extract auto pagination to shared classes (7e51ebc)

Performance Improvements

  • internal: improve compilation+test speed (85c53e5)

Chores

  • ci: add timeout thresholds for CI jobs (af7a95d)
  • ci: only use depot for staging repos (dbeb5eb)
  • ci: run on more branches and use depot runners (a6a1964)
  • internal: java 17 -> 21 on ci (4df8bf1)
  • internal: remove flaky -Xbackend-threads=0 option (61327dd)
  • internal: update java toolchain (3f69cd3)

Documentation

  • client: update jackson compat error message (baba4df)
  • explain http client customization (54858cc)
  • explain jackson compat in readme (ddc293e)
  • update documentation links to be more uniform (cba387a)