Releases: litestar-org/litestar
Releases · litestar-org/litestar
v2.0.0alpha6
What's Changed
Bugfixes
- Fix the typing for
url_for
kwargs unpack by @whiskeyriver in #1610 - Fix #1615: Using
websocket_listener
in controller causesTypeError: .handler_fn() got multiple values for argument 'socket'
by @provinzkraut in #1627
New features
- Add
connection_accept_handler
towebsocket_listener
by @peterschutt in #1572 - Add
block
andtimeout
parameters toWebSocketTestSession
receive methods by @provinzkraut in #1593 - Add
--app-dir
option to CLI by @cofin in #1506 - Add repository signature namespace by @sonpro1296 in #1618
- MessagePack support and generator methods to
WebSocket
by @provinzkraut in #1626 - Sentinel column support for SQLAlchemy repository by @cofin in #1603
- Alias generator for DTO field names by @abdulhaq-e in #1590
- Support nested field exclusion in DTO Factory by @peterschutt in #1596
- Support managing a WebSocket's lifespan using a context manager in WebSocket listeners by @provinzkraut in #1625
- WebSocket broadcast / channels by @provinzkraut in #1587
Other changes
- Add ModelProtocol to
contrib.sqlalchemy.base.__all__
by @provinzkraut in #1582 - Make
dto.factory.backends
private by @peterschutt in #1589
Internal
- Move model parsing into
AbstractDTOBackend
. by @peterschutt in #1597 - DTO: Refactor transfer model production by @peterschutt in #1632
Documentation
- Fix typo / formatting in basic application tutorial by @provinzkraut in #1583
- DTO docs by @peterschutt in #1569
- Add Jacob Coffee as a maintainer by @provinzkraut in #1594
- Fix wrong CLI argument name by @provinzkraut in #1633
- Fix a function name typo by @erhuabushuo in #1598
New Contributors
- @erhuabushuo made their first contribution in #1598
- @whiskeyriver made their first contribution in #1610
Full Changelog: v2.0.0alpha5...v2.0.0alpha6
v1.51.12
What's Changed
- Backport #1391 to v1.51 by @aviral-nayya in #1600
- Docs v1.51: Update theme and branding by @provinzkraut in #1605
- Update pyproject.toml by @JacobCoffee in #1607
New Contributors
- @aviral-nayya made their first contribution in #1600
Full Changelog: v1.51.11...v1.51.12
v1.51.11
What's Changed
Bugfixes
- Fix missing content-encoding headers on gzip/brotli compressed files by @LonelyVikingMichael in #1577
Full Changelog: v1.51.10...v1.51.11
v2.0.0alpha5
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
v1.51.10
What's Changed
Bugfixes
- Fix
Partial
modifying dataclasses by @Goldziher in #1481 - Backport #1255 (Fix CLI
--reload
flag not working as expected) by @provinzkraut in #1483 - Fix #1478: Add uvicorn to
cli
extra #1480 by @provinzkraut in #1483
Full Changelog: v1.51.9...v1.51.10
v2.0.0alpha4
What's Changed
New Features
- Add support for
attrs
andmsgspec
toPartial
by @Goldziher in #1462
Bugfixes
- Support
text/html
Media-Type inRedirect
response by @sonpro1296 in #1474 - Fix global namespace for type resolution by @Goldziher in #1477
- Fix #1478: Add uvicorn to
cli
extra by @provinzkraut in #1480 - Fix #1476: Update
Litestar.logger
levels when settingLitestar.debug
by @provinzkraut in #1482
Documentation
- Update URL of Pydantic repo by @khiemdoan in #1467
- Fix Github issue link in routing documentation by @kedod in #1470
New Contributors
- @khiemdoan made their first contribution in #1467
- @kedod made their first contribution in #1470
- @sonpro1296 made their first contribution in #1474
Full Changelog: v2.0.0alpha3...v2.0.0alpha4
v2.0.0alpha3
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
v1.51.9
v1.51.8
What's Changed
- Fix: Wrong value being passed to cache backend when
cache=True
in route handler by @provinzkraut in #1407
Full Changelog: v1.51.7...v1.51.8
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