create-cloudflare 2.74.2 → 2.74.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/cli.js +42 -10
- package/package.json +7 -7
- package/templates/astro/pages/c3.ts +1 -1
- package/templates/astro/workers/c3.ts +1 -1
package/dist/cli.js
CHANGED
|
@@ -102878,6 +102878,7 @@ var ARTIFACTS_EVENT_TYPES = [
|
|
|
102878
102878
|
"cf.artifacts.repo.token.created",
|
|
102879
102879
|
"cf.artifacts.repo.token.revoked"
|
|
102880
102880
|
];
|
|
102881
|
+
var WORKFLOW_JURISDICTIONS = ["eu", "fedramp", "us"];
|
|
102881
102882
|
var defaultWranglerConfig = {
|
|
102882
102883
|
/* COMPUTED_FIELDS */
|
|
102883
102884
|
configPath: void 0,
|
|
@@ -105884,6 +105885,22 @@ function validateWorkflowConcurrency(diagnostics, field, kind, value) {
|
|
|
105884
105885
|
return valid;
|
|
105885
105886
|
}
|
|
105886
105887
|
__name(validateWorkflowConcurrency, "validateWorkflowConcurrency");
|
|
105888
|
+
function validateWorkflowJurisdiction(diagnostics, field, kind, value) {
|
|
105889
|
+
const { jurisdiction } = value;
|
|
105890
|
+
if (jurisdiction === void 0 || WORKFLOW_JURISDICTIONS.some((valid) => valid === jurisdiction)) {
|
|
105891
|
+
return true;
|
|
105892
|
+
}
|
|
105893
|
+
const validJurisdictions = new Intl.ListFormat("en-US", {
|
|
105894
|
+
type: "disjunction"
|
|
105895
|
+
}).format(WORKFLOW_JURISDICTIONS.map((valid) => JSON.stringify(valid)));
|
|
105896
|
+
diagnostics.errors.push(
|
|
105897
|
+
`"${field}" ${kind} "jurisdiction" field must be one of ${validJurisdictions}, but got ${JSON.stringify(
|
|
105898
|
+
jurisdiction
|
|
105899
|
+
)}.`
|
|
105900
|
+
);
|
|
105901
|
+
return false;
|
|
105902
|
+
}
|
|
105903
|
+
__name(validateWorkflowJurisdiction, "validateWorkflowJurisdiction");
|
|
105887
105904
|
var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value) => {
|
|
105888
105905
|
if (typeof value !== "object" || value === null) {
|
|
105889
105906
|
diagnostics.errors.push(
|
|
@@ -105939,6 +105956,7 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
105939
105956
|
settings
|
|
105940
105957
|
) && isValid;
|
|
105941
105958
|
isValid = validateWorkflowConcurrency(diagnostics, field, "bindings", settings) && isValid;
|
|
105959
|
+
isValid = validateWorkflowJurisdiction(diagnostics, field, "bindings", settings) && isValid;
|
|
105942
105960
|
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
|
105943
105961
|
"binding",
|
|
105944
105962
|
"name",
|
|
@@ -105947,7 +105965,8 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
105947
105965
|
"limits",
|
|
105948
105966
|
"concurrency",
|
|
105949
105967
|
"schedules",
|
|
105950
|
-
"default_retention"
|
|
105968
|
+
"default_retention",
|
|
105969
|
+
"jurisdiction"
|
|
105951
105970
|
]);
|
|
105952
105971
|
return isValid;
|
|
105953
105972
|
}, "validateWorkflowBinding");
|
|
@@ -107455,10 +107474,14 @@ var validateHyperdriveBinding = /* @__PURE__ */ __name((diagnostics, field, valu
|
|
|
107455
107474
|
);
|
|
107456
107475
|
isValid = false;
|
|
107457
107476
|
}
|
|
107477
|
+
if (!isRemoteValid(value, field, diagnostics)) {
|
|
107478
|
+
isValid = false;
|
|
107479
|
+
}
|
|
107458
107480
|
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
|
107459
107481
|
"binding",
|
|
107460
107482
|
"id",
|
|
107461
|
-
"localConnectionString"
|
|
107483
|
+
"localConnectionString",
|
|
107484
|
+
"remote"
|
|
107462
107485
|
]);
|
|
107463
107486
|
return isValid;
|
|
107464
107487
|
}, "validateHyperdriveBinding");
|
|
@@ -109058,6 +109081,12 @@ function validateWorkflowExport(diagnostics, exportName, workflowExport) {
|
|
|
109058
109081
|
workflowExport
|
|
109059
109082
|
) && valid;
|
|
109060
109083
|
valid = validateWorkflowConcurrency(diagnostics, field, "export", workflowExport) && valid;
|
|
109084
|
+
valid = validateWorkflowJurisdiction(
|
|
109085
|
+
diagnostics,
|
|
109086
|
+
field,
|
|
109087
|
+
"export",
|
|
109088
|
+
workflowExport
|
|
109089
|
+
) && valid;
|
|
109061
109090
|
valid = validateAdditionalProperties(
|
|
109062
109091
|
diagnostics,
|
|
109063
109092
|
field,
|
|
@@ -109068,7 +109097,8 @@ function validateWorkflowExport(diagnostics, exportName, workflowExport) {
|
|
|
109068
109097
|
"limits",
|
|
109069
109098
|
"concurrency",
|
|
109070
109099
|
"schedules",
|
|
109071
|
-
"default_retention"
|
|
109100
|
+
"default_retention",
|
|
109101
|
+
"jurisdiction"
|
|
109072
109102
|
]
|
|
109073
109103
|
) && valid;
|
|
109074
109104
|
return valid;
|
|
@@ -109778,7 +109808,6 @@ var BINDING_LOCAL_SUPPORT = {
|
|
|
109778
109808
|
assets: "local-only",
|
|
109779
109809
|
unsafe_hello_world: "local-only",
|
|
109780
109810
|
durable_object_namespace: "local-only",
|
|
109781
|
-
hyperdrive: "local-only",
|
|
109782
109811
|
fetcher: "local-only",
|
|
109783
109812
|
analytics_engine: "local-only",
|
|
109784
109813
|
secrets_store_secret: "local-only",
|
|
@@ -109787,6 +109816,7 @@ var BINDING_LOCAL_SUPPORT = {
|
|
|
109787
109816
|
kv_namespace: "local-and-remote",
|
|
109788
109817
|
r2_bucket: "local-and-remote",
|
|
109789
109818
|
d1: "local-and-remote",
|
|
109819
|
+
hyperdrive: "local-and-remote",
|
|
109790
109820
|
workflow: "local-only",
|
|
109791
109821
|
browser: "local-and-remote",
|
|
109792
109822
|
images: "local-and-remote",
|
|
@@ -111185,12 +111215,14 @@ function printBindings(bindings, options) {
|
|
|
111185
111215
|
}
|
|
111186
111216
|
if (hyperdrive.length > 0) {
|
|
111187
111217
|
output2.push(
|
|
111188
|
-
...hyperdrive.map(({ binding, id }) => {
|
|
111218
|
+
...hyperdrive.map(({ binding, id, remote }) => {
|
|
111189
111219
|
return {
|
|
111190
111220
|
name: binding,
|
|
111191
111221
|
type: getBindingTypeFriendlyName("hyperdrive"),
|
|
111192
111222
|
value: id,
|
|
111193
|
-
mode: getMode({
|
|
111223
|
+
mode: getMode({
|
|
111224
|
+
isSimulatedLocally: context.remoteBindingsDisabled || !remote
|
|
111225
|
+
})
|
|
111194
111226
|
};
|
|
111195
111227
|
})
|
|
111196
111228
|
);
|
|
@@ -118811,7 +118843,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
118811
118843
|
var yargs_default = Yargs;
|
|
118812
118844
|
|
|
118813
118845
|
// package.json
|
|
118814
|
-
var version2 = "2.74.
|
|
118846
|
+
var version2 = "2.74.3";
|
|
118815
118847
|
|
|
118816
118848
|
// src/metrics.ts
|
|
118817
118849
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -121922,7 +121954,7 @@ var config6 = {
|
|
|
121922
121954
|
configVersion: 1,
|
|
121923
121955
|
id: "astro",
|
|
121924
121956
|
frameworkCli: "create-astro",
|
|
121925
|
-
frameworkCliNodeVersion: ">=22.
|
|
121957
|
+
frameworkCliNodeVersion: ">=22.23.4",
|
|
121926
121958
|
platform: "pages",
|
|
121927
121959
|
hidden: true,
|
|
121928
121960
|
displayName: "Astro",
|
|
@@ -121980,7 +122012,7 @@ var config7 = {
|
|
|
121980
122012
|
configVersion: 1,
|
|
121981
122013
|
id: "astro",
|
|
121982
122014
|
frameworkCli: "create-astro",
|
|
121983
|
-
frameworkCliNodeVersion: ">=22.
|
|
122015
|
+
frameworkCliNodeVersion: ">=22.23.4",
|
|
121984
122016
|
platform: "workers",
|
|
121985
122017
|
displayName: "Astro",
|
|
121986
122018
|
copyFiles: {
|
|
@@ -124308,7 +124340,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
|
|
|
124308
124340
|
var import_node_assert7 = __toESM(require("node:assert"));
|
|
124309
124341
|
|
|
124310
124342
|
// ../wrangler/package.json
|
|
124311
|
-
var version3 = "4.
|
|
124343
|
+
var version3 = "4.152.0";
|
|
124312
124344
|
|
|
124313
124345
|
// src/git.ts
|
|
124314
124346
|
var offerGit = async (ctx) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.74.
|
|
3
|
+
"version": "2.74.3",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -65,18 +65,18 @@
|
|
|
65
65
|
"tree-kill": "1.2.2",
|
|
66
66
|
"typescript": "5.8.3",
|
|
67
67
|
"undici": "7.29.1",
|
|
68
|
-
"vite": "8.
|
|
68
|
+
"vite": "8.3.4",
|
|
69
69
|
"vite-tsconfig-paths": "^4.0.8",
|
|
70
70
|
"vitest": "5.0.4",
|
|
71
71
|
"which-pm-runs": "^1.1.0",
|
|
72
72
|
"wrap-ansi": "^9.0.0",
|
|
73
73
|
"yargs": "^17.7.2",
|
|
74
|
-
"@cloudflare/cli-shared-helpers": "0.2.
|
|
75
|
-
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
74
|
+
"@cloudflare/cli-shared-helpers": "0.2.8",
|
|
76
75
|
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
77
|
-
"@cloudflare/
|
|
78
|
-
"
|
|
79
|
-
"@cloudflare/
|
|
76
|
+
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
77
|
+
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
78
|
+
"@cloudflare/workers-utils": "0.48.0",
|
|
79
|
+
"wrangler": "4.152.0"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=22.0.0"
|