Releases: encode/starlette
Releases Β· encode/starlette
Version 0.38.0
Added
- Allow use of
memoryview
inStreamingResponse
andResponse
#2576
and #2577. - Send 404 instead of 500 when filename requested is too long on
StaticFiles
#2583.
Changed
- Fail fast on invalid
Jinja2Template
instantiation parameters #2568. - Check endpoint handler is async only once #2536.
Fixed
- Add proper synchronization to
WebSocketTestSession
#2597.
Full Changelog: 0.37.2...0.38.0
Version 0.37.2
Added
- Add
bytes
to_RequestData
type #2510.
Fixed
- Revert "Turn
scope["client"]
toNone
onTestClient
(#2377)" #2525. - Remove deprecated
app
argument passed tohttpx.Client
on theTestClient
#2526.
Full Changelog: 0.37.1...0.37.2
Version 0.37.1
Version 0.37.0
Version 0.36.3
Version 0.36.2
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