@mastra/upstash 0.10.3-alpha.0 → 0.10.3-alpha.2
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 +19 -0
- package/dist/_tsup-dts-rollup.d.cts +14 -2
- package/dist/_tsup-dts-rollup.d.ts +14 -2
- package/dist/index.cjs +461 -434
- package/dist/index.js +461 -434
- package/package.json +4 -3
- package/src/storage/index.ts +97 -36
- package/src/storage/upstash.test.ts +233 -72
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/upstash@0.10.3-alpha.
|
|
2
|
+
> @mastra/upstash@0.10.3-alpha.2 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.5.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 10231ms
|
|
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 10756ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
@@ -27,7 +27,7 @@ dist/index.cjs (1651:18): Use of eval in "dist/index.cjs" is strongly discourage
|
|
|
27
27
|
[32mESM[39m [1mdist/getMachineId-unsupported-VPWBQCK7.js [22m[32m700.00 B[39m
|
|
28
28
|
[32mESM[39m [1mdist/chunk-HSTZWXH7.js [22m[32m61.52 KB[39m
|
|
29
29
|
[32mESM[39m [1mdist/index.js [22m[32m1.64 MB[39m
|
|
30
|
-
[32mESM[39m ⚡️ Build success in
|
|
30
|
+
[32mESM[39m ⚡️ Build success in 23117ms
|
|
31
31
|
[32mCJS[39m [1mdist/getMachineId-darwin-3PL23DL6.cjs [22m[32m1.19 KB[39m
|
|
32
32
|
[32mCJS[39m [1mdist/getMachineId-linux-KYLPK3HC.cjs [22m[32m813.00 B[39m
|
|
33
33
|
[32mCJS[39m [1mdist/getMachineId-bsd-HDZ73WR7.cjs [22m[32m1015.00 B[39m
|
|
@@ -36,4 +36,4 @@ dist/index.cjs (1651:18): Use of eval in "dist/index.cjs" is strongly discourage
|
|
|
36
36
|
[32mCJS[39m [1mdist/getMachineId-unsupported-DEDJN4ZS.cjs [22m[32m777.00 B[39m
|
|
37
37
|
[32mCJS[39m [1mdist/chunk-U74OJRHU.cjs [22m[32m62.08 KB[39m
|
|
38
38
|
[32mCJS[39m [1mdist/index.cjs [22m[32m1.65 MB[39m
|
|
39
|
-
[32mCJS[39m ⚡️ Build success in
|
|
39
|
+
[32mCJS[39m ⚡️ Build success in 23122ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @mastra/upstash
|
|
2
2
|
|
|
3
|
+
## 0.10.3-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 48eddb9: update filter logic in Memory class to support semantic recall search scope
|
|
8
|
+
- Updated dependencies [48eddb9]
|
|
9
|
+
- @mastra/core@0.10.4-alpha.2
|
|
10
|
+
|
|
11
|
+
## 0.10.3-alpha.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- dffb67b: updated stores to add alter table and change tests
|
|
16
|
+
- Updated dependencies [f6fd25f]
|
|
17
|
+
- Updated dependencies [dffb67b]
|
|
18
|
+
- Updated dependencies [f1309d3]
|
|
19
|
+
- Updated dependencies [f7f8293]
|
|
20
|
+
- @mastra/core@0.10.4-alpha.1
|
|
21
|
+
|
|
3
22
|
## 0.10.3-alpha.0
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -55,11 +55,12 @@ export declare class UpstashFilterTranslator extends BaseFilterTranslator {
|
|
|
55
55
|
declare class UpstashStore extends MastraStorage {
|
|
56
56
|
private redis;
|
|
57
57
|
constructor(config: UpstashConfig);
|
|
58
|
+
get supports(): {
|
|
59
|
+
selectByIncludeResourceScope: boolean;
|
|
60
|
+
};
|
|
58
61
|
private transformEvalRecord;
|
|
59
62
|
private parseJSON;
|
|
60
63
|
private getKey;
|
|
61
|
-
private ensureDate;
|
|
62
|
-
private serializeDate;
|
|
63
64
|
/**
|
|
64
65
|
* Scans for keys matching the given pattern using SCAN and returns them as an array.
|
|
65
66
|
* @param pattern Redis key pattern, e.g. "table:*"
|
|
@@ -111,6 +112,17 @@ declare class UpstashStore extends MastraStorage {
|
|
|
111
112
|
tableName: TABLE_NAMES;
|
|
112
113
|
schema: Record<string, StorageColumn>;
|
|
113
114
|
}): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* No-op: This backend is schemaless and does not require schema changes.
|
|
117
|
+
* @param tableName Name of the table
|
|
118
|
+
* @param schema Schema of the table
|
|
119
|
+
* @param ifNotExists Array of column names to add if they don't exist
|
|
120
|
+
*/
|
|
121
|
+
alterTable(_args: {
|
|
122
|
+
tableName: TABLE_NAMES;
|
|
123
|
+
schema: Record<string, StorageColumn>;
|
|
124
|
+
ifNotExists: string[];
|
|
125
|
+
}): Promise<void>;
|
|
114
126
|
clearTable({ tableName }: {
|
|
115
127
|
tableName: TABLE_NAMES;
|
|
116
128
|
}): Promise<void>;
|
|
@@ -55,11 +55,12 @@ export declare class UpstashFilterTranslator extends BaseFilterTranslator {
|
|
|
55
55
|
declare class UpstashStore extends MastraStorage {
|
|
56
56
|
private redis;
|
|
57
57
|
constructor(config: UpstashConfig);
|
|
58
|
+
get supports(): {
|
|
59
|
+
selectByIncludeResourceScope: boolean;
|
|
60
|
+
};
|
|
58
61
|
private transformEvalRecord;
|
|
59
62
|
private parseJSON;
|
|
60
63
|
private getKey;
|
|
61
|
-
private ensureDate;
|
|
62
|
-
private serializeDate;
|
|
63
64
|
/**
|
|
64
65
|
* Scans for keys matching the given pattern using SCAN and returns them as an array.
|
|
65
66
|
* @param pattern Redis key pattern, e.g. "table:*"
|
|
@@ -111,6 +112,17 @@ declare class UpstashStore extends MastraStorage {
|
|
|
111
112
|
tableName: TABLE_NAMES;
|
|
112
113
|
schema: Record<string, StorageColumn>;
|
|
113
114
|
}): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* No-op: This backend is schemaless and does not require schema changes.
|
|
117
|
+
* @param tableName Name of the table
|
|
118
|
+
* @param schema Schema of the table
|
|
119
|
+
* @param ifNotExists Array of column names to add if they don't exist
|
|
120
|
+
*/
|
|
121
|
+
alterTable(_args: {
|
|
122
|
+
tableName: TABLE_NAMES;
|
|
123
|
+
schema: Record<string, StorageColumn>;
|
|
124
|
+
ifNotExists: string[];
|
|
125
|
+
}): Promise<void>;
|
|
114
126
|
clearTable({ tableName }: {
|
|
115
127
|
tableName: TABLE_NAMES;
|
|
116
128
|
}): Promise<void>;
|