@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
@@ -1,2 +0,0 @@
1
- import { MongoManager } from './MongoManager.js';
2
- export declare function checkSourceConfiguration(connectionManager: MongoManager): Promise<void>;
@@ -1,11 +0,0 @@
1
- export async function checkSourceConfiguration(connectionManager) {
2
- const db = connectionManager.db;
3
- const hello = await db.command({ hello: 1 });
4
- if (hello.msg == 'isdbgrid') {
5
- throw new Error('Sharded MongoDB Clusters are not supported yet (including MongoDB Serverless instances).');
6
- }
7
- else if (hello.setName == null) {
8
- throw new Error('Standalone MongoDB instances are not supported - use a replicaset.');
9
- }
10
- }
11
- //# sourceMappingURL=replication-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"replication-utils.js","sourceRoot":"","sources":["../../src/replication/replication-utils.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,iBAA+B;IAC5E,MAAM,EAAE,GAAG,iBAAiB,CAAC,EAAE,CAAC;IAChC,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC7C,IAAI,KAAK,CAAC,GAAG,IAAI,UAAU,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,0FAA0F,CAAC,CAAC;IAC9G,CAAC;SAAM,IAAI,KAAK,CAAC,OAAO,IAAI,IAAI,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAC;IACxF,CAAC;AACH,CAAC"}
@@ -1,12 +0,0 @@
1
- import * as mongo from 'mongodb';
2
- import { MongoManager } from './MongoManager.js';
3
-
4
- export async function checkSourceConfiguration(connectionManager: MongoManager): Promise<void> {
5
- const db = connectionManager.db;
6
- const hello = await db.command({ hello: 1 });
7
- if (hello.msg == 'isdbgrid') {
8
- throw new Error('Sharded MongoDB Clusters are not supported yet (including MongoDB Serverless instances).');
9
- } else if (hello.setName == null) {
10
- throw new Error('Standalone MongoDB instances are not supported - use a replicaset.');
11
- }
12
- }