Skip to content

release: 7.0.0#425

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

release: 7.0.0#425
stainless-app[bot] merged 12 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app

@stainless-app stainless-app Bot commented Apr 22, 2025

Copy link
Copy Markdown
Contributor

Automated Release PR

7.0.0 (2025-05-08)

Full Changelog: v6.2.0...v7.0.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: only send idempotency headers on PUT / POST requests (b6af4eb)
  • client: allow providing some params positionally (c31350d)
  • client: extract auto pagination to shared classes (578b033)

Bug Fixes

  • client: add missing convenience methods (ac3f059)
  • internal: format (897821c)

Chores

  • ci: add timeout thresholds for CI jobs (0622aaf)
  • ci: only use depot for staging repos (62b7483)
  • ci: run on more branches and use depot runners (0daa6f8)
  • internal: java 17 -> 21 on ci (6511256)
  • internal: remove flaky -Xbackend-threads=0 option (aa64e9e)
  • internal: update java toolchain (6cd2213)
  • internal: use byteInputStream() in tests (ac3f059)

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 1d059d1 to 0daa6f8 Compare April 23, 2025 18:00
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 4510e12 to 62b7483 Compare April 23, 2025 20:04
chore(internal): use `byteInputStream()` in tests
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 55c7966 to ac3f059 Compare April 23, 2025 20:48
@stainless-app stainless-app Bot enabled auto-merge (rebase) April 23, 2025 20:48
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 3e51990 to 6511256 Compare April 23, 2025 22:06
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 245e0ae to 897821c Compare April 30, 2025 22:19
@stainless-app stainless-app Bot changed the title release: 6.2.1 release: 6.3.0 Apr 30, 2025
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 36e31a3 to 897821c Compare April 30, 2025 22:19
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from ccfa322 to 6cd2213 Compare May 2, 2025 00:18
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 6967f4a to aa64e9e Compare May 6, 2025 18:08
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from b10ca28 to c31350d Compare May 8, 2025 22:09
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 abe4045 to 578b033 Compare May 8, 2025 23:52
@stainless-app stainless-app Bot changed the title release: 6.3.0 release: 7.0.0 May 8, 2025
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 5cedc86 to 578b033 Compare May 8, 2025 23:53
@stainless-app stainless-app Bot merged commit 8aa6dec into main May 13, 2025
1 check passed
@stainless-app stainless-app Bot deleted the release-please--branches--main--changes--next branch May 13, 2025 16:48
@stainless-app

stainless-app Bot commented May 13, 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

Development

Successfully merging this pull request may close these issues.

2 participants