chore(deps): update dependency starlette to v1.10.0 #3179
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>
</details>
Approved these changes.
mariomac
renovate-sh-app[bot]
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| starlette (changelog) |
==1.6.0→==1.10.0| !age | !confidence |---
---
Release Notes
<details>
<summary>Kludex/starlette (starlette)</summary>
v1.10.0: Version 1.10.0Compare 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
FormDatathat holds several uploads under one key.FormParserbuilds 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 themax_fieldslimit case went from 6,880 B to 864 B.b""no longer lose their last field.FormDatawith repeated uploads can be compared (#​3619). Comparing twoFormDataobjects with severalUploadFilevalues under the same key used to raiseTypeError.⚠️ Behaviour changes
QueryParams("a=1&a=2")andQueryParams("a=2&a=1")are no longer equal, matching whatgetlist()returns.starlette.formparsers.FormMessageis deprecated (#​3724). The parser no longer uses it, andFormParser.messagesis gone. CallingFormMessage(...)emits aStarletteDeprecationWarning.🧭 Routing and URL generation
url_path_for("route", category="{id}", id="42")on/{category}/{id}now returns/{id}/42instead 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.Matchmembers are compared by identity, cutting up to 4.9% of the instructions per dispatch in the routing benchmarks.WSGIMiddlewarestripsroot_pathonly at a path segment boundary (#​3718). A request to/applicationunder aroot_pathof/appno longer becomes/lication.FloatConvertorreports NaN and infinity correctly (#​3716). NaN was reported as a negative float.🛡️ Middleware, responses and config
HTTPException, no longer pins per-request objects in memory.http.response.startwithoutheaders(#​3721).BaseHTTPMiddleware,GZipMiddlewareandSessionMiddlewaredefault the omitted field to an empty list instead of raisingKeyError.FileResponseignoresRangeon methods other thanGETandHEAD(#​3679). APOSTendpoint that returns a file now sends the full file, as RFC 9110 requires.Configstrips one pair of matching outer quotes from env file values (#​3720).KEY='say "hi"'now reads assay "hi"instead ofsay "hi.Full changelog: 1.9.0...1.10.0
v1.9.0: Version 1.9.0Compare Source
This release streams
TestClientresponse bodies, soclient.stream()returns before the application finishes. It also escapes path delimiters when building URLs, matches host names case-insensitively, and keeps every existingVaryheader.Changed
TestClientresponse bodies, soclient.stream()returns before the application finishes. Closing an unfinished streamed response now cancels the application #​3491.Fixed
?,#,\and a leading//in the request path when buildingrequest.url, and\and a leading//inurl_path_for#​3671.Content-Lengthwhen the response body is a typed or multidimensionalmemoryview#​3622.HEADin theAllowheader ofHTTPEndpoint405 responses whenGETis defined #​3585.Hostrouting andTrustedHostMiddleware#​3542.Varyheader inMutableHeaders.add_vary_header(), used byGZipMiddlewareandSessionMiddleware#​3675.Full changelog: 1.8.0...1.9.0
v1.8.0: Version 1.8.0Compare Source
This release adds HTTP 103 Early Hints, preserves response trailers through
GZipMiddleware, and stopsFileResponsetransfers when clients disconnect. Starlette now requires Python 3.11.Added
Request.send_early_hints()for HTTP 103 Early Hints through the ASGIhttp.response.early_hintextension #​3435.Changed
application/grpcandapplication/grpc+...) fromGZipMiddlewarecompression by default #​3565.http.response.startimmediately inGZipMiddlewarefor responses with an existingContent-Encoding, status206, or an excluded content type, instead of waiting for the first body chunk #​3631.Fixed
GZipMiddleware#​3565.FileResponsetransfers when the client disconnects #​3523.RangewhenIf-Rangecontains a weak ETag #​3567.Allow: GET, HEADinStaticFiles405responses #​3640.Request.stream()generators deterministically, avoiding "Exception ignored" errors with stackedBaseHTTPMiddleware#​3628.Vary: CookiewhenSession.pop()removes an existing key #​3186.Max-Age=0on the session cookie whenSessionMiddlewareusesmax_age=0#​3651.URL.replace()#​3617.Full changelog: 1.7.0...1.8.0
v1.7.0: Version 1.7.0Compare Source
This release adds experimental OpenTelemetry tracing, HTTP
QUERYsupport, and response trailers inTestClient. Starlette now requires AnyIO 4.Added
OpenTelemetryMiddlewarefor HTTP server spans, with URL exclusions and custom tracer providers #​3438, #​3463, and #​3520.scope["route"]#​3438.QUERYHTTP method inHTTPEndpoint, CORS, and OpenAPI 3.2 schema generation #​3489.TestClientand expose them throughresponse.extensions["http.response.trailers"]#​3563.SessionMiddleware#​3510.partitionedtoResponse.delete_cookie()on Python 3.14 and later #​3376.TrustedHostMiddlewareandTestClient#​3471.Changed
anyio>=4.0.0,<5, dropping support for AnyIO 3 #​3512.WebSocketDisconnected, aRuntimeErrorsubclass, for disconnected WebSocket operations #​2767.Collection[str]inCORSMiddlewareconfiguration annotations, including sets and frozensets #​3518.Fixed
BaseHTTPMiddleware#​3476.400for invalid multipart parser input #​3492.Vary: Originon all normal CORS responses and vary preflight responses by all request headers that affect them #​3516 and #​3517.Hostheaders and IPv6 authorities consistently across URL construction, host routing, and redirect middleware #​3472.Rangeheaders whenFileResponsehas a status other than200, preserving its status and full body #​3568.If-None-Match: *inStaticFiles#​3201.StaticFileswithout raising an assertion error #​3532.popitem()and|=#​3436.WebSocketEndpoint.decode()#​3372.identityonSimpleUserandUnauthenticatedUser#​3271.HTTPExceptionto use non-standard status codes without an explicitdetail#​3545.TestClientand add explicit imports inWSGIMiddlewarefor AnyIO 4.15 compatibility #​3498 and #​3501.ServerErrorMiddleware#​2858.Full changelog: 1.6.0...1.7.0
</details>
---
Configuration
📅 Schedule: (UTC)
- At any time (no schedule defined)
- 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=-->