Note
2.0.0alpha1
is the first release of Starlite 2.0. This is a pre-release and in the alpha stage. Interfaces have not yet stabilized an public APIs will likely still change before the final release of v2.0.0
.
What's Changed
New features
- Validation of controller route handler methods by @Goldziher in #1144
- HTMX support by @jenish2014 in #1086
- Add
Starlite.from_config
alternative constructor by @wassafshahzad in #1190 - Add
WEB_CONCURRENCY
/HTTP Workers to CLI by @cofin in #1218 - Check the type annotation of the
state
reserved kwarg by @peterschutt in #1264 - Support generic application state by @Goldziher in #1030
- Support dependency injection of classes @Goldziher in #1143
- Add event listeners / emitters by @Goldziher in #1105
- [Breaking] Unified storage interfaces by @provinzkraut in #1184
Changes
Non breaking
- Relaxed type annotations by @peterschutt in #1140
- Support type encoders in
AbstractSecurityConfig
by @Goldziher in #1167 - Update handling of operationID and generation of values from handler callable names by @Goldziher in #1174
Breaking
- Rename handler modules to disambiguate from decorator names. by @peterschutt in #1170
- Refactor plugin protocol by @Goldziher in #1176
- Unify response headers / cookies by @provinzkraut in #1209
- Improve application startup time by cleaning imports by @Goldziher in #1215
- Replace Pydantic models with dataclasses by @Goldziher in #1242
- Move SQLAlchemy 1 plugin into
contrib
by @peterschutt in #1252 - Cleanup
starlite/utils
by @provinzkraut in #1261 - Cleanup the
starlite
namespace by @provinzkraut in #1135
Internal
- Use
__future__.annotations
by @peterschutt in #1203, @peterschutt in #1204, @Goldziher in #1216, @Goldziher #1215 - Update
Starlite.openapi_schema
to use lazy evaluation on first access by @Goldziher in #1217 - Refactor
starlite.handlers.http_handlers
. by @peterschutt in #1244
Bugfixes
- Fix
LoggingMiddlewareConfig
log fields #1139 by @chris-telemetry in #1151 - Adhere to ASGI spec when parsing headers by using a list instead of tuple by @knowsuchagency in #1187
- Fix static path validation for
'/'
by @Goldziher in #1207 - Fix JWT Auth handling of
domain
configuration value by @cofin in #1223 - Fix #1228: create a new dictionary of values in obfuscate() by @smithk86 in #1231
- Fix optional parameter OpenAPI schema generation by @nilsso in #1225
- Fix CLI
--reload
flag not working as expected by @provinzkraut in #1255 - Fix path resolution for static files by @Goldziher in #1257
Documentation
- Documentation Link Fixes by @JacobCoffee in #1146
- Fix warnings and broken links. by @peterschutt in #1171
- Docs restructuring by @provinzkraut in #1189
- Fix typo in cli.rst by @Alc-Alc in #1195
- Update sidebar css by @ekeric13 in #1198
- Fix AsyncTestClient examples by @odiseo0 in #1112
- Fix a typo in the "Migration from FastAPI" section by @ReznikovRoman in #1220
- Update versioning and release documentation by @provinzkraut in #1232
New Contributors
- @jenish2014 made their first contribution in #1086
- @chris-telemetry made their first contribution in #1151
- @knowsuchagency made their first contribution in #1187
- @ekeric13 made their first contribution in #1198
- @wassafshahzad made their first contribution in #1190
- @nilsso made their first contribution in #1225
- @sinisaos made their first contribution in #1236
Full Changelog: v1.51.0...v2.0.0alpha1