Releases: finom/seemple
Releases · finom/seemple
Matreshka v1.3.0
- The new method Matreshka.Array#restore
- Some binders from Matreshka.binders are renamed (old ones still work).
innerHTML
->html
innerText
->text
property
->prop
attribute
->attr
html
иtext
binders have become two-way data binders when"contenteditable"
attribute is used.- New event names:
"removeevent"
and"removeevent:NAME"
which are fired when some event is removed. - Matreshka.Array#itemRenderer allows to use invalid HTML string. If invalid HTML string is passed then it's wrapped with
span
tag. - Balalaika allows to use any objects, not only DOM nodes.
- Some changes for contributors (allow to use SystemJS to include source code).
Matreshka v1.2.0
- Added virtual property Matreshka.Array#trackBy.
- Bug fix in Matreshka.to.
- Custom selectors didn't work correctly with deep binding.
Matreshka v1.1.2
- Improved performance for custom selector engine
- Restored missing MK#parseBindings method
Matreshka v1.1.1
- Use
oMatchesSelector
for Opera Mini in Balalaika. This simple change allows to use Matreshka in every old browser that hasObject.defineProperty
support. All tests are passed.
Matreshka v1.1
- Easier Internet Explorer 8 detection: use
documentMode
only instead of useragent. - Improved performance for
parseBindings
and fixed bug for old webkits - Deep links via
linkProps
Matreshka v1.1 RC3
- Minor performance improvements for
off
method. - Fixed bug in
setClasFor
in Internet Explorer 8 - Restored missing
innerText
binder
Matreshka v1.1 RC2
- Fixed some bugs in IE8.
- Minor performance improvements for
on
method. - Removed some pseudo-private methods
Matreshka v1.1 RC
New methods and properties
- Static methods which work with any kind of object (the full list is there).
- Properties Matreshka#nodes and Matreshka#$nodes.
- Method Matreshka#setClassFor.
- Static method Matreshka.to.
- Static method Matreshka.trim.
- Static method Matreshka.toArray.
- Simple template engine Matreshka#parseBindings.
- The new binders
- Static methods Matreshka.Array.of and Matreshka.Array.from.
- The new virtual method Matreshka.Array#onItemRender and its alternative
onRender
for its items.
API improvements
- "Deep binding" which allows to bind a node to a property inside of nested object.
this.bindNode('a.b.c.d', '.my-node');
- Changed delegated events syntax and implemented backward compability.
this.on('a.b.*.*.e@someevent', f);
- Additional syntax for Matreshka#bindNode.
this.bindNode({
x: '.my-x-node',
y: ['.my-y-node', MK.binders.className()],
z: ['.my-z-node', {
setValue: function(v) {...}
}]
})
- New variations for methods Matreshka#on, Matreshka#once, Matreshka#onDebounce, which allow to pass eventname-handler object.
- Improved error reporting for Matreshka#bindNode.
getValue
for older binders (implementing two-way data binding).forceRerender
flag for Matreshka.Array#rerender.- Matreshka.Array can render any kind of object including native ones.
- Turning on template system for Matreshka.Array#renderer by default.
- Nested DOM tree creation using $b.create.
- Return
this
from all contstructors for nice chained calls using ECMAScript 2015.
class X extends Matreshka.Array {
constructor(data) {
super(...data).bindNode(/*...*/);
}
}
New event names
beforechange
andbeforechange:KEY
, called before property is changedaddevent
andaddevent:NAME
called on every event add.
Fixes
- Matreshka.Object#jset doesn't throw error if
null
is passed. - Fied bug in Matreshka#linkProps which threw error in some specific cases.
- Fied bug in Matreshka.#set:
forceHTML
flag didn't work correctly - Fixed bug in Matreshka.Array#concat.
- Fixed bug in array renderer for old WebKit-based browsers
- Fixed bug in MacOS for Matreshka#mediate.
- Render arrays even if
silent: true
is passed to modifying method. - Other fixes.
Other news
- Objects used by Matreshka have a property
Symbol(matreshka)
instead of__events
,__special
and__id
. - Added unit tests (145 tests for now).
- Splitted up the source.
- Huge performance improvements. In some cases the performance increased 40 (!) times.
- MatreshkaMagic MatreshkaMagic.
Matreshka v1.0.7
- Fixed bug "RangeError: Maximum call stack size exceeded." when using Matreshka#mediate on Safari browser.
Matreshka v1.0.6
- Fixed AMD bug in minified version