@mastra/mongodb 1.24.1-alpha.1 → 1.24.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.
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-memory-semantic-recall.md +4 -2
- package/dist/docs/references/reference-vectors-mongodb.md +5 -5
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/vector/filter.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { MessageList } from "@mastra/core/agent";
|
|
|
9
9
|
import { saveScorePayloadSchema } from "@mastra/core/evals";
|
|
10
10
|
import { skillSnapshotFieldValuesEqual } from "@mastra/core/storage/domains/skills";
|
|
11
11
|
// package.json
|
|
12
|
-
var version = "1.24.1
|
|
12
|
+
var version = "1.24.1";
|
|
13
13
|
// src/vector/filter.ts
|
|
14
14
|
/**
|
|
15
15
|
* Translator for MongoDB filter queries.
|
|
@@ -45,10 +45,9 @@ var MongoDBFilterTranslator = class extends BaseFilterTranslator {
|
|
|
45
45
|
if (typeof value !== "object" || value === null || Array.isArray(value)) throw new Error("$not operator requires an object");
|
|
46
46
|
if (this.isEmpty(value)) throw new Error("$not operator cannot be empty");
|
|
47
47
|
return this.translateNode(value);
|
|
48
|
-
} else {
|
|
49
|
-
if (!Array.isArray(value)) throw new Error(`Value for logical operator ${operator} must be an array`);
|
|
50
|
-
return value.map((item) => this.translateNode(item));
|
|
51
48
|
}
|
|
49
|
+
if (!Array.isArray(value)) throw new Error(`Value for logical operator ${operator} must be an array`);
|
|
50
|
+
return value.map((item) => this.translateNode(item));
|
|
52
51
|
}
|
|
53
52
|
if (this.isBasicOperator(operator) || this.isNumericOperator(operator)) {
|
|
54
53
|
if (value instanceof Date) return value.toISOString();
|