Releases: litestar-org/litestar
Release list
v2.7.0
Sponsors ❤️
GitHub Sponsors: Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm, @ruslan-korneev, @iRod3s
OpenCollective: Christian Y, Anonymous
What's changed
Bugfixes
- Fix missing cors headers in response by @crisog in #3179
- Fix sending empty data in sse in js client by @euri10 in #3176
New features
- Support
ResponseSpec(..., examples=[...])by @tuukkamustonen in #3100 - Support "+json"-suffixed response media types by @bunny-therapist in #3096
- Allow re-usable
Routerinstances by @tuukkamustonen in #3103 - Only display path in
ValidationExceptions by @floxay in #3064 - Expose request_class to other layers by @kedod in #3125
- Expose websocket_class by @kedod in #3152
- Add
type_decodersRouter and route handlers by @kedod in #3153 - Pass
type_decodersin WebsocketListenerRouteHandler by @kedod in #3162 - 3116 enhancement session middleware by @aranvir in #3127
- Make random seed for openapi example generation configurable by @guacs in #3166
- Generate openapi components schemas in a deterministic order by @guacs in #3172
New contributors
- @crisog made their first contribution in #3179
- @error418 made their first contribution in #3167
- @bunny-therapist made their first contribution in #3096
- @tuukkamustonen made their first contribution in #3100
Full Changelog
v2.6.3...v2.7.0
v2.6.3
What's changed
Bugfixes
- fix(pydantic): Pydantic V1 schema generation for
PrivateAttrinGenericModelby @provinzkraut in #3161
Full Changelog
v2.6.2...v2.6.3
v2.6.2
Sponsors ❤️
GitHub Sponsors: Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm, @ruslan-korneev, @iRod3s
OpenCollective: Christian Y, Anonymous
New contributors 🎉
- @aranvir made their first contribution in #3114
- @benluo made their first contribution in #3138
- @hugovk made their first contribution in #3141
What's changed
Bugfixes
- Fix msgspec meta constraints not being included in DTO transfer model by @provinzkraut in #3113
- Fix missing cache control header for static files by @guacs in #3131
- Fix OpenAPI schema generation for Pydantic v2 constrained secrets by @provinzkraut in #3149
- Fix OpenAPI schema generation for Pydantic private attributes by @provinzkraut in #3151
- Fix missing OpenAPI description for UUID path parameters by @Alc-Alc in #3118
- Fix
RedisStoreclient created withwith_clientunclosed by @euri10 in #3111
Full Changelog
v2.6.1...v2.6.2
v2.6.1
Sponsors ❤️
GitHub Sponsors: Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm, @ruslan-korneev, @iRod3s
OpenCollective: Christian Y, Anonymous
New contributors 🎉
- @tuukkamustonen made their first contribution in #3098
- @betaprior made their first contribution in #3095
What's changed
Bugfixes
- SQLAlchemy: Use
IntegrityErrorinstead of deprecatedConflictErrorby @cofin in #3094 - Sessions: Fix cookie naming for short cookies by @betaprior in #3095
- Static files: Fix Path resolution for windows by @provinzkraut in #3102
- Logging: Fix middleware with structlog causes application to return HTTP 500 when request body is malformed by @provinzkraut in #3109
- OpenAPI: Generate correct response schema for
ResponseSpec(None)(#3069) by @tuukkamustonen in #3098 - CLI:
rich_click.cli.patchbefore importingclickby @guacs in #3089 - Fix exception handlers extracting details from non-litestar exceptions by @provinzkraut in #3106
- Replace usage of deprecated
static_filesproperty by @cbscsm in #3087
Full Changelog
v2.6.0...v2.6.1
v2.6.0
❤️ Sponsors ❤️
GitHub Sponsors: Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm, @ruslan-korneev, @iRod3s
OpenCollective: Christian Y, Anonymous
What's changed
New features 🚀
- Allow root logger configuration to be disabled by @cofin in #2969
- Implement static file serving with regular route handlers by @provinzkraut in #2960
- Exclude Piccolo ORM columns with
secret=Truefrom PydanticDTO output by @patrickneise in #3030 - Allow plugins to be found by dotted path string by @cofin in #3027
- Support externally typed classes as dependency providers by @provinzkraut in #3066
- Add structlog plugin by @cofin in #2943
- Add
reload-includeandreload-excludeto CLIruncommand by @FergusMok in #2973 - Align layered type annotations by @gsakkis in #2913
Full Changelog
v2.5.5
What's changed
Bugfixes
- fix: scope
statekey handling by @provinzkraut in #3070
Full Changelog
v2.5.4...v2.5.5
v2.5.4
❤️ Sponsors ❤️
GitHub Sponsors: Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm, @ruslan-korneev
OpenCollective: Christian Y, Anonymous
What's changed
Bugfixes
- fix: Handle
KeyErrorwhenroot_pathis not present in ASGI scope by @Alc-Alc in #3051 - fix: ServerSentEvent typing error by @euri10 in #3048
Full Changelog
v2.5.3...v2.5.4
v2.5.3
❤️ Sponsors ❤️
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm
OpenCollective: Christian Y, Anonymous
What's changed
Bugfixes
- Handle diverging ASGI
root_pathbehaviour by @provinzkraut in #3039
Full Changelog
v2.5.2...v2.5.2
v2.5.2
❤️ Sponsors ❤️
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm
OpenCollective: Christian Y, Anonymous
What's changed
Bugfixes
- Fix #2549: Ensure
MultiDictandImmutableMultiDictcopy methods return the instance's type by @provinzkraut in #3009 - Fix #3029: Add
exceptiongroupas a dependency for Python < 3.11 by @JeanArhancet in #3035
Other changes
- Remove duplicated type hints by @rosstitmarsh in #3002
- Don't define multipart extractor inline by @provinzkraut in #3005
- Remove redundant
Nonecheck by @provinzkraut in #3006 - Fix
create_async_test_clientdocstring by @cbscsm in #3015
Documentation
- Fix incorrect argument name in OpenApi ResponseSpec example by @korneevm in #3017
- Fix reference and indentation for
AbstractAuthenticationMiddlewareusage docs by @mj0nez in #2986
New contributors
- @korneevm made their first contribution in #3017
- @rosstitmarsh made their first contribution in #3002
- @JeanArhancet made their first contribution in #3035
Full Changelog
v2.5.1...v2.5.2
v2.5.1
❤️ Sponsors ❤️
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm
OpenCollective: Christian Y, Anonymous
What's changed
🎉 New contributors 🎉
Bugfixes 🐛
- Fix OpenAPI schema generation for Union of multiple
msgspec.StructsandNoneby @provinzkraut in #2982 - Fix misleading error message for missing dependencies provide by a package extra @horo-fox in #2921
- Fix OpenAPI file upload schema by @guacs in #2745
Docs 📚
- docs: fix code block in docstring by @wer153 in #2965
- docs: fix typo for dto-tutorial/01-simple-dto-exclude by @jrycw in #2959
Full Changelog
v2.5.0...v2.5.1