Releases: dymmond/lilya
Releases · dymmond/lilya
Version 0.12.10
Version 0.12.9
Added
- Missing before and after request in the handler helpers.
Version 0.12.8
Added
Lilya
,Include
,Host
,Path
andRouter
now supportbefore_request
andafter_request
life cycles. This can be particularly useful to those who want to perform actions before and after
a request is performed. E.g.: Telemetry.
Version 0.12.7
Added
- Added
version
to Lilya client.
Changed
- Declaring
DefinePermission
became optional as Lilya automatically wraps if not provided. - Declaring
DefineMiddleware
became optional as Lilya automatically wraps if not provided.
Fixed
SessionMiddleware
was creating duplicates because it was called on every lifecycle.
Version 0.12.6
Fixed
- Bug with uvicorn. It assumes the headers in scope being a list instead of an iterator.
Version 0.12.5
Added
- Header is now an iterator which is an alias to encoded_multi_items.
Instead of reparsing the headers for every middleware, keep the instance and mimic a fitting generator.-sniff
method on Request.
Changed
receive
,send
are not properties anymore on Request but proper methods.receive
has a replay mode forsniff
.
Fixed
- StaticFiles without scope headers failed.
- StaticFiles were susceptible for path traversal attacks.
- Calling Request.headers could empty the headers in scope when just a generator.
- Messages were not replayed in case
ContinueRouting
was raised. This prevented sniffing like documented.
Version 0.12.4
Added
- Compatibility mode for async response content.
- Support for jinja enable_async option.
Changed
- Removed hard dependency of nest_asyncio for the cli.
Version 0.12.3
Fixed
from_scope
was incorrectly applied in some middleware on scope and not on message for updated message headers.
This breaks for example post responses.
Version 0.12.2
Fixed
- Context G threads safety
Version 0.12.1
Added
- New SessionContextMiddleware allowing to use the new
session
object
in a request context.
Changed
- Updated the Context section by adding the session context examples and explanation
how to use it.