Skip to content

Releases: adamghill/django-unicorn

0.15.0

17 Jan 13:22

Choose a tag to compare

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

0.14.1

06 Jan 03:07

Choose a tag to compare

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

0.14.0

01 Jan 15:36

Choose a tag to compare

0.13.0

21 Dec 04:35

Choose a tag to compare

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

0.12.0

21 Dec 04:34

Choose a tag to compare

  • Redirect from action method in component

0.11.2

13 Dec 22:38

Choose a tag to compare

  • Fix encoding issue with default component template on Windows (#91)
  • Fix circular import when creating the component (#92)

0.11.0

13 Dec 22:37

Choose a tag to compare

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

0.10.1

05 Dec 04:55

Choose a tag to compare

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

0.10.0

28 Nov 20:54

Choose a tag to compare

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

0.9.4

25 Nov 01:50

Choose a tag to compare

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