Releases: litestar-org/litestar
v2.0.0alpha2
What's Changed
A detailed changelog can be found here: https://docs.starliteproject.dev/2/release-notes/changelog.html
New features
- Repository contrib & SQLAlchemy repository by @peterschutt & @cofin in #1254
- [Breaking] Add data stores and add
StoreRegistry
by @provinzkraut in #1330 - Add
starlite.__version__
by @provinzkraut in #1277 - Add new
version
command to CLI by @provinzkraut in #1322 - Add configurable exception logging and traceback truncation by @Goldziher in #1296
- [Breaking] Enhance CLI autodiscovery logic by @provinzkraut in #1322
Bugfixes
- Fix #1292: Allow overwriting default OpenAPI response descriptions by @Nadock in #1293
- Fix: Regression in path resolution that prevented 404's being raised for false paths by @Goldziher in #1316
- Fix #1315:
after_request
hook not being called on responses returned from handlers by @Goldziher in #1344 - Fix: SQLAlchemyPlugin raises error when using SQLAlchemy UUID type by @cofin in #1355
- Fix:
JSON.parse
error in ReDoc and Swagger OpenAPI handlers by @cofin in #1363 - Fix: CLI prints application info twice by @provinzkraut in #1322
Changes
- Add
signature_namespace
layered parameter to help resolve type annotations by @peterschutt in #1374 - Update
SimpleEventEmitter
to use worker pattern by @Goldziher & @provinzkraut in #1346 - [Breaking] Make
BaseEventEmitterBackend.emit
synchronous by @provinzkraut in #1376 - [Breaking] Standardize module exports by @Goldziher in #1273
- [Breaking] Move 3rd party integration plugins to
contrib
by @provinzkraut in #1279 - [Breaking] Remove
picologging
from thestandard
install group by @cofin in #1313 - [Breaking] Replace
initial_state
withstate
by @peterschutt in #1350 - [Breaking] Remove support for 2 argument form of
before_send
handlers by @peterschutt in #1354
Internal
- Fix type errors in tortoise contrib by @peterschutt in #1280
- Remove
py_39_safe_annotations
decorator by @peterschutt in #1323 - Update OpenAPI logic to not rely on pydantic by @Goldziher in #1306
- Add
async_timeout
as dev dep for py 3.11+. by @peterschutt in #1353
Documentation
- Fix typo in core Starlite app by @JacobCoffee in #1288
- Fix various cross references by @provinzkraut in #1291
- Add TortoiseORM examples for related objects and computed fields by @Galdanwing in #1356
- Use
starlite_sphinx_theme
by @provinzkraut in #1366 - Remove general content from docs (moved to
starliteproject.dev
) by @provinzkraut in #1366 - Add structured changelog by @provinzkraut in #1380
Other
- Infra: Move linting to ruff by @Goldziher in #1300
New Contributors
- @Nadock made their first contribution in #1293
- @onerandomusername made their first contribution in #1348
- @Galdanwing made their first contribution in #1356
Full Changelog: v2.0.0alpha1...v2.0.0alpha2
v1.51.7
What's Changed
Bugfixes
- Fix a regression in path resolution that prevented
404
being raised for some invalid paths by @Goldziher in #1316 - Fix a
DeprecationWarning
for the wrong namestarlite/middleware/session/__init__.py
by @peterschutt in #1286
Full Changelog: v1.51.6...v1.51.7
v2.0.0alpha1
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
v1.51.6
v1.51.5
v1.51.4
What's Changed
- support passing type encoders to
AbstractSecurityConfig
(989a2fc)
Full Changelog: v1.51.3...v1.51.4
v1.51.3
What's Changed
Bugfixes
- Fix static path validation for
/
by @Goldziher in #1207
Full Changelog: v1.51.2...v1.51.3
v1.51.2
What's Changed
- Fix for security advisory GHSA-p24m-863f-fm6q (9674fe8)
Full Changelog: v1.51.1...v1.51.2
v1.51.1
What's Changed
Bugfixes
- Fix critical bug in parsing headers @knowsuchagency in #1187
Full Changelog: v1.51.0...v1.51.1
v1.51.0
Note: This is the last regular release of the 1.x
branch. The next feature release will be 2.0
. The 1.51
branch will enter maintenance mode and receive security updates and bugfixes of high severity until the next major release.
What's Changed
Bugfixes
- Fix #1106: Optional sequence query param by @peterschutt in #1108
- Fix #1137: Memory leak in logging middleware by @Goldziher in #1138
- Add missing CORS headers on exception responses by @Goldziher in #1141
New features
- Configure logger and force "DEBUG" level in debug mode by @provinzkraut in #1119
- Allow on-app-init hooks to modify initial state. by @peterschutt in #1122
- Add exception logging in debug mode by @JacobCoffee in #976
Docs
- Update contribution guidelines, add "Starlite versions" by @provinzkraut in #1131
Full Changelog: v1.50.2...v1.51.0