Skip to content

Commit 99134a2

Browse files
committed
0.10.0 - Update dependencies for 'Q' removal.
1 parent 86c1056 commit 99134a2

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ This project does its best to adhere to [Semantic Versioning](http://semver.org/
44

55

66
--------
7-
### [0.9.1](N/A) - 2020-12-11
7+
### [0.10.0](N/A) - 2021-03-16
8+
#### Changed
9+
* Update dependencies for `Q` removal
10+
11+
12+
--------
13+
### [0.9.1](https://github.com/TeamworkGuy2/lokijs-collections-syncing/commit/86c105632f25c0b6cf7cc704f88bbf21a75f627b) - 2020-12-11
814
#### Changed
915
* Improve `syncUpAndUpdateCollection()` type signature to support either null `primaryKey` or null `primaryKeys` but not both
1016

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lokijs-collections-syncing",
3-
"version": "0.9.1",
3+
"version": "0.10.0",
44
"description": "lokijs-collections syncing to and from a remote data source",
55
"author": "TeamworkGuy2",
66
"homepage": "https://github.com/TeamworkGuy2/lokijs-collections-syncing",
@@ -10,9 +10,8 @@
1010
"url": "https://github.com/TeamworkGuy2/lokijs-collections-syncing.git"
1111
},
1212
"dependencies": {
13-
"@types/q": "~1.5.1",
14-
"lokijs-collections": "~0.27.0",
15-
"ts-promises": "~0.6.0"
13+
"lokijs-collections": "~0.28.0",
14+
"ts-promises": "~0.7.0"
1615
},
1716
"devDependencies": {
1817
"@types/chai": "~4.2.4",

sync/SyncDataCollection.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ var SyncDataCollection = /** @class */ (function () {
102102
var syncDownTimer = this.notifyActionStart ? this.notifyActionStart("syncDown", table) : null;
103103
var isAfterSync = false;
104104
var afterSyncDownUpdateTimer = null;
105-
syncDownFunc(params).done(function (items) {
105+
syncDownFunc(params).then(function (items) {
106106
try {
107107
if (self.notifyActionEnd) {
108108
self.notifyActionEnd("syncDown", table, syncDownTimer);
@@ -120,7 +120,7 @@ var SyncDataCollection = /** @class */ (function () {
120120
catch (err) {
121121
syncFailure(err);
122122
}
123-
}, syncFailure);
123+
}).catch(syncFailure);
124124
}
125125
catch (err) {
126126
syncFailure(err);
@@ -188,7 +188,7 @@ var SyncDataCollection = /** @class */ (function () {
188188
dfd.resolve(null);
189189
return dfd.promise;
190190
}
191-
syncAction(items).done(function (res) {
191+
syncAction(items).then(function (res) {
192192
var afterSyncUpUpdateTimer = self.notifyActionStart ? self.notifyActionStart("afterSyncUpUpdate", table) : null;
193193
if (primaryKey != null) {
194194
self.updateSinglePrimaryKeyItems(table, items, primaryKey);
@@ -200,7 +200,7 @@ var SyncDataCollection = /** @class */ (function () {
200200
self.notifyActionEnd("afterSyncUpUpdate", table, afterSyncUpUpdateTimer);
201201
}
202202
dfd.resolve(res);
203-
}, function (err) {
203+
}).catch(function (err) {
204204
dfd.reject(err);
205205
});
206206
return dfd.promise;

sync/SyncDataCollection.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class SyncDataCollection {
143143
var isAfterSync = false;
144144
var afterSyncDownUpdateTimer: any = null;
145145

146-
syncDownFunc(params).done(function (items) {
146+
syncDownFunc(params).then(function (items) {
147147
try {
148148
if (self.notifyActionEnd) {
149149
self.notifyActionEnd("syncDown", table, syncDownTimer);
@@ -161,7 +161,7 @@ class SyncDataCollection {
161161
} catch (err) {
162162
syncFailure(err);
163163
}
164-
}, syncFailure);
164+
}).catch(syncFailure);
165165
} catch (err) {
166166
syncFailure(err);
167167
}
@@ -257,7 +257,7 @@ class SyncDataCollection {
257257
return dfd.promise;
258258
}
259259

260-
syncAction(items).done(function (res) {
260+
syncAction(items).then(function (res) {
261261
var afterSyncUpUpdateTimer = self.notifyActionStart ? self.notifyActionStart("afterSyncUpUpdate", table) : null;
262262

263263
if (primaryKey != null) {
@@ -272,7 +272,7 @@ class SyncDataCollection {
272272
}
273273

274274
dfd.resolve(res);
275-
}, function (err) {
275+
}).catch(function (err) {
276276
dfd.reject(err);
277277
});
278278
return dfd.promise;

0 commit comments

Comments
 (0)