@powersync/service-module-mssql 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/package.json +8 -8
- package/test/src/CDCStreamTestContext.ts +1 -1
- package/test/src/util.ts +3 -3
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @powersync/service-module-mssql
|
|
2
2
|
|
|
3
|
+
## 0.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e4f683d: [MongoDB Storage] Add experimental option to allow reading data from secondaries.
|
|
8
|
+
- Updated dependencies [71d4a0a]
|
|
9
|
+
- Updated dependencies [e4f683d]
|
|
10
|
+
- Updated dependencies [71d4a0a]
|
|
11
|
+
- Updated dependencies [a6ae678]
|
|
12
|
+
- Updated dependencies [c2edf86]
|
|
13
|
+
- Updated dependencies [df9ab1e]
|
|
14
|
+
- @powersync/service-core@1.23.2
|
|
15
|
+
- @powersync/service-sync-rules@0.38.1
|
|
16
|
+
- @powersync/service-types@0.16.1
|
|
17
|
+
- @powersync/lib-services-framework@0.9.7
|
|
18
|
+
|
|
3
19
|
## 0.8.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/service-module-mssql",
|
|
3
3
|
"repository": "https://github.com/powersync-ja/powersync-service",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.2",
|
|
5
5
|
"license": "FSL-1.1-ALv2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"publishConfig": {
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
"ts-codec": "^1.3.0",
|
|
18
18
|
"uri-js": "^4.4.1",
|
|
19
19
|
"uuid": "^14.0.0",
|
|
20
|
-
"@powersync/lib-services-framework": "0.9.
|
|
21
|
-
"@powersync/service-core": "1.23.
|
|
20
|
+
"@powersync/lib-services-framework": "0.9.7",
|
|
21
|
+
"@powersync/service-core": "1.23.2",
|
|
22
22
|
"@powersync/service-errors": "0.4.4",
|
|
23
|
-
"@powersync/service-sync-rules": "0.38.0",
|
|
24
23
|
"@powersync/service-jsonbig": "0.17.13",
|
|
25
|
-
"@powersync/service-
|
|
24
|
+
"@powersync/service-sync-rules": "0.38.1",
|
|
25
|
+
"@powersync/service-types": "0.16.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/mssql": "^9.1.9",
|
|
29
29
|
"@types/semver": "^7.7.1",
|
|
30
30
|
"@types/uuid": "^11.0.0",
|
|
31
|
-
"@powersync/service-core-tests": "0.17.
|
|
32
|
-
"@powersync/service-module-mongodb-storage": "0.18.
|
|
33
|
-
"@powersync/service-module-postgres-storage": "0.16.
|
|
31
|
+
"@powersync/service-core-tests": "0.17.1",
|
|
32
|
+
"@powersync/service-module-mongodb-storage": "0.18.2",
|
|
33
|
+
"@powersync/service-module-postgres-storage": "0.16.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc -b",
|
|
@@ -226,7 +226,7 @@ export class CDCStreamTestContext implements AsyncDisposable {
|
|
|
226
226
|
if (typeof start == 'string') {
|
|
227
227
|
start = BigInt(start);
|
|
228
228
|
}
|
|
229
|
-
const
|
|
229
|
+
const checkpoint = await this.storage!.getCheckpoint();
|
|
230
230
|
const syncConfigContent = this.getSyncConfigContent();
|
|
231
231
|
const map = [bucketRequest(syncConfigContent, bucket, start)];
|
|
232
232
|
const batch = this.storage!.getBucketDataBatch(checkpoint, map);
|
package/test/src/util.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as types from '@module/types/types.js';
|
|
2
2
|
import { logger } from '@powersync/lib-services-framework';
|
|
3
|
-
import { BucketStorageFactory,
|
|
3
|
+
import { BucketStorageFactory, ReplicationCheckpoint, TestStorageConfig } from '@powersync/service-core';
|
|
4
4
|
|
|
5
5
|
import * as mongo_storage from '@powersync/service-module-mongodb-storage';
|
|
6
6
|
import * as postgres_storage from '@powersync/service-module-postgres-storage';
|
|
@@ -194,7 +194,7 @@ export async function getClientCheckpoint(
|
|
|
194
194
|
connectionManager: MSSQLConnectionManager,
|
|
195
195
|
storageFactory: BucketStorageFactory,
|
|
196
196
|
options?: { timeout?: number }
|
|
197
|
-
): Promise<
|
|
197
|
+
): Promise<ReplicationCheckpoint> {
|
|
198
198
|
const start = Date.now();
|
|
199
199
|
|
|
200
200
|
const lsn = await getLatestLSN(connectionManager);
|
|
@@ -214,7 +214,7 @@ export async function getClientCheckpoint(
|
|
|
214
214
|
lastCp = cp;
|
|
215
215
|
if (cp.lsn != null && cp.lsn >= lsn.toString()) {
|
|
216
216
|
logger.info(`Test Assertion: Got write checkpoint: ${lsn} : ${cp.checkpoint}`);
|
|
217
|
-
return cp
|
|
217
|
+
return cp;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|