create-cloudflare 2.70.12 → 2.70.13
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 -15
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -94853,6 +94853,7 @@ function date4(params) {
|
|
|
94853
94853
|
}
|
|
94854
94854
|
__name(date4, "date");
|
|
94855
94855
|
config(en_default());
|
|
94856
|
+
var SENSITIVE_STEP_OUTPUT = "output";
|
|
94856
94857
|
var MAX_WORKFLOW_NAME_LENGTH = 64;
|
|
94857
94858
|
var ALLOWED_STRING_ID_PATTERN = "^[a-zA-Z0-9_][a-zA-Z0-9-_]*$";
|
|
94858
94859
|
var ALLOWED_WORKFLOW_INSTANCE_ID_REGEX = new RegExp(
|
|
@@ -94875,7 +94876,8 @@ external_exports.object({
|
|
|
94875
94876
|
limit: external_exports.number().gte(0),
|
|
94876
94877
|
backoff: external_exports.enum(["constant", "linear", "exponential"]).optional()
|
|
94877
94878
|
}).strict().optional(),
|
|
94878
|
-
timeout: external_exports.number().gte(0).or(external_exports.string()).optional()
|
|
94879
|
+
timeout: external_exports.number().gte(0).or(external_exports.string()).optional(),
|
|
94880
|
+
sensitive: external_exports.literal(SENSITIVE_STEP_OUTPUT).optional()
|
|
94879
94881
|
}).strict();
|
|
94880
94882
|
function getBooleanEnvironmentVariableFactory(options) {
|
|
94881
94883
|
return () => {
|
|
@@ -95620,13 +95622,19 @@ function normalizeAndValidateConfig(rawConfig, configPath, userConfigPath, args,
|
|
|
95620
95622
|
rawConfig.dependencies_instrumentation.enabled,
|
|
95621
95623
|
"boolean"
|
|
95622
95624
|
);
|
|
95625
|
+
validateOptionalTypedArray(
|
|
95626
|
+
diagnostics,
|
|
95627
|
+
"dependencies_instrumentation.exclude_packages",
|
|
95628
|
+
rawConfig.dependencies_instrumentation.exclude_packages,
|
|
95629
|
+
"string"
|
|
95630
|
+
);
|
|
95623
95631
|
validateAdditionalProperties(
|
|
95624
95632
|
diagnostics,
|
|
95625
95633
|
"dependencies_instrumentation",
|
|
95626
95634
|
Object.keys(
|
|
95627
95635
|
rawConfig.dependencies_instrumentation
|
|
95628
95636
|
),
|
|
95629
|
-
["enabled"]
|
|
95637
|
+
["enabled", "exclude_packages"]
|
|
95630
95638
|
);
|
|
95631
95639
|
}
|
|
95632
95640
|
}
|
|
@@ -98570,9 +98578,9 @@ var validateQueueBinding = /* @__PURE__ */ __name((diagnostics, field, value) =>
|
|
|
98570
98578
|
);
|
|
98571
98579
|
isValid = false;
|
|
98572
98580
|
}
|
|
98573
|
-
if (!
|
|
98581
|
+
if (!isOptionalProperty(value, "queue", "string") || hasProperty(value, "queue") && value.queue === "") {
|
|
98574
98582
|
diagnostics.errors.push(
|
|
98575
|
-
`"${field}" bindings should have a string "queue" field but got ${JSON.stringify(
|
|
98583
|
+
`"${field}" bindings should optionally have a non-empty string "queue" field but got ${JSON.stringify(
|
|
98576
98584
|
value
|
|
98577
98585
|
)}.`
|
|
98578
98586
|
);
|
|
@@ -99198,9 +99206,9 @@ var validateWorkerNamespaceBinding = /* @__PURE__ */ __name((diagnostics, field,
|
|
|
99198
99206
|
);
|
|
99199
99207
|
isValid = false;
|
|
99200
99208
|
}
|
|
99201
|
-
if (!
|
|
99209
|
+
if (!isOptionalProperty(value, "namespace", "string")) {
|
|
99202
99210
|
diagnostics.errors.push(
|
|
99203
|
-
`"${field}" should have a string "namespace" field but got ${JSON.stringify(
|
|
99211
|
+
`"${field}" should optionally have a string "namespace" field but got ${JSON.stringify(
|
|
99204
99212
|
value
|
|
99205
99213
|
)}.`
|
|
99206
99214
|
);
|
|
@@ -99571,9 +99579,9 @@ var validateFlagshipBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
99571
99579
|
);
|
|
99572
99580
|
isValid = false;
|
|
99573
99581
|
}
|
|
99574
|
-
if (!
|
|
99582
|
+
if (!isOptionalProperty(value, "app_id", "string")) {
|
|
99575
99583
|
diagnostics.errors.push(
|
|
99576
|
-
`"${field}" bindings
|
|
99584
|
+
`"${field}" bindings may have a string "app_id" field but got ${JSON.stringify(
|
|
99577
99585
|
value
|
|
99578
99586
|
)}.`
|
|
99579
99587
|
);
|
|
@@ -100289,7 +100297,7 @@ var validateObservability = /* @__PURE__ */ __name((diagnostics, field, value) =
|
|
|
100289
100297
|
if (value === void 0) {
|
|
100290
100298
|
return true;
|
|
100291
100299
|
}
|
|
100292
|
-
if (typeof value !== "object") {
|
|
100300
|
+
if (typeof value !== "object" || value === null) {
|
|
100293
100301
|
diagnostics.errors.push(
|
|
100294
100302
|
`"${field}" should be an object but got ${JSON.stringify(value)}.`
|
|
100295
100303
|
);
|
|
@@ -109441,7 +109449,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
109441
109449
|
var yargs_default = Yargs;
|
|
109442
109450
|
|
|
109443
109451
|
// package.json
|
|
109444
|
-
var version2 = "2.70.
|
|
109452
|
+
var version2 = "2.70.13";
|
|
109445
109453
|
|
|
109446
109454
|
// src/metrics.ts
|
|
109447
109455
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -111978,10 +111986,29 @@ function mergeObjectProperties(sourceObject, newProperties) {
|
|
|
111978
111986
|
);
|
|
111979
111987
|
return;
|
|
111980
111988
|
}
|
|
111989
|
+
if (existing.type === "ObjectProperty" && existing.value.type === "ArrayExpression" && newProp.value.type === "ArrayExpression") {
|
|
111990
|
+
mergeArrayElements(existing.value, newProp.value);
|
|
111991
|
+
return;
|
|
111992
|
+
}
|
|
111981
111993
|
sourceObject.properties[indexOfExisting] = newProp;
|
|
111982
111994
|
});
|
|
111983
111995
|
}
|
|
111984
111996
|
__name2(mergeObjectProperties, "mergeObjectProperties");
|
|
111997
|
+
function mergeArrayElements(existingArray, newArray) {
|
|
111998
|
+
const existingStringValues = new Set(
|
|
111999
|
+
existingArray.elements.filter((el) => el?.type === "StringLiteral").map((el) => el.value)
|
|
112000
|
+
);
|
|
112001
|
+
newArray.elements.forEach((el) => {
|
|
112002
|
+
if (el?.type === "StringLiteral") {
|
|
112003
|
+
if (existingStringValues.has(el.value)) {
|
|
112004
|
+
return;
|
|
112005
|
+
}
|
|
112006
|
+
existingStringValues.add(el.value);
|
|
112007
|
+
}
|
|
112008
|
+
existingArray.elements.push(el);
|
|
112009
|
+
});
|
|
112010
|
+
}
|
|
112011
|
+
__name2(mergeArrayElements, "mergeArrayElements");
|
|
111985
112012
|
function getPropertyName(newProp) {
|
|
111986
112013
|
return newProp.key.type === "Identifier" ? newProp.key.name : newProp.key.type === "StringLiteral" ? newProp.key.value : null;
|
|
111987
112014
|
}
|
|
@@ -111991,13 +112018,13 @@ __name2(getPropertyName, "getPropertyName");
|
|
|
111991
112018
|
var package_default = {
|
|
111992
112019
|
name: "frameworks_clis_info",
|
|
111993
112020
|
dependencies: {
|
|
111994
|
-
"@angular/create": "22.0.
|
|
112021
|
+
"@angular/create": "22.0.7",
|
|
111995
112022
|
"@tanstack/cli": "0.69.5",
|
|
111996
112023
|
"create-analog": "2.6.3",
|
|
111997
112024
|
"create-astro": "5.2.2",
|
|
111998
|
-
"create-docusaurus": "3.10.
|
|
112025
|
+
"create-docusaurus": "3.10.2",
|
|
111999
112026
|
"create-hono": "0.19.4",
|
|
112000
|
-
"create-next-app": "16.2.
|
|
112027
|
+
"create-next-app": "16.2.11",
|
|
112001
112028
|
"create-qwik": "1.20.0",
|
|
112002
112029
|
"create-react-router": "8.2.0",
|
|
112003
112030
|
"create-rwsdk": "3.1.3",
|
|
@@ -112008,7 +112035,7 @@ var package_default = {
|
|
|
112008
112035
|
"create-waku": "0.12.5-1.0.0-alpha.10-0",
|
|
112009
112036
|
gatsby: "5.16.1",
|
|
112010
112037
|
nuxi: "3.36.1",
|
|
112011
|
-
sv: "0.16.
|
|
112038
|
+
sv: "0.16.3"
|
|
112012
112039
|
},
|
|
112013
112040
|
info: [
|
|
112014
112041
|
"This package.json is only used to keep track of the frameworks cli dependencies",
|
|
@@ -114512,7 +114539,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
|
|
|
114512
114539
|
var import_node_assert6 = __toESM(require("node:assert"));
|
|
114513
114540
|
|
|
114514
114541
|
// ../wrangler/package.json
|
|
114515
|
-
var version3 = "4.
|
|
114542
|
+
var version3 = "4.113.0";
|
|
114516
114543
|
|
|
114517
114544
|
// src/git.ts
|
|
114518
114545
|
var offerGit = async (ctx) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.70.
|
|
3
|
+
"version": "2.70.13",
|
|
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": "^5.
|
|
34
|
+
"@cloudflare/workers-types": "^5.20260721.1",
|
|
35
35
|
"@types/command-exists": "^1.2.0",
|
|
36
36
|
"@types/cross-spawn": "^6.0.2",
|
|
37
37
|
"@types/deepmerge": "^2.2.0",
|
|
@@ -71,13 +71,13 @@
|
|
|
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.1.
|
|
75
|
-
"@cloudflare/codemod": "1.1.0",
|
|
76
|
-
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
77
|
-
"@cloudflare/vite-plugin": "1.45.1",
|
|
74
|
+
"@cloudflare/cli-shared-helpers": "0.1.16",
|
|
78
75
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
79
|
-
"
|
|
80
|
-
"@cloudflare/
|
|
76
|
+
"@cloudflare/vite-plugin": "1.46.0",
|
|
77
|
+
"@cloudflare/codemod": "1.1.0",
|
|
78
|
+
"@cloudflare/workers-utils": "0.28.0",
|
|
79
|
+
"wrangler": "4.113.0",
|
|
80
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
|
83
83
|
"node": ">=22.0.0"
|