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.19.0

Published by adamghill over 3 years ago

  • Re-implemented how action method parsing is done to remove all edge cases when passing arguments to component view methods. (@frbor).
  • Add support for passing kwargs to component view methods.
django-unicorn - 0.18.1

Published by adamghill over 3 years ago

  • Fix regression where component kwargs were getting lost (#140, #141)
  • Fix startunicorn management command (#142)
django-unicorn - 0.18.0

Published by adamghill over 3 years ago

  • Only send updated data back in the response to reduce network latency
  • Experimental support for queuing up requests to alleviate race conditions when functions take a long time to process
  • Use type hints on component view attributes if needed
  • Bug fix: use the correct component name to call a component method from "outside" the component (4edfc6)
django-unicorn - 0.17.2

Published by adamghill over 3 years ago

  • Don't send the parent context in the response for child components that specify a partial update.
  • Add support for element models to specify a partial update.
  • Add support for polls to specify a partial update.
  • Handle date, time, timespan when passed as arguments from JavaScript.
  • Render child component template's JavaScript initialization with the parent's as opposed to inserting a new script tag after the child component is rendered.
  • Bug fix: prevent an error when rendering a Django model with a date-related field, but a string value.
django-unicorn - 0.17.1

Published by adamghill over 3 years ago

  • Remove stray print statement
  • Fix bug where child components would sometimes lose their action events
django-unicorn - 0.17.0

Published by adamghill over 3 years ago

  • Target DOM changes from an action to only update a part of the DOM with the partial attribute.
django-unicorn - 0.16.1

Published by adamghill over 3 years ago

  • Remove debounce from action methods to reduce any perceived lag
django-unicorn - 0.16.0

Published by adamghill over 3 years ago

  • Dirty states for when there is a change that hasn't been synced yet.
  • Attempt to handle when the component gets out of sync with an invalid checksum error.
  • Performance tweaks when there isn't a change to a model or dbModel with lazy or defer modifiers.
  • Add support for setting multiple classes for loading states.
django-unicorn - 0.15.1

Published by adamghill almost 4 years ago

  • Fix bug where a component name has a dash in its name
django-unicorn - 0.15.0

Published by adamghill almost 4 years ago

  • Remove restriction that component templates must start with a div.
  • Remove restriction that component root can't also have unicorn:model or unicorn:action.
  • Add support for nested components.
  • Add discard action modifier.
django-unicorn - 0.14.1

Published by adamghill almost 4 years ago

  • Prevent the currently focused model element from updating after the AJAX request finishes (#100).
django-unicorn - 0.14.0

Published by adamghill almost 4 years ago

django-unicorn - 0.13.0

Published by adamghill almost 4 years ago

  • Component key to allow disambiguation of components of the same name
  • $returnValue special argument
  • Get the last action method's return value
django-unicorn - 0.12.0

Published by adamghill almost 4 years ago

  • Redirect from action method in component
django-unicorn - 0.11.2

Published by adamghill almost 4 years ago

django-unicorn - 0.11.0

Published by adamghill almost 4 years ago

  • $model special argument and decorator.
  • $toggle special method.
  • Support nested properties when using the set shortcut.
  • Fix action string arguments that would get spaces removed inadvertently.

Breaking changes:

All existing special methods now start with a $ to signify they are magical. Therefore, refresh is now $refresh, reset is now $reset, and validate is now $validate.

django-unicorn - 0.10.1

Published by adamghill almost 4 years ago

  • Use LRU cache for constructed components to prevent ever-expanding memory.
  • Loosen beautifulsoup4 version requirement.
  • Fix bug to handle floats so that they don't lose precision when serialized to JSON.
  • Fix bug to handle related models (ForeignKeys, OneToOne, etc) fields in Django models.
django-unicorn - 0.10.0

Published by adamghill almost 4 years ago

  • Add support for passing kwargs into component
  • Provide access to the current request in the component's methods
django-unicorn - 0.9.4

Published by adamghill almost 4 years ago

  • Fix: Prevent Django CharField form field from stripping whitespaces when used for validation.
  • Fix: Handle edge case that would generate a null exception.
  • Fix: Only change loading state when an action method gets called, not on every event fire.
django-unicorn - 0.9.2

Published by adamghill almost 4 years ago

  • Handle events on internal elements