rivets v0.6 Release Notes
-
๐ Changes
- ๐ Support for multiple adapters through interfaces.
- Ships with a built-in
.
adapter using ES5 natives (getters and setters). - ๐ Support for nested keypaths (
user.address:zip
).
โฌ๏ธ Upgrading from 0.5
- All dependencies now stem from the target object, not the view's scope object. Make sure to change all dependency keypaths so that they stem from the object that points to the computed property / function.
- โก๏ธ The
prefix
configuration is now an absolute prefix (you need to include "data" in the prefix if you want to use data attributes). Defaults torv
. Make sure to change all existing attribute names torv-[binder]
or update yourprefix
configuration option.
Caveats
- The built-in adapter observes array mutations (push, pop, unshift, etc.) but not changes made to indexes on the array directly (
array[3] = 'world'
for example). - The built-in adapter cannot subscribe to an array's
length
property. Currently you need to use a formatter to access the array'slength
property (list.items | length
).