@powersync/service-module-mssql 0.8.1 → 0.8.3

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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # @powersync/service-module-mssql
2
2
 
3
+ ## 0.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ea71bf3]
8
+ - Updated dependencies [ea31f64]
9
+ - Updated dependencies [edc6ed4]
10
+ - @powersync/service-sync-rules@0.39.0
11
+ - @powersync/service-core@1.23.3
12
+ - @powersync/lib-services-framework@0.9.8
13
+
14
+ ## 0.8.2
15
+
16
+ ### Patch Changes
17
+
18
+ - e4f683d: [MongoDB Storage] Add experimental option to allow reading data from secondaries.
19
+ - Updated dependencies [71d4a0a]
20
+ - Updated dependencies [e4f683d]
21
+ - Updated dependencies [71d4a0a]
22
+ - Updated dependencies [a6ae678]
23
+ - Updated dependencies [c2edf86]
24
+ - Updated dependencies [df9ab1e]
25
+ - @powersync/service-core@1.23.2
26
+ - @powersync/service-sync-rules@0.38.1
27
+ - @powersync/service-types@0.16.1
28
+ - @powersync/lib-services-framework@0.9.7
29
+
3
30
  ## 0.8.1
4
31
 
5
32
  ### 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.1",
4
+ "version": "0.8.3",
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.6",
21
- "@powersync/service-core": "1.23.1",
20
+ "@powersync/lib-services-framework": "0.9.8",
21
+ "@powersync/service-core": "1.23.3",
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-types": "0.16.0"
24
+ "@powersync/service-sync-rules": "0.39.0",
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.0",
32
- "@powersync/service-module-mongodb-storage": "0.18.1",
33
- "@powersync/service-module-postgres-storage": "0.16.1"
31
+ "@powersync/service-core-tests": "0.17.2",
32
+ "@powersync/service-module-mongodb-storage": "0.18.3",
33
+ "@powersync/service-module-postgres-storage": "0.16.3"
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 { checkpoint } = await this.storage!.getCheckpoint();
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, InternalOpId, ReplicationCheckpoint, TestStorageConfig } from '@powersync/service-core';
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<InternalOpId> {
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.checkpoint;
217
+ return cp;
218
218
  }
219
219
  }
220
220