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