Skip to content

Releases: dymmond/lilya

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.

Version 0.11.10

27 Dec 09:25
0.11.10
930e71e
Compare
Choose a tag to compare

Added

  • Add passthrough_body_types for passing memoryviews and bytearrays directly to the application server.

Changed

  • TestClient validates more ASGI conformance. It raises an ASGISpecViolation error for spec violations when check_asgi_conformance is True (default).
  • Response's make_headers now set headers directly.
  • Response's headers is now a attribute.
  • Response's raw_headers is now an alias for encoded_headers.

Fixed

  • Ensure the response output is bytes when not passthrough_body_types is set. Defaults to passing through bytes.
  • Properly handle bytearrays.
  • Properly parse header values. Properly handle cases in which header values are passed as an array in a dictionary.
  • Properly set cookies.

Version 0.11.9

20 Dec 11:55
82936d7
Compare
Choose a tag to compare

0.11.9

Added

  • Add session_serializer, session_deserializer parameters to SessionMiddleware.

Changed

  • Refactor SessionMiddleware.
  • Refactor authentication.
  • Allow multiple backends in AuthenticationMiddleware.
  • Move backend logic from BaseAuthMiddleware to AuthenticationMiddleware. Matches documentation.
  • Rename BaseUser to UserInterface and make it a protocol. Note: the old name is still available for compatibility reasons.
  • Remove undocumented stub definitions from UserInterface. They were unsound.

Fixed

  • Authentication documentation referenced non-existing structures.
  • Available middleware section in middleware.md was not up to date.
  • Fix serialization of primitives in the Response. Strip " by default.

Version 0.11.8

19 Dec 07:42
0.11.8
4e46ece
Compare
Choose a tag to compare

Fixed

  • Fix too strict json_encoder_fn enforcment.
  • Fix empty [] and {} becoming incorrectly an empty response in json context.

Version 0.11.7

18 Dec 23:29
0.11.7
843edb9
Compare
Choose a tag to compare

Added

  • Add bytes encoder to encoders.
  • Allow using DefineMiddleware and DefinePermission with import strings.

Changed

  • Move simplify logic from make_response to Response but keep old interface.
  • Move esmerald Response transform to lilya.

Fixed

  • Fix unnecessary roundtrip in JSONResponse.

Version 0.11.6

03 Dec 15:14
5924f54
Compare
Choose a tag to compare

Added

  • Add redirect function as a wrapper to return ResponseRedirect responses. Import happens
    inside lilya.responses import redirect.

Changed

  • Make g object automatically managed by Lilya middleware. You no longet need to import the
    GlobalContextMiddleware as it is a default Lilya middleware.

Version 0.11.5

03 Dec 08:19
a7365d8
Compare
Choose a tag to compare

Added

  • RequestContextMiddleware added allowing request objects being used without a context of a request
    without explicitly declaring it inside handlers.

Changed

  • Allow multiple directories in StaticFiles. This enables providing overwrites/defaults.

Version 0.11.4

29 Nov 09:55
316f3e7
Compare
Choose a tag to compare

Added

  • GlobalContextMiddleware the new middleware that allows you to have g object across the
    request lifecycle and set global variables to be accessed through that same lifecycle.
  • The g definition and declaration.

Changed

  • Remove hard dependency of dymmond-settings.