@mastra/mongodb 1.27.1-alpha.0 → 1.27.1-alpha.1

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.
@@ -3,7 +3,7 @@ name: mastra-mongodb
3
3
  description: Documentation for @mastra/mongodb. Use when working with @mastra/mongodb APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/mongodb"
6
- version: "1.27.1-alpha.0"
6
+ version: "1.27.1-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.27.1-alpha.0",
2
+ "version": "1.27.1-alpha.1",
3
3
  "package": "@mastra/mongodb",
4
4
  "exports": {
5
5
  "BackgroundTasksStorageMongoDB": {
package/dist/index.cjs CHANGED
@@ -11,7 +11,7 @@ let _mastra_core_agent = require("@mastra/core/agent");
11
11
  let _mastra_core_evals = require("@mastra/core/evals");
12
12
  let _mastra_core_storage_domains_skills = require("@mastra/core/storage/domains/skills");
13
13
  // package.json
14
- var version = "1.27.1-alpha.0";
14
+ var version = "1.27.1-alpha.1";
15
15
  // src/vector/filter.ts
16
16
  /**
17
17
  * Translator for MongoDB filter queries.
@@ -10081,7 +10081,7 @@ var MemoryStorageMongoDB = class MemoryStorageMongoDB extends _mastra_core_stora
10081
10081
  }).toArray();
10082
10082
  for (const doc of interrupted) await this.#completeRollover(collection, doc, doc.pendingSuccessor);
10083
10083
  const keys = await collection.aggregate([
10084
- { $match: { supersededBy: null } },
10084
+ { $match: { $or: [{ supersededBy: null }, { pendingSuccessor: { $exists: true } }] } },
10085
10085
  { $group: {
10086
10086
  _id: "$lookupKey",
10087
10087
  live: { $sum: 1 }