Releases: dymmond/lilya
Releases · dymmond/lilya
Release list
Version 0.22.9
Fixes
- Hard dependency of
python-magic.
Version 0.22.8
Added
- Add
SimpleFileResponseand internalDispositionResponse.
Changed
- Improved dependency resolution logic to refine request injection rules.
- Enhanced
Provideto 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
CSVResponseandNDJSONResponsestreaming. send_fileuses nowSimpleFileResponse.
Fixed
- Request objects were being injected into zero-argument dependencies.
- Dependency injection precedence edge cases between global and route-level dependencies.
- Fix
BaseSettingsfor python 3.14 and more complex inheritances.
Version 0.22.7
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
Fixed
- Fix 502 Gateway timeout when using
EventStreamResponsewith long-lived connections.
Version 0.22.5
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
EnvironLoadernow support native YAML files.- Environments documentation section with examples and usage.
Fixed
- Fixed
EventStreamResponseerror message to display in seconds and not milliseconds.
Version 0.22.4
Note
This was missed from the 0.22.3 release.
Fixed
- Fixed
EventStreamResponsewhen it was not establishing the connection properly.
Version 0.22.3
Added
runserver_themetoLilyasettings andrunserverdirective. This allows you to customise the theme of the
lilya runservercommand.
Fixed
- Regression in runserver with a path provided.
Version 0.22.2
Added
- Support for multiple cookie headers in the
Requestobject. This follows the RFC 7540.
Changed
- Core implementation for EventStreamResponse to support multiple headers and parameters.
Version 0.22.1
Changed
- Lilya
requiresnow accepts a parameter for custom connection name checking and removes the enforcing of
the connection name to be None. - Extend the
authenticatesignature with extra kwargs forlilay.authentication.AuthenticationBackend.
Fixed
- Documentation typos.
Version 0.22.0
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. TextResponseas a new available response for plain text files directly in thelilya.responses.- EventStreamResponse as a new available response for Server-Sent Events directly in the
lilya.responses.
Fixed
- CompactSerializer was not overriding kwargs properly.