Skip to content

Releases: dymmond/lilya

Version 0.22.9

Choose a tag to compare

@tarsil tarsil released this 01 Nov 11:24
2a379d1

Fixes

  • Hard dependency of python-magic.

Version 0.22.8

Choose a tag to compare

@tarsil tarsil released this 31 Oct 17:12
70e8944

Added

  • Add SimpleFileResponse and internal DispositionResponse.

Changed

  • Improved dependency resolution logic to refine request injection rules.
  • Enhanced Provide to handle nested dependency injection with stricter argument checks.
  • Updated precedence handling to ensure consistent dependency resolution order across async libraries.
  • Improved Responses:
    • StreamingResponse eliminates one round-trip.
    • Response has deduction capabilities of the media-type (python-magic required).
    • ImageResponse is now an alias of SimpleFileResponse.
    • Make CSVResponse and NDJSONResponse streaming.
    • send_file uses now SimpleFileResponse.

Fixed

  • Request objects were being injected into zero-argument dependencies.
  • Dependency injection precedence edge cases between global and route-level dependencies.
  • Fix BaseSettings for python 3.14 and more complex inheritances.

Version 0.22.7

Choose a tag to compare

@tarsil tarsil released this 24 Oct 10:56
e0252cb

Changed

  • Improved the internals of the shell when loading.

Fixed

  • Encoders were overriding values stripping forbidden values. Evaluation is now done on the whole json.

Version 0.22.6

Choose a tag to compare

@tarsil tarsil released this 22 Oct 09:21
beb3c7f

Fixed

  • Fix 502 Gateway timeout when using EventStreamResponse with long-lived connections.

Version 0.22.5

Choose a tag to compare

@tarsil tarsil released this 19 Oct 15:09
4e37b38

Added

  • Support for dependency overrides. This allows you to override dependencies globally in the application
    or in specific includes. This is particularly useful for testing and mocking dependencies.

Changed

  • EnvironLoader now support native YAML files.
  • Environments documentation section with examples and usage.

Fixed

  • Fixed EventStreamResponse error message to display in seconds and not milliseconds.

Version 0.22.4

Choose a tag to compare

@tarsil tarsil released this 16 Oct 16:12
a3e8a2b

Note

This was missed from the 0.22.3 release.

Fixed

  • Fixed EventStreamResponse when it was not establishing the connection properly.

Version 0.22.3

Choose a tag to compare

@tarsil tarsil released this 16 Oct 13:40
918a843

Added

  • runserver_theme to Lilya settings and runserver directive. This allows you to customise the theme of the
    lilya runserver command.

Fixed

  • Regression in runserver with a path provided.

Version 0.22.2

Choose a tag to compare

@tarsil tarsil released this 16 Oct 10:03
d05ed34

Added

  • Support for multiple cookie headers in the Request object. This follows the RFC 7540.

Changed

  • Core implementation for EventStreamResponse to support multiple headers and parameters.

Version 0.22.1

Choose a tag to compare

@tarsil tarsil released this 14 Oct 14:16
9126530

Changed

  • Lilya requires now accepts a parameter for custom connection name checking and removes the enforcing of
    the connection name to be None.
  • Extend the authenticate signature with extra kwargs for lilay.authentication.AuthenticationBackend.

Fixed

  • Documentation typos.

Version 0.22.0

Choose a tag to compare

@tarsil tarsil released this 12 Oct 16:57
e3e52b7

Added

  • New Lifecycle system allowing to create global and app level lifecycle hooks. With more explanatory
    documentation.
  • Dependency Scopes — Introduced a flexible scoping system for dependency lifetimes.
    • Scope.REQUEST: Default per-request lifetime.
    • Scope.APP: Application-wide shared dependencies.
    • Scope.GLOBAL: Process-level shared instances.
  • New security SignedURL utility for generating and verifying time-limited signed URLs.
  • New SSEChannel class for creating in-memory Server-Sent Events channels with pub/sub support.

New Responses

  • CSVResponse as a new available response for CSV files directly in the lilya.responses.
  • YAMLResponse as a new available response for YAML files directly in the lilya.responses.
  • XMLResponse as a new available response for XML files directly in the lilya.responses.
  • MessagePackResponse as a new available response for MessagePack files directly in the lilya.responses.
  • NDJSONResponse as a new available response for Newline Delimited JSON files directly in the lilya.responses.
  • ImageResponse as a new available response for images directly in the lilya.responses.
  • TextResponse as a new available response for plain text files directly in the lilya.responses.
  • EventStreamResponse as a new available response for Server-Sent Events directly in the lilya.responses.

Fixed

  • CompactSerializer was not overriding kwargs properly.