Releases: encode/starlette
Releases Β· encode/starlette
Version 0.30.0
Removed
- Drop Python 3.7 support #2178.
Version 0.29.0
Added
- Add
follow_redirects
parameter toTestClient
#2207. - Add
__str__
toHTTPException
andWebSocketException
#2181. - Warn users when using
lifespan
together withon_startup
/on_shutdown
#2193. - Collect routes from
Host
to generate the OpenAPI schema #2183. - Add
request
argument toTemplateResponse
#2191.
Fixed
- Stop
body_stream
in casemore_body=False
onBaseHTTPMiddleware
#2194.
Full Changelog: 0.28.0...0.29.0
Version 0.28.0
Changed
- Reuse
Request
's body buffer for call_next inBaseHTTPMiddleware
#1692. - Move exception handling logic to
Route
#2026.
Added
- Add
env
parameter toJinja2Templates
, and deprecate**env_options
#2159. - Add clear error message when
httpx
is not installed #2177.
Fixed
- Allow "name" argument on
templates url_for()
#2127.
Full Changelog: 0.27.0...0.28.0
Version 0.27.0
This release fixes a path traversal vulnerability in StaticFiles
. You can view the full security advisory:
GHSA-v5gw-mw7f-84px
Added
- Minify JSON websocket data via
send_json
#2128
Fixed
- Replace
commonprefix
bycommonpath
onStaticFiles
1797de4. - Convert ImportErrors into ModuleNotFoundError #2135.
- Correct the RuntimeError message content in websockets #2141.
Full Changelog: 0.26.1...0.27.0
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.