Changelog
v4.0.5 (2016-09-19)
Bug fixes
Changelog
v4.0.4 (2016-09-06)
This release fixes a bug in the handling of lastModified
during a certain kind of conflict when using the SERVER_WINS
conflict resolution strategy.
Changelog
v4.0.3 (2016-09-06)
This addresses a bug where conflicts weren't being resolved as "equal" in certain runtime environments (i.e. Gecko). See #529 for details.
Changelog
v4.0.2 (2016-09-06)
This release fixes a couple of bugs having to do with conflicts.
Changelog
v4.0.1 (2016-09-06)
I made a mistake in releasing 4.0.0 and published something wrong to NPM. This release is just a rebuild of 4.0.0, which shouldn't be used.
Changelog
v4.0.0 (2016-08-18)
This release causes remote transformers to be invoked even on deleted records, and thereby allows you to write a remote transformer that mutates record IDs (#510). It is a backwards-incompatible change because now a remote transformer must handle deleted records, which are missing all the normal fields you would expect from your records.
There are also some fixes to documentation errors (#515, #514) and updates of dependencies (#508, #512, #509, #502).
Changelog
v3.1.1 (2016-07-06)
This release fixes a bug in the FirefoxAdapter part (#488) of the Kinto client and updates a few dependencies.
Changelog
v3.1.0 (2016-06-29)
This release introduces a bunch of new functionality:
getAny
, deleteAny
, and upsert
(#455, #480), which might be useful if you want to implement key-value sorts of operations on Kinto.Collection#execute
method, which is used to run a transaction at the collection level. It works very similarly to BaseAdapter#execute
, but with Collection methods. (#477)sync
to a different collection remotely than the one you have locally. (#462)FirefoxAdapter
now accepts an argument specifying the filename of its Sqlite database. (#481)Changelog
v3.0.0 (2016-05-20)
The cleanRecord()
function from the collection module was dropped. Since local fields can be defined at the collection level, a cleanLocalFields()
method was introduced instead.
The format of updates and deletions in the SyncResultObject
has changed.
updated
list now contains a list of objects with old
and new
attributesdeleted
list now contains the full old record instead of just a stripped object containing id
Before with 2.X:
{
ok: true,
lastModified: 1434270764485,
conflicts: [],
errors: [],
created: [],
updated: [{
id: "08d5ae32-7f73-46bb-a8a6-c2bd80b15705",
title: "blog post",
_status: "synced",
last_modified: 1434270764485
}],
skipped: [],
published: [],
resolved: [],
deleted: [{
id: "131a100d-0732-494e-aa3c-e4a15e23eb77"
}],
}
Now with 3.X:
{
ok: true,
lastModified: 1434270764485,
conflicts: [],
errors: [],
created: [],
updated: [{
old: {
id: "08d5ae32-7f73-46bb-a8a6-c2bd80b15705",
title: "draft",
_status: "synced",
last_modified: 1434243221112
},
new: {
id: "08d5ae32-7f73-46bb-a8a6-c2bd80b15705",
title: "blog post",
_status: "synced",
last_modified: 1434270764485
}
}],
skipped: [],
published: [],
resolved: [],
deleted: [{
id: "131a100d-0732-494e-aa3c-e4a15e23eb77",
_status: "synced",
last_modified: 1434223456788
}],
}