github django-components/django-components 0.139.1

latest releases: 0.141.5, 0.141.4, 0.141.3...
4 months ago

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 with c, 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 the render() method of the Component class,
    and thus raise an error.

Full Changelog: 0.139...0.139.1

Don't miss a new django-components release

NewReleases is sending notifications on new releases.