Release 0.10.0
Highlights
This release is a major milestone for strawberry-django. Here are some of its highlights:
- The strawberry-django-plus lib was finally merged into this lib, meaning all the extra features it provides are available directly in here. strawberry-django-plus is being deprecated and the development of its features is going to continue here. Here is a quick summary of all the features ported from it:
- The query optimizer extension
- The relay integration (based on the new official relay support from strawberry)
- Enum integration with django-choices-field and auto generation from fields with choices
- Lots of improvements to mutations, allowing CUD mutations to handle nested creation/updating/etc
- The permissioned resolvers, designed as field extensions now instead of the custom schema directives it used
- All the API has been properly typed, meaning that type checkers should be able to properly validate calls to
strawberry_django.type(...)
/strawberry_django.field(...)
/etc - The docs have been updated with all the new features
- A major performance improvement: Due to all the refactoring and improvements, some personal benchmarks show a performance improvement of around 10x when comparing the
v0.9.5
and 8x when comparing tostrawberry-django-plus
Changes
- refactor!: overall revamp of the type/field code and typing improvements by @bellini666 in #265
- feat: relay integration by @bellini666 in #267
- feat: ModelProperty descriptor by @bellini666 in #268
- feat: query optimizer extension by @bellini666 in #271
- feat: enum integration by @bellini666 in #270
- feat: improved mutations by @bellini666 in #272
- feat: permissions extensions using the django's permissioning system by @bellini666 in #273
- docs: document all new features from this lib and improve existing ones by @bellini666 in #274
Full Changelog: v0.9.5...v0.10.0