Skip to content

Releases: dymmond/lilya

Version 0.12.8

12 Feb 23:06
c2cc589
Compare
Choose a tag to compare

Added

  • Lilya, Include, Host, Path and Router now support before_request and after_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

12 Feb 14:52
4c375fc
Compare
Choose a tag to compare

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

05 Feb 10:05
0.12.6
db3c00f
Compare
Choose a tag to compare

Fixed

  • Bug with uvicorn. It assumes the headers in scope being a list instead of an iterator.

Version 0.12.5

04 Feb 14:47
c9e54c4
Compare
Choose a tag to compare

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 for sniff.

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

28 Jan 18:02
f197e91
Compare
Choose a tag to compare

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

24 Jan 10:08
7cba927
Compare
Choose a tag to compare

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

17 Jan 19:17
e6c8a7d
Compare
Choose a tag to compare

Fixed

  • Context G threads safety

Version 0.12.1

14 Jan 16:28
bd0d73b
Compare
Choose a tag to compare

Added

Changed

  • Updated the Context section by adding the session context examples and explanation
    how to use it.

0.12.0

09 Jan 10:55
dee4649
Compare
Choose a tag to compare

Added

  • Support for Python 3.13.
  • Add ReceiveSendSniffer. This sniffer allows to detect communication events and to replay receive messages.
  • Include and BaseLilya (application) have now a ClassVar router_class to provide a custom router.
  • Subclasses of BaseLilya (application) can set the router_class to None to provide a completely custom router
    which initialization parameters aren't required to match the ones of Router.
  • Expose fall_through on StaticFile.

Changed

  • The PathHandler interface was changed to receive a ReceiveSendSniffer instead of send/receive.
  • The handle_partial interface was changed to receive a PathHandler.
  • Fall-through routing was implemented.
  • Expose redirect_slashes on Include.

Fixed

  • Host with middleware or permissions.

Version 0.11.11

27 Dec 10:14
0.11.11
104d2d6
Compare
Choose a tag to compare

Fixed

  • Some middleware are not multithreading/async capable.