Releases: encode/starlette
Releases Β· encode/starlette
Version 0.36.1
Fixed
- Check if "extensions" in scope before checking the extension #2438.
Full Changelog: 0.36.0...0.36.1
Version 0.36.0
Added
- Add support for ASGI
pathsend
extension #2435. - Cancel
WebSocketTestSession
on close #2427. - Raise
WebSocketDisconnect
whenWebSocket.send()
exceptsIOError
#2425. - Raise
FileNotFoundError
when theenv_file
parameter onConfig
is not valid #2422.
Full Changelog: 0.35.1...0.36.0
Version 0.35.1
Fixed
- Stop using the deprecated "method" parameter in
FileResponse
inside ofStaticFiles
#2406. - Make
typing-extensions
optional again #2409.
Full Changelog: 0.35.0...0.35.1
Version 0.35.0
Added
- Add
*args
toMiddleware
and improve its type hints #2381.
Fixed
- Use
Iterable
insteadIterator
oniterate_in_threadpool
#2362.
Changes
- Handle
root_path
to keep compatibility with mounted ASGI applications and WSGI #2400. - Turn
scope["client"]
toNone
onTestClient
#2377.
Full Changelog: 0.34.0...0.35.0
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