Releases: adamghill/django-unicorn
Releases · adamghill/django-unicorn
0.61.0
0.60.0
- Silence warnings about multiple root elements for direct views.
- Handle
force_render
in nested children for direct views #663. - Handle error when manually refreshing direct views.
- Handle component field type annotations for
dataclasses
andPydantic
BaseModel
#649 by siliconcow. - Update
startunicorn
command to prevent spamming users and handle folder creation for nested components #642 by felipmartins.
Breaking changes
- Unparseable
kwarg
argument passed into a component will be consideredNone
instead of being converted to a string.
<!-- If `abcde` is not a variable in the template context, it will get set to `name` as `None` whereas before it would get set as 'abcde' -->
{% unicorn 'hello' name=abcde %}
0.59.0
0.58.0
This release could not have been made possible without the generous support of @winrid and @om-proptech. Thank you for sponsoring me and believing in django-unicorn
! It also includes critical improvements to nested components from @imankulov.
- Handle a list of
ValidationError
or just a string instead of requiring a thedict
version. - Better support for type annotations for component fields.
- Improved nested component support by imankulov.
- Add
force_render
and$parent
.
Breaking changes
Child components will not by default render the parent component anymore. If this is required for your child component, specify self.parent.force_render = True
in any action that requires the parent to re-render. This change will reduce network bandwidth and isolates the amount of re-rendering required for nested components.
0.57.1
0.57.0
0.56.1
0.56.0
- Add support for using both Alpine.js and
Unicorn
together in a component (#597 by imankulov). - Do not send a 304 if the child has a parent (#595).
- Prevent sending the child DOM if there is a parent to reduce network payload size.
- More verbose error message when a component can not be loaded (#453 by nerdoc).
0.55.0
- Support
List
/list
type annotations for component actions and fields (#582). - Fix: calling a method in a parent will have the request available ([#583]#583).
Breaking changes
- Dropped official support for Python 3.7 because its end of life was June 27, 2023.
- Dropped official support for Django 2.2 because its end of life was April 1, 2022.