Skip to content

Releases: 8tentaculos/rasti

v2.1.0-alpha.1

28 Sep 21:59
Compare
Choose a tag to compare
v2.1.0-alpha.1 Pre-release
Pre-release

Fixes

  • Keep new lines for templates.

v2.0.2

28 Sep 21:42
Compare
Choose a tag to compare

Fixes

  • Keep new lines for templates.

v2.1.0-alpha.0

30 Apr 19:37
Compare
Choose a tag to compare
v2.1.0-alpha.0 Pre-release
Pre-release

Changes

  • Introduce container concept. A Component that renders a single child Component, without producing an extra root element.

v2.0.1

30 Apr 18:06
Compare
Choose a tag to compare

Fixes

  • Fix Component.create regex to support h1, ..., h6tags.
  • Fix true and false attributes render helper, to support data-attributes.
  • Render empty string on true expressions.

Chores

  • Add tests.

v2.0.0

31 Mar 22:56
Compare
Choose a tag to compare

Changes

  • Introducing Components. A special kind of View that is designed to be easily composable, making it simple to add child views and build complex user interfaces.
    Unlike views, which are render-agnostic, components have a specific set of rendering guidelines that allow for a more declarative development style.
  • destroy method doesn't receive options as parameter anymore. And now it can be chained, as it returns the view itself.
    Any argument passed to destroy will be passed to onDestroy method.
  • removeElement now returns the view itself for chaining.

Breaking changes

  • Improve set method.
    • Atomic change events.
      When using Model.set with object attribute with several keys, change event will be fired once, after firing all change:attribute events.
    • Support nested change and change:attribute events.
      When calling Model.set from an event listener.
    • Fix previous object to reflect atomic changes.
      Clone attributes before every set call.
    • change event listener attributes has changed due to the atomic nature of change events.
      Instead of model, key, value. It now receives model, changed, ...args.
      Being changed, an object containing the changed attributes. And ...args, the rest of the arguments passed to Model.set method.
        // Before:
        onChange(model, key, value) {}
        // Now:
        onChange(model, changed, ...args) {}
      

Chores

  • Add test.
  • Update modules.

v2.0.0-alpha.9

16 Mar 01:00
Compare
Choose a tag to compare
v2.0.0-alpha.9 Pre-release
Pre-release

Breaking changes

  • Improve set method.
    • Atomic change events.
    • Support nested events.
    • Fix previous object.
    • Change change event listener attributes:
        // Before:
        onChange(model, key, value) {}
        // Now:
        onChange(model, changed, ...args) {}
      

Chores

  • Add test.
  • Update modules.

v2.0.0-alpha.10

16 Mar 01:37
Compare
Choose a tag to compare
v2.0.0-alpha.10 Pre-release
Pre-release

Changes

  • Docs.

v2.0.0-alpha.8

17 Oct 18:28
Compare
Choose a tag to compare
v2.0.0-alpha.8 Pre-release
Pre-release

Fixes

  • Fix data attributes.

Chores

  • Add test.

v2.0.0-alpha.7

13 Aug 23:05
Compare
Choose a tag to compare
v2.0.0-alpha.7 Pre-release
Pre-release

Fixes

  • Fix null and undefined attributes.

v2.0.0-alpha.6

11 Aug 23:28
Compare
Choose a tag to compare
v2.0.0-alpha.6 Pre-release
Pre-release

Changes

  • Call onRender when the view is recycled.
  • Restore focus when the view is rendered.
  • destroy method doesn't receive options as parameter anymore. And now it can be chained.