create-cloudflare 2.67.4 → 2.68.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 +94 -60
- package/package.json +7 -7
package/dist/cli.js
CHANGED
|
@@ -75006,7 +75006,7 @@ var MetricsRegistry = class {
|
|
|
75006
75006
|
}
|
|
75007
75007
|
};
|
|
75008
75008
|
|
|
75009
|
-
// ../workers-utils/dist/chunk-
|
|
75009
|
+
// ../workers-utils/dist/chunk-XXCQEG76.mjs
|
|
75010
75010
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
75011
75011
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
75012
75012
|
var UserError = class extends Error {
|
|
@@ -75017,7 +75017,7 @@ var UserError = class extends Error {
|
|
|
75017
75017
|
constructor(message, options) {
|
|
75018
75018
|
super(message, options);
|
|
75019
75019
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
75020
|
-
this.telemetryMessage = options?.telemetryMessage ===
|
|
75020
|
+
this.telemetryMessage = typeof options?.telemetryMessage === "string" ? options.telemetryMessage : options?.telemetryMessage ? message : void 0;
|
|
75021
75021
|
}
|
|
75022
75022
|
};
|
|
75023
75023
|
var DeprecationError = class extends UserError {
|
|
@@ -75030,13 +75030,14 @@ ${message}`, options);
|
|
|
75030
75030
|
}
|
|
75031
75031
|
};
|
|
75032
75032
|
var FatalError = class extends UserError {
|
|
75033
|
-
constructor(message, code, options) {
|
|
75034
|
-
super(message, options);
|
|
75035
|
-
this.code = code;
|
|
75036
|
-
}
|
|
75037
75033
|
static {
|
|
75038
75034
|
__name(this, "FatalError");
|
|
75039
75035
|
}
|
|
75036
|
+
code;
|
|
75037
|
+
constructor(message, options) {
|
|
75038
|
+
super(message, options);
|
|
75039
|
+
this.code = options.code;
|
|
75040
|
+
}
|
|
75040
75041
|
};
|
|
75041
75042
|
var CommandLineArgsError = class extends UserError {
|
|
75042
75043
|
static {
|
|
@@ -75044,10 +75045,6 @@ var CommandLineArgsError = class extends UserError {
|
|
|
75044
75045
|
}
|
|
75045
75046
|
};
|
|
75046
75047
|
var JsonFriendlyFatalError = class extends FatalError {
|
|
75047
|
-
constructor(message, code, options) {
|
|
75048
|
-
super(message, code, options);
|
|
75049
|
-
this.code = code;
|
|
75050
|
-
}
|
|
75051
75048
|
static {
|
|
75052
75049
|
__name(this, "JsonFriendlyFatalError");
|
|
75053
75050
|
}
|
|
@@ -75062,16 +75059,11 @@ var MissingConfigError = class extends Error {
|
|
|
75062
75059
|
this.telemetryMessage = `Missing config value for ${key}`;
|
|
75063
75060
|
}
|
|
75064
75061
|
};
|
|
75065
|
-
function createFatalError(message, isJson,
|
|
75062
|
+
function createFatalError(message, isJson, options) {
|
|
75066
75063
|
if (isJson) {
|
|
75067
|
-
return new JsonFriendlyFatalError(
|
|
75068
|
-
JSON.stringify(message),
|
|
75069
|
-
code,
|
|
75070
|
-
telemetryMessage
|
|
75071
|
-
);
|
|
75072
|
-
} else {
|
|
75073
|
-
return new FatalError(`${message}`, code, telemetryMessage);
|
|
75064
|
+
return new JsonFriendlyFatalError(JSON.stringify(message), options);
|
|
75074
75065
|
}
|
|
75066
|
+
return new FatalError(`${message}`, options);
|
|
75075
75067
|
}
|
|
75076
75068
|
__name(createFatalError, "createFatalError");
|
|
75077
75069
|
function createScanner(text, ignoreTrivia = false) {
|
|
@@ -77431,7 +77423,8 @@ function readFileSyncToBuffer(file2) {
|
|
|
77431
77423
|
{
|
|
77432
77424
|
text: message.replace(file2, (0, import_node_path.resolve)(file2))
|
|
77433
77425
|
}
|
|
77434
|
-
]
|
|
77426
|
+
],
|
|
77427
|
+
telemetryMessage: false
|
|
77435
77428
|
});
|
|
77436
77429
|
}
|
|
77437
77430
|
}
|
|
@@ -77751,32 +77744,41 @@ function findRedirectedWranglerConfig(cwd, userConfigPath) {
|
|
|
77751
77744
|
} catch (e) {
|
|
77752
77745
|
throw new UserError(
|
|
77753
77746
|
`Failed to parse the deploy configuration file at ${import_node_path.default.relative(".", deployConfigPath)}`,
|
|
77754
|
-
{ cause: e }
|
|
77747
|
+
{ cause: e, telemetryMessage: false }
|
|
77755
77748
|
);
|
|
77756
77749
|
}
|
|
77757
77750
|
if (!redirectedConfigPath) {
|
|
77758
|
-
throw new UserError(
|
|
77751
|
+
throw new UserError(
|
|
77752
|
+
esm_default`
|
|
77759
77753
|
A deploy configuration file was found at "${import_node_path.default.relative(".", deployConfigPath)}".
|
|
77760
77754
|
But this is not valid - the required "configPath" property was not found.
|
|
77761
77755
|
Instead this file contains:
|
|
77762
77756
|
\`\`\`
|
|
77763
77757
|
${deployConfigFile}
|
|
77764
77758
|
\`\`\`
|
|
77765
|
-
|
|
77759
|
+
`,
|
|
77760
|
+
{ telemetryMessage: false }
|
|
77761
|
+
);
|
|
77766
77762
|
}
|
|
77767
77763
|
if (!(0, import_node_fs.existsSync)(redirectedConfigPath)) {
|
|
77768
|
-
throw new UserError(
|
|
77764
|
+
throw new UserError(
|
|
77765
|
+
esm_default`
|
|
77769
77766
|
There is a deploy configuration at "${import_node_path.default.relative(".", deployConfigPath)}".
|
|
77770
77767
|
But the redirected configuration path it points to, "${import_node_path.default.relative(".", redirectedConfigPath)}", does not exist.
|
|
77771
|
-
|
|
77768
|
+
`,
|
|
77769
|
+
{ telemetryMessage: false }
|
|
77770
|
+
);
|
|
77772
77771
|
}
|
|
77773
77772
|
if (userConfigPath) {
|
|
77774
77773
|
if (import_node_path.default.join(import_node_path.default.dirname(userConfigPath), PATH_TO_DEPLOY_CONFIG) !== deployConfigPath) {
|
|
77775
|
-
throw new UserError(
|
|
77774
|
+
throw new UserError(
|
|
77775
|
+
esm_default`
|
|
77776
77776
|
Found both a user configuration file at "${import_node_path.default.relative(".", userConfigPath)}"
|
|
77777
77777
|
and a deploy configuration file at "${import_node_path.default.relative(".", deployConfigPath)}".
|
|
77778
77778
|
But these do not share the same base path so it is not clear which should be used.
|
|
77779
|
-
|
|
77779
|
+
`,
|
|
77780
|
+
{ telemetryMessage: false }
|
|
77781
|
+
);
|
|
77780
77782
|
}
|
|
77781
77783
|
}
|
|
77782
77784
|
return {
|
|
@@ -82535,7 +82537,8 @@ function getBooleanEnvironmentVariableFactory(options) {
|
|
|
82535
82537
|
throw new UserError(
|
|
82536
82538
|
`Expected ${options.variableName} to be "true" or "false", but got ${JSON.stringify(
|
|
82537
82539
|
process.env[options.variableName]
|
|
82538
|
-
)}
|
|
82540
|
+
)}`,
|
|
82541
|
+
{ telemetryMessage: false }
|
|
82539
82542
|
);
|
|
82540
82543
|
}
|
|
82541
82544
|
};
|
|
@@ -82573,7 +82576,8 @@ __name(getProcessEnv, "getProcessEnv");
|
|
|
82573
82576
|
function assertOneOf(choices, value) {
|
|
82574
82577
|
if (Array.isArray(choices) && !choices.includes(value)) {
|
|
82575
82578
|
throw new UserError(
|
|
82576
|
-
`Expected ${JSON.stringify(value)} to be one of ${JSON.stringify(choices)}
|
|
82579
|
+
`Expected ${JSON.stringify(value)} to be one of ${JSON.stringify(choices)}`,
|
|
82580
|
+
{ telemetryMessage: false }
|
|
82577
82581
|
);
|
|
82578
82582
|
}
|
|
82579
82583
|
}
|
|
@@ -82602,11 +82606,14 @@ var getCloudflareComplianceRegionFromEnv = getEnvironmentVariableFactory({
|
|
|
82602
82606
|
var getCloudflareComplianceRegion = /* @__PURE__ */ __name((complianceConfig) => {
|
|
82603
82607
|
const complianceRegionFromEnv = getCloudflareComplianceRegionFromEnv();
|
|
82604
82608
|
if (complianceRegionFromEnv !== void 0 && complianceConfig?.compliance_region !== void 0 && complianceRegionFromEnv !== complianceConfig.compliance_region) {
|
|
82605
|
-
throw new UserError(
|
|
82609
|
+
throw new UserError(
|
|
82610
|
+
dedent`
|
|
82606
82611
|
The compliance region has been set to different values in two places:
|
|
82607
82612
|
- \`CLOUDFLARE_COMPLIANCE_REGION\` environment variable: \`${complianceRegionFromEnv}\`
|
|
82608
82613
|
- \`compliance_region\` configuration property: \`${complianceConfig.compliance_region}\`
|
|
82609
|
-
|
|
82614
|
+
`,
|
|
82615
|
+
{ telemetryMessage: false }
|
|
82616
|
+
);
|
|
82610
82617
|
}
|
|
82611
82618
|
return complianceRegionFromEnv || complianceConfig?.compliance_region || "public";
|
|
82612
82619
|
}, "getCloudflareComplianceRegion");
|
|
@@ -83440,7 +83447,8 @@ function applyPythonConfig(config49, args) {
|
|
|
83440
83447
|
}
|
|
83441
83448
|
if (!config49.compatibility_flags.includes("python_workers")) {
|
|
83442
83449
|
throw new UserError(
|
|
83443
|
-
"The `python_workers` compatibility flag is required to use Python."
|
|
83450
|
+
"The `python_workers` compatibility flag is required to use Python.",
|
|
83451
|
+
{ telemetryMessage: false }
|
|
83444
83452
|
);
|
|
83445
83453
|
}
|
|
83446
83454
|
}
|
|
@@ -84078,7 +84086,6 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
|
|
|
84078
84086
|
"error"
|
|
84079
84087
|
);
|
|
84080
84088
|
experimental(diagnostics, rawEnv, "unsafe");
|
|
84081
|
-
experimental(diagnostics, rawEnv, "secrets");
|
|
84082
84089
|
const route = normalizeAndValidateRoute(diagnostics, topLevelEnv, rawEnv);
|
|
84083
84090
|
const account_id = inheritableInWranglerEnvironments(
|
|
84084
84091
|
diagnostics,
|
|
@@ -87157,6 +87164,7 @@ var validatePreviewsConfig = /* @__PURE__ */ __name((envName) => (diagnostics, f
|
|
|
87157
87164
|
"secrets_store_secrets",
|
|
87158
87165
|
"artifacts",
|
|
87159
87166
|
"unsafe_hello_world",
|
|
87167
|
+
"flagship",
|
|
87160
87168
|
"worker_loaders",
|
|
87161
87169
|
"ratelimits",
|
|
87162
87170
|
"vpc_services",
|
|
@@ -87337,6 +87345,12 @@ var validatePreviewsConfig = /* @__PURE__ */ __name((envName) => (diagnostics, f
|
|
|
87337
87345
|
previews.unsafe_hello_world,
|
|
87338
87346
|
void 0
|
|
87339
87347
|
) && isValid2;
|
|
87348
|
+
isValid2 = validateBindingArray(envName, validateFlagshipBinding)(
|
|
87349
|
+
diagnostics,
|
|
87350
|
+
`${field}.flagship`,
|
|
87351
|
+
previews.flagship,
|
|
87352
|
+
void 0
|
|
87353
|
+
) && isValid2;
|
|
87340
87354
|
isValid2 = validateBindingArray(envName, validateWorkerLoaderBinding)(
|
|
87341
87355
|
diagnostics,
|
|
87342
87356
|
`${field}.worker_loaders`,
|
|
@@ -87710,7 +87724,8 @@ function isDockerfile(imagePath, configPath) {
|
|
|
87710
87724
|
if (import_node_fs2.default.existsSync(maybeDockerfile)) {
|
|
87711
87725
|
if (isDirectory(maybeDockerfile)) {
|
|
87712
87726
|
throw new UserError(
|
|
87713
|
-
`${imagePath} is a directory, you should specify a path to the Dockerfile
|
|
87727
|
+
`${imagePath} is a directory, you should specify a path to the Dockerfile`,
|
|
87728
|
+
{ telemetryMessage: false }
|
|
87714
87729
|
);
|
|
87715
87730
|
}
|
|
87716
87731
|
return true;
|
|
@@ -87721,19 +87736,23 @@ function isDockerfile(imagePath, configPath) {
|
|
|
87721
87736
|
new URL(`https://${imagePath}`);
|
|
87722
87737
|
} catch (e2) {
|
|
87723
87738
|
if (e2 instanceof Error) {
|
|
87724
|
-
throw new UserError(errorPrefix + e2.message
|
|
87739
|
+
throw new UserError(errorPrefix + e2.message, {
|
|
87740
|
+
telemetryMessage: false
|
|
87741
|
+
});
|
|
87725
87742
|
}
|
|
87726
87743
|
throw e2;
|
|
87727
87744
|
}
|
|
87728
87745
|
const imageParts = imagePath.split("/");
|
|
87729
87746
|
if (!imageParts[imageParts.length - 1]?.includes(":")) {
|
|
87730
87747
|
throw new UserError(
|
|
87731
|
-
errorPrefix + `If this is an image registry path, it needs to include at least a tag ':' (e.g: docker.io/httpd:1)
|
|
87748
|
+
errorPrefix + `If this is an image registry path, it needs to include at least a tag ':' (e.g: docker.io/httpd:1)`,
|
|
87749
|
+
{ telemetryMessage: false }
|
|
87732
87750
|
);
|
|
87733
87751
|
}
|
|
87734
87752
|
if (imagePath.includes("://")) {
|
|
87735
87753
|
throw new UserError(
|
|
87736
|
-
errorPrefix + `Image reference should not include the protocol part (e.g: docker.io/httpd:1, not https://docker.io/httpd:1)
|
|
87754
|
+
errorPrefix + `Image reference should not include the protocol part (e.g: docker.io/httpd:1, not https://docker.io/httpd:1)`,
|
|
87755
|
+
{ telemetryMessage: false }
|
|
87737
87756
|
);
|
|
87738
87757
|
}
|
|
87739
87758
|
return false;
|
|
@@ -87774,8 +87793,11 @@ var supportedPagesConfigFields = [
|
|
|
87774
87793
|
];
|
|
87775
87794
|
function validatePagesConfig(config49, envNames, projectName) {
|
|
87776
87795
|
if (!config49.pages_build_output_dir) {
|
|
87777
|
-
throw new FatalError(
|
|
87778
|
-
|
|
87796
|
+
throw new FatalError(
|
|
87797
|
+
`Attempting to validate Pages configuration file, but "pages_build_output_dir" field was not found.
|
|
87798
|
+
"pages_build_output_dir" is required for Pages projects.`,
|
|
87799
|
+
{ telemetryMessage: false }
|
|
87800
|
+
);
|
|
87779
87801
|
}
|
|
87780
87802
|
const diagnostics = new Diagnostics(
|
|
87781
87803
|
`Running configuration file validation for Pages:`
|
|
@@ -87888,7 +87910,8 @@ function getGoArch() {
|
|
|
87888
87910
|
cloudflared supports: x64 (amd64), arm64, arm
|
|
87889
87911
|
|
|
87890
87912
|
You can manually install cloudflared and set the CLOUDFLARED_PATH environment variable.
|
|
87891
|
-
Download instructions: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads
|
|
87913
|
+
Download instructions: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/`,
|
|
87914
|
+
{ telemetryMessage: "tunnel cloudflared unsupported architecture" }
|
|
87892
87915
|
);
|
|
87893
87916
|
}
|
|
87894
87917
|
}
|
|
@@ -87908,7 +87931,8 @@ function getGoOS() {
|
|
|
87908
87931
|
cloudflared supports: darwin (macOS), linux, win32 (Windows)
|
|
87909
87932
|
|
|
87910
87933
|
You can manually install cloudflared and set the CLOUDFLARED_PATH environment variable.
|
|
87911
|
-
Download instructions: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads
|
|
87934
|
+
Download instructions: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/`,
|
|
87935
|
+
{ telemetryMessage: "tunnel cloudflared unsupported platform" }
|
|
87912
87936
|
);
|
|
87913
87937
|
}
|
|
87914
87938
|
}
|
|
@@ -87987,7 +88011,8 @@ The update service did not return results for ${goOS}/${goArch},
|
|
|
87987
88011
|
and the fallback query also failed.
|
|
87988
88012
|
|
|
87989
88013
|
You can manually install cloudflared from:
|
|
87990
|
-
https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads
|
|
88014
|
+
https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/`,
|
|
88015
|
+
{ telemetryMessage: "tunnel cloudflared version lookup failed" }
|
|
87991
88016
|
);
|
|
87992
88017
|
}
|
|
87993
88018
|
const version3 = fallback.version;
|
|
@@ -88063,7 +88088,9 @@ You can try:
|
|
|
88063
88088
|
errorMessage += ` 3. Manually installing cloudflared: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/
|
|
88064
88089
|
`;
|
|
88065
88090
|
errorMessage += ` 4. Setting CLOUDFLARED_PATH to point to your cloudflared binary`;
|
|
88066
|
-
throw new UserError(errorMessage
|
|
88091
|
+
throw new UserError(errorMessage, {
|
|
88092
|
+
telemetryMessage: "tunnel cloudflared validation failed"
|
|
88093
|
+
});
|
|
88067
88094
|
}
|
|
88068
88095
|
}
|
|
88069
88096
|
__name(validateBinary, "validateBinary");
|
|
@@ -88183,7 +88210,8 @@ async function downloadCloudflared(versionInfo, binPath, options) {
|
|
|
88183
88210
|
Network error: ${e2 instanceof Error ? e2.message : String(e2)}
|
|
88184
88211
|
|
|
88185
88212
|
Please check your internet connection and try again.
|
|
88186
|
-
If you're behind a proxy, make sure it's configured correctly
|
|
88213
|
+
If you're behind a proxy, make sure it's configured correctly.`,
|
|
88214
|
+
{ telemetryMessage: "tunnel cloudflared download network failed" }
|
|
88187
88215
|
);
|
|
88188
88216
|
}
|
|
88189
88217
|
if (!response.ok) {
|
|
@@ -88193,7 +88221,8 @@ If you're behind a proxy, make sure it's configured correctly.`
|
|
|
88193
88221
|
HTTP ${response.status}: ${response.statusText}
|
|
88194
88222
|
|
|
88195
88223
|
You can manually download cloudflared from:
|
|
88196
|
-
https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads
|
|
88224
|
+
https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/`,
|
|
88225
|
+
{ telemetryMessage: "tunnel cloudflared download response failed" }
|
|
88197
88226
|
);
|
|
88198
88227
|
}
|
|
88199
88228
|
try {
|
|
@@ -88217,7 +88246,8 @@ https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-
|
|
|
88217
88246
|
|
|
88218
88247
|
Error: ${e2 instanceof Error ? e2.message : String(e2)}
|
|
88219
88248
|
|
|
88220
|
-
Please ensure you have write permissions to: ${cacheDir}
|
|
88249
|
+
Please ensure you have write permissions to: ${cacheDir}`,
|
|
88250
|
+
{ telemetryMessage: "tunnel cloudflared save failed" }
|
|
88221
88251
|
);
|
|
88222
88252
|
}
|
|
88223
88253
|
if (process.platform !== "win32") {
|
|
@@ -88237,7 +88267,8 @@ async function downloadAndExtractTarball(response, expectedChecksum, binPath, ca
|
|
|
88237
88267
|
`[cloudflared] SHA256 mismatch for downloaded cloudflared tarball.
|
|
88238
88268
|
|
|
88239
88269
|
Expected: ${expectedChecksum}
|
|
88240
|
-
Actual: ${actualSha256}
|
|
88270
|
+
Actual: ${actualSha256}`,
|
|
88271
|
+
{ telemetryMessage: "tunnel cloudflared tarball checksum mismatch" }
|
|
88241
88272
|
);
|
|
88242
88273
|
}
|
|
88243
88274
|
}
|
|
@@ -88269,7 +88300,8 @@ async function downloadBinary(response, expectedChecksum, binPath) {
|
|
|
88269
88300
|
`[cloudflared] SHA256 mismatch for downloaded cloudflared binary.
|
|
88270
88301
|
|
|
88271
88302
|
Expected: ${expectedChecksum}
|
|
88272
|
-
Actual: ${actualSha256}
|
|
88303
|
+
Actual: ${actualSha256}`,
|
|
88304
|
+
{ telemetryMessage: "tunnel cloudflared binary checksum mismatch" }
|
|
88273
88305
|
);
|
|
88274
88306
|
}
|
|
88275
88307
|
}
|
|
@@ -88284,7 +88316,8 @@ async function getCloudflaredPath(options) {
|
|
|
88284
88316
|
throw new UserError(
|
|
88285
88317
|
`CLOUDFLARED_PATH is set to "${envPath}" but the file does not exist.
|
|
88286
88318
|
|
|
88287
|
-
Please ensure the path points to a valid cloudflared binary
|
|
88319
|
+
Please ensure the path points to a valid cloudflared binary.`,
|
|
88320
|
+
{ telemetryMessage: "tunnel cloudflared env path missing" }
|
|
88288
88321
|
);
|
|
88289
88322
|
}
|
|
88290
88323
|
logger?.debug(`Using cloudflared from CLOUDFLARED_PATH: ${envPath}`);
|
|
@@ -88323,7 +88356,8 @@ Please ensure the path points to a valid cloudflared binary.`
|
|
|
88323
88356
|
You can install it manually from:
|
|
88324
88357
|
https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/
|
|
88325
88358
|
|
|
88326
|
-
Then either add it to your PATH or set CLOUDFLARED_PATH
|
|
88359
|
+
Then either add it to your PATH or set CLOUDFLARED_PATH.`,
|
|
88360
|
+
{ telemetryMessage: "tunnel cloudflared download declined" }
|
|
88327
88361
|
);
|
|
88328
88362
|
}
|
|
88329
88363
|
if ((0, import_node_fs2.existsSync)(binPath)) {
|
|
@@ -88594,7 +88628,7 @@ ${stderrOutput || "(no output)"}
|
|
|
88594
88628
|
The local dev server started at ${origin.href}.
|
|
88595
88629
|
` + (isQuickTunnelRateLimited ? "Cloudflare Quick Tunnel creation was rate limited. Try again in a few minutes, or use a named tunnel if you need more reliable access." : `Check the cloudflared output above for more details, and verify that ${origin.href} is reachable from this machine if this keeps happening.`);
|
|
88596
88630
|
if (isQuickTunnelRateLimited) {
|
|
88597
|
-
return new UserError(errorMessage);
|
|
88631
|
+
return new UserError(errorMessage, { telemetryMessage: false });
|
|
88598
88632
|
}
|
|
88599
88633
|
return new Error(errorMessage);
|
|
88600
88634
|
}
|
|
@@ -88607,7 +88641,7 @@ function checkMacOSVersion(options) {
|
|
|
88607
88641
|
if (process.platform !== "darwin") return;
|
|
88608
88642
|
if (import_ci_info.default.isCI) return;
|
|
88609
88643
|
const macOSVersion = darwinVersionToMacOSVersion(import_node_os3.default.release());
|
|
88610
|
-
if (macOSVersion && isVersionLessThan(macOSVersion, MINIMUM_MACOS_VERSION)) if (options.shouldThrow) throw new UserError(`Unsupported macOS version: The Cloudflare Workers runtime cannot run on the current version of macOS (${macOSVersion}). The minimum requirement is macOS ${MINIMUM_MACOS_VERSION}+. See https://github.com/cloudflare/workerd?tab=readme-ov-file#running-workerd If you cannot upgrade your version of macOS, you could try running in a DevContainer setup with a supported version of Linux (glibc 2.35+ required)
|
|
88644
|
+
if (macOSVersion && isVersionLessThan(macOSVersion, MINIMUM_MACOS_VERSION)) if (options.shouldThrow) throw new UserError(`Unsupported macOS version: The Cloudflare Workers runtime cannot run on the current version of macOS (${macOSVersion}). The minimum requirement is macOS ${MINIMUM_MACOS_VERSION}+. See https://github.com/cloudflare/workerd?tab=readme-ov-file#running-workerd If you cannot upgrade your version of macOS, you could try running in a DevContainer setup with a supported version of Linux (glibc 2.35+ required).`, { telemetryMessage: false });
|
|
88611
88645
|
else console.warn(`\u26A0\uFE0F Warning: Unsupported macOS version detected (${macOSVersion}). The Cloudflare Workers runtime may not work correctly on macOS versions below ${MINIMUM_MACOS_VERSION}. Consider upgrading to macOS ${MINIMUM_MACOS_VERSION}+ or using a DevContainer setup with a supported version of Linux (glibc 2.35+ required).`);
|
|
88612
88646
|
}
|
|
88613
88647
|
function darwinVersionToMacOSVersion(darwinVersion) {
|
|
@@ -95566,7 +95600,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
95566
95600
|
var yargs_default = Yargs;
|
|
95567
95601
|
|
|
95568
95602
|
// package.json
|
|
95569
|
-
var version = "2.
|
|
95603
|
+
var version = "2.68.1";
|
|
95570
95604
|
|
|
95571
95605
|
// src/metrics.ts
|
|
95572
95606
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -97777,11 +97811,11 @@ __name2(getPropertyName, "getPropertyName");
|
|
|
97777
97811
|
var package_default = {
|
|
97778
97812
|
name: "frameworks_clis_info",
|
|
97779
97813
|
dependencies: {
|
|
97780
|
-
"@angular/create": "21.2.
|
|
97781
|
-
"@tanstack/create-start": "0.59.
|
|
97782
|
-
"create-analog": "2.
|
|
97814
|
+
"@angular/create": "21.2.9",
|
|
97815
|
+
"@tanstack/create-start": "0.59.28",
|
|
97816
|
+
"create-analog": "2.5.0",
|
|
97783
97817
|
"create-astro": "5.0.6",
|
|
97784
|
-
"create-docusaurus": "3.10.
|
|
97818
|
+
"create-docusaurus": "3.10.1",
|
|
97785
97819
|
"create-hono": "0.19.4",
|
|
97786
97820
|
"create-next-app": "16.2.4",
|
|
97787
97821
|
"create-qwik": "1.19.2",
|
|
@@ -97791,10 +97825,10 @@ var package_default = {
|
|
|
97791
97825
|
"create-vike": "0.0.622",
|
|
97792
97826
|
"create-vite": "9.0.6",
|
|
97793
97827
|
"create-vue": "3.22.3",
|
|
97794
|
-
"create-waku": "0.12.5-1.0.0-alpha.
|
|
97828
|
+
"create-waku": "0.12.5-1.0.0-alpha.9-0",
|
|
97795
97829
|
gatsby: "5.16.1",
|
|
97796
|
-
nuxi: "3.
|
|
97797
|
-
sv: "0.15.
|
|
97830
|
+
nuxi: "3.35.1",
|
|
97831
|
+
sv: "0.15.2"
|
|
97798
97832
|
},
|
|
97799
97833
|
info: [
|
|
97800
97834
|
"This package.json is only used to keep track of the frameworks cli dependencies",
|
|
@@ -100252,7 +100286,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
|
|
|
100252
100286
|
var import_node_assert6 = __toESM(require("node:assert"));
|
|
100253
100287
|
|
|
100254
100288
|
// ../wrangler/package.json
|
|
100255
|
-
var version2 = "4.
|
|
100289
|
+
var version2 = "4.88.0";
|
|
100256
100290
|
|
|
100257
100291
|
// src/git.ts
|
|
100258
100292
|
var offerGit = async (ctx) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.68.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": "^1.2.0",
|
|
34
|
-
"@cloudflare/workers-types": "^4.
|
|
34
|
+
"@cloudflare/workers-types": "^4.20260504.1",
|
|
35
35
|
"@types/command-exists": "^1.2.0",
|
|
36
36
|
"@types/cross-spawn": "^6.0.2",
|
|
37
37
|
"@types/deepmerge": "^2.2.0",
|
|
@@ -72,16 +72,16 @@
|
|
|
72
72
|
"wrap-ansi": "^9.0.0",
|
|
73
73
|
"xdg-app-paths": "^8.3.0",
|
|
74
74
|
"yargs": "^17.7.2",
|
|
75
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
75
|
+
"@cloudflare/cli-shared-helpers": "0.1.1",
|
|
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.36.0",
|
|
79
79
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
80
|
-
"@cloudflare/workers-utils": "0.
|
|
81
|
-
"wrangler": "4.
|
|
80
|
+
"@cloudflare/workers-utils": "0.19.0",
|
|
81
|
+
"wrangler": "4.88.0"
|
|
82
82
|
},
|
|
83
83
|
"engines": {
|
|
84
|
-
"node": ">=
|
|
84
|
+
"node": ">=22.0.0"
|
|
85
85
|
},
|
|
86
86
|
"volta": {
|
|
87
87
|
"extends": "../../package.json"
|