@mastra/pg 0.11.0 → 0.11.1-alpha.1

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,23 @@
1
1
 
2
- > @mastra/pg@0.11.0-alpha.3 build /home/runner/work/mastra/mastra/stores/pg
2
+ > @mastra/pg@0.11.1-alpha.1 build /home/runner/work/mastra/mastra/stores/pg
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.5.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 10202ms
9
+ TSC ⚡️ Build success in 10897ms
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/pg/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/pg/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 11263ms
16
+ DTS ⚡️ Build success in 11697ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- ESM dist/index.js 67.91 KB
21
- ESM ⚡️ Build success in 2081ms
22
- CJS dist/index.cjs 68.48 KB
23
- CJS ⚡️ Build success in 2081ms
20
+ ESM dist/index.js 83.06 KB
21
+ ESM ⚡️ Build success in 1628ms
22
+ CJS dist/index.cjs 84.43 KB
23
+ CJS ⚡️ Build success in 1628ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @mastra/pg
2
2
 
3
+ ## 0.11.1-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 2097952: [MASTRA-4021] Fix PG getMessages and update messageLimit for all storage adapters
8
+ - 0e17048: Throw mastra errors in storage packages
9
+ - Updated dependencies [d1baedb]
10
+ - Updated dependencies [4d21bf2]
11
+ - Updated dependencies [2097952]
12
+ - Updated dependencies [4fb0cc2]
13
+ - Updated dependencies [d2a7a31]
14
+ - Updated dependencies [0e17048]
15
+ - @mastra/core@0.10.7-alpha.1
16
+
17
+ ## 0.11.1-alpha.0
18
+
19
+ ### Patch Changes
20
+
21
+ - d8f2d19: Add updateMessages API to storage classes (only support for PG and LibSQL for now) and to memory class. Additionally allow for metadata to be saved in the content field of a message.
22
+ - Updated dependencies [d8f2d19]
23
+ - Updated dependencies [9d52b17]
24
+ - Updated dependencies [8ba1b51]
25
+ - @mastra/core@0.10.7-alpha.0
26
+
3
27
  ## 0.11.0
4
28
 
5
29
  ### Minor Changes
@@ -6,6 +6,7 @@ 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
8
  import type { ISSLConfig } from 'pg-promise/typescript/pg-subset';
9
+ import type { MastraMessageContentV2 } from '@mastra/core/agent';
9
10
  import type { MastraMessageV1 } from '@mastra/core/memory';
10
11
  import type { MastraMessageV2 } from '@mastra/core/agent';
11
12
  import { MastraStorage } from '@mastra/core/storage';
@@ -359,6 +360,7 @@ declare class PostgresStore extends MastraStorage {
359
360
  deleteThread({ threadId }: {
360
361
  threadId: string;
361
362
  }): Promise<void>;
363
+ private _getIncludedMessages;
362
364
  /**
363
365
  * @deprecated use getMessagesPaginated instead
364
366
  */
@@ -411,6 +413,15 @@ declare class PostgresStore extends MastraStorage {
411
413
  } & PaginationArgs): Promise<PaginationInfo & {
412
414
  evals: EvalRow[];
413
415
  }>;
416
+ updateMessages({ messages, }: {
417
+ messages: (Partial<Omit<MastraMessageV2, 'createdAt'>> & {
418
+ id: string;
419
+ content?: {
420
+ metadata?: MastraMessageContentV2['metadata'];
421
+ content?: MastraMessageContentV2['content'];
422
+ };
423
+ })[];
424
+ }): Promise<MastraMessageV2[]>;
414
425
  }
415
426
  export { PostgresStore }
416
427
  export { PostgresStore as PostgresStore_alias_1 }
@@ -6,6 +6,7 @@ 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
8
  import type { ISSLConfig } from 'pg-promise/typescript/pg-subset';
9
+ import type { MastraMessageContentV2 } from '@mastra/core/agent';
9
10
  import type { MastraMessageV1 } from '@mastra/core/memory';
10
11
  import type { MastraMessageV2 } from '@mastra/core/agent';
11
12
  import { MastraStorage } from '@mastra/core/storage';
@@ -359,6 +360,7 @@ declare class PostgresStore extends MastraStorage {
359
360
  deleteThread({ threadId }: {
360
361
  threadId: string;
361
362
  }): Promise<void>;
363
+ private _getIncludedMessages;
362
364
  /**
363
365
  * @deprecated use getMessagesPaginated instead
364
366
  */
@@ -411,6 +413,15 @@ declare class PostgresStore extends MastraStorage {
411
413
  } & PaginationArgs): Promise<PaginationInfo & {
412
414
  evals: EvalRow[];
413
415
  }>;
416
+ updateMessages({ messages, }: {
417
+ messages: (Partial<Omit<MastraMessageV2, 'createdAt'>> & {
418
+ id: string;
419
+ content?: {
420
+ metadata?: MastraMessageContentV2['metadata'];
421
+ content?: MastraMessageContentV2['content'];
422
+ };
423
+ })[];
424
+ }): Promise<MastraMessageV2[]>;
414
425
  }
415
426
  export { PostgresStore }
416
427
  export { PostgresStore as PostgresStore_alias_1 }