Skip to content

release: 0.90.0#604

Merged
stainless-app[bot] merged 9 commits into
mainfrom
release-please--branches--main--changes--next
May 12, 2025
Merged

release: 0.90.0#604
stainless-app[bot] merged 9 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app

@stainless-app stainless-app Bot commented May 6, 2025

Copy link
Copy Markdown
Contributor

Automated Release PR

0.90.0 (2025-05-12)

Full Changelog: v0.89.1...v0.90.0

⚠ BREAKING CHANGES

  • client: improve some class names
  • 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: manual updates (cda7a4a)
  • client: allow providing some params positionally (0da037e)
  • client: extract auto pagination to shared classes (b2a1763)

Chores

  • internal: fix custom code (a94fb16)
  • internal: fix custom code (5dabc27)
  • internal: remove flaky -Xbackend-threads=0 option (3ac784c)

Refactors

  • client: improve some class names (0a90771)

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 force-pushed the release-please--branches--main--changes--next branch from ec0b1d7 to 4989256 Compare May 8, 2025 16:07
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 24408c9 to 0da037e Compare May 8, 2025 22:14
@stainless-app stainless-app Bot changed the title release: 0.89.2 release: 0.90.0 May 8, 2025
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 5e8bc9a to 0da037e Compare May 8, 2025 22:14
refactor(client)!: refactor async auto-pagination
refactor(client)!: rename `getNextPage{,Params}` to `nextPage{,Params}`
refactor(client)!: swap `nextPage{,Params}` to return non-optional

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

There are examples and further information about pagination in the readme.
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from c1a65ff to b2a1763 Compare May 8, 2025 23:56
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 6e617d2 to 0a90771 Compare May 9, 2025 00:03
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from e94809b to 5dabc27 Compare May 9, 2025 00:59
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from fd223f3 to a94fb16 Compare May 9, 2025 03:07
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from ca66576 to cda7a4a Compare May 12, 2025 15:44
@stainless-app stainless-app Bot enabled auto-merge (rebase) May 12, 2025 15:44
@stainless-app stainless-app Bot merged commit 5f162a3 into main May 12, 2025
3 checks passed
@stainless-app

stainless-app Bot commented May 12, 2025

Copy link
Copy Markdown
Contributor Author

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.

0 participants