@powersync/service-module-mongodb-storage 0.0.0-dev-20250422070924 → 0.0.0-dev-20250507132759
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 +33 -4
- package/dist/module/MongoStorageModule.js +1 -1
- package/dist/module/MongoStorageModule.js.map +1 -1
- package/dist/storage/MongoBucketStorage.js +4 -4
- package/dist/storage/MongoBucketStorage.js.map +1 -1
- package/dist/storage/implementation/MongoSyncBucketStorage.d.ts +1 -1
- package/dist/storage/implementation/MongoSyncBucketStorage.js +40 -28
- package/dist/storage/implementation/MongoSyncBucketStorage.js.map +1 -1
- package/package.json +7 -7
- package/src/module/MongoStorageModule.ts +1 -1
- package/src/storage/MongoBucketStorage.ts +4 -4
- package/src/storage/implementation/MongoSyncBucketStorage.ts +42 -29
- package/test/src/storage_sync.test.ts +10 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -87,7 +87,11 @@ describe('sync - mongodb', () => {
|
|
|
87
87
|
});
|
|
88
88
|
|
|
89
89
|
const batch2 = await test_utils.fromAsync(
|
|
90
|
-
bucketStorage.getBucketDataBatch(
|
|
90
|
+
bucketStorage.getBucketDataBatch(
|
|
91
|
+
checkpoint,
|
|
92
|
+
new Map([['global[]', BigInt(batch1[0].chunkData.next_after)]]),
|
|
93
|
+
options
|
|
94
|
+
)
|
|
91
95
|
);
|
|
92
96
|
expect(test_utils.getBatchData(batch2)).toEqual([
|
|
93
97
|
{ op_id: '3', op: 'PUT', object_id: 'large2', checksum: 1607205872 }
|
|
@@ -99,7 +103,11 @@ describe('sync - mongodb', () => {
|
|
|
99
103
|
});
|
|
100
104
|
|
|
101
105
|
const batch3 = await test_utils.fromAsync(
|
|
102
|
-
bucketStorage.getBucketDataBatch(
|
|
106
|
+
bucketStorage.getBucketDataBatch(
|
|
107
|
+
checkpoint,
|
|
108
|
+
new Map([['global[]', BigInt(batch2[0].chunkData.next_after)]]),
|
|
109
|
+
options
|
|
110
|
+
)
|
|
103
111
|
);
|
|
104
112
|
expect(test_utils.getBatchData(batch3)).toEqual([
|
|
105
113
|
{ op_id: '4', op: 'PUT', object_id: 'test3', checksum: 1359888332 }
|