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