Skip to content

Releases: bredele/datastore

Update and path middlware

22 Feb 23:15
Compare
Choose a tag to compare
Pre-release

Store allows now update on data:

store.set({
  nickname: 'olivier',
  lastname: 'wietrich'
});

and provides path middleware.

Local storage fallback and middleware

31 Dec 23:19
Compare
Choose a tag to compare
Pre-release

Store now support local storage fallback

store.local('mystore'); //reset with localstorage
...
store.local('mystore', true); //save in localstorage

and can be extended through its middleware engine.

store.use(function(obj) {
  obj.save = function(){
    //save in server
  };
});

Model and Collection

20 Dec 23:56
Compare
Choose a tag to compare
Model and Collection Pre-release
Pre-release

This version of store allows to work on objects (model) or arrays (collection). It provides basic features such as get, set, del or reset. Store is an emitter and emit change or delete events for each of these features.

In the future, Store could be synchronized with localstore or remote database (may be through a middleware engine).