Skip to content

Commit 0cccf69

Browse files
committed
0.14.0 - Update to TypeScript 4.4
1 parent d9e8ec8 commit 0cccf69

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
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.13.0](N/A) - 2021-11-15
7+
### [0.14.0](N/A) - 2022-01-02
8+
#### Changed
9+
* Update to TypeScript 4.4
10+
11+
12+
--------
13+
### [0.13.0](https://github.com/TeamworkGuy2/lokijs-collections-syncing/commit/d9e8ec8d9b7c21dede62ade4841bc79e241b6040) - 2021-11-15
814
#### Fixed
915
* `SyncDataCollection.syncUpAndUpdateCollection()` only skips calling back the `syncAction` if there are no items to sync AND the collection is NOT dirty
1016

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ lokijs-collections-syncing
22
==============
33

44
Sync [lokijs-collections](https://github.com/TeamworkGuy2/lokijs-collections) to or from a remote data source.
5-
To use this library your `lokijs-collections` models need to have a deleted property/flag that is truthy/falsey, a modified property/flag that is truthy/falsey, a last modified timestamp property (unix style millisecond epoch timestamp).
5+
To use this library your `lokijs-collections` models need to have 3 properties:
6+
* deleted property (truthy/falsey
7+
* modified property (truthy/falsey)
8+
* last modified property (timestamp - unix style milliseconds since epoch).
69
See the lokijs-collections [README](https://github.com/TeamworkGuy2/lokijs-collections/blob/master/README.md) for more info on creating and using collections.
710

811
## Usage
9-
This project is designed to be imported using commonJs require(...) calls. To use this in a web app, it's currently setup to be required and then included in a bundle at build time.
12+
This project is designed to be imported using commonJs `require(...)` calls. To use this in a web app, it's currently setup to be required and then included in a bundle at build time.
1013

1114
## Setup
1215
`sync/SyncSettingsBuilder` is used to create settings objects containing information and functions needed to sync a data collection.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lokijs-collections-syncing",
3-
"version": "0.13.0",
3+
"version": "0.14.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,15 +10,15 @@
1010
"url": "https://github.com/TeamworkGuy2/lokijs-collections-syncing.git"
1111
},
1212
"dependencies": {
13-
"lokijs-collections": "~0.30.0",
14-
"ts-promises": "~0.8.0"
13+
"lokijs-collections": "~0.31.0",
14+
"ts-promises": "~0.9.0"
1515
},
1616
"devDependencies": {
1717
"@types/chai": "~4.2.4",
1818
"@types/mocha": "~5.2.7",
1919
"chai": "~4.2.0",
2020
"mocha": "~5.2.0",
21-
"typescript": "~4.3.2"
21+
"typescript": "~4.4.4"
2222
},
2323
"scripts": {
2424
"test": "node node_modules/mocha/bin/_mocha -u tdd --recursive",

sync/SyncDataCollection.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class SyncDataCollection {
132132
self.notifyActionEnd("afterSyncDownUpdate", table, afterSyncDownUpdateTimer);
133133
}
134134
} catch (err) {
135-
syncFailure(err);
135+
syncFailure(<any>err);
136136
return;
137137
}
138138
dfd.resolve(<undefined><any>null);
@@ -159,11 +159,11 @@ class SyncDataCollection {
159159
saveData();
160160
}
161161
} catch (err) {
162-
syncFailure(err);
162+
syncFailure(<any>err);
163163
}
164164
}).catch(syncFailure);
165165
} catch (err) {
166-
syncFailure(err);
166+
syncFailure(<any>err);
167167
}
168168

169169
return dfd.promise;

0 commit comments

Comments
 (0)