@mastra/pg 0.12.6-alpha.0 → 0.13.0

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.12.6-alpha.0 build /home/runner/work/mastra/mastra/stores/pg
2
+ > @mastra/pg@0.13.0-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 17910ms
9
+ TSC ⚡️ Build success in 17702ms
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 13382ms
16
+ DTS ⚡️ Build success in 14252ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- ESM dist/index.js 104.78 KB
21
- ESM ⚡️ Build success in 2545ms
22
20
  CJS dist/index.cjs 106.34 KB
23
- CJS ⚡️ Build success in 2546ms
21
+ CJS ⚡️ Build success in 2113ms
22
+ ESM dist/index.js 104.78 KB
23
+ ESM ⚡️ Build success in 2113ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,61 @@
1
1
  # @mastra/pg
2
2
 
3
+ ## 0.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f42c4c2: update peer deps for packages to latest core range
8
+
9
+ ### Patch Changes
10
+
11
+ - ff9c125: enhance thread retrieval with sorting options in libsql and pg
12
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
13
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
14
+ - Single message ID as string: `deleteMessages('msg-123')`
15
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
16
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
17
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
18
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
19
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
20
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
21
+ - Updates thread timestamps when messages are deleted
22
+ - Added comprehensive test coverage and documentation
23
+
24
+ - Updated dependencies [510e2c8]
25
+ - Updated dependencies [2f72fb2]
26
+ - Updated dependencies [27cc97a]
27
+ - Updated dependencies [3f89307]
28
+ - Updated dependencies [9eda7d4]
29
+ - Updated dependencies [9d49408]
30
+ - Updated dependencies [41daa63]
31
+ - Updated dependencies [ad0a58b]
32
+ - Updated dependencies [254a36b]
33
+ - Updated dependencies [2ecf658]
34
+ - Updated dependencies [7a7754f]
35
+ - Updated dependencies [fc92d80]
36
+ - Updated dependencies [e0f73c6]
37
+ - Updated dependencies [0b89602]
38
+ - Updated dependencies [4d37822]
39
+ - Updated dependencies [23a6a7c]
40
+ - Updated dependencies [cda801d]
41
+ - Updated dependencies [a77c823]
42
+ - Updated dependencies [ff9c125]
43
+ - Updated dependencies [09bca64]
44
+ - Updated dependencies [b8efbb9]
45
+ - Updated dependencies [71466e7]
46
+ - Updated dependencies [0c99fbe]
47
+ - @mastra/core@0.12.0
48
+
49
+ ## 0.13.0-alpha.1
50
+
51
+ ### Minor Changes
52
+
53
+ - f42c4c2: update peer deps for packages to latest core range
54
+
55
+ ### Patch Changes
56
+
57
+ - @mastra/core@0.12.0-alpha.5
58
+
3
59
  ## 0.12.6-alpha.0
4
60
 
5
61
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/pg",
3
- "version": "0.12.6-alpha.0",
3
+ "version": "0.13.0",
4
4
  "description": "Postgres provider for Mastra - includes both vector and db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,12 +33,12 @@
33
33
  "tsup": "^8.5.0",
34
34
  "typescript": "^5.8.3",
35
35
  "vitest": "^3.2.4",
36
- "@internal/lint": "0.0.23",
37
- "@internal/storage-test-utils": "0.0.19",
38
- "@mastra/core": "0.12.0-alpha.2"
36
+ "@internal/lint": "0.0.24",
37
+ "@internal/storage-test-utils": "0.0.20",
38
+ "@mastra/core": "0.12.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@mastra/core": ">=0.10.7-0 <0.12.0-0"
41
+ "@mastra/core": ">=0.12.0-0 <0.13.0-0"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",