You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client: preserve hardcoded query params when merging with user params (987fbc7)
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.
Medium Risk
Modifies core request construction and multipart/file-extraction behavior; could change outgoing request URLs/body shapes for some endpoints if query params or file arrays were previously handled implicitly.
Overview
Bumps the SDK version to 1.21.1 and updates the changelog for this release.
Fixes request building so hardcoded query parameters embedded in options.url (e.g. /foo?beta=true) are preserved and merged with user-supplied params rather than being dropped/overwritten, with new sync/async tests covering encoded paths.
Fixes extract_files path traversal so file arrays (including top-level arrays like files[]) are removed from the input mapping and emitted exactly once, preventing duplicated/incorrect multipart parameters, with an added regression test.
Reviewed by Cursor Bugbot for commit c1c63c6. Bugbot is set up for automated code reviews on this repo. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated Release PR
1.21.1 (2026-04-08)
Full Changelog: v1.21.0...v1.21.1
Bug Fixes
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