@mastra/mongodb 1.6.1-alpha.2 → 1.6.1-alpha.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/mongodb
2
2
 
3
+ ## 1.6.1-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Added `scorerIds` persistence for datasets. The `scorerIds` field is now stored and retrieved correctly when creating or updating datasets. ([#14783](https://github.com/mastra-ai/mastra/pull/14783))
8
+
9
+ - Updated dependencies [[`fbf22a7`](https://github.com/mastra-ai/mastra/commit/fbf22a7ad86bcb50dcf30459f0d075e51ddeb468), [`04160ee`](https://github.com/mastra-ai/mastra/commit/04160eedf3130003cf842ad08428c8ff69af4cc1), [`2c27503`](https://github.com/mastra-ai/mastra/commit/2c275032510d131d2cde47f99953abf0fe02c081), [`424a1df`](https://github.com/mastra-ai/mastra/commit/424a1df7bee59abb5c83717a54807fdd674a6224), [`12c88a6`](https://github.com/mastra-ai/mastra/commit/12c88a6e32bf982c2fe0c6af62e65a3414519a75), [`43595bf`](https://github.com/mastra-ai/mastra/commit/43595bf7b8df1a6edce7a23b445b5124d2a0b473), [`78670e9`](https://github.com/mastra-ai/mastra/commit/78670e97e76d7422cf7025faf371b2aeafed860d), [`d400e7c`](https://github.com/mastra-ai/mastra/commit/d400e7c8b8d7afa6ba2c71769eace4048e3cef8e), [`f58d1a7`](https://github.com/mastra-ai/mastra/commit/f58d1a7a457588a996c3ecb53201a68f3d28c432), [`a49a929`](https://github.com/mastra-ai/mastra/commit/a49a92904968b4fc67e01effee8c7c8d0464ba85)]:
10
+ - @mastra/core@1.18.0-alpha.4
11
+
3
12
  ## 1.6.1-alpha.2
4
13
 
5
14
  ### Patch Changes
@@ -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.6.1-alpha.2"
6
+ version: "1.6.1-alpha.3"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.6.1-alpha.2",
2
+ "version": "1.6.1-alpha.3",
3
3
  "package": "@mastra/mongodb",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -14,7 +14,7 @@ var evals = require('@mastra/core/evals');
14
14
 
15
15
  // package.json
16
16
  var package_default = {
17
- version: "1.6.1-alpha.2"};
17
+ version: "1.6.1-alpha.3"};
18
18
  var MongoDBFilterTranslator = class extends filter.BaseFilterTranslator {
19
19
  getSupportedOperators() {
20
20
  return {
@@ -1797,6 +1797,7 @@ var MongoDBDatasetsStorage = class extends storage.DatasetsStorage {
1797
1797
  tags: typeof row.tags === "string" ? storage.safelyParseJSON(row.tags) : row.tags ?? void 0,
1798
1798
  targetType: row.targetType ?? void 0,
1799
1799
  targetIds: typeof row.targetIds === "string" ? storage.safelyParseJSON(row.targetIds) : row.targetIds ?? void 0,
1800
+ scorerIds: typeof row.scorerIds === "string" ? storage.safelyParseJSON(row.scorerIds) : row.scorerIds ?? void 0,
1800
1801
  version: row.version ?? 0,
1801
1802
  createdAt: storage.ensureDate(row.createdAt),
1802
1803
  updatedAt: storage.ensureDate(row.updatedAt)
@@ -1847,6 +1848,7 @@ var MongoDBDatasetsStorage = class extends storage.DatasetsStorage {
1847
1848
  requestContextSchema: input.requestContextSchema ?? null,
1848
1849
  targetType: input.targetType ?? null,
1849
1850
  targetIds: input.targetIds ?? null,
1851
+ scorerIds: input.scorerIds ?? null,
1850
1852
  version: 0,
1851
1853
  createdAt: now,
1852
1854
  updatedAt: now
@@ -1904,6 +1906,7 @@ var MongoDBDatasetsStorage = class extends storage.DatasetsStorage {
1904
1906
  if (args.tags !== void 0) updateDoc.tags = args.tags;
1905
1907
  if (args.targetType !== void 0) updateDoc.targetType = args.targetType;
1906
1908
  if (args.targetIds !== void 0) updateDoc.targetIds = args.targetIds;
1909
+ if (args.scorerIds !== void 0) updateDoc.scorerIds = args.scorerIds;
1907
1910
  await collection.updateOne({ id: args.id }, { $set: updateDoc });
1908
1911
  const updated = await this.getDatasetById({ id: args.id });
1909
1912
  return updated;