Important
This is the first release under the new "Litestar" name. Version number and everything else has been kept the same. For more details see this section about the renaming and the introductory post.
What's Changed
New features
- SQLAlchemy 2.0
InitPluginProtocol
by @peterschutt in #1395 - Attrs signature modelling by @Goldziher in #1382
- Support setting status codes in
Redirect
container by @provinzkraut in #1412 - Add sentinel value to support caching responses indefinitely by @provinzkraut in #1414
- Add
StarliteEncodableType
type alias by @peterschutt in #1425 Accept
-header parsing and content negotiation by @NomAnor in #1317- DTO Application Interface by @peterschutt in #1445
- Better websockets by @provinzkraut in #1402
Bugfixes
- Fix #1368: SQLAlchemy 1 plugin mutates app state destructively by @peterschutt in #1391
- Fix #1388,
get_plugin_for_value()
for arbitrary generic types. by @peterschutt in #1389 - Fix #1409: Openapi schema generation using stringized return annotation by @peterschutt in #1410
- Fix #1372: Openapi schema generation crashes for models with Annotated type attribute by @peterschutt in #1400
- Fix
ResponseCacheConfig
default store name by @provinzkraut in #1404 - Fix #1419: Support
RequestFactory
with emptydata
by @provinzkraut in #1420
Changes
- Modify the
InitPluginProtocol
to interact withAppConfig
. by @peterschutt in #1393 - Update
create_test_client
signatures and docstrings to to matchStarlite
by @provinzkraut in #1417
Internal
- Refactor: Raise on access to
Starlite.openapi_schema
property. by @peterschutt in #1397 - Refactor: dataclass utils by @peterschutt in #1398
- Fix inconsistent parsed parameter annotations. by @peterschutt in #1401
- Restrict minimum redis versions for CVE-2023-28858 & CVE-2023-28859. by @peterschutt in #1411
- Remove hypothesis permutations from test. by @peterschutt in #1423
- Refactor: Update
MissingDependencyException
usages by @provinzkraut in #1403 - De-duplicate handler
__call__()
method logic by @peterschutt in #1427 - Add
BaseRouteHandler.fn
property by @peterschutt in #1428 - Integrate polyfactory by @Goldziher in #1431
- Add parsed signature datastructure by @peterschutt in #1432
- Parsed signature utils by @peterschutt in #1447
- Fix incorrect handler type annotations by @peterschutt in #1452
- Rename Starlite by @Goldziher in #1453
New Contributors
- @giorgiovilardo made their first contribution in #1392
- @NomAnor made their first contribution in #1317
Full Changelog: v2.0.0alpha2...v2.0.0alpha3