@mastra/cloudflare 0.10.5-alpha.1 → 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.
@@ -9,10 +9,12 @@ import type { PaginationInfo } from '@mastra/core/storage';
9
9
  import type { StorageColumn } from '@mastra/core/storage';
10
10
  import type { StorageGetMessagesArg } from '@mastra/core/storage';
11
11
  import type { StorageGetTracesArg } from '@mastra/core/storage';
12
+ import type { StorageResourceType } from '@mastra/core/storage';
12
13
  import type { StorageThreadType } from '@mastra/core/memory';
13
14
  import type { TABLE_EVALS } from '@mastra/core/storage';
14
15
  import type { TABLE_MESSAGES } from '@mastra/core/storage';
15
16
  import type { TABLE_NAMES } from '@mastra/core/storage';
17
+ import type { TABLE_RESOURCES } from '@mastra/core/storage';
16
18
  import type { TABLE_THREADS } from '@mastra/core/storage';
17
19
  import type { TABLE_TRACES } from '@mastra/core/storage';
18
20
  import type { TABLE_WORKFLOW_SNAPSHOT } from '@mastra/core/storage';
@@ -312,6 +314,7 @@ export declare type RecordTypes = {
312
314
  [TABLE_WORKFLOW_SNAPSHOT]: WorkflowRunState;
313
315
  [TABLE_EVALS]: EvalRow;
314
316
  [TABLE_TRACES]: any;
317
+ [TABLE_RESOURCES]: StorageResourceType;
315
318
  };
316
319
 
317
320
  export declare const retryUntil: <T>(fn: () => Promise<T>, condition: (result: T) => boolean, timeout?: number, // REST API needs longer timeout due to higher latency
@@ -9,10 +9,12 @@ import type { PaginationInfo } from '@mastra/core/storage';
9
9
  import type { StorageColumn } from '@mastra/core/storage';
10
10
  import type { StorageGetMessagesArg } from '@mastra/core/storage';
11
11
  import type { StorageGetTracesArg } from '@mastra/core/storage';
12
+ import type { StorageResourceType } from '@mastra/core/storage';
12
13
  import type { StorageThreadType } from '@mastra/core/memory';
13
14
  import type { TABLE_EVALS } from '@mastra/core/storage';
14
15
  import type { TABLE_MESSAGES } from '@mastra/core/storage';
15
16
  import type { TABLE_NAMES } from '@mastra/core/storage';
17
+ import type { TABLE_RESOURCES } from '@mastra/core/storage';
16
18
  import type { TABLE_THREADS } from '@mastra/core/storage';
17
19
  import type { TABLE_TRACES } from '@mastra/core/storage';
18
20
  import type { TABLE_WORKFLOW_SNAPSHOT } from '@mastra/core/storage';
@@ -312,6 +314,7 @@ export declare type RecordTypes = {
312
314
  [TABLE_WORKFLOW_SNAPSHOT]: WorkflowRunState;
313
315
  [TABLE_EVALS]: EvalRow;
314
316
  [TABLE_TRACES]: any;
317
+ [TABLE_RESOURCES]: StorageResourceType;
315
318
  };
316
319
 
317
320
  export declare const retryUntil: <T>(fn: () => Promise<T>, condition: (result: T) => boolean, timeout?: number, // REST API needs longer timeout due to higher latency
package/dist/index.cjs CHANGED
@@ -945,7 +945,7 @@ var CloudflareStore = class extends storage.MastraStorage {
945
945
  type: message.type || "v2",
946
946
  _index: index
947
947
  };
948
- });
948
+ }).filter((m) => !!m);
949
949
  const messagesByThread = validatedMessages.reduce((acc, message) => {
950
950
  if (message.threadId && !acc.has(message.threadId)) {
951
951
  acc.set(message.threadId, []);
package/dist/index.js CHANGED
@@ -939,7 +939,7 @@ var CloudflareStore = class extends MastraStorage {
939
939
  type: message.type || "v2",
940
940
  _index: index
941
941
  };
942
- });
942
+ }).filter((m) => !!m);
943
943
  const messagesByThread = validatedMessages.reduce((acc, message) => {
944
944
  if (message.threadId && !acc.has(message.threadId)) {
945
945
  acc.set(message.threadId, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/cloudflare",
3
- "version": "0.10.5-alpha.1",
3
+ "version": "0.11.0-alpha.3",
4
4
  "description": "Cloudflare provider for Mastra - includes db storage capabilities",
5
5
  "type": "module",
6
6
  "files": [
@@ -26,21 +26,21 @@
26
26
  "cloudflare": "^4.3.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@cloudflare/workers-types": "^4.20250612.0",
29
+ "@cloudflare/workers-types": "^4.20250620.0",
30
30
  "@microsoft/api-extractor": "^7.52.8",
31
31
  "@types/node": "^20.19.0",
32
32
  "dotenv": "^16.5.0",
33
- "eslint": "^9.28.0",
33
+ "eslint": "^9.29.0",
34
34
  "miniflare": "^4.20250604.1",
35
35
  "tsup": "^8.5.0",
36
36
  "typescript": "^5.8.3",
37
37
  "vitest": "^3.2.3",
38
38
  "@internal/lint": "0.0.13",
39
- "@mastra/core": "0.10.7-alpha.1",
40
- "@internal/storage-test-utils": "0.0.9"
39
+ "@internal/storage-test-utils": "0.0.9",
40
+ "@mastra/core": "0.10.7-alpha.3"
41
41
  },
42
42
  "peerDependencies": {
43
- "@mastra/core": ">=0.10.4-0 <0.11.0"
43
+ "@mastra/core": ">=0.10.7-0 <0.11.0-0"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",