Skip to content

release: 0.4.0#5

Open
stainless-app[bot] wants to merge 18 commits intomainfrom
release-please--branches--main--changes--next
Open

release: 0.4.0#5
stainless-app[bot] wants to merge 18 commits intomainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

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

Automated Release PR

0.4.0 (2026-04-25)

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

Features

Bug Fixes

  • escape ampersand in OpenAPI summaries for C# XML docs (fb78c9a)

Chores

  • sync OpenAPI spec (c225ad8)
  • wire production_repo for all targets (1a3de89)

Documentation

  • add Contributor Covenant 2.1 Code of Conduct (#2192) (afb97b0)

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

Note

Release 0.4.0 with new credit, health, and radar model fields across the SDK

  • Removes integrations() and bot() from both blocking and async client interfaces and implementations; removes FOLLOWER_GAINED, FOLLOWER_LOST, STREAM_REGISTRATION_FAILED, and USAGE_LIMIT_REACHED from EventType and Error known values.
  • Replaces AccountRetrieveResponse.CurrentPeriod with CreditInfo (fields: autoTopupEnabled, balance, lifetimePurchased, lifetimeUsed); adds required health enum to XAccount, XAccountDetail, AccountReauthResponse, and AccountCreateResponse.
  • Rewrites security header injection: ClientOptions now automatically adds X-Api-Key and Authorization: Bearer headers at construction time; per-call SecurityOptions parameter is removed from prepare/prepareAsync and all service impls.
  • RadarItem gains required typed id, createdAt, language, metadata, sourceId, and enum category/source; RadarRetrieveTrendingTopicsParams replaces count with cursor-based after/limit and uses an enum Category; response replaces total with hasMore/nextCursor.
  • TweetCreateParams makes text optional and adds an optional media list; XGetTrendsParams gains optional count and woeid query parameters.
  • SearchTweet and UserProfile are moved to the com.x_twitter_scraper.api.models package.
  • Behavioral Change: bearer token is no longer set in test client construction; SecurityOptions-based per-request auth is removed in favor of construction-time header injection.

Macroscope summarized 0e1dfb9.

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 22, 2026

Too many files changed for review. (267 files found, 200 file limit)

@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app Bot commented Apr 22, 2026

🧪 Testing

To try out this version of the SDK:

Add the following URL as a Maven source: 'https://pkg.stainless.com/s/x-twitter-scraper-java/fb78c9aea1252be7535e3b5efcc5f916805831d4/mvn'

Expires at: Mon, 25 May 2026 05:32:12 GMT
Updated at: Sat, 25 Apr 2026 05:32:12 GMT

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 40a8eed to da32a76 Compare April 22, 2026 21:26
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from da32a76 to 0e1dfb9 Compare April 25, 2026 05:27
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