Skip to content

release: 1.22.0#182

Open
stainless-app[bot] wants to merge 15 commits into
mainfrom
release-please--branches--main--changes--next
Open

release: 1.22.0#182
stainless-app[bot] wants to merge 15 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app

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

Copy link
Copy Markdown
Contributor

Automated Release PR

1.22.0 (2026-07-18)

Full Changelog: v1.21.0...v1.22.0

Features

  • internal/types: support eagerly validating pydantic iterators (04e4187)
  • stlc: configurable CI runner and private-production-repo support in workflow templates (48c8386)
  • support setting headers via env (30a033a)

Bug Fixes

  • client: add missing f-string prefix in file type error message (ab34d42)
  • client: preserve hardcoded query params when merging with user params (987fbc7)
  • ensure file data are only sent as 1 parameter (a7c0bac)
  • use correct field name format for multipart file arrays (c335429)

Performance Improvements

  • client: optimize file structure copying in multipart requests (ea9d673)

Chores

  • internal: more robust bootstrap script (2291709)
  • internal: reformat pyproject.toml (acc97d1)
  • tests: bump steady to v0.22.1 (02f10ea)

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

@cursor

cursor Bot commented Apr 8, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Changes affect core request assembly (URL query merging, multipart field names, and file extraction), which can alter real API calls; coverage is expanded but upload and param edge cases deserve extra review.

Overview
Release 1.22.0 bumps package metadata, changelog, and OpenAPI spec tracking (.stats.yml).

HTTP client behavior changes in the shared stack: query strings embedded in request URLs are merged with caller params instead of being dropped; sync/async LumaAI clients can add default headers from the LUMAAI_CUSTOM_HEADERS environment variable (newline name: value lines, with explicit constructor headers winning on conflicts).

Multipart / file uploads are reworked: extract_files now supports an array_format for file array field names (brackets, repeat, comma, indices), dict popping along paths is fixed for nested arrays, and deepcopy_with_paths replaces broad deepcopy_minimal when preparing bodies so only paths that hold files are copied. A missing f-string on an async file-type error is fixed.

Pydantic v2 gains EagerIterable for types that should validate iterable inputs up front and avoid empty dumps after iterator consumption.

CI / dev uses Depot runners for any stainless-sdks/* repo, pins GitHub Actions to commit SHAs, bumps Steady to 0.22.1, and hardens scripts/bootstrap when SKIP_BREW is unset.

Reviewed by Cursor Bugbot for commit ab9d80a. Bugbot is set up for automated code reviews on this repo. Configure here.

@stainless-app

stainless-app Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

🧪 Testing

To try out this version of the SDK:

pip install 'https://pkg.stainless.com/s/luma_ai-python/48c8386f35b2e1281fb4a64dd219f5188adcf573/lumaai-1.21.0-py3-none-any.whl'

Expires at: Mon, 17 Aug 2026 02:16:09 GMT
Updated at: Sat, 18 Jul 2026 02:16:09 GMT

@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from daa341f to c1c63c6 Compare April 11, 2026 08:00
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from c1c63c6 to c267c54 Compare April 18, 2026 07:23
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from c267c54 to e979d10 Compare April 18, 2026 07:25
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from e979d10 to 9c43dac Compare April 23, 2026 03:50
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 9c43dac to 6c0aed9 Compare April 28, 2026 04:24
@stainless-app stainless-app Bot changed the title release: 1.21.1 release: 1.22.0 Apr 28, 2026
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 6c0aed9 to 081e108 Compare April 28, 2026 04:45
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 081e108 to 8e32391 Compare May 1, 2026 04:46
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 8e32391 to 4643c9e Compare May 1, 2026 04:50
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 4643c9e to 0e0ddb8 Compare May 1, 2026 04:54
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 0e0ddb8 to 9e2ce51 Compare May 9, 2026 03:55
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 9e2ce51 to 4929b7c Compare May 12, 2026 03:47
Pin all GitHub Actions referenced in generated workflows (both
first-party `actions/*` and third-party) to immutable commit SHAs.
Updating pinned actions is now a deliberate codegen-side bump rather
than implicit on every workflow run.
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 4929b7c to 215a2ab Compare May 13, 2026 04:04
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 215a2ab to ab9d80a Compare July 18, 2026 02:15
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