What's Changed
Bugfixes
- Fix inconsistent parsing of unix timestamp between pydantic and cattrs. by @peterschutt in #1492
- Fix retrieve type hints from class with no
__init__
method. by @peterschutt in #1505 - Fix import bug when all required attrs extra are not installed by @smithk86 in #1543
- Fix #1547: Remove bool coercion in URL parsing by @provinzkraut in #1550
New features
- Pass context to HTMX Template response by @tompin82 in #1488
- Support schema generation for attrs and msgspec classes by @Goldziher in #1487
- Add SQLAlchemy repository model protocol by @LonelyVikingMichael in #1503
- Add support for MySQL to SQLAlchemy repository by @cofin in #1345
- SQLAlchemy repository enhancements by @cofin in #1345
- DTO Factory implementation of DTOInterface by @peterschutt in #1461
- Support DTOs in
websocket_listener
by @peterschutt in #1518 - DTO based serialization plugin by @peterschutt in #1501
- Set compressed static file headers by @LonelyVikingMichael in #1577
Other changes
- Update
standard
andfull
extra by @provinzkraut in #1494 - Refactor
DTOInterface
. by @peterschutt in #1500 - Test client helper default sig backend consistent with
Litestar
. by @peterschutt in #1508 - Remove support for declaring DTOs as handler types. by @peterschutt in #1534
- Make
MissingDependencyException
a subclass ofImportError
by @provinzkraut in #1557 - Simplify DTO config options. by @peterschutt in #1580
Internal
- Move httpx log suppression into a fixture by @provinzkraut in #1512
- Speed up some tests by @provinzkraut in #1513
- Update to polyfactory 2.0.0 by @provinzkraut in #1540
- Infra: Fix docs workflow not building on main by @provinzkraut in #1553
Documentation
- Add basic application tutorial by @provinzkraut in #1515
- Update installation extras by @patrickarmengol in #1554
- Correct several
litestar.config.
imports in migration guide - Add documentation for
contrib.repository
and SQLAlchemy repository by @cofin in #1345
New Contributors
- @tompin82 made their first contribution in #1488
- @patrickarmengol made their first contribution in #1554
- @SanderWegter made their first contribution in #1574
Full Changelog: v2.0.0alpha4...v2.0.0alpha5