What's Changed
django-components now uses major.minor.patch
versioning format 💅
Fix
- Fix compatibility of component caching with
{% extend %}
block (#1135) (thanks @oliverhaas)
Refactor
-
Component IDs (
Component.id
) are now prefixed withc
, e.g.c123456
. -
When typing a Component, you can now specify as few or as many parameters as you want.
Component[Args] Component[Args, Kwargs] Component[Args, Kwargs, Slots] Component[Args, Kwargs, Slots, Data] Component[Args, Kwargs, Slots, Data, JsData] Component[Args, Kwargs, Slots, Data, JsData, CssData]
All omitted parameters will default to
Any
. -
Added
typing_extensions
to the project as a dependency -
Multiple extensions with the same name (case-insensitive) now raise an error
-
Extension names (case-insensitive) also MUST NOT conflict with existing Component class API.
So if you name an extension
render
, it will conflict with therender()
method of theComponent
class,
and thus raise an error.
Full Changelog: 0.139...0.139.1