Skip to content

v0.26.0

Compare
Choose a tag to compare
@cofin cofin released this 05 Dec 19:23
· 61 commits to main since this release

Announcement

There are only a few minor additions planned before releasing the first stable 1.0 release.

Please join the litestar discord if you have any major issues with the current functionality.

What's in the release?

  • Models can now be assigned a bind_key. The allows you to have models for separate databases. To use, assign a __bind_key__ value (string based identifier) to your SQLAlchemy model.
  • Remove the need for a custom AlembicCommands class for Litestar. This will make implementing CLI support for Flask and FastAPI much easier
  • Added bind_key to the SQLAlchemy configuration. This allows you to associate a registry/metadata with a specific configuration.
  • Implemented a MetadataRegistry class to manage all configured metadata's
  • Added the ability to override the lazy load options supplied on the models at the repository level
  • Added a default exception handler for the Litestar plugin
  • Added AsyncAttrs to the built in declarative models
  • DTOs now support WriteOnlyMapped & DynamicMapped
  • DTO configurations parameters for exclude, include, rename_fields will accept stringified column names or InstrumentedAttributes

Change Summary

  • chore: additional documentation build updates by @cofin in #297
  • fix: allow documentation indexing by @cofin in #299
  • fix: more documentation updates by @cofin in #300
  • fix: expose additional objects to documentation by @cofin in #301
  • chore(deps): bump dawidd6/action-download-artifact from 6 to 7 by @dependabot in #304
  • feat: additional loader configurations and re-organization by @cofin in #303
  • feat: AsyncAttrs & remove noload default by @cofin in #305
  • feat: litestar DTO enhancements by @cofin in #310
  • feat: add default exception handler for litestar integration by @cofin in #308
  • feat!: allow override of registry for declarative bases by @cofin in #307

Full Changelog: v0.25.0...v0.26.0