@mastra/mongodb 0.13.0-alpha.3 → 0.13.1-alpha.0
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +40 -0
- package/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +3 -2
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +3 -2
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/storage/domains/scores/index.ts +6 -0
- package/src/storage/index.ts +4 -2
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @mastra/mongodb
|
|
2
2
|
|
|
3
|
+
## 0.13.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b32c50d: Filter scores by source
|
|
8
|
+
- Updated dependencies [d5330bf]
|
|
9
|
+
- Updated dependencies [a239d41]
|
|
10
|
+
- Updated dependencies [b32c50d]
|
|
11
|
+
- Updated dependencies [121a3f8]
|
|
12
|
+
- Updated dependencies [ec510e7]
|
|
13
|
+
- @mastra/core@0.13.2-alpha.2
|
|
14
|
+
|
|
15
|
+
## 0.13.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- ea0c5f2: Add store support to new score api
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 494ceac: fix: trace mongo safeparse
|
|
24
|
+
- 2871020: update safelyParseJSON to check for value of param when handling parse
|
|
25
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
26
|
+
- 94baf89: fixed an issue where mongodb vector adapter would not properly use metadata filters
|
|
27
|
+
- Updated dependencies [cb36de0]
|
|
28
|
+
- Updated dependencies [d0496e6]
|
|
29
|
+
- Updated dependencies [a82b851]
|
|
30
|
+
- Updated dependencies [ea0c5f2]
|
|
31
|
+
- Updated dependencies [41a0a0e]
|
|
32
|
+
- Updated dependencies [2871020]
|
|
33
|
+
- Updated dependencies [94f4812]
|
|
34
|
+
- Updated dependencies [e202b82]
|
|
35
|
+
- Updated dependencies [e00f6a0]
|
|
36
|
+
- Updated dependencies [4a406ec]
|
|
37
|
+
- Updated dependencies [b0e43c1]
|
|
38
|
+
- Updated dependencies [5d377e5]
|
|
39
|
+
- Updated dependencies [1fb812e]
|
|
40
|
+
- Updated dependencies [35c5798]
|
|
41
|
+
- @mastra/core@0.13.0
|
|
42
|
+
|
|
3
43
|
## 0.13.0-alpha.3
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1692,7 +1692,8 @@ var ScoresStorageMongoDB = class extends storage.ScoresStorage {
|
|
|
1692
1692
|
scorerId,
|
|
1693
1693
|
pagination,
|
|
1694
1694
|
entityId,
|
|
1695
|
-
entityType
|
|
1695
|
+
entityType,
|
|
1696
|
+
source
|
|
1696
1697
|
}) {
|
|
1697
1698
|
try {
|
|
1698
1699
|
const query = { scorerId };
|
|
@@ -1702,6 +1703,9 @@ var ScoresStorageMongoDB = class extends storage.ScoresStorage {
|
|
|
1702
1703
|
if (entityType) {
|
|
1703
1704
|
query.entityType = entityType;
|
|
1704
1705
|
}
|
|
1706
|
+
if (source) {
|
|
1707
|
+
query.source = source;
|
|
1708
|
+
}
|
|
1705
1709
|
const collection = await this.operations.getCollection(storage.TABLE_SCORERS);
|
|
1706
1710
|
const total = await collection.countDocuments(query);
|
|
1707
1711
|
const currentOffset = pagination.page * pagination.perPage;
|
|
@@ -2317,9 +2321,10 @@ var MongoDBStore = class extends storage.MastraStorage {
|
|
|
2317
2321
|
scorerId,
|
|
2318
2322
|
pagination,
|
|
2319
2323
|
entityId,
|
|
2320
|
-
entityType
|
|
2324
|
+
entityType,
|
|
2325
|
+
source
|
|
2321
2326
|
}) {
|
|
2322
|
-
return this.stores.scores.getScoresByScorerId({ scorerId, pagination, entityId, entityType });
|
|
2327
|
+
return this.stores.scores.getScoresByScorerId({ scorerId, pagination, entityId, entityType, source });
|
|
2323
2328
|
}
|
|
2324
2329
|
/**
|
|
2325
2330
|
* RESOURCES
|