@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.
@@ -87,7 +87,11 @@ describe('sync - mongodb', () => {
87
87
  });
88
88
 
89
89
  const batch2 = await test_utils.fromAsync(
90
- bucketStorage.getBucketDataBatch(checkpoint, new Map([['global[]', BigInt(batch1[0].batch.next_after)]]), options)
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(checkpoint, new Map([['global[]', BigInt(batch2[0].batch.next_after)]]), options)
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 }