django-unicorn

The magical reactive component framework for Django ✨

MIT License

Downloads
9.6K
Stars
2.3K
Committers
17

Bot releases are visible (Hide)

django-unicorn - 0.44.1

Published by adamghill over 2 years ago

  • Fix: Some types of type annotations on a component method would cause an error when it was called #392 by nerdoc
  • Add component_id, component_name, component_key to the unicorn dictionary in the template context #389 by nerdoc
django-unicorn - 0.44.0

Published by adamghill over 2 years ago

  • Add support for raising a ValidationError from component methods
django-unicorn - 0.43.1

Published by adamghill over 2 years ago

  • Fix bug where direct views were not caching the component correctly
django-unicorn - 0.43.0

Published by adamghill over 2 years ago

  • Defer displaying messages when an action method returns a redirect
  • Prevent morphing or other changes when redirecting
django-unicorn - 0.42.1

Published by adamghill over 2 years ago

  • Fix bug where dictionaries in a component would generate incorrect checksums and trigger a Checksum does not match error
  • Remove some serializations that was happening unnecessarily on every render
  • Add Python 3.10 and Django 4.0 to test matrix
django-unicorn - 0.42.0

Published by adamghill over 2 years ago

  • Remove all blank spaces from JSON responses.
  • Optional support for minifying response HTML with htmlmin.
  • Log warning message if the component HTML doesn't appear to be well-formed (i.e. an element does not have an ending tag). #342 by liamlawless35

Breaking changes

  • Bump supported Python to >=3.7.
django-unicorn - 0.41.2

Published by adamghill almost 3 years ago

  • Fix: Handle excluding a field's attribute when the field is None.
django-unicorn - 0.41.1

Published by adamghill almost 3 years ago

  • Fix: Handle component classes with a bool class attribute and a form_class with a BooleanField. Reported by zurtri
django-unicorn - 0.41.0

Published by adamghill almost 3 years ago

  • Support using a context variable for a component name. #314 by robwa
django-unicorn - 0.40.0

Published by adamghill almost 3 years ago

  • Add direct view so that components can be added directly to urls without being required to be included in a regular Django template.
  • Add capability for startunicorn to created components in sub-folders (#299)[https://github.com/adamghill/django-unicorn/issues/299]
django-unicorn - 0.39.1

Published by adamghill almost 3 years ago

  • Prefer prefetch_related to reduce database calls for many-to-many fields.
django-unicorn - 0.39.0

Published by adamghill almost 3 years ago

  • Explicit error messages when an invalid component field is excluded
  • Better support for serializing many-to-many fields which have been prefetched to reduce the number of database calls
  • Support excluding many-to-many fields with javascript_exclude
django-unicorn - 0.38.1

Published by adamghill almost 3 years ago

  • Fix: Allow components to be pickled so they can be cached.
django-unicorn - 0.38.0

Published by adamghill almost 3 years ago

  • Include request context in component templates.
django-unicorn - 0.37.2

Published by adamghill almost 3 years ago

  • Fix: nested field attributes for javascript_exclude.
django-unicorn - 0.37.1

Published by adamghill almost 3 years ago

  • Support nested field attributes for javascript_exclude.
django-unicorn - 0.37.0

Published by adamghill almost 3 years ago

  • Revert loading and dirty elements when the server returns a 304 (not modified) or a 500 error.
django-unicorn - 0.36.1

Published by adamghill about 3 years ago

  • More verbose error messages when components can't be loaded (#277 by nerdoc).
  • More complete handling to prevent XSS attacks.
django-unicorn - 0.36.0

Published by adamghill about 3 years ago

  • Security fix: for CVE-2021-42053 to prevent XSS attacks (reported by Jeffallan).

Breaking changes

  • responses will be HTML encoded going forward (to explicitly opt-in to previous behavior use safe)
django-unicorn - 0.35.3

Published by adamghill about 3 years ago