django-unicorn

The magical reactive component framework for Django ✨

MIT License

Downloads
9.6K
Stars
2.3K
Committers
17

Bot releases are hidden (Show)

django-unicorn - 0.35.2

Published by adamghill about 3 years ago

  • Fix: Make sure visible:elements trigger as expected in more cases.
  • Prevent the visibile element from continuing to trigger if the visbility element method returns False.
django-unicorn - 0.35.0

Published by adamghill about 3 years ago

  • Trigger an event for a model element from JavaScript
  • Visibility event with unicorn:visible attribute

Breaking changes

  • db_model Python decorator, unicorn:db, unicorn:field, unicorn:pk template attributes are removed.
django-unicorn - 0.34.0

Published by adamghill about 3 years ago

django-unicorn - 0.33.0

Published by adamghill about 3 years ago

  • Fix: Allow comments, blank lines, or text at the top of component templates before the root element.
django-unicorn - 0.32.0

Published by adamghill about 3 years ago

  • Add debounce support to actions
django-unicorn - 0.31.0

Published by adamghill over 3 years ago

  • Move JavaScript static assets into unicorn sub-folder
  • Determine correct path for installed app passed to startunicorn management command
  • Call startapp management command if app is not already installed
django-unicorn - 0.30.0

Published by adamghill over 3 years ago

  • Look in all INSTALLED_APPS for components instead of only in a unicorn app (210)
  • Support settings.APPS_DIR which is the default for django-cookiecutter instead of just settings.BASE_DIR (214)

Breaking changes

  • Require an application name when running the startunicorn management command for where the component should be created
django-unicorn - 0.29.0

Published by adamghill over 3 years ago

  • Sanitize initial JSON to prevent XSS
django-unicorn - 0.28.0

Published by adamghill over 3 years ago

django-unicorn - 0.27.2

Published by adamghill over 3 years ago

  • Fix bug with relationship fields on a Django model
django-unicorn - 0.27.1

Published by adamghill over 3 years ago

  • Fix some issues with many-to-many fields on a Django model
django-unicorn - 0.27.0

Published by adamghill over 3 years ago

  • Many-to-many fields on a Django model are now supported
  • Multiple partial targets
django-unicorn - 0.26.0

Published by adamghill over 3 years ago

  • Completely redesigned and much improved support for Django models and QuerySets.
  • Fix the startunicorn command and add some ascii art.
django-unicorn - 0.25.0

Published by adamghill over 3 years ago

  • Support calling functions in JavaScript modules
  • Fix: use unicorn:db without a unicorn:model in the same element
django-unicorn - 0.24.0

Published by adamghill over 3 years ago

django-unicorn - 0.23.0

Published by adamghill over 3 years ago

  • Performance enhancement that returns a 304 HTTP status code when an action happens, but the content doesn't change.
  • Add unicorn:ignore attribute to prevent an element from being morphed (useful when using Unicorn with libraries like Select2 that change the DOM).
  • Add support for passing arguments to Unicorn.call.
  • Bug fix when attempting to cache component views that utilize the db_model decorator.
django-unicorn - 0.22.0

Published by adamghill over 3 years ago

  • Use Django cache for storing component state when available
  • Add support for Django 2.2.x
django-unicorn - 0.21.2

Published by adamghill over 3 years ago

  • Add backported dataclasses as a dependency for Python 3.6.
django-unicorn - 0.21.0

Published by adamghill over 3 years ago

  • Bug: Prevent disabled polls from firing at all.
  • Handle serializing Decimal fields.
  • Use type hints to cast fields to primitive Python types if possible.
  • Support dataclass field type.
django-unicorn - 0.20.0

Published by adamghill over 3 years ago

  • Add ability to exclude component view properties from JavaScript to reduce the amount of data initially rendered to the page with javascript_exclude.
  • Add complete, rendered, parent_rendered component hooks.
  • Call JavaScript functions from a component view's method.