@mastra/upstash 0.10.2-alpha.1 → 0.10.2-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.
@@ -1,23 +1,39 @@
1
1
 
2
- > @mastra/upstash@0.10.2-alpha.1 build /home/runner/work/mastra/mastra/stores/upstash
2
+ > @mastra/upstash@0.10.2-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
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.4.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 8832ms
9
+ TSC ⚡️ Build success in 9127ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/stores/upstash/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.3
15
15
  Writing package typings: /home/runner/work/mastra/mastra/stores/upstash/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 11471ms
16
+ DTS ⚡️ Build success in 11663ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- ESM dist/index.js 31.90 KB
21
- ESM ⚡️ Build success in 1016ms
22
- CJS dist/index.cjs 32.04 KB
23
- CJS ⚡️ Build success in 1016ms
20
+ dist/index.js (1651:18): Use of eval in "dist/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
21
+ dist/index.cjs (1651:18): Use of eval in "dist/index.cjs" is strongly discouraged as it poses security risks and may cause issues with minification.
22
+ ESM dist/getMachineId-darwin-UTKBTJ2U.js 1.08 KB
23
+ ESM dist/getMachineId-linux-K3QXQYAB.js 740.00 B
24
+ ESM dist/getMachineId-bsd-KKIDU47O.js 896.00 B
25
+ ESM dist/getMachineId-win-L2EYIM5A.js 1.04 KB
26
+ ESM dist/chunk-IGKEDEDE.js 452.00 B
27
+ ESM dist/getMachineId-unsupported-VPWBQCK7.js 700.00 B
28
+ ESM dist/chunk-HSTZWXH7.js 61.52 KB
29
+ ESM dist/index.js 1.62 MB
30
+ ESM ⚡️ Build success in 22560ms
31
+ CJS dist/getMachineId-darwin-3PL23DL6.cjs 1.19 KB
32
+ CJS dist/getMachineId-linux-KYLPK3HC.cjs 813.00 B
33
+ CJS dist/getMachineId-bsd-HDZ73WR7.cjs 1015.00 B
34
+ CJS dist/getMachineId-win-ZTI2LRDJ.cjs 1.66 KB
35
+ CJS dist/chunk-N2CPQVE3.cjs 1.09 KB
36
+ CJS dist/getMachineId-unsupported-DEDJN4ZS.cjs 777.00 B
37
+ CJS dist/chunk-U74OJRHU.cjs 62.08 KB
38
+ CJS dist/index.cjs 1.63 MB
39
+ CJS ⚡️ Build success in 22554ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/upstash
2
2
 
3
+ ## 0.10.2-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - c5bf1ce: Add backwards compat code for new MessageList in storage
8
+ - Updated dependencies [c5bf1ce]
9
+ - Updated dependencies [12b7002]
10
+ - @mastra/core@0.10.2-alpha.4
11
+
3
12
  ## 0.10.2-alpha.1
4
13
 
5
14
  ### Patch Changes
@@ -5,9 +5,10 @@ import type { DeleteVectorParams } from '@mastra/core/vector';
5
5
  import type { DescribeIndexParams } from '@mastra/core/vector';
6
6
  import type { EvalRow } from '@mastra/core/storage';
7
7
  import type { IndexStats } from '@mastra/core/vector';
8
+ import type { MastraMessageV1 } from '@mastra/core/memory';
9
+ import type { MastraMessageV2 } from '@mastra/core/memory';
8
10
  import { MastraStorage } from '@mastra/core/storage';
9
11
  import { MastraVector } from '@mastra/core/vector';
10
- import type { MessageType } from '@mastra/core/memory';
11
12
  import type { OperatorSupport } from '@mastra/core/vector/filter';
12
13
  import type { QueryResult } from '@mastra/core/vector';
13
14
  import type { QueryVectorParams } from '@mastra/core/vector';
@@ -122,10 +123,20 @@ declare class UpstashStore extends MastraStorage {
122
123
  deleteThread({ threadId }: {
123
124
  threadId: string;
124
125
  }): Promise<void>;
125
- saveMessages({ messages }: {
126
- messages: MessageType[];
127
- }): Promise<MessageType[]>;
128
- getMessages<T = unknown>({ threadId, selectBy }: StorageGetMessagesArg): Promise<T[]>;
126
+ saveMessages(args: {
127
+ messages: MastraMessageV1[];
128
+ format?: undefined | 'v1';
129
+ }): Promise<MastraMessageV1[]>;
130
+ saveMessages(args: {
131
+ messages: MastraMessageV2[];
132
+ format: 'v2';
133
+ }): Promise<MastraMessageV2[]>;
134
+ getMessages(args: StorageGetMessagesArg & {
135
+ format?: 'v1';
136
+ }): Promise<MastraMessageV1[]>;
137
+ getMessages(args: StorageGetMessagesArg & {
138
+ format: 'v2';
139
+ }): Promise<MastraMessageV2[]>;
129
140
  persistWorkflowSnapshot(params: {
130
141
  namespace: string;
131
142
  workflowName: string;
@@ -5,9 +5,10 @@ import type { DeleteVectorParams } from '@mastra/core/vector';
5
5
  import type { DescribeIndexParams } from '@mastra/core/vector';
6
6
  import type { EvalRow } from '@mastra/core/storage';
7
7
  import type { IndexStats } from '@mastra/core/vector';
8
+ import type { MastraMessageV1 } from '@mastra/core/memory';
9
+ import type { MastraMessageV2 } from '@mastra/core/memory';
8
10
  import { MastraStorage } from '@mastra/core/storage';
9
11
  import { MastraVector } from '@mastra/core/vector';
10
- import type { MessageType } from '@mastra/core/memory';
11
12
  import type { OperatorSupport } from '@mastra/core/vector/filter';
12
13
  import type { QueryResult } from '@mastra/core/vector';
13
14
  import type { QueryVectorParams } from '@mastra/core/vector';
@@ -122,10 +123,20 @@ declare class UpstashStore extends MastraStorage {
122
123
  deleteThread({ threadId }: {
123
124
  threadId: string;
124
125
  }): Promise<void>;
125
- saveMessages({ messages }: {
126
- messages: MessageType[];
127
- }): Promise<MessageType[]>;
128
- getMessages<T = unknown>({ threadId, selectBy }: StorageGetMessagesArg): Promise<T[]>;
126
+ saveMessages(args: {
127
+ messages: MastraMessageV1[];
128
+ format?: undefined | 'v1';
129
+ }): Promise<MastraMessageV1[]>;
130
+ saveMessages(args: {
131
+ messages: MastraMessageV2[];
132
+ format: 'v2';
133
+ }): Promise<MastraMessageV2[]>;
134
+ getMessages(args: StorageGetMessagesArg & {
135
+ format?: 'v1';
136
+ }): Promise<MastraMessageV1[]>;
137
+ getMessages(args: StorageGetMessagesArg & {
138
+ format: 'v2';
139
+ }): Promise<MastraMessageV2[]>;
129
140
  persistWorkflowSnapshot(params: {
130
141
  namespace: string;
131
142
  workflowName: string;