@powersync/service-module-mongodb 0.0.0-dev-20241022094219 → 0.0.0-dev-20241022111143
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 +6 -5
- package/dist/api/MongoRouteAPIAdapter.d.ts +2 -2
- package/dist/api/MongoRouteAPIAdapter.js +1 -1
- package/dist/api/MongoRouteAPIAdapter.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/module/MongoModule.d.ts +0 -1
- package/dist/module/MongoModule.js +0 -13
- package/dist/module/MongoModule.js.map +1 -1
- package/dist/replication/ChangeStream.js +6 -6
- package/dist/replication/ChangeStream.js.map +1 -1
- package/dist/replication/ChangeStreamReplicationJob.d.ts +1 -0
- package/dist/replication/ChangeStreamReplicationJob.js +1 -0
- package/dist/replication/ChangeStreamReplicationJob.js.map +1 -1
- package/dist/replication/ChangeStreamReplicator.d.ts +2 -2
- package/dist/replication/ChangeStreamReplicator.js.map +1 -1
- package/dist/types/types.js +1 -1
- package/package.json +7 -7
- package/src/api/MongoRouteAPIAdapter.ts +2 -2
- package/src/index.ts +5 -1
- package/src/module/MongoModule.ts +0 -13
- package/src/replication/ChangeStream.ts +7 -7
- package/src/replication/ChangeStreamReplicationJob.ts +3 -0
- package/src/replication/ChangeStreamReplicator.ts +2 -2
- package/src/types/types.ts +1 -1
- package/test/src/change_stream.test.ts +12 -12
- package/test/src/change_stream_utils.ts +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/replication/replication-utils.d.ts +0 -2
- package/dist/replication/replication-utils.js +0 -11
- package/dist/replication/replication-utils.js.map +0 -1
- package/src/replication/replication-utils.ts +0 -12
|
@@ -8,12 +8,12 @@ import * as mongo from 'mongodb';
|
|
|
8
8
|
import { createCheckpoint } from '@module/replication/MongoRelation.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Tests operating on the
|
|
11
|
+
* Tests operating on the wal stream need to configure the stream and manage asynchronous
|
|
12
12
|
* replication, which gets a little tricky.
|
|
13
13
|
*
|
|
14
14
|
* This wraps a test in a function that configures all the context, and tears it down afterwards.
|
|
15
15
|
*/
|
|
16
|
-
export function
|
|
16
|
+
export function walStreamTest(
|
|
17
17
|
factory: () => Promise<BucketStorageFactory>,
|
|
18
18
|
test: (context: ChangeStreamTestContext) => Promise<void>
|
|
19
19
|
): () => Promise<void> {
|