@omegup/msync 0.0.91 → 0.0.93

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/index.esm.js CHANGED
@@ -1545,6 +1545,7 @@ const makeWatchStream = (db, { collection, projection: p, hardMatch: m }, startA
1545
1545
  });
1546
1546
  pipeline.push({
1547
1547
  $match: {
1548
+ clusterTime: { $gte: startAt },
1548
1549
  $or: [
1549
1550
  {
1550
1551
  $expr: {
@@ -1558,11 +1559,6 @@ const makeWatchStream = (db, { collection, projection: p, hardMatch: m }, startA
1558
1559
  ],
1559
1560
  },
1560
1561
  });
1561
- pipeline.push({
1562
- $project: {
1563
- _id: 1,
1564
- },
1565
- });
1566
1562
  const stream = db.collection(collection.collectionName).watch(pipeline, {
1567
1563
  fullDocument: 'required',
1568
1564
  fullDocumentBeforeChange: 'required',
package/index.js CHANGED
@@ -1547,6 +1547,7 @@ const makeWatchStream = (db, { collection, projection: p, hardMatch: m }, startA
1547
1547
  });
1548
1548
  pipeline.push({
1549
1549
  $match: {
1550
+ clusterTime: { $gte: startAt },
1550
1551
  $or: [
1551
1552
  {
1552
1553
  $expr: {
@@ -1560,11 +1561,6 @@ const makeWatchStream = (db, { collection, projection: p, hardMatch: m }, startA
1560
1561
  ],
1561
1562
  },
1562
1563
  });
1563
- pipeline.push({
1564
- $project: {
1565
- _id: 1,
1566
- },
1567
- });
1568
1564
  const stream = db.collection(collection.collectionName).watch(pipeline, {
1569
1565
  fullDocument: 'required',
1570
1566
  fullDocumentBeforeChange: 'required',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "index.esm.js",
4
4
  "typings": "index.d.ts",
5
5
  "name": "@omegup/msync",
6
- "version": "0.0.91",
6
+ "version": "0.0.93",
7
7
  "dependencies": {
8
8
  "dayjs": "^1.11.9",
9
9
  "dotenv": "^16.3.1",