Features
Bug Fixes
- Model.update(): Fix bug in Model.update() inside a transaction (#148) (e4cfaa6), closes #144
BREAKING CHANGES
- Change gstore instantiation to be consistent with es modules (#149) (3f27d4c)
// The old way
const gstore = require('gstore-node')();
// the new way
const { Gstore, instances } = require('gstore-node');
const gstore = new Gstore(/*optional*/ config);
// You can then save that instance...
instances.set('default', gstore); // "default" is a unique id for that instance
// ... and retrieve it anywhere in your app
const { instances } = require('gstore-node');
const gstore = instances.get('default');
- Callbacks (hell) are not supported anymore as the last argument of any of the gstore methods. Only Promises are returned.
- Node runtime must be version 8 or superior
- The old Schema property types "datetime" and "int" have been removed. Date and Number types should be used instead.