Skip to content

v0.13.0

Compare
Choose a tag to compare
@SpaceK33z SpaceK33z released this 22 May 13:44
· 234 commits to master since this release
  • Breaking change: throw error when an observable and a relation have the same name. This did work before, but could lead to very strange bugs.
  • Add models sorting with a comparator;
store.comparator = 'name'; // To sort on `name` attr on models
store.sort(); // To trigger a manual re-sort

store.comparator = (a, b) => (a.id - b.id); // Pass function for more complex sorting
  • Make it easy to disable/modify snake <-> camel case converting of attribute keys. If you have a backend that does use e.g. camelCasing, you can disable this conversion by adding this to your model:
toBackendAttrKey(attrKey) { return attrKey; }
fromBackendAttrKey(attrKey) { return attrKey; }