Skip to content

Releases: adamghill/django-unicorn

0.20.0

13 Feb 04:29
Compare
Choose a tag to compare
  • 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.

0.19.0

05 Feb 01:19
Compare
Choose a tag to compare
  • 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.

0.18.1

02 Feb 03:05
Compare
Choose a tag to compare
  • Fix regression where component kwargs were getting lost (#140, #141)
  • Fix startunicorn management command (#142)

0.18.0

31 Jan 13:53
Compare
Choose a tag to compare
  • 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)

0.17.2

28 Jan 02:39
Compare
Choose a tag to compare
  • 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.

0.17.1

24 Jan 23:15
Compare
Choose a tag to compare
  • Remove stray print statement
  • Fix bug where child components would sometimes lose their action events

0.17.0

24 Jan 19:27
Compare
Choose a tag to compare
  • Target DOM changes from an action to only update a part of the DOM with the partial attribute.

0.16.1

23 Jan 15:19
Compare
Choose a tag to compare
  • Remove debounce from action methods to reduce any perceived lag

0.16.0

19 Jan 02:54
Compare
Choose a tag to compare
  • 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.

0.15.1

17 Jan 16:16
Compare
Choose a tag to compare
  • Fix bug where a component name has a dash in its name