Update dependency starlette to v0.37.1 #6
Reference in New Issue
Block a user
Delete Branch "renovate/starlette-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
==0.14.2->==0.37.1Release Notes
encode/starlette (starlette)
v0.37.1: Version 0.37.1Compare Source
Fixed
Config#2485.Full Changelog: https://github.com/encode/starlette/compare/0.37.0...0.37.1
v0.37.0: Version 0.37.0Compare Source
Added
Full Changelog: https://github.com/encode/starlette/compare/0.36.3...0.37.0
v0.36.3: Version 0.36.3Compare Source
Fixed
anyio.Eventon async context #2459.Full Changelog: https://github.com/encode/starlette/compare/0.36.2...0.36.3
v0.36.2: Version 0.36.2Compare Source
Fixed
python-multipartto0.0.713e5c26.Content-Type#2443.Full Changelog: https://github.com/encode/starlette/compare/0.36.1...0.36.2
v0.36.1: Version 0.36.1Compare Source
Fixed
Full Changelog: https://github.com/encode/starlette/compare/0.36.0...0.36.1
v0.36.0: Version 0.36.0Compare Source
Added
pathsendextension #2435.WebSocketTestSessionon close #2427.WebSocketDisconnectwhenWebSocket.send()exceptsIOError#2425.FileNotFoundErrorwhen theenv_fileparameter onConfigis not valid #2422.Full Changelog: https://github.com/encode/starlette/compare/0.35.1...0.36.0
v0.35.1: Version 0.35.1Compare Source
Fixed
FileResponseinside ofStaticFiles#2406.typing-extensionsoptional again #2409.Full Changelog: https://github.com/encode/starlette/compare/0.35.0...0.35.1
v0.35.0: Version 0.35.0Compare Source
Added
*argstoMiddlewareand improve its type hints #2381.Fixed
IterableinsteadIteratoroniterate_in_threadpool#2362.Changes
root_pathto keep compatibility with mounted ASGI applications and WSGI #2400.scope["client"]toNoneonTestClient#2377.Full Changelog: https://github.com/encode/starlette/compare/0.34.0...0.35.0
v0.34.0: Version 0.34.0Compare Source
Added
ParamSpecforrun_in_threadpool#2375.UploadFile.__repr__#2360.Fixed
TestClient#2376.StaticFiles#2334.Deprecated
FileResponse(method=...)parameter #2366.Full Changelog: https://github.com/encode/starlette/compare/0.33.0...0.34.0
v0.33.0: Version 0.33.0Compare Source
Added
middlewareperRoute/WebSocketRoute#2349.middlewareperRouter#2351.Fixed
"path"and"root_path"scope keys #2352.ensure_ascii=Falseonjson.dumps()forWebSocket.send_json()#2341.v0.32.0.post1: Version 0.32.0.post1Compare Source
Fixed
v0.32.0: Version 0.32.0Compare Source
Added
reasononWebSocketDisconnect#2309.domainparameter toSessionMiddleware#2280.Changed
HTMLResponseinstead ofResponseon_TemplateResponse#2274.Response.rendertype annotation to its pre-0.31.0 state #2264.Full Changelog: https://github.com/encode/starlette/compare/0.31.1...0.32.0
v0.31.1: Version 0.31.1Compare Source
Fixed
exceptiongroupisn't available #2231.url_forglobal for custom Jinja environments #2230.Full Changelog: https://github.com/encode/starlette/compare/0.31.0...0.31.1
v0.31.0: Version 0.31.0Compare Source
Added
Fixed
TestClient#2219.Full Changelog: https://github.com/encode/starlette/compare/0.30.0...0.31.0
v0.30.0: Version 0.30.0Compare Source
Removed
v0.29.0: Version 0.29.0Compare Source
Added
follow_redirectsparameter toTestClient#2207.__str__toHTTPExceptionandWebSocketException#2181.lifespantogether withon_startup/on_shutdown#2193.Hostto generate the OpenAPI schema #2183.requestargument toTemplateResponse#2191.Fixed
body_streamin casemore_body=FalseonBaseHTTPMiddleware#2194.Full Changelog: https://github.com/encode/starlette/compare/0.28.0...0.29.0
v0.28.0: Version 0.28.0Compare Source
Changed
Request's body buffer for call_next inBaseHTTPMiddleware#1692.Route#2026.Added
envparameter toJinja2Templates, and deprecate**env_options#2159.httpxis not installed #2177.Fixed
templates url_for()#2127.Full Changelog: https://github.com/encode/starlette/compare/0.27.0...0.28.0
v0.27.0: Version 0.27.0Compare Source
This release fixes a path traversal vulnerability in
StaticFiles. You can view the full security advisory:https://github.com/encode/starlette/security/advisories/GHSA-v5gw-mw7f-84px
Added
send_jsonhttps://github.com/encode/starlette/pull/2128Fixed
commonprefixbycommonpathonStaticFiles1797de4.Full Changelog: https://github.com/encode/starlette/compare/0.26.1...0.27.0
v0.26.1: Version 0.26.1Compare Source
Fixed
v0.26.0.post1: Version 0.26.0.post1Compare Source
Fixed
v0.26.0: Version 0.26.0Compare Source
Added
Changed
url_forsignature to return aURLinstance #1385.Fixed
url_for()andurl_path_for()#2050.Deprecated
on_startupandon_shutdownevents #2070.Full Changelog: https://github.com/encode/starlette/compare/0.25.0...0.26.0
v0.25.0: Version 0.25.0Compare Source
Fixed
multipart/form-dataon theMultipartParser8c74c2c and #2036.v0.24.0: Version 0.24.0Compare Source
Added
StaticFilesto follow symlinks #1683.Request.form()as a context manager #1903.sizeattribute toUploadFile#1405.env_prefixargument toConfig#1990.stranddatetimeonexpiresparameter on theResponse.set_cookiemethod #1908.Changed
fileargument required onUploadFile#1413.Fixed
URL.replace#1965.v0.23.1: Version 0.23.1Compare Source
Fixed
body_streamif body is empty on theBaseHTTPMiddleware#1940.v0.23.0: Version 0.23.0Compare Source
Added
headersparameter to theTestClient#1966.Deprecated
StarletteandRouterdecorators #1897.Fixed
FloatConvertorregex #1973.v0.22.0: Version 0.22.0Compare Source
Changed
GZipMiddlewarewhen response includesContent-Encoding#1901.Fixed
unquote()from query parameters on theTestClient#1953.MutableHeaders._listis actually alist#1917.AnyIO#1936.v0.21.0: Version 0.21.0Compare Source
This release replaces the underlying HTTP client used on the
TestClient(requests➡️httpx), and as those clients differ a bit on their API, your test suite will likely break. To make the migration smoother, you can use thebump-testclienttool.Changed
requestswithhttpxinTestClient#1376.Added
WebSocketExceptionand support for WebSocket exception handlers #1263.middlewareparameter toMountclass #1649.__repr__for route classes #1864.Fixed
BackgroundTaskswere cancelled when usingBaseHTTPMiddlewareand client disconnected #1715.v0.20.4: Version 0.20.4Compare Source
Fixed
v0.20.3: Version 0.20.3Compare Source
Fixed
StaticFilesto follow symlinks" #1681.v0.20.2: Version 0.20.2Compare Source
Fixed
StaticFilesto follow symlinks #1337.v0.20.1: Version 0.20.1Compare Source
Fixed
boundaryis missing #1617.Content-Dispositionheader #1643.StreamingResponseonBaseHTTPMiddleware#1609.__bool__dunder forSecret#1625.v0.20.0: Version 0.20.0Compare Source
Removed
v0.19.1: Version 0.19.1Compare Source
Fixed
Route.namewhen created from methods #1553.TypeErroronwebsocket.disconnectwhen code isNone#1574.Deprecated
WS_1004_NO_STATUS_RCVDandWS_1005_ABNORMAL_CLOSUREin favor ofWS_1005_NO_STATUS_RCVDandWS_1006_ABNORMAL_CLOSURE, as the previous constants didn't match the WebSockets specs #1580.v0.19.0: Version 0.19.0Compare Source
Added
headersparameter toHTTPException#1435.405status code insert anAllowheader, as described by RFC 7231 #1436.contentargument inJSONResponseis now required #1431.FileResponse#1266.raw_pathtoTestClientscope #1445.MutableHeaders#1240.anyiorequired version range to>=3.4.0,<5.0#1421 and #1460.typing-extensions>=3.10requirement - used only on lower versions than Python 3.10 #1475.Fixed
BaseHTTPMiddlewarefrom hiding errors ofStreamingResponseand mounted applications #1459.SessionMiddlewareuses an explicitpath=..., instead of defaulting to the ASGI 'root_path' #1512.Request.clientis now compliant with the ASGI specifications #1462.KeyErrorat early stage for missing boundary #1349.Deprecated
run_until_first_complete#1443.v0.18.0: Version 0.18.0Compare Source
Added
FileResponse#1345.functools.partialinWebSocketRoute#1356.StaticFilespackages with directory #1350.Jinja2Templates#1401.HttpEndpoint#1346.websocket.acceptmessage #1361 and #1422.reasontoWebSocketclose ASGI event #1417.UploadFile#1382.Content-Lengthheader forContent-Length: 0cases #1395.SessionMiddleware.max_agenow acceptsNone, so cookie can last as long as the browser session #1387.Fixed
hashlib.md5()function onFileResponses ETag generation. The parameterusedforsecurityflag is set toFalse, if the flag is available on the system. This fixes an error raised on systems with FIPS enabled #1366 and #1410.path_paramstype onurl_path_for()method i.e. turnstrintoAny#1341.Hostnow ignoresporton routing #1322.v0.17.1: Version 0.17.1Compare Source
Fixed
IndexErrorin authenticationrequireswhen wrapped function arguments are distributed between*argsand**kwargs#1335.v0.17.0: Version 0.17.0Compare Source
Added
Response.delete_cookienow accepts the same parameters asResponse.set_cookie#1228.Jinja2Templatesconstructor to allowPathLike#1292.Fixed
HTTPConnection.__getitem__return type fromstrtotyping.Any#1118.ImmutableMultiDict.getlistreturn type fromtyping.List[str]totyping.List[typing.Any]#1235.OSErrorexceptions onStaticFiles#1220.StaticFiles404.html in HTML mode #1314.Removed
v0.16.0: Version 0.16.0Compare Source
Added
#1219
Fixed
starlette.websockets.WebSocketinstances are now hashable and compare by identity#1039
#1213,
#1227
Deprecated/removed
starlette.templates.Jinja2Templates.get_envwas removed#1218
starlette.testclient.TestClient.async_backendwas removed,the backend is now configured using constructor kwargs
#1211
starlette.router.Router(lifespan_context=)is deprecated. You should wrap your lifespan in@contextlib.asynccontextmanager.#1227
#1110
v0.15.0: Version 0.15.0Compare Source
0.15.0
This release includes major changes to the low-level asynchronous parts of Starlette. As a result, Starlette now depends on AnyIO and some minor API changes have occurred. Another significant change with this release is the deprecation of built-in GraphQL support.
Added
TestClient.websocket_connect()now must be used as a context manager.GZipMiddlewareis now adjustable - #1128.Fixed
CORSMiddleware. See #1111, #1112, #1113, #1199.RedirectResponsenow usesquoteinstead ofquote_plusencoding for theLocationheader to better match the behaviour in other frameworks such as Django - #1164.BaseHTTPMiddlewarewhen handling large responses - #1012 fixed via #1157Deprecated/removed
GraphQLAppclass has been deprecated and will be removed in a future release. Please see #619. GraphQL is not supported on Python 3.10.executorparameter toGraphQLAppwas removed. Useexecutor_classinstead.workersparameter toWSGIMiddlewarewas removed. This hasn't had any effect since Starlette v0.6.3.Configuration
📅 Schedule: 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.
This PR has been generated by Renovate Bot.
Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update (
==0.37.1). You will get a PR once a newer version is released. To ignore this dependency forever, add it to theignoreDepsarray of your Renovate config.If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.