@mastra/upstash 0.3.3-alpha.0 → 0.3.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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +26 -0
- package/package.json +3 -3
- package/src/vector/index.test.ts +9 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/upstash@0.3.3-alpha.
|
|
2
|
+
> @mastra/upstash@0.3.3-alpha.1 build /home/runner/work/mastra/mastra/stores/upstash
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.4.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 10243ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/upstash/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/upstash/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 11272ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
20
|
[32mCJS[39m [1mdist/index.cjs [22m[32m29.03 KB[39m
|
|
21
|
-
[32mCJS[39m ⚡️ Build success in
|
|
21
|
+
[32mCJS[39m ⚡️ Build success in 1334ms
|
|
22
22
|
[32mESM[39m [1mdist/index.js [22m[32m28.88 KB[39m
|
|
23
|
-
[32mESM[39m ⚡️ Build success in
|
|
23
|
+
[32mESM[39m ⚡️ Build success in 1334ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @mastra/upstash
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e450778]
|
|
8
|
+
- Updated dependencies [8902157]
|
|
9
|
+
- Updated dependencies [ca0dc88]
|
|
10
|
+
- Updated dependencies [526c570]
|
|
11
|
+
- Updated dependencies [d7a6a33]
|
|
12
|
+
- Updated dependencies [9cd1a46]
|
|
13
|
+
- Updated dependencies [b5d2de0]
|
|
14
|
+
- Updated dependencies [644f8ad]
|
|
15
|
+
- Updated dependencies [70dbf51]
|
|
16
|
+
- @mastra/core@0.9.3
|
|
17
|
+
|
|
18
|
+
## 0.3.3-alpha.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [e450778]
|
|
23
|
+
- Updated dependencies [8902157]
|
|
24
|
+
- Updated dependencies [ca0dc88]
|
|
25
|
+
- Updated dependencies [9cd1a46]
|
|
26
|
+
- Updated dependencies [70dbf51]
|
|
27
|
+
- @mastra/core@0.9.3-alpha.1
|
|
28
|
+
|
|
3
29
|
## 0.3.3-alpha.0
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/upstash",
|
|
3
|
-
"version": "0.3.3
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Upstash provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@upstash/redis": "^1.34.5",
|
|
24
24
|
"@upstash/vector": "^1.2.1",
|
|
25
|
-
"@mastra/core": "^0.9.3
|
|
25
|
+
"@mastra/core": "^0.9.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@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.
|
|
35
|
+
"@internal/lint": "0.0.4"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"pretest": "docker compose up -d",
|
package/src/vector/index.test.ts
CHANGED
|
@@ -256,6 +256,15 @@ describe.skipIf(!process.env.UPSTASH_VECTOR_URL || !process.env.UPSTASH_VECTOR_T
|
|
|
256
256
|
});
|
|
257
257
|
|
|
258
258
|
describe('Error Handling', () => {
|
|
259
|
+
const testIndexName = 'test_index_error';
|
|
260
|
+
beforeAll(async () => {
|
|
261
|
+
await vectorStore.createIndex({ indexName: testIndexName, dimension: 3 });
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
afterAll(async () => {
|
|
265
|
+
await vectorStore.deleteIndex(testIndexName);
|
|
266
|
+
});
|
|
267
|
+
|
|
259
268
|
it('should handle invalid dimension vectors', async () => {
|
|
260
269
|
await expect(
|
|
261
270
|
vectorStore.upsert({ indexName: testIndexName, vectors: [[1.0, 0.0]] }), // Wrong dimensions
|