💰 Sponsors 💰
GitHub Sponsors: @benjamin-kirkbride @crisog
OpenCollective: Christian Y, GitHub Sponsors, Shubham Prajapati, Snyk
🎉 New Contributors 🎉
- @ddxv made their first contribution in #2194
- @juan-riveros made their first contribution in #2191
- @davidbrochart made their first contribution in #2247
- @sean-donoghue made their first contribution in #2259
- @sykloid made their first contribution in #2277
- @benjamin-kirkbride made their first contribution in #2276
- @wevonosky made their first contribution in #2268
- @geeshta made their first contribution in #2298
- @RobertRosca made their first contribution in #2329
What's Changed
➕ Features
- feat: make
302
the defaultstatus_code
for redirect responses by @cofin
in #2189 - feat(layered-include_in_schema): Add include_in_schema option for all layers by @Alc-Alc
in #2295 - feat(deprecation): Adds deprecation warnings for
app
parameter when usingto_asgi_response
method of responses by @wevonosky
in #2268
🔢 Features: Extras
- feat(contrib-jwt): Add parameters to set the JWT
extras
field by @dialvarezs
in #2313 - feat(templates): add possibility to customize jinja environment by @euri10 in #2195
- feat(templates): add minjinja by @euri10 in #2250
📅 Features: SQLAlchemy
- feat(sqlalchemy): exclude implicit fields for sqlalchemy dto by @abdulhaq-e in #2170
- feat(sqlalchemy): allow repository functions to be filter by expressions by @cofin
in #2265 - feat(sqlalchemy): use
lambda_stmt
in the repository by @cofin in #2179 - feat(sqlalchemy): swap to the
advanced_alchemy
implementations by @cofin
in #2312
📚 Docs
- docs: updates htmx docs by @cofin in #2202
- docs(DTO): Replace PartialDataDTO with DTOData by @ddxv in #2194
- docs: update benchmarks by @provinzkraut in #2198
- docs: add
app
to events usage example by @juan-riveros in #2191 - docs(responses): fix cookie example reference by @aorith in #2215
- docs(security): incorrect argument to Litestar by @aorith in #2220
- docs: fix typo by @davidbrochart in #2247
- docs: Miscellaneous fixes by @sean-donoghue in #2259
- docs: Add
litestar-fullstack
to README and docs by @odiseo0 in #2284 - docs: Fix async sessions, Pydantic V2 by @geeshta in #2298
- docs(templates): Add missing sync_to_thread for examples by @provinzkraut
in #2309 - docs(signature-namespace): Fix code block to render without removing the imports by @Alc-Alc
in #2326 - docs: docs/update links by @RobertRosca in #2329
🔧 Fixes
- fix: remove usages of deprecated ExceptionHandlerMiddleware
debug
parameter by @provinzkraut
in #2192 - fix: raise ValidationException when pydantic validation fails by @guacs
in #2204 - fix: set the max width of the console to the standard terminal width of 80. This helps prevent line wrapping in
certain cases. by @cofin in #2244 - fix(schema): handling of optional path parameters by @Goldziher in #2224
- fix: use os.replace instead of shutil.move for renaming file by @guacs
in #2223 - fix: Exception detail attribute by @gsakkis in #2231
- fix(sqlalchemy-repo): #2221 - Filters not available in
exists()
by @nielsvanhooy
in #2228 - fix: add pydantic types to sqlalchemy registry only if pydantic is installed by @guacs
in #2252 - fix: don't add content type for responses that don't have a body by @guacs
in #2263 - fix:
SQLAlchemyPlugin
refactored. by @cofin in #2269 - fix: Ensure app-dir is appended to path during autodiscovery. by @sykloid
in #2277 - fix: set content length header by default by @guacs in #2271
- fix: #2196 - incorrect handling of mutable headers in ASGIResponse by @provinzkraut
in #2308 - fix: adds missing ORM registry export by @cofin in #2316
- fix: bump version of advanced_alchemy by @cofin in #2317
- fix: discrepency in attrs, msgspec and pydantic for multi-part forms by @euri10
in #2280 - fix: set proper default for
exclude_http_methods
in auth middleware by @guacs
in #2325 - fix(tests): fix platform compat tests by @provinzkraut in #2310
- fix(tests):
RedisStore
test fortime-machine
2.13.0 by @provinzkraut
in #2342
🏛️ Misc / Infra / Tests / Other
- build: ignore all-contributorsrc from pre-commit prettier by @cofin
in #2201 - refactor(structure): move the repository module from contrib to top-level by @Goldziher
in #2238 - infra: Publish with PyPI's trusted publishers by @provinzkraut in #2306
- test: use stricter pytest config by @sobolevn in #2327
- test: use
xfail_strict
for pytest config by @sobolevn in #2328 - test: fix
pydantic@v2
deprecation warning in tests by @sobolevn
in #2340 - test: silence
ResourceWarning
intest_file_response
by @sobolevn
in #2331
Full Changelog: v2.0.0...v2.0.2x