@theholocron/holocron-plugin-cloudflare 5.0.0-alpha.422 → 5.0.0-alpha.423
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/README.md +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Token resolution order:
|
|
|
22
22
|
2. `HOLOCRON_CLOUDFLARE_TOKEN` env var
|
|
23
23
|
3. `CLOUDFLARE_API_TOKEN` env var (the standard Cloudflare variable name)
|
|
24
24
|
4. Keyring `cloudflare.<org>` — tried first when an org is active via `--org`, `HOLOCRON_ORG`, or `org` in `holocron.config.ts`
|
|
25
|
-
5. Keyring `cloudflare` — unnamespaced fallback; set via `holocron
|
|
25
|
+
5. Keyring `cloudflare` — unnamespaced fallback; set via `holocron new token cloudflare <token>`
|
|
26
26
|
|
|
27
27
|
Generate a scoped API token at **dash.cloudflare.com/profile/api-tokens**.
|
|
28
28
|
|
|
@@ -80,7 +80,7 @@ Zone ids are cached per plugin instance for the lifetime of the process.
|
|
|
80
80
|
|
|
81
81
|
## `deployment` capability
|
|
82
82
|
|
|
83
|
-
Manages [Cloudflare Pages](https://developers.cloudflare.com/pages/) projects. Used by `holocron
|
|
83
|
+
Manages [Cloudflare Pages](https://developers.cloudflare.com/pages/) projects. Used by `holocron setup` to provision per-PR preview deployments.
|
|
84
84
|
|
|
85
85
|
| Method | What it does |
|
|
86
86
|
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -122,7 +122,7 @@ hostname is the `dns` provider's job.
|
|
|
122
122
|
|
|
123
123
|
### Preview deployment setup
|
|
124
124
|
|
|
125
|
-
When `preview: true` (or `preview: { project, domain }`) is set in a repo's deploy config, `holocron
|
|
125
|
+
When `preview: true` (or `preview: { project, domain }`) is set in a repo's deploy config, `holocron setup` calls:
|
|
126
126
|
|
|
127
127
|
1. `ensureProject` — creates `<org>-preview` if it doesn't exist
|
|
128
128
|
2. `ensureCustomDomain` — attaches `*.<domain>` to the project
|
package/dist/index.d.mts
CHANGED
|
@@ -165,6 +165,6 @@ export declare function createPlugin(options?: CloudflarePluginOptions): {
|
|
|
165
165
|
dns: () => Dns;
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
|
-
/** One-line hint printed by `holocron
|
|
168
|
+
/** One-line hint printed by `holocron new token cloudflare` when no token is supplied or the supplied one is rejected. */
|
|
169
169
|
export declare const AUTH_HINT: string;
|
|
170
170
|
export { AuthError, type CloudflareClient, type CloudflareClientOptions, type ResolveTokenInput, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, createCloudflareClient };
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const resolveToken = createResolveToken({
|
|
|
8
8
|
envName: "HOLOCRON_CLOUDFLARE_TOKEN",
|
|
9
9
|
vendorEnvName: "CLOUDFLARE_API_TOKEN",
|
|
10
10
|
keyringService: "cloudflare",
|
|
11
|
-
errorMessage: "no Cloudflare API token found. Pass --token <TOKEN>, set HOLOCRON_CLOUDFLARE_TOKEN / CLOUDFLARE_API_TOKEN, or run: holocron
|
|
11
|
+
errorMessage: "no Cloudflare API token found. Pass --token <TOKEN>, set HOLOCRON_CLOUDFLARE_TOKEN / CLOUDFLARE_API_TOKEN, or run: holocron new token cloudflare <TOKEN>"
|
|
12
12
|
});
|
|
13
13
|
/** Every token this plugin takes, for `holocron doctor tokens`. */
|
|
14
14
|
const tokens = [resolveToken.token];
|
|
@@ -465,6 +465,6 @@ function createPlugin(options = {}) {
|
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
|
-
/** One-line hint printed by `holocron
|
|
469
|
-
const AUTH_HINT = "create an API token at https://dash.cloudflare.com/profile/api-tokens with Zone:Read, DNS:Edit, Cloudflare Pages:Edit, Workers Scripts:Edit (account-level), Workers Routes:Edit (zone-level) and, for tunnels, Cloudflare Tunnel:Edit (account-level) permissions, then run: holocron
|
|
468
|
+
/** One-line hint printed by `holocron new token cloudflare` when no token is supplied or the supplied one is rejected. */
|
|
469
|
+
const AUTH_HINT = "create an API token at https://dash.cloudflare.com/profile/api-tokens with Zone:Read, DNS:Edit, Cloudflare Pages:Edit, Workers Scripts:Edit (account-level), Workers Routes:Edit (zone-level) and, for tunnels, Cloudflare Tunnel:Edit (account-level) permissions, then run: holocron new token cloudflare <TOKEN>";
|
|
470
470
|
export { AUTH_HINT, AuthError, CloudflareDeployment, CloudflareDns, CloudflareTunnels, CloudflareWorkers, createCloudflareClient, createContext, createPlugin, deployment, dns, resolveToken, tokens, tunnelsCapability, verifyToken, workersCapability };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-cloudflare",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.423",
|
|
4
4
|
"description": "Holocron plugin for Cloudflare. Implements the dns capability against Cloudflare's REST API — zone resolution, DNS record management.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
"tsx": "4.23.15",
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
46
|
"vitest": "^5.1.0",
|
|
47
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
48
|
-
"@theholocron/cloudflare-client": "^1.58.0-alpha.
|
|
49
|
-
"@theholocron/
|
|
50
|
-
"@theholocron/kyber": "5.0.0-alpha.
|
|
51
|
-
"@theholocron/
|
|
47
|
+
"@theholocron/cli": "5.0.0-alpha.423",
|
|
48
|
+
"@theholocron/cloudflare-client": "^1.58.0-alpha.29",
|
|
49
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.17",
|
|
50
|
+
"@theholocron/kyber": "5.0.0-alpha.423",
|
|
51
|
+
"@theholocron/http-client": "^1.58.0-alpha.29",
|
|
52
52
|
"@theholocron/misc-utils": "^1.17.0-alpha.4",
|
|
53
|
-
"@theholocron/
|
|
54
|
-
"@theholocron/
|
|
55
|
-
"@theholocron/vitest-config": "^8.9.0-alpha.
|
|
53
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.17",
|
|
54
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.17",
|
|
55
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.17"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@theholocron/cloudflare-client": "^1.53.1",
|
|
59
59
|
"@theholocron/misc-utils": "^1.16.0",
|
|
60
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
60
|
+
"@theholocron/cli": "5.0.0-alpha.423"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"@theholocron/cloudflare-client": {}
|