@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.
Files changed (33) hide show
  1. package/CHANGELOG.md +6 -5
  2. package/dist/api/MongoRouteAPIAdapter.d.ts +2 -2
  3. package/dist/api/MongoRouteAPIAdapter.js +1 -1
  4. package/dist/api/MongoRouteAPIAdapter.js.map +1 -1
  5. package/dist/index.d.ts +3 -1
  6. package/dist/index.js +3 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/module/MongoModule.d.ts +0 -1
  9. package/dist/module/MongoModule.js +0 -13
  10. package/dist/module/MongoModule.js.map +1 -1
  11. package/dist/replication/ChangeStream.js +6 -6
  12. package/dist/replication/ChangeStream.js.map +1 -1
  13. package/dist/replication/ChangeStreamReplicationJob.d.ts +1 -0
  14. package/dist/replication/ChangeStreamReplicationJob.js +1 -0
  15. package/dist/replication/ChangeStreamReplicationJob.js.map +1 -1
  16. package/dist/replication/ChangeStreamReplicator.d.ts +2 -2
  17. package/dist/replication/ChangeStreamReplicator.js.map +1 -1
  18. package/dist/types/types.js +1 -1
  19. package/package.json +7 -7
  20. package/src/api/MongoRouteAPIAdapter.ts +2 -2
  21. package/src/index.ts +5 -1
  22. package/src/module/MongoModule.ts +0 -13
  23. package/src/replication/ChangeStream.ts +7 -7
  24. package/src/replication/ChangeStreamReplicationJob.ts +3 -0
  25. package/src/replication/ChangeStreamReplicator.ts +2 -2
  26. package/src/types/types.ts +1 -1
  27. package/test/src/change_stream.test.ts +12 -12
  28. package/test/src/change_stream_utils.ts +2 -2
  29. package/tsconfig.tsbuildinfo +1 -1
  30. package/dist/replication/replication-utils.d.ts +0 -2
  31. package/dist/replication/replication-utils.js +0 -11
  32. package/dist/replication/replication-utils.js.map +0 -1
  33. 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 mongo change stream need to configure the stream and manage asynchronous
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 changeStreamTest(
16
+ export function walStreamTest(
17
17
  factory: () => Promise<BucketStorageFactory>,
18
18
  test: (context: ChangeStreamTestContext) => Promise<void>
19
19
  ): () => Promise<void> {