v2.8.0
Sponsors 🌟
Thanks to these incredible business sponsors:
- Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
Thanks to these incredible personal sponsors:
-
GitHub Sponsors: (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm, @ruslan-korneev,
-
OpenCollective: Christian Y, Anonymous
-
A huge 'Thank you!' to all sponsors, subscribers, and contributors across Polar.sh, OpenCollective and GitHub Sponsors!
What's changed
New contributors 🎉
- @carlsmedstad made their first contribution in #3291
- @haryle made their first contribution in #3242
- @winbornejw made their first contribution in #3136
Bugfixes 🐛
- fix(cli): remove duplicate rich-click config options by @JacobCoffee in #3274
- fix: pydantic
json_schema_extra
examples. by @peterschutt in #3281 - fix(openapi): set default on schema from
FieldDefinition
by @guacs in #3280 - fix: Custom types cause serialisation error in exception response with non-JSON media-type by @provinzkraut in #3284
- fix(OpenAPI): Ensure default values are always represented in schema for dataclasses and
msgspec.Struct
s by @provinzkraut in #3285 - fix(DTO): Pydantic v2 error handling/serialization when for non-pydantic exceptions by @provinzkraut in #3286
- fix(OpenAPI): Fix OpenAPI schema generation for paths with path parameters of different types on the same path by @provinzkraut in #3293
- fix(OpenAPI): Document unconsumed path parameters by @provinzkraut in #3295
- fix: Unique schema names for nested models (#3134) by @winbornejw in #3136
New features 🚀
- feat: add Scalar.com as an OpenAPI docs generator option
- feat: allow for console output to be silenced by @cofin in #3180
- feat: add flash plugin by @euri10 in #3145
- feat: Use memoized
request_class
andresponse_class
values by @kedod in #3205 - feat(DTO): Enable codegen backend by default by @provinzkraut in #3215
- feat: Added precedence of CLI parameters over envs by @kedod in #3190
- feat: only print when terminal is
TTY
enabled by @cofin in #3219 - feat: Support
schema_extra
inParameter
andBody
by @tuukkamustonen in #3204 - feat: add typevar expansion by @haryle in #3242
- feat: Add LITESTAR_ prefix before WEB_CONCURRENCY env option by @kedod in #3227
- feat: Warn about ambiguous default values in parameter specifications by @provinzkraut in #3283
- feat: support declaring
DTOField
viaAnnotated
by @peterschutt in #3289 - feat: Add
TRACE
to HttpMethod enum by @provinzkraut in #3294 - feat: Pydantic dto non instantiable types by @peterschutt in #3296
- feat: Add
path
parameter to Litestar application class by @kedod in #3314
Other changes
- docs(channels): Fix subscriber examples by @provinzkraut in #3287
- docs: Expand the acronym for Data Transfer Object in
What's New in v2
by @cclauss in #3288 - docs: Add examples for auth
exclude
configuration by @aranvir in #3246 - refactor: Reduce module import time by @provinzkraut in #3282
- refactor: remove CacheControlHeader dependency on AbstractDTO by @peterschutt in #3307
Full Changelog
v2.7.1...v2.8.0