Changelog

v0.16.0

  • Dirty states for when there is a change that hasn’t been synced yet.

  • Add support for setting multiple classes for loading states.

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

v0.15.1

  • Fix bug where a component name has a dash in its name

All changes since 0.15.1.

v0.15.0

  • Add support for child components

  • Add discard action modifier

  • Add support for referring to components in a folder structure

  • Remove restriction that component templates must start with a div

  • Remove restriction that component root can’t also have unicorn:model or unicorn:action

All changes since 0.15.0.

v0.14.1

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

All changes since 0.14.0.

v0.14.0

All changes since 0.13.0.

v0.13.0

All changes since 0.12.0.

v0.12.0

  • Redirect from action method in component

All changes since 0.11.2.

v0.11.2

  • Fix encoding issue with default component template on Windows (#91)

  • Fix circular import when creating the component (#92)

All changes since 0.11.0.

v0.11.0

  • $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.

All changes since 0.10.1.

v0.10.1

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

All changes since 0.10.0.

v0.10.0

All changes since 0.9.4.

v0.9.4

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

All changes since 0.9.1.

v0.9.3

  • Handle child elements triggering an event which should be handled by a parent unicorn element.

All changes since 0.9.1.

v0.9.1

  • Fix: certain actions weren’t triggering model values to get set correctly

All changes since 0.9.0.

v0.9.0

All changes since 0.8.0.

v0.8.0

  • Add much more elaborate support for dealing with Django models.

All changes since 0.7.1.

v0.7.1

  • Fix bug where multiple actions would trigger multiple payloads.

  • Handle lazy models that are children of an action model better.

All changes since 0.7.0.

v0.7.0

Breaking changes

  • Remove unused unicorn_styles template tag

  • Use dash for poll timing instead of dot

All changes since 0.6.5.

v0.6.5

  • Attempt to get the CSRF token from the cookie first before looking at the CSRF token.

All changes since 0.6.4.

v0.6.4

  • Fix bug where lazy models weren’t sending values before an action was called

  • Add is_valid method to component to more easily check if a component has validation errors.

  • Better error message if the CSRF token is not available.

All changes since 0.6.3.

v0.6.3

  • Fix bug where model elements weren’t getting updated values when an action was being called during the same component update.

  • Fix bug where some action event listeners were duplicated.

All changes since 0.6.2.

v0.6.2

  • More robust fix for de-duping multiple actions.

  • Fix bug where conditionally added actions didn’t get an event listener.

All changes since 0.6.1.

v0.6.1

  • Fix model sync getting lost when there is an action (issue 39).

  • Small fix for validations.

All changes since 0.6.0.

v0.6.0

All changes since 0.5.0.

v0.5.0

  • Call component method from JavaScript.

  • Support classes, dictionaries, Django Models, (read-only) Django QuerySets properties on a component.

  • Debounce modifier to change how fast changes are sent to the backend from unicorn:model.

  • Lazy modifier to listen for blur instead of input on unicorn:model.

  • Better support for textarea HTML element.

All changes since 0.4.0.

v0.4.0

  • Set shortcut for setting properties.

  • Listen for any valid event, not just click.

  • Better handling for model updates when element ids aren’t unique.

All changes since 0.3.0.

v0.3.0

  • Add mount hook.

  • Add reset action.

  • Remove lag when typing fast in a text input and overall improved performance.

  • Better error handling for exceptional cases.

All changes since 0.2.3.

v0.2.3

  • Fix for creating default folders when running startunicorn.

All changes since 0.2.2.

v0.2.2

  • Set default template_name if it’s missing in component.

All changes since 0.2.1.

v0.2.1

  • Fix startunicorn Django management command.

All changes since 0.2.0.

v0.2.0

All changes since 0.1.1.

v0.1.1

  • Fix package readme and repository link.

All changes since 0.1.0.

v0.1.0

  • Initial version with basic functionality.