Releases: encode/starlette
Releases Β· encode/starlette
Version 0.26.1
Fixed
- Fix typing of Lifespan to allow subclasses of Starlette #2077.
Version 0.26.0.post1
Fixed
- Replace reference from Events to Lifespan on the mkdocs.yml #2072.
Version 0.26.0
Added
- Support lifespan state #2060, #2065 and #2064.
Changed
- Change
url_for
signature to return aURL
instance #1385.
Fixed
- Allow "name" argument on
url_for()
andurl_path_for()
#2050.
Deprecated
- Deprecate
on_startup
andon_shutdown
events #2070.
Full Changelog: 0.25.0...0.26.0
Version 0.25.0
Version 0.24.0
Added
- Allow
StaticFiles
to follow symlinks #1683. - Allow
Request.form()
as a context manager #1903. - Add
size
attribute toUploadFile
#1405. - Add
env_prefix
argument toConfig
#1990. - Add template context processors #1904.
- Support
str
anddatetime
onexpires
parameter on theResponse.set_cookie
method #1908.
Changed
- Lazily build the middleware stack #2017.
- Make the
file
argument required onUploadFile
#1413. - Use debug extension instead of custom response template extension #1991.
Fixed
- Fix url parsing of ipv6 urls on
URL.replace
#1965.
Version 0.23.1
Fixed
- Only stop receiving stream on
body_stream
if body is empty on theBaseHTTPMiddleware
#1940.
Version 0.23.0
Version 0.22.0
Version 0.21.0
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 the bump-testclient
tool.
Changed
- Replace
requests
withhttpx
inTestClient
#1376.
Added
- Add
WebSocketException
and support for WebSocket exception handlers #1263. - Add
middleware
parameter toMount
class #1649. - Officially support Python 3.11 #1863.
- Implement
__repr__
for route classes #1864.
Fixed
- Fix bug on which
BackgroundTasks
were cancelled when usingBaseHTTPMiddleware
and client disconnected #1715.
Version 0.20.4
Fixed
- Remove converter from path when generating OpenAPI schema #1648.