Releases: 8tentaculos/rasti
Releases · 8tentaculos/rasti
v2.1.0-alpha.1
Fixes
- Keep new lines for templates.
v2.0.2
v2.1.0-alpha.0
Changes
- Introduce container concept. A
Component
that renders a single childComponent
, without producing an extra root element.
v2.0.1
Fixes
- Fix
Component.create
regex to supporth1
, ...,h6
tags. - Fix true and false attributes render helper, to support
data-
attributes. - Render empty string on
true
expressions.
Chores
- Add tests.
v2.0.0
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 todestroy
will be passed toonDestroy
method.removeElement
now returns the view itself for chaining.
Breaking changes
- Improve set method.
- Atomic
change
events.
When usingModel.set
with object attribute with several keys,change
event will be fired once, after firing allchange:attribute
events. - Support nested
change
andchange:attribute
events.
When callingModel.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 ofchange
events.
Instead ofmodel
,key
,value
. It now receivesmodel
,changed
,...args
.
Beingchanged
, an object containing the changed attributes. And...args
, the rest of the arguments passed toModel.set
method.// Before: onChange(model, key, value) {} // Now: onChange(model, changed, ...args) {}
- Atomic
Chores
- Add test.
- Update modules.
v2.0.0-alpha.9
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) {}
- Atomic
Chores
- Add test.
- Update modules.
v2.0.0-alpha.10
Changes
- Docs.
v2.0.0-alpha.8
Fixes
- Fix data attributes.
Chores
- Add test.
v2.0.0-alpha.7
Fixes
- Fix null and undefined attributes.
v2.0.0-alpha.6
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.