@mastra/mongodb 0.0.0-vnext-inngest-20250506132005 → 0.0.0-vnext-inngest-20250508110322
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 +35 -2
- package/package.json +3 -3
- package/src/vector/index.test.ts +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
# @mastra/mongodb
|
|
2
2
|
|
|
3
|
-
## 0.0.0-vnext-inngest-
|
|
3
|
+
## 0.0.0-vnext-inngest-20250508110322
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [526c570]
|
|
8
|
+
- Updated dependencies [9cd1a46]
|
|
9
|
+
- Updated dependencies [b5d2de0]
|
|
10
|
+
- Updated dependencies [644f8ad]
|
|
11
|
+
- Updated dependencies [70dbf51]
|
|
12
|
+
- @mastra/core@0.0.0-vnext-inngest-20250508110322
|
|
13
|
+
|
|
14
|
+
## 0.0.4-alpha.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [526c570]
|
|
19
|
+
- Updated dependencies [b5d2de0]
|
|
20
|
+
- Updated dependencies [644f8ad]
|
|
21
|
+
- @mastra/core@0.9.3-alpha.0
|
|
22
|
+
|
|
23
|
+
## 0.0.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
6
26
|
|
|
@@ -16,9 +36,22 @@
|
|
|
16
36
|
- Updated dependencies [0097d50]
|
|
17
37
|
- Updated dependencies [7eeb2bc]
|
|
18
38
|
- Updated dependencies [17826a9]
|
|
39
|
+
- Updated dependencies [7d8b7c7]
|
|
19
40
|
- Updated dependencies [fba031f]
|
|
41
|
+
- Updated dependencies [3a5f1e1]
|
|
20
42
|
- Updated dependencies [51e6923]
|
|
21
|
-
|
|
43
|
+
- Updated dependencies [8398d89]
|
|
44
|
+
- @mastra/core@0.9.2
|
|
45
|
+
|
|
46
|
+
## 0.0.3-alpha.6
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Updated dependencies [6052aa6]
|
|
51
|
+
- Updated dependencies [7d8b7c7]
|
|
52
|
+
- Updated dependencies [3a5f1e1]
|
|
53
|
+
- Updated dependencies [8398d89]
|
|
54
|
+
- @mastra/core@0.9.2-alpha.6
|
|
22
55
|
|
|
23
56
|
## 0.0.3-alpha.5
|
|
24
57
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mongodb",
|
|
3
|
-
"version": "0.0.0-vnext-inngest-
|
|
3
|
+
"version": "0.0.0-vnext-inngest-20250508110322",
|
|
4
4
|
"description": "MongoDB provider for Mastra - includes vector store capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"cloudflare": "^4.1.0",
|
|
24
24
|
"mongodb": "^6.15.0",
|
|
25
25
|
"uuid": "^11.1.0",
|
|
26
|
-
"@mastra/core": "0.0.0-vnext-inngest-
|
|
26
|
+
"@mastra/core": "0.0.0-vnext-inngest-20250508110322"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@microsoft/api-extractor": "^7.52.5",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"tsup": "^8.4.0",
|
|
33
33
|
"typescript": "^5.8.2",
|
|
34
34
|
"vitest": "^3.1.2",
|
|
35
|
-
"@internal/lint": "0.0.0-vnext-inngest-
|
|
35
|
+
"@internal/lint": "0.0.0-vnext-inngest-20250508110322"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
|
package/src/vector/index.test.ts
CHANGED
|
@@ -445,4 +445,15 @@ describe('MongoDBVector Integration Tests', () => {
|
|
|
445
445
|
expect(results.map(res => res.id)).not.toContain(idToBeDeleted);
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
|
+
|
|
449
|
+
describe('Error Handling', () => {
|
|
450
|
+
it('should handle non-existent index queries', async () => {
|
|
451
|
+
await expect(vectorDB.query({ indexName: 'non-existent-index', queryVector: [1, 2, 3] })).rejects.toThrow();
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
it('should handle invalid dimension vectors', async () => {
|
|
455
|
+
const invalidVector = [1, 2, 3]; // 3D vector for 4D index
|
|
456
|
+
await expect(vectorDB.upsert({ indexName: testIndexName, vectors: [invalidVector] })).rejects.toThrow();
|
|
457
|
+
});
|
|
458
|
+
});
|
|
448
459
|
});
|