@mastra/cloudflare-d1 1.3.0-alpha.1 → 1.3.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.
package/dist/index.js CHANGED
@@ -944,6 +944,7 @@ function addSqliteMetadataValuePredicate(conditions, params, path, value) {
944
944
  params.push(path, value ? "true" : "false", path, value ? 1 : 0);
945
945
  }
946
946
  var MemoryStorageD1 = class extends MemoryStorage {
947
+ supportsPartialThreadUpdate = true;
947
948
  #db;
948
949
  constructor(config) {
949
950
  super();
@@ -1260,7 +1261,7 @@ var MemoryStorageD1 = class extends MemoryStorage {
1260
1261
  "updatedAt"
1261
1262
  ];
1262
1263
  const values = [
1263
- title,
1264
+ title ?? thread.title,
1264
1265
  JSON.stringify(mergedMetadata),
1265
1266
  updatedAt.toISOString()
1266
1267
  ];
@@ -1271,7 +1272,7 @@ var MemoryStorageD1 = class extends MemoryStorage {
1271
1272
  });
1272
1273
  return {
1273
1274
  ...thread,
1274
- title,
1275
+ title: title ?? thread.title,
1275
1276
  metadata: {
1276
1277
  ...typeof thread.metadata === "string" ? JSON.parse(thread.metadata) : thread.metadata,
1277
1278
  ...metadata