@mastra/deployer-cloudflare 0.1.0-alpha.55 → 0.1.0-alpha.57

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @mastra/deployer-cloudflare
2
2
 
3
+ ## 0.1.0-alpha.57
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a9345f9]
8
+ - @mastra/core@0.2.0-alpha.102
9
+ - @mastra/deployer@0.1.0-alpha.52
10
+
11
+ ## 0.1.0-alpha.56
12
+
13
+ ### Patch Changes
14
+
15
+ - 4f1d1a1: Enforce types ann cleanup package.json
16
+ - Updated dependencies [66a03ec]
17
+ - Updated dependencies [4f1d1a1]
18
+ - @mastra/core@0.2.0-alpha.101
19
+ - @mastra/deployer@0.1.0-alpha.51
20
+
3
21
  ## 0.1.0-alpha.55
4
22
 
5
23
  ### Patch Changes
@@ -0,0 +1,65 @@
1
+ import { Deployer } from '@mastra/deployer';
2
+
3
+ declare interface CFRoute {
4
+ pattern: string;
5
+ zone_name: string;
6
+ custom_domain?: boolean;
7
+ }
8
+
9
+ export declare class CloudflareDeployer extends Deployer {
10
+ private cloudflare;
11
+ routes?: CFRoute[];
12
+ workerNamespace?: string;
13
+ scope: string;
14
+ env?: Record<string, any>;
15
+ projectName?: string;
16
+ constructor({ scope, env, projectName, routes, workerNamespace, auth, }: {
17
+ env?: Record<string, any>;
18
+ scope: string;
19
+ projectName?: string;
20
+ routes?: CFRoute[];
21
+ workerNamespace?: string;
22
+ auth: {
23
+ apiToken: string;
24
+ apiEmail?: string;
25
+ };
26
+ });
27
+ writeFiles(outputDirectory: string): Promise<void>;
28
+ private getEntry;
29
+ prepare(outputDirectory: string): Promise<void>;
30
+ bundle(entryFile: string, outputDirectory: string): Promise<void>;
31
+ deploy(outputDirectory: string): Promise<void>;
32
+ tagWorker({ workerName, namespace, tags, scope, }: {
33
+ scope: string;
34
+ workerName: string;
35
+ namespace: string;
36
+ tags: string[];
37
+ }): Promise<void>;
38
+ }
39
+
40
+ export declare class CloudflareSecretsManager {
41
+ accountId: string;
42
+ apiToken: string;
43
+ baseUrl: string;
44
+ constructor({ accountId, apiToken }: {
45
+ accountId: string;
46
+ apiToken: string;
47
+ });
48
+ createSecret({ workerId, secretName, secretValue, }: {
49
+ workerId: string;
50
+ secretName: string;
51
+ secretValue: string;
52
+ }): Promise<any>;
53
+ createProjectSecrets({ workerId, customerId, envVars, }: {
54
+ workerId: string;
55
+ customerId: string;
56
+ envVars: Record<string, string>;
57
+ }): Promise<any>;
58
+ deleteSecret({ workerId, secretName }: {
59
+ workerId: string;
60
+ secretName: string;
61
+ }): Promise<any>;
62
+ listSecrets(workerId: string): Promise<any>;
63
+ }
64
+
65
+ export { }
package/dist/index.d.ts CHANGED
@@ -1,39 +1 @@
1
- import { Deployer } from '@mastra/deployer';
2
-
3
- interface CFRoute {
4
- pattern: string;
5
- zone_name: string;
6
- custom_domain?: boolean;
7
- }
8
- declare class CloudflareDeployer extends Deployer {
9
- private cloudflare;
10
- routes?: CFRoute[];
11
- workerNamespace?: string;
12
- scope: string;
13
- env?: Record<string, any>;
14
- projectName?: string;
15
- constructor({ scope, env, projectName, routes, workerNamespace, auth, }: {
16
- env?: Record<string, any>;
17
- scope: string;
18
- projectName?: string;
19
- routes?: CFRoute[];
20
- workerNamespace?: string;
21
- auth: {
22
- apiToken: string;
23
- apiEmail?: string;
24
- };
25
- });
26
- writeFiles(outputDirectory: string): Promise<void>;
27
- private getEntry;
28
- prepare(outputDirectory: string): Promise<void>;
29
- bundle(entryFile: string, outputDirectory: string): Promise<void>;
30
- deploy(outputDirectory: string): Promise<void>;
31
- tagWorker({ workerName, namespace, tags, scope, }: {
32
- scope: string;
33
- workerName: string;
34
- namespace: string;
35
- tags: string[];
36
- }): Promise<void>;
37
- }
38
-
39
- export { CloudflareDeployer };
1
+ export { CloudflareDeployer } from './_tsup-dts-rollup.js';
@@ -1,26 +1 @@
1
- declare class CloudflareSecretsManager {
2
- accountId: string;
3
- apiToken: string;
4
- baseUrl: string;
5
- constructor({ accountId, apiToken }: {
6
- accountId: string;
7
- apiToken: string;
8
- });
9
- createSecret({ workerId, secretName, secretValue, }: {
10
- workerId: string;
11
- secretName: string;
12
- secretValue: string;
13
- }): Promise<any>;
14
- createProjectSecrets({ workerId, customerId, envVars, }: {
15
- workerId: string;
16
- customerId: string;
17
- envVars: Record<string, string>;
18
- }): Promise<any>;
19
- deleteSecret({ workerId, secretName }: {
20
- workerId: string;
21
- secretName: string;
22
- }): Promise<any>;
23
- listSecrets(workerId: string): Promise<any>;
24
- }
25
-
26
- export { CloudflareSecretsManager };
1
+ export { CloudflareSecretsManager } from '../_tsup-dts-rollup.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer-cloudflare",
3
- "version": "0.1.0-alpha.55",
3
+ "version": "0.1.0-alpha.57",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,25 +23,22 @@
23
23
  "@rollup/plugin-virtual": "^3.0.2",
24
24
  "cloudflare": "^4.0.0",
25
25
  "date-fns": "^4.1.0",
26
- "dotenv": "^16.3.1",
27
26
  "execa": "^9.3.1",
28
27
  "rollup-plugin-polyfill-node": "^0.13.0",
29
28
  "rollup-plugin-shim": "^1.0.0",
30
29
  "wrangler": "^3.103.2",
31
30
  "zod": "^3.24.1",
32
- "@mastra/core": "^0.2.0-alpha.100",
33
- "@mastra/deployer": "^0.1.0-alpha.50"
31
+ "@mastra/core": "^0.2.0-alpha.102",
32
+ "@mastra/deployer": "^0.1.0-alpha.52"
34
33
  },
35
34
  "devDependencies": {
36
- "@babel/preset-env": "^7.26.0",
37
- "@babel/preset-typescript": "^7.26.0",
38
- "@tsconfig/recommended": "^1.0.7",
39
- "@types/node": "^22.9.0",
35
+ "@microsoft/api-extractor": "^7.49.2",
36
+ "@types/node": "^22.13.1",
40
37
  "tsup": "^8.0.1",
41
38
  "vitest": "^3.0.4"
42
39
  },
43
40
  "scripts": {
44
- "build": "tsup src/index.ts src/secrets-manager/index.ts --format esm --dts --clean --treeshake",
41
+ "build": "tsup src/index.ts src/secrets-manager/index.ts --format esm --experimental-dts --clean --treeshake",
45
42
  "build:watch": "pnpm build --watch",
46
43
  "test": "vitest run"
47
44
  }