Skip to content

release: 0.1.0-alpha.12 #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

stainless-app[bot]
Copy link
Contributor

@stainless-app stainless-app bot commented May 9, 2025

Automated Release PR

0.1.0-alpha.12 (2025-07-01)

Full Changelog: v0.1.0-alpha.11...v0.1.0-alpha.12

⚠ 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

  • client: add a withOptions method (9ebe803)
  • client: allow providing some params positionally (134e615)
  • client: extract auto pagination to shared classes (d2fa723)
  • client: implement per-endpoint base URL support (710b626)

Bug Fixes

  • ci: release-doctor — report correct token name (6e8b2be)
  • client: bump max requests per host to max requests (5 -> 64) (21777c4)
  • client: don't close client on withOptions usage when original is gc'd (2595481)
  • client: remove @MustBeClosed for future returning methods (0e78fa9)

Chores

  • ci: enable for pull requests (5d83cd2)
  • ci: only run for pushes and fork pull requests (69737c8)
  • docs: grammar improvements (d1cacea)
  • internal: codegen related update (ce52e15)
  • sync repo (390e75d)

Documentation

  • add Spring AI sample application (4cc1fb8)
  • remove or fix invalid readme examples (9372b90)

Refactors

  • internal: minor ClientOptionsTest change (7d83620)

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 5f178b9 to ce52e15 Compare May 9, 2025 03:03
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 5a5343a to 134e615 Compare May 9, 2025 03:37
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from b54d299 to 9372b90 Compare May 9, 2025 03:40
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 a06334e to d2fa723 Compare May 9, 2025 03:47
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 37c240f to d1cacea Compare May 22, 2025 02:42
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 6fc34f8 to 0e78fa9 Compare May 29, 2025 04:50
Refactor `HttpRequest` to always take a `baseUrl`, instead of storing this in `OkHttpClient`. This allows better reuse of `OkHttpClient` when changing the `baseUrl`.
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from cc31857 to 710b626 Compare June 12, 2025 03:41
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from fa5de3f to 9ebe803 Compare June 13, 2025 03:20
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 8afe3d0 to 5d83cd2 Compare June 17, 2025 07:26
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 10dfb1f to 21777c4 Compare June 24, 2025 04:04
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 494f464 to 6e8b2be Compare June 27, 2025 02:36
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 32e2e4c to 69737c8 Compare June 28, 2025 09:07
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 7ad9d23 to 2595481 Compare June 30, 2025 02:52
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 24e891a to 7d83620 Compare July 1, 2025 03:10
Copy link
Contributor Author

stainless-app bot commented Jul 8, 2025

Note: this release PR has been open for more than 60 days. Until this PR is merged, we will temporarily stop pushing codegen updates due to changes to Stainless' codegen.

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