Changelog
v2.0.4 (2016-05-06)
Changelog
v2.0.3 (2016-05-02)
deeper
, now replaced by a simple object comparison function (#406)Changelog
v12.0.1 (2018-09-17)
Bug fixes
Internal changes
sinon.createSandbox()
Changelog
2.0.0 (2016-04-11)
Kinto.adapters.LocalStorage
adapter was removed.BaseAdapter
interface for custom adapters has been updated.LocalStorage
adapter removalSince support for transactions has been introduced in this release, and as localStorage
doesn't support any kind of transactions natively, we've decided to drop support for it in Kinto.js. Please swith to using IndexedDB (which is the default adapter), or create your own if you target another persistence implementation.
BaseAdapter
interface has been updatedSince adapters now support transactions, the BaseAdapter
interface now expect an execute()
method to be implemented for custom adapters. The Extending section has been updated accordingly.
The string message format for these now contains the HTTP status code description:
HTTP 410; Service deprecated
HTTP 410 Gone: Service deprecated
Hooks can be called to extend the behaviour of Kinto. So far it is only possible to hook when incoming changes are to be applied.
incoming-changes
hooks are called just after new changes are retrieved, and before these changes are reflected locally.To install a hook, you need to pass it to the collection:
function doSomething(payload, collection) {
// Do something with the payload here.
const {lastModified, changes} = payload;
const ids = changes.map((record) => record.id);
...
};
let collection = db.collection(collectionName, {
"hooks": {
"incoming-changes": [doSomething]
}
});
The IndexedDB adapter now allow batching write operations within a single transaction, and the synchronization flow implementation leverages this feature in many areas.
Leveraging IndexedDB transactions, general performances of the synchronization flow have been vastly improved.
Changelog
v1.2.1 (2016-04-05)