@mastra/pg 0.11.0-alpha.2 → 0.11.0-alpha.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.
@@ -1,23 +1,23 @@
1
1
 
2
- > @mastra/pg@0.11.0-alpha.2 build /home/runner/work/mastra/mastra/stores/pg
2
+ > @mastra/pg@0.11.0-alpha.3 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 10857ms
9
+ TSC ⚡️ Build success in 10074ms
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 13576ms
16
+ DTS ⚡️ Build success in 11524ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- CJS dist/index.cjs 68.46 KB
21
- CJS ⚡️ Build success in 1747ms
22
- ESM dist/index.js 67.89 KB
23
- ESM ⚡️ Build success in 1749ms
20
+ CJS dist/index.cjs 68.48 KB
21
+ CJS ⚡️ Build success in 1389ms
22
+ ESM dist/index.js 67.91 KB
23
+ ESM ⚡️ Build success in 1390ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @mastra/pg
2
2
 
3
+ ## 0.11.0-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 6c23252: [MASTRA-3982] Fix Memory Retrieval for PG when scope is resource
8
+ - Updated dependencies [9589624]
9
+ - @mastra/core@0.10.6-alpha.4
10
+
3
11
  ## 0.11.0-alpha.2
4
12
 
5
13
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1488,7 +1488,7 @@ var PostgresStore = class extends storage.MastraStorage {
1488
1488
  (m.row_num >= target.row_num - $${paramIdx + 3} AND m.row_num < target.row_num)
1489
1489
  )
1490
1490
  )
1491
- )
1491
+ ) AS query_${paramIdx}
1492
1492
  `
1493
1493
  // Keep ASC for final sorting after fetching context
1494
1494
  );
package/dist/index.js CHANGED
@@ -1480,7 +1480,7 @@ var PostgresStore = class extends MastraStorage {
1480
1480
  (m.row_num >= target.row_num - $${paramIdx + 3} AND m.row_num < target.row_num)
1481
1481
  )
1482
1482
  )
1483
- )
1483
+ ) AS query_${paramIdx}
1484
1484
  `
1485
1485
  // Keep ASC for final sorting after fetching context
1486
1486
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/pg",
3
- "version": "0.11.0-alpha.2",
3
+ "version": "0.11.0-alpha.3",
4
4
  "description": "Postgres provider for Mastra - includes both vector and db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -34,8 +34,8 @@
34
34
  "typescript": "^5.8.3",
35
35
  "vitest": "^3.2.3",
36
36
  "@internal/lint": "0.0.12",
37
- "@internal/storage-test-utils": "0.0.8",
38
- "@mastra/core": "0.10.6-alpha.3"
37
+ "@mastra/core": "0.10.6-alpha.4",
38
+ "@internal/storage-test-utils": "0.0.8"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@mastra/core": ">=0.10.4-0 <0.11.0"
@@ -758,7 +758,7 @@ export class PostgresStore extends MastraStorage {
758
758
  (m.row_num >= target.row_num - $${paramIdx + 3} AND m.row_num < target.row_num)
759
759
  )
760
760
  )
761
- )
761
+ ) AS query_${paramIdx}
762
762
  `, // Keep ASC for final sorting after fetching context
763
763
  );
764
764
  params.push(searchId, id, withPreviousMessages, withNextMessages);