← Back to Pull requests

chore(deps): update dependency starlette to v1.10.0 #3179

Merged
renovate-sh-app[bot] merged 1 files (6 lines) on Oct 29, 2026 07:44 UTC
View on GitHub
renovate-sh-app[bot] renovate-sh-app[bot] commented on Oct 21, 2026 16:10 UTC
Author

This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| starlette (changelog) | ==1.6.0 → ==1.10.0 | !age | !confidence |

---

[!WARNING]

Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/2253) for more information.

---

Release Notes

<details>
<summary>Kludex/starlette (starlette)</summary>

v1.10.0: Version 1.10.0

Compare Source

📝 Leaner URL-encoded form parsing

Starlette 1.10.0 parses URL-encoded forms with less memory and CPU, no longer drops the last field when a stream ends early, and lets you compare FormData that holds several uploads under one key.

uv pip install starlette==1.10.0

  • Forms with many fields parse faster and use less memory (#&#8203;3724). FormParser builds each field in the parser callbacks instead of queueing every event and replaying it. On CodSpeed, 1000 fields went from 42.8 ms to 34.9 ms and from 63.5 KB to 54.5 KB, and the max_fields limit case went from 6,880 B to 864 B.

  • The last field is kept when the request stream ends without an empty chunk (#&#8203;3599). The parser is now finalized once the stream is exhausted, so custom streams that never yield a final b"" no longer lose their last field.

  • FormData with repeated uploads can be compared (#&#8203;3619). Comparing two FormData objects with several UploadFile values under the same key used to raise TypeError.
  • ⚠️ Behaviour changes

  • Multidict equality keeps the order of values under a repeated key (#&#8203;3619). Keys can still appear in any order, but QueryParams("a=1&a=2") and QueryParams("a=2&a=1") are no longer equal, matching what getlist() returns.

  • starlette.formparsers.FormMessage is deprecated (#&#8203;3724). The parser no longer uses it, and FormParser.messages is gone. Calling FormMessage(...) emits a StarletteDeprecationWarning.
  • 🧭 Routing and URL generation

  • Path parameter values that look like a placeholder are kept as they are (#&#8203;3725). url_path_for("route", category="{id}", id="42") on /{category}/{id} now returns /{id}/42 instead of /42/42. Substitution also got faster, from 549 ns to 520 ns with two parameters and from 1,078 ns to 779 ns with five.

  • Route matching does less work per request (#&#8203;3665, #&#8203;3722). Match members are compared by identity, cutting up to 4.9% of the instructions per dispatch in the routing benchmarks.

  • WSGIMiddleware strips root_path only at a path segment boundary (#&#8203;3718). A request to /application under a root_path of /app no longer becomes /lication.

  • FloatConvertor reports NaN and infinity correctly (#&#8203;3716). NaN was reported as a negative float.
  • 🛡️ Middleware, responses and config

  • Handled exceptions no longer keep requests alive (#&#8203;3205). Starlette clears the traceback after an exception handler runs, so an exception instance reused across requests, such as a module-level HTTPException, no longer pins per-request objects in memory.

  • Middlewares accept http.response.start without headers (#&#8203;3721). BaseHTTPMiddleware, GZipMiddleware and SessionMiddleware default the omitted field to an empty list instead of raising KeyError.

  • FileResponse ignores Range on methods other than GET and HEAD (#&#8203;3679). A POST endpoint that returns a file now sends the full file, as RFC 9110 requires.

  • Config strips one pair of matching outer quotes from env file values (#&#8203;3720). KEY='say "hi"' now reads as say "hi" instead of say "hi.
  • Full changelog: 1.9.0...1.10.0

    v1.9.0: Version 1.9.0

    Compare Source

    This release streams TestClient response bodies, so client.stream() returns before the application finishes. It also escapes path delimiters when building URLs, matches host names case-insensitively, and keeps every existing Vary header.

    Changed

  • Stream TestClient response bodies, so client.stream() returns before the application finishes. Closing an unfinished streamed response now cancels the application #&#8203;3491.
  • Fixed

  • Percent-encode ?, #, \ and a leading // in the request path when building request.url, and \ and a leading // in url_path_for #&#8203;3671.

  • Use the byte length for Content-Length when the response body is a typed or multidimensional memoryview #&#8203;3622.

  • Include HEAD in the Allow header of HTTPEndpoint 405 responses when GET is defined #&#8203;3585.

  • Match host names case-insensitively in Host routing and TrustedHostMiddleware #&#8203;3542.

  • Preserve every existing Vary header in MutableHeaders.add_vary_header(), used by GZipMiddleware and SessionMiddleware #&#8203;3675.
  • Full changelog: 1.8.0...1.9.0

    v1.8.0: Version 1.8.0

    Compare Source

    This release adds HTTP 103 Early Hints, preserves response trailers through GZipMiddleware, and stops FileResponse transfers when clients disconnect. Starlette now requires Python 3.11.

    Added

  • Add Request.send_early_hints() for HTTP 103 Early Hints through the ASGI http.response.early_hint extension #&#8203;3435.
  • Changed

  • Require Python 3.11 or later, dropping support for Python 3.10 #&#8203;3592.

  • Exclude native gRPC media types (application/grpc and application/grpc+...) from GZipMiddleware compression by default #&#8203;3565.

  • Send http.response.start immediately in GZipMiddleware for responses with an existing Content-Encoding, status 206, or an excluded content type, instead of waiting for the first body chunk #&#8203;3631.

  • Resolve the multipart charset once per request instead of once per field #&#8203;3618.
  • Fixed

  • Preserve response trailers through GZipMiddleware #&#8203;3565.

  • Stop FileResponse transfers when the client disconnects #&#8203;3523.

  • Stop multipart range responses when the file ends before a range is complete, instead of looping forever #&#8203;3583.

  • Ignore Range when If-Range contains a weak ETag #&#8203;3567.

  • Include Allow: GET, HEAD in StaticFiles 405 responses #&#8203;3640.

  • Close Request.stream() generators deterministically, avoiding "Exception ignored" errors with stacked BaseHTTPMiddleware #&#8203;3628.

  • Add Vary: Cookie when Session.pop() removes an existing key #&#8203;3186.

  • Emit Max-Age=0 on the session cookie when SessionMiddleware uses max_age=0 #&#8203;3651.

  • Bracket IPv6 hostnames in URL.replace() #&#8203;3617.
  • Full changelog: 1.7.0...1.8.0

    v1.7.0: Version 1.7.0

    Compare Source

    This release adds experimental OpenTelemetry tracing, HTTP QUERY support, and response trailers in TestClient. Starlette now requires AnyIO 4.

    \[!WARNING]

    OpenTelemetryMiddleware is experimental. Its API and emitted telemetry may change in minor releases without a deprecation period.

    Added

  • Add experimental OpenTelemetryMiddleware for HTTP server spans, with URL exclusions and custom tracer providers #&#8203;3438, #&#8203;3463, and #&#8203;3520.

  • Expose the matched route through scope["route"] #&#8203;3438.

  • Support the QUERY HTTP method in HTTPEndpoint, CORS, and OpenAPI 3.2 schema generation #&#8203;3489.

  • Capture HTTP response trailers in TestClient and expose them through response.extensions["http.response.trailers"] #&#8203;3563.

  • Support partitioned cookies in SessionMiddleware #&#8203;3510.

  • Add partitioned to Response.delete_cookie() on Python 3.14 and later #&#8203;3376.

  • Support IPv6 hosts in TrustedHostMiddleware and TestClient #&#8203;3471.

  • Support Python 3.15 #&#8203;3508.
  • Changed

  • Require anyio>=4.0.0,<5, dropping support for AnyIO 3 #&#8203;3512.

  • Raise WebSocketDisconnected, a RuntimeError subclass, for disconnected WebSocket operations #&#8203;2767.

  • Accept Collection[str] in CORSMiddleware configuration annotations, including sets and frozensets #&#8203;3518.
  • Fixed

  • Run background tasks only after the response is sent when using BaseHTTPMiddleware #&#8203;3476.

  • Return 400 for invalid multipart parser input #&#8203;3492.

  • Include Vary: Origin on all normal CORS responses and vary preflight responses by all request headers that affect them #&#8203;3516 and #&#8203;3517.

  • Handle malformed Host headers and IPv6 authorities consistently across URL construction, host routing, and redirect middleware #&#8203;3472.

  • Ignore Range headers when FileResponse has a status other than 200, preserving its status and full body #&#8203;3568.

  • Handle standalone If-None-Match: * in StaticFiles #&#8203;3201.

  • Reject WebSocket requests to StaticFiles without raising an assertion error #&#8203;3532.

  • Persist session mutations made with popitem() and |= #&#8203;3436.

  • Handle empty and absent payloads in WebSocketEndpoint.decode() #&#8203;3372.

  • Implement identity on SimpleUser and UnauthenticatedUser #&#8203;3271.

  • Allow HTTPException to use non-standard status codes without an explicit detail #&#8203;3545.

  • Avoid deprecated AnyIO imports in TestClient and add explicit imports in WSGIMiddleware for AnyIO 4.15 compatibility #&#8203;3498 and #&#8203;3501.

  • Offload debug traceback rendering to a worker thread in ServerErrorMiddleware #&#8203;2858.
  • Full changelog: 1.6.0...1.7.0

    </details>

    ---

    Configuration

    📅 Schedule: (UTC)

  • Branch creation

  • - At any time (no schedule defined)
  • Automerge

  • - At any time (no schedule defined)

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    ♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.

    ---

    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    Need help?


    You can ask for more help in the following Slack channel: #proj-renovate-self-hosted. In that channel you can also find ADR and FAQ docs in the Resources section.
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNTEuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJ1cGRhdGUtbWlub3IiXX0=-->

    Diff: 6 lines (+3 / -3) across 1 files Reviewer: mariomac Review duration: 11013m
    All Vouch review confidence checks passed
    Residual risk 0.03 = Change Risk (0.15) × (1 − Review Confidence (0.81)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.15 · 6 lines diff across 1 files
    0.15
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.70 · 1 substantive comment(s)
    0.70
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    81%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.116
    Real PR Conversation Timeline
    3 items
    codecov-commenter codecov-commenter commented on Oct 21, 2026 16:19 UTC
    Contributor

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    :white_check_mark: Project coverage is 46.23%. Comparing base (36d55f4) to head (55c52a4).

    <details><summary>Additional details and impacted files</summary>

    @@           Coverage Diff           @@
    ##             main    #3179   +/-   ##
    =======================================
      Coverage   46.23%   46.23%           
    =======================================
      Files          78       78           
      Lines        6711     6711           
    =======================================
      Hits         3103     3103           
      Misses       3389     3389           
      Partials      219      219           
    

    | Flag | Coverage Δ | |
    |---|---|---|
    | beyla-integration-test | 0.00% <ø> (ø) | |
    | integration-test | 12.87% <ø> (ø) | |
    | integration-test-arm | 0.00% <ø> (ø) | |
    | integration-test-vm-5.15-lts | 0.00% <ø> (ø) | |
    | integration-test-vm-6.18-lts | 0.00% <ø> (ø) | |
    | integration-test-vm-7.2 | 0.00% <ø> (ø) | |
    | k8s-integration-test | 1.37% <ø> (ø) | |
    | oats-test | 0.00% <ø> (ø) | |
    | unittests | 51.66% <ø> (ø) | |

    Flags with carried forward coverage won't be shown. Click here to find out more.
    </details>

    :umbrella: View full report in Codecov by Harness.
    :loudspeaker: Have feedback on the report? Share it here.
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    mariomac mariomac approved these changes on Oct 29, 2026 07:44 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    renovate-sh-app[bot] renovate-sh-app[bot]
    Labels
    risk: low confidence: 81.3% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 14.6% (LOW) · Higher = larger blast radius
    14.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 81.3% · Lower = rushed or shallow review
    81.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 2.7% · Safe to merge
    2.7%
    Repository