github litestar-org/litestar v2.18.0

21 hours ago

Sponsors 🌟

Thanks to these incredible business sponsors:

Thanks to these incredible personal sponsors:

What's changed

Bugfixes 🐛

  • fix: CLI - Fix command registration by @cofin in #4298
  • fix: remove deprecation warning from polyfactory by @adhtruong in #4292
  • fix(routing): Ensure a MethodNotAllowedException exception during routing properly sets Allow header by @provinzkraut in #4289
  • fix: Preserve empty strings in multipart/form-data requests (#4204) by @doubledare704 in #4271
  • fix(OpenAPI): constraint check logic by @floxay in #4282
  • fix: KeyError when using 'data' kwarg in dependency functions by @doubledare704 in #4270
  • fix(OpenAPI): reenable using Parameter() to set an Enum's schema fields by @250MHz in #4251
  • fix(cli): set --app and --app-dir as eager parameters by @IDrokin117 in #4341
  • fix(channels/plugin): fix typo with pub_task cancelling in _on_shutdown method ChannelsPlugin by @Peopl3s in #4374
  • fix(channels/backend/memory): add KeyError-safe delete channel from history by @Peopl3s in #4389
  • fix(cli): pass the --app-dir option to the uvicorn subprocess when the reload option is enabled. by @IDrokin117 in #4352
  • fix: change Optional to NotRequired in OpenAPI pydantic plugin by @raidzin in #4347
  • fix(OpenAPI): Fix Stream response being treated as File response in OpenAPI schema by @provinzkraut in #4371

New features 🚀

  • feat: deprecate litestar.plugins.sqlalchemy module for v3 removal by @cofin in #4343
  • feat(pydantic): add round_trip parameter to PydanticPlugin by @sobolevn in #4350

Other changes

  • docs: add reference for advanced alchemy sessions by @Harshal6927 in #4275
  • docs: Fix Provide import in FastAPI migration guide by @edgarrmondragon in #4281
  • docs: fix literal include lines in 03-repository-controller by @HairlessVillager in #4269
  • docs: fix lifespan migration from fastapi by @cclinet in #4268
  • docs: Fix incorrect link to sponsors on README.md by @snqb in #4325
  • docs: fix(README/PYPI_README): remove duplicate of mgspec and attrs link by @Peopl3s in #4380
  • docs: fix(getting-started): replace structlog to polyfactory for Polyfactory section by @Peopl3s in #4385
  • docs: fix(docs/realse-notes): fix broken links to realse notes by @Peopl3s in #4368

New contributors 🎉

Full Changelog
v2.17.0...v2.18.0

Don't miss a new litestar release

NewReleases is sending notifications on new releases.