@mastra/libsql 0.10.1-alpha.2 → 0.10.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/libsql@0.10.1-alpha.2 build /home/runner/work/mastra/mastra/stores/libsql
2
+ > @mastra/libsql@0.10.1-alpha.3 build /home/runner/work/mastra/mastra/stores/libsql
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 7809ms
9
+ TSC ⚡️ Build success in 8458ms
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/libsql/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/libsql/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 9677ms
16
+ DTS ⚡️ Build success in 7881ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- ESM dist/index.js 48.69 KB
21
- ESM ⚡️ Build success in 1039ms
22
- CJS dist/index.cjs 48.90 KB
23
- CJS ⚡️ Build success in 1048ms
20
+ CJS dist/index.cjs 49.10 KB
21
+ CJS ⚡️ Build success in 1036ms
22
+ ESM dist/index.js 48.89 KB
23
+ ESM ⚡️ Build success in 1036ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @mastra/libsql
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e5dc18d: Added a backwards compatible layer to begin storing/retrieving UIMessages in storage instead of CoreMessages
8
+ - a3f1b39: feat(libsql): update thread timestamp when saving messages
9
+ - 9e37877: Fixes SQLITE_BUSY error often seen when working locally on the playground
10
+ - c5bf1ce: Add backwards compat code for new MessageList in storage
11
+ - f0d559f: Fix peerdeps for alpha channel
12
+ - Updated dependencies [ee77e78]
13
+ - Updated dependencies [592a2db]
14
+ - Updated dependencies [e5dc18d]
15
+ - Updated dependencies [ab5adbe]
16
+ - Updated dependencies [1e8bb40]
17
+ - Updated dependencies [1b5fc55]
18
+ - Updated dependencies [195c428]
19
+ - Updated dependencies [f73e11b]
20
+ - Updated dependencies [37643b8]
21
+ - Updated dependencies [99fd6cf]
22
+ - Updated dependencies [c5bf1ce]
23
+ - Updated dependencies [add596e]
24
+ - Updated dependencies [8dc94d8]
25
+ - Updated dependencies [ecebbeb]
26
+ - Updated dependencies [79d5145]
27
+ - Updated dependencies [12b7002]
28
+ - Updated dependencies [2901125]
29
+ - @mastra/core@0.10.2
30
+
31
+ ## 0.10.1-alpha.3
32
+
33
+ ### Patch Changes
34
+
35
+ - a3f1b39: feat(libsql): update thread timestamp when saving messages
36
+
3
37
  ## 0.10.1-alpha.2
4
38
 
5
39
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1136,6 +1136,11 @@ var LibSQLStore = class extends storage.MastraStorage {
1136
1136
  ]
1137
1137
  };
1138
1138
  });
1139
+ const now = (/* @__PURE__ */ new Date()).toISOString();
1140
+ batchStatements.push({
1141
+ sql: `UPDATE ${storage.TABLE_THREADS} SET updatedAt = ? WHERE id = ?`,
1142
+ args: [now, threadId]
1143
+ });
1139
1144
  await this.client.batch(batchStatements, "write");
1140
1145
  const list = new agent.MessageList().add(messages, "memory");
1141
1146
  if (format === `v2`) return list.get.all.v2();
package/dist/index.js CHANGED
@@ -1134,6 +1134,11 @@ var LibSQLStore = class extends MastraStorage {
1134
1134
  ]
1135
1135
  };
1136
1136
  });
1137
+ const now = (/* @__PURE__ */ new Date()).toISOString();
1138
+ batchStatements.push({
1139
+ sql: `UPDATE ${TABLE_THREADS} SET updatedAt = ? WHERE id = ?`,
1140
+ args: [now, threadId]
1141
+ });
1137
1142
  await this.client.batch(batchStatements, "write");
1138
1143
  const list = new MessageList().add(messages, "memory");
1139
1144
  if (format === `v2`) return list.get.all.v2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/libsql",
3
- "version": "0.10.1-alpha.2",
3
+ "version": "0.10.1",
4
4
  "description": "Libsql provider for Mastra - includes both vector and db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,12 +29,12 @@
29
29
  "tsup": "^8.4.0",
30
30
  "typescript": "^5.8.3",
31
31
  "vitest": "^3.1.2",
32
- "@internal/lint": "0.0.7",
33
- "@internal/storage-test-utils": "0.0.3",
34
- "@mastra/core": "0.10.2-alpha.4"
32
+ "@internal/lint": "0.0.8",
33
+ "@mastra/core": "0.10.2",
34
+ "@internal/storage-test-utils": "0.0.4"
35
35
  },
36
36
  "peerDependencies": {
37
- "@mastra/core": "^0.10.0-alpha.0"
37
+ "@mastra/core": "^0.10.2-alpha.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
@@ -486,6 +486,12 @@ export class LibSQLStore extends MastraStorage {
486
486
  };
487
487
  });
488
488
 
489
+ const now = new Date().toISOString();
490
+ batchStatements.push({
491
+ sql: `UPDATE ${TABLE_THREADS} SET updatedAt = ? WHERE id = ?`,
492
+ args: [now, threadId],
493
+ });
494
+
489
495
  // Execute all inserts in a single batch
490
496
  await this.client.batch(batchStatements, 'write');
491
497