File tree Expand file tree Collapse file tree 4 files changed +18
-13
lines changed Expand file tree Collapse file tree 4 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,13 @@ This project does its best to adhere to [Semantic Versioning](http://semver.org/
4
4
5
5
6
6
--------
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
8
14
#### Changed
9
15
* Improve ` syncUpAndUpdateCollection() ` type signature to support either null ` primaryKey ` or null ` primaryKeys ` but not both
10
16
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lokijs-collections-syncing" ,
3
- "version" : " 0.9.1 " ,
3
+ "version" : " 0.10.0 " ,
4
4
"description" : " lokijs-collections syncing to and from a remote data source" ,
5
5
"author" : " TeamworkGuy2" ,
6
6
"homepage" : " https://github.com/TeamworkGuy2/lokijs-collections-syncing" ,
10
10
"url" : " https://github.com/TeamworkGuy2/lokijs-collections-syncing.git"
11
11
},
12
12
"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"
16
15
},
17
16
"devDependencies" : {
18
17
"@types/chai" : " ~4.2.4" ,
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ var SyncDataCollection = /** @class */ (function () {
102
102
var syncDownTimer = this . notifyActionStart ? this . notifyActionStart ( "syncDown" , table ) : null ;
103
103
var isAfterSync = false ;
104
104
var afterSyncDownUpdateTimer = null ;
105
- syncDownFunc ( params ) . done ( function ( items ) {
105
+ syncDownFunc ( params ) . then ( function ( items ) {
106
106
try {
107
107
if ( self . notifyActionEnd ) {
108
108
self . notifyActionEnd ( "syncDown" , table , syncDownTimer ) ;
@@ -120,7 +120,7 @@ var SyncDataCollection = /** @class */ (function () {
120
120
catch ( err ) {
121
121
syncFailure ( err ) ;
122
122
}
123
- } , syncFailure ) ;
123
+ } ) . catch ( syncFailure ) ;
124
124
}
125
125
catch ( err ) {
126
126
syncFailure ( err ) ;
@@ -188,7 +188,7 @@ var SyncDataCollection = /** @class */ (function () {
188
188
dfd . resolve ( null ) ;
189
189
return dfd . promise ;
190
190
}
191
- syncAction ( items ) . done ( function ( res ) {
191
+ syncAction ( items ) . then ( function ( res ) {
192
192
var afterSyncUpUpdateTimer = self . notifyActionStart ? self . notifyActionStart ( "afterSyncUpUpdate" , table ) : null ;
193
193
if ( primaryKey != null ) {
194
194
self . updateSinglePrimaryKeyItems ( table , items , primaryKey ) ;
@@ -200,7 +200,7 @@ var SyncDataCollection = /** @class */ (function () {
200
200
self . notifyActionEnd ( "afterSyncUpUpdate" , table , afterSyncUpUpdateTimer ) ;
201
201
}
202
202
dfd . resolve ( res ) ;
203
- } , function ( err ) {
203
+ } ) . catch ( function ( err ) {
204
204
dfd . reject ( err ) ;
205
205
} ) ;
206
206
return dfd . promise ;
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ class SyncDataCollection {
143
143
var isAfterSync = false ;
144
144
var afterSyncDownUpdateTimer : any = null ;
145
145
146
- syncDownFunc ( params ) . done ( function ( items ) {
146
+ syncDownFunc ( params ) . then ( function ( items ) {
147
147
try {
148
148
if ( self . notifyActionEnd ) {
149
149
self . notifyActionEnd ( "syncDown" , table , syncDownTimer ) ;
@@ -161,7 +161,7 @@ class SyncDataCollection {
161
161
} catch ( err ) {
162
162
syncFailure ( err ) ;
163
163
}
164
- } , syncFailure ) ;
164
+ } ) . catch ( syncFailure ) ;
165
165
} catch ( err ) {
166
166
syncFailure ( err ) ;
167
167
}
@@ -257,7 +257,7 @@ class SyncDataCollection {
257
257
return dfd . promise ;
258
258
}
259
259
260
- syncAction ( items ) . done ( function ( res ) {
260
+ syncAction ( items ) . then ( function ( res ) {
261
261
var afterSyncUpUpdateTimer = self . notifyActionStart ? self . notifyActionStart ( "afterSyncUpUpdate" , table ) : null ;
262
262
263
263
if ( primaryKey != null ) {
@@ -272,7 +272,7 @@ class SyncDataCollection {
272
272
}
273
273
274
274
dfd . resolve ( res ) ;
275
- } , function ( err ) {
275
+ } ) . catch ( function ( err ) {
276
276
dfd . reject ( err ) ;
277
277
} ) ;
278
278
return dfd . promise ;
You can’t perform that action at this time.
0 commit comments