Releases: encode/starlette
Releases Β· encode/starlette
Version 0.34.0
Version 0.33.0
Version 0.32.0.post1
Fixed
- Revert mkdocs-material from 9.1.17 to 9.4.7 #2326.
Version 0.32.0
Added
Changed
- Inherit from
HTMLResponse
instead ofResponse
on_TemplateResponse
#2274. - Restore the
Response.render
type annotation to its pre-0.31.0 state #2264.
Full Changelog: 0.31.1...0.32.0
Version 0.31.1
Fixed
- Fix import error when
exceptiongroup
isn't available #2231. - Set
url_for
global for custom Jinja environments #2230.
Full Changelog: 0.31.0...0.31.1
Version 0.31.0
Added
- Officially support Python 3.12 #2214.
- Support AnyIO 4.0 #2211.
- Strictly type annotate Starlette (strict mode on mypy) #2180.
Fixed
- Don't group duplicated headers on a single string when using the
TestClient
#2219.
Full Changelog: 0.30.0...0.31.0
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