Skip to content

release: 2.0.0 #466

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 9 commits into
base: main
Choose a base branch
from

Conversation

stainless-app[bot]
Copy link
Contributor

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

Automated Release PR

2.0.0 (2025-05-10)

Full Changelog: v1.6.1...v2.0.0

⚠ BREAKING CHANGES

  • client: change precision of some numeric types
  • 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 reinforcement fine-tuning api support (d243892)
  • client: allow providing some params positionally (7200cf6)
  • client: extract auto pagination to shared classes (f623bca)

Bug Fixes

  • add missing deploymentModel params (bb85d0d)
  • merge conflict (4587737)

Chores

  • internal: fix custom code (1da6c92)

Documentation

  • remove or fix invalid readme examples (4bf868a)

Refactors

  • client: change precision of some numeric types (6cdb671)

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 May 8, 2025 17:44
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 21b1c8d to bb85d0d Compare May 8, 2025 22:00
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 050ad47 to 7200cf6 Compare May 8, 2025 22:08
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 1f89942 to 4587737 Compare May 8, 2025 22:33
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from eb0d6ac to 4bf868a Compare May 8, 2025 23:06
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 7c0b462 to f623bca Compare May 8, 2025 23:52
@stainless-app stainless-app bot changed the title release: 1.7.0 release: 2.0.0 May 8, 2025
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 7367a5a to f623bca Compare May 8, 2025 23:52
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 013b2fe to 6cdb671 Compare May 9, 2025 00:05
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 3 times, most recently from 6315bcf to 1da6c92 Compare May 10, 2025 05:04
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