create-cloudflare 2.67.0 → 2.67.1
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 +139 -25
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -74534,7 +74534,7 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__
|
|
|
74534
74534
|
mod
|
|
74535
74535
|
));
|
|
74536
74536
|
|
|
74537
|
-
// ../workers-utils/dist/chunk-
|
|
74537
|
+
// ../workers-utils/dist/chunk-L6UDSO24.mjs
|
|
74538
74538
|
var import_node_assert = __toESM(require("node:assert"), 1);
|
|
74539
74539
|
function isCompatDate(str) {
|
|
74540
74540
|
return /^\d{4}-\d{2}-\d{2}$/.test(str);
|
|
@@ -74666,6 +74666,17 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
74666
74666
|
];
|
|
74667
74667
|
}
|
|
74668
74668
|
break;
|
|
74669
|
+
case "artifacts":
|
|
74670
|
+
{
|
|
74671
|
+
configObj.artifacts = [
|
|
74672
|
+
...configObj.artifacts ?? [],
|
|
74673
|
+
{
|
|
74674
|
+
binding: binding.name,
|
|
74675
|
+
namespace: binding.namespace
|
|
74676
|
+
}
|
|
74677
|
+
];
|
|
74678
|
+
}
|
|
74679
|
+
break;
|
|
74669
74680
|
case "unsafe_hello_world": {
|
|
74670
74681
|
configObj.unsafe_hello_world = [
|
|
74671
74682
|
...configObj.unsafe_hello_world ?? [],
|
|
@@ -78462,6 +78473,7 @@ var defaultWranglerConfig = {
|
|
|
78462
78473
|
hyperdrive: [],
|
|
78463
78474
|
workflows: [],
|
|
78464
78475
|
secrets_store_secrets: [],
|
|
78476
|
+
artifacts: [],
|
|
78465
78477
|
services: [],
|
|
78466
78478
|
analytics_engine_datasets: [],
|
|
78467
78479
|
ai: void 0,
|
|
@@ -83060,7 +83072,7 @@ var friendlyBindingNames = {
|
|
|
83060
83072
|
services: "Worker",
|
|
83061
83073
|
analytics_engine_datasets: "Analytics Engine Dataset",
|
|
83062
83074
|
text_blobs: "Text Blob",
|
|
83063
|
-
browser: "Browser",
|
|
83075
|
+
browser: "Browser Run",
|
|
83064
83076
|
ai: "AI",
|
|
83065
83077
|
images: "Images",
|
|
83066
83078
|
stream: "Stream",
|
|
@@ -83074,6 +83086,7 @@ var friendlyBindingNames = {
|
|
|
83074
83086
|
workflows: "Workflow",
|
|
83075
83087
|
pipelines: "Pipeline",
|
|
83076
83088
|
secrets_store_secrets: "Secrets Store Secret",
|
|
83089
|
+
artifacts: "Artifacts",
|
|
83077
83090
|
ratelimits: "Rate Limit",
|
|
83078
83091
|
assets: "Assets",
|
|
83079
83092
|
unsafe_hello_world: "Hello World",
|
|
@@ -83091,7 +83104,7 @@ var bindingTypeFriendlyNames = {
|
|
|
83091
83104
|
send_email: "Send Email",
|
|
83092
83105
|
wasm_module: "Wasm Module",
|
|
83093
83106
|
text_blob: "Text Blob",
|
|
83094
|
-
browser: "Browser",
|
|
83107
|
+
browser: "Browser Run",
|
|
83095
83108
|
ai: "AI",
|
|
83096
83109
|
images: "Images",
|
|
83097
83110
|
stream: "Stream",
|
|
@@ -83113,6 +83126,7 @@ var bindingTypeFriendlyNames = {
|
|
|
83113
83126
|
mtls_certificate: "mTLS Certificate",
|
|
83114
83127
|
pipeline: "Pipeline",
|
|
83115
83128
|
secrets_store_secret: "Secrets Store Secret",
|
|
83129
|
+
artifacts: "Artifacts",
|
|
83116
83130
|
logfwdr: "logfwdr",
|
|
83117
83131
|
unsafe_hello_world: "Hello World",
|
|
83118
83132
|
flagship: "Flagship",
|
|
@@ -84430,6 +84444,16 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
|
|
|
84430
84444
|
validateBindingArray(envName, validateSecretsStoreSecretBinding),
|
|
84431
84445
|
[]
|
|
84432
84446
|
),
|
|
84447
|
+
artifacts: notInheritable(
|
|
84448
|
+
diagnostics,
|
|
84449
|
+
topLevelEnv,
|
|
84450
|
+
rawConfig,
|
|
84451
|
+
rawEnv,
|
|
84452
|
+
envName,
|
|
84453
|
+
"artifacts",
|
|
84454
|
+
validateBindingArray(envName, validateArtifactsBinding),
|
|
84455
|
+
[]
|
|
84456
|
+
),
|
|
84433
84457
|
unsafe_hello_world: notInheritable(
|
|
84434
84458
|
diagnostics,
|
|
84435
84459
|
topLevelEnv,
|
|
@@ -85327,7 +85351,8 @@ var validateUnsafeBinding = /* @__PURE__ */ __name((diagnostics, field, value) =
|
|
|
85327
85351
|
"flagship",
|
|
85328
85352
|
"vpc_network",
|
|
85329
85353
|
"stream",
|
|
85330
|
-
"media"
|
|
85354
|
+
"media",
|
|
85355
|
+
"artifacts"
|
|
85331
85356
|
];
|
|
85332
85357
|
if (safeBindings.includes(value.type)) {
|
|
85333
85358
|
diagnostics.warnings.push(
|
|
@@ -85585,6 +85610,11 @@ function validateContainerApp(envName, topLevelName, configPath) {
|
|
|
85585
85610
|
`"containers.durable_objects" is deprecated. Use the "class_name" field instead.`
|
|
85586
85611
|
);
|
|
85587
85612
|
}
|
|
85613
|
+
if ("wrangler_ssh" in containerAppOptional) {
|
|
85614
|
+
diagnostics.warnings.push(
|
|
85615
|
+
`"containers.wrangler_ssh" is deprecated. Use "containers.ssh" instead.`
|
|
85616
|
+
);
|
|
85617
|
+
}
|
|
85588
85618
|
if ("unsafe" in containerAppOptional) {
|
|
85589
85619
|
if (containerAppOptional.unsafe && typeof containerAppOptional.unsafe !== "object" || Array.isArray(containerAppOptional.unsafe)) {
|
|
85590
85620
|
diagnostics.errors.push(
|
|
@@ -85608,6 +85638,7 @@ function validateContainerApp(envName, topLevelName, configPath) {
|
|
|
85608
85638
|
"class_name",
|
|
85609
85639
|
"scheduling_policy",
|
|
85610
85640
|
"instance_type",
|
|
85641
|
+
"ssh",
|
|
85611
85642
|
"wrangler_ssh",
|
|
85612
85643
|
"authorized_keys",
|
|
85613
85644
|
"trusted_user_ca_keys",
|
|
@@ -85629,23 +85660,28 @@ function validateContainerApp(envName, topLevelName, configPath) {
|
|
|
85629
85660
|
["image", "secrets", "labels", "disk", "vcpu", "memory_mib"]
|
|
85630
85661
|
);
|
|
85631
85662
|
}
|
|
85632
|
-
|
|
85633
|
-
|
|
85634
|
-
|
|
85635
|
-
|
|
85636
|
-
|
|
85637
|
-
|
|
85663
|
+
let sshField;
|
|
85664
|
+
let sshConfig;
|
|
85665
|
+
if ("ssh" in containerAppOptional) {
|
|
85666
|
+
sshField = "ssh";
|
|
85667
|
+
sshConfig = containerAppOptional.ssh;
|
|
85668
|
+
containerAppOptional.wrangler_ssh = containerAppOptional.ssh;
|
|
85669
|
+
delete containerAppOptional.ssh;
|
|
85670
|
+
} else if ("wrangler_ssh" in containerAppOptional) {
|
|
85671
|
+
sshField = "wrangler_ssh";
|
|
85672
|
+
sshConfig = containerAppOptional.wrangler_ssh;
|
|
85673
|
+
}
|
|
85674
|
+
if (sshField !== void 0) {
|
|
85675
|
+
const sshConfigObject = typeof sshConfig === "object" && sshConfig !== null ? sshConfig : {};
|
|
85676
|
+
if (!isRequiredProperty(sshConfigObject, "enabled", "boolean")) {
|
|
85638
85677
|
diagnostics.errors.push(
|
|
85639
|
-
`${field}.
|
|
85678
|
+
`${field}.${sshField}.enabled must be a boolean`
|
|
85640
85679
|
);
|
|
85641
85680
|
}
|
|
85642
|
-
|
|
85643
|
-
|
|
85644
|
-
"port",
|
|
85645
|
-
"number"
|
|
85646
|
-
) || containerAppOptional.wrangler_ssh.port < 1 || containerAppOptional.wrangler_ssh.port > 65535) {
|
|
85681
|
+
const sshPort = "port" in sshConfigObject ? sshConfigObject.port : void 0;
|
|
85682
|
+
if (!isOptionalProperty(sshConfigObject, "port", "number") || typeof sshPort === "number" && (sshPort < 1 || sshPort > 65535)) {
|
|
85647
85683
|
diagnostics.errors.push(
|
|
85648
|
-
`${field}.
|
|
85684
|
+
`${field}.${sshField}.port must be a number between 1 and 65535 inclusive`
|
|
85649
85685
|
);
|
|
85650
85686
|
}
|
|
85651
85687
|
}
|
|
@@ -85721,6 +85757,43 @@ function validateContainerApp(envName, topLevelName, configPath) {
|
|
|
85721
85757
|
constraints.tiers,
|
|
85722
85758
|
"number"
|
|
85723
85759
|
);
|
|
85760
|
+
validateOptionalProperty(
|
|
85761
|
+
diagnostics,
|
|
85762
|
+
`${field}.constraints`,
|
|
85763
|
+
"jurisdiction",
|
|
85764
|
+
constraints.jurisdiction,
|
|
85765
|
+
"string"
|
|
85766
|
+
);
|
|
85767
|
+
if (constraints.jurisdiction && !["eu", "fedramp"].includes(constraints.jurisdiction)) {
|
|
85768
|
+
diagnostics.errors.push(
|
|
85769
|
+
`${field}.constraints.jurisdiction must be one of: "eu", "fedramp"`
|
|
85770
|
+
);
|
|
85771
|
+
}
|
|
85772
|
+
if (validateOptionalTypedArray(
|
|
85773
|
+
diagnostics,
|
|
85774
|
+
`${field}.constraints.regions`,
|
|
85775
|
+
constraints.regions,
|
|
85776
|
+
"string"
|
|
85777
|
+
) && constraints.regions && Array.isArray(constraints.regions)) {
|
|
85778
|
+
const validRegions = [
|
|
85779
|
+
"ENAM",
|
|
85780
|
+
"WNAM",
|
|
85781
|
+
"EEUR",
|
|
85782
|
+
"WEUR",
|
|
85783
|
+
"APAC",
|
|
85784
|
+
"SAM",
|
|
85785
|
+
"ME",
|
|
85786
|
+
"OC",
|
|
85787
|
+
"AFR"
|
|
85788
|
+
];
|
|
85789
|
+
for (const region of constraints.regions) {
|
|
85790
|
+
if (typeof region === "string" && !validRegions.includes(region.toUpperCase())) {
|
|
85791
|
+
diagnostics.errors.push(
|
|
85792
|
+
`${field}.constraints.regions contains invalid region "${region}". Valid regions are: ${validRegions.join(", ")}`
|
|
85793
|
+
);
|
|
85794
|
+
}
|
|
85795
|
+
}
|
|
85796
|
+
}
|
|
85724
85797
|
}
|
|
85725
85798
|
if (typeof containerAppOptional.instance_type === "string") {
|
|
85726
85799
|
validateOptionalProperty(
|
|
@@ -86731,6 +86804,40 @@ var validateSecretsStoreSecretBinding = /* @__PURE__ */ __name((diagnostics, fie
|
|
|
86731
86804
|
]);
|
|
86732
86805
|
return isValid2;
|
|
86733
86806
|
}, "validateSecretsStoreSecretBinding");
|
|
86807
|
+
var validateArtifactsBinding = /* @__PURE__ */ __name((diagnostics, field, value) => {
|
|
86808
|
+
if (typeof value !== "object" || value === null) {
|
|
86809
|
+
diagnostics.errors.push(
|
|
86810
|
+
`"artifacts" bindings should be objects, but got ${JSON.stringify(value)}`
|
|
86811
|
+
);
|
|
86812
|
+
return false;
|
|
86813
|
+
}
|
|
86814
|
+
let isValid2 = true;
|
|
86815
|
+
if (!isRequiredProperty(value, "binding", "string")) {
|
|
86816
|
+
diagnostics.errors.push(
|
|
86817
|
+
`"${field}" bindings must have a string "binding" field but got ${JSON.stringify(
|
|
86818
|
+
value
|
|
86819
|
+
)}.`
|
|
86820
|
+
);
|
|
86821
|
+
isValid2 = false;
|
|
86822
|
+
}
|
|
86823
|
+
if (!isRequiredProperty(value, "namespace", "string")) {
|
|
86824
|
+
diagnostics.errors.push(
|
|
86825
|
+
`"${field}" bindings must have a string "namespace" field but got ${JSON.stringify(
|
|
86826
|
+
value
|
|
86827
|
+
)}.`
|
|
86828
|
+
);
|
|
86829
|
+
isValid2 = false;
|
|
86830
|
+
}
|
|
86831
|
+
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
|
86832
|
+
"binding",
|
|
86833
|
+
"namespace",
|
|
86834
|
+
"remote"
|
|
86835
|
+
]);
|
|
86836
|
+
if (!isRemoteValid(value, field, diagnostics)) {
|
|
86837
|
+
isValid2 = false;
|
|
86838
|
+
}
|
|
86839
|
+
return isValid2;
|
|
86840
|
+
}, "validateArtifactsBinding");
|
|
86734
86841
|
var validateHelloWorldBinding = /* @__PURE__ */ __name((diagnostics, field, value) => {
|
|
86735
86842
|
if (typeof value !== "object" || value === null) {
|
|
86736
86843
|
diagnostics.errors.push(
|
|
@@ -86952,6 +87059,7 @@ var validatePreviewsConfig = /* @__PURE__ */ __name((envName) => (diagnostics, f
|
|
|
86952
87059
|
"media",
|
|
86953
87060
|
"pipelines",
|
|
86954
87061
|
"secrets_store_secrets",
|
|
87062
|
+
"artifacts",
|
|
86955
87063
|
"unsafe_hello_world",
|
|
86956
87064
|
"worker_loaders",
|
|
86957
87065
|
"ratelimits",
|
|
@@ -87121,6 +87229,12 @@ var validatePreviewsConfig = /* @__PURE__ */ __name((envName) => (diagnostics, f
|
|
|
87121
87229
|
previews.secrets_store_secrets,
|
|
87122
87230
|
void 0
|
|
87123
87231
|
) && isValid2;
|
|
87232
|
+
isValid2 = validateBindingArray(envName, validateArtifactsBinding)(
|
|
87233
|
+
diagnostics,
|
|
87234
|
+
`${field}.artifacts`,
|
|
87235
|
+
previews.artifacts,
|
|
87236
|
+
void 0
|
|
87237
|
+
) && isValid2;
|
|
87124
87238
|
isValid2 = validateBindingArray(envName, validateHelloWorldBinding)(
|
|
87125
87239
|
diagnostics,
|
|
87126
87240
|
`${field}.unsafe_hello_world`,
|
|
@@ -94543,7 +94657,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
94543
94657
|
var yargs_default = Yargs;
|
|
94544
94658
|
|
|
94545
94659
|
// package.json
|
|
94546
|
-
var version = "2.67.
|
|
94660
|
+
var version = "2.67.1";
|
|
94547
94661
|
|
|
94548
94662
|
// src/metrics.ts
|
|
94549
94663
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -96769,23 +96883,23 @@ var package_default = {
|
|
|
96769
96883
|
name: "frameworks_clis_info",
|
|
96770
96884
|
dependencies: {
|
|
96771
96885
|
"@angular/create": "21.2.6",
|
|
96772
|
-
"@tanstack/create-start": "0.59.
|
|
96773
|
-
"create-analog": "2.4.
|
|
96886
|
+
"@tanstack/create-start": "0.59.21",
|
|
96887
|
+
"create-analog": "2.4.8",
|
|
96774
96888
|
"create-astro": "5.0.5",
|
|
96775
96889
|
"create-docusaurus": "3.10.0",
|
|
96776
96890
|
"create-hono": "0.19.4",
|
|
96777
|
-
"create-next-app": "16.2.
|
|
96891
|
+
"create-next-app": "16.2.4",
|
|
96778
96892
|
"create-qwik": "1.19.2",
|
|
96779
|
-
"create-react-router": "7.14.
|
|
96893
|
+
"create-react-router": "7.14.1",
|
|
96780
96894
|
"create-rwsdk": "3.1.3",
|
|
96781
96895
|
"create-solid": "0.7.0",
|
|
96782
|
-
"create-vike": "0.0.
|
|
96896
|
+
"create-vike": "0.0.622",
|
|
96783
96897
|
"create-vite": "9.0.4",
|
|
96784
96898
|
"create-vue": "3.22.2",
|
|
96785
96899
|
"create-waku": "0.12.5-1.0.0-alpha.7-0",
|
|
96786
96900
|
gatsby: "5.16.1",
|
|
96787
96901
|
nuxi: "3.34.0",
|
|
96788
|
-
sv: "0.12.
|
|
96902
|
+
sv: "0.12.5"
|
|
96789
96903
|
},
|
|
96790
96904
|
info: [
|
|
96791
96905
|
"This package.json is only used to keep track of the frameworks cli dependencies",
|
|
@@ -99243,7 +99357,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
|
|
|
99243
99357
|
var import_node_assert6 = __toESM(require("node:assert"));
|
|
99244
99358
|
|
|
99245
99359
|
// ../wrangler/package.json
|
|
99246
|
-
var version2 = "4.
|
|
99360
|
+
var version2 = "4.84.0";
|
|
99247
99361
|
|
|
99248
99362
|
// src/git.ts
|
|
99249
99363
|
var offerGit = async (ctx) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.67.
|
|
3
|
+
"version": "2.67.1",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@babel/parser": "^7.21.3",
|
|
32
32
|
"@babel/types": "^7.21.4",
|
|
33
33
|
"@clack/prompts": "^0.6.3",
|
|
34
|
-
"@cloudflare/workers-types": "^4.
|
|
34
|
+
"@cloudflare/workers-types": "^4.20260420.1",
|
|
35
35
|
"@types/command-exists": "^1.2.0",
|
|
36
36
|
"@types/cross-spawn": "^6.0.2",
|
|
37
37
|
"@types/deepmerge": "^2.2.0",
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
"execa": "^7.1.1",
|
|
54
54
|
"exit-hook": "2.2.1",
|
|
55
55
|
"get-port": "^7.1.0",
|
|
56
|
-
"glob": "^10.5.0",
|
|
57
56
|
"haikunator": "^2.1.2",
|
|
58
57
|
"indent-string": "^5.0.0",
|
|
59
58
|
"jsonc-parser": "^3.2.0",
|
|
@@ -62,6 +61,7 @@
|
|
|
62
61
|
"recast": "^0.23.11",
|
|
63
62
|
"semver": "^7.7.1",
|
|
64
63
|
"smol-toml": "^1.5.2",
|
|
64
|
+
"tinyglobby": "^0.2.12",
|
|
65
65
|
"tree-kill": "^1.2.2",
|
|
66
66
|
"typescript": "~5.8.3",
|
|
67
67
|
"undici": "7.24.8",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"@cloudflare/cli": "1.4.0",
|
|
76
76
|
"@cloudflare/codemod": "1.1.0",
|
|
77
77
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
78
|
-
"@cloudflare/vite-plugin": "1.
|
|
78
|
+
"@cloudflare/vite-plugin": "1.33.0",
|
|
79
79
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
80
|
-
"@cloudflare/workers-utils": "0.
|
|
81
|
-
"wrangler": "4.
|
|
80
|
+
"@cloudflare/workers-utils": "0.17.0",
|
|
81
|
+
"wrangler": "4.84.0"
|
|
82
82
|
},
|
|
83
83
|
"engines": {
|
|
84
84
|
"node": ">=20.0.0"
|