wrangler 4.34.0 → 4.35.0
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/config-schema.json +47 -0
- package/package.json +9 -9
- package/wrangler-dist/cli.d.ts +31 -0
- package/wrangler-dist/cli.js +72 -9
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
@@ -357,6 +357,10 @@
|
|
357
357
|
"type": "string"
|
358
358
|
},
|
359
359
|
"description": "If this binding should be restricted to a set of verified addresses"
|
360
|
+
},
|
361
|
+
"experimental_remote": {
|
362
|
+
"type": "boolean",
|
363
|
+
"description": "Whether the binding should be remote or not (only available under `--x-remote-bindings`)"
|
360
364
|
}
|
361
365
|
},
|
362
366
|
"required": [
|
@@ -1359,6 +1363,10 @@
|
|
1359
1363
|
"type": "string"
|
1360
1364
|
},
|
1361
1365
|
"description": "If this binding should be restricted to a set of verified addresses"
|
1366
|
+
},
|
1367
|
+
"experimental_remote": {
|
1368
|
+
"type": "boolean",
|
1369
|
+
"description": "Whether the binding should be remote or not (only available under `--x-remote-bindings`)"
|
1362
1370
|
}
|
1363
1371
|
},
|
1364
1372
|
"required": [
|
@@ -2181,6 +2189,45 @@
|
|
2181
2189
|
"invocation_logs": {
|
2182
2190
|
"type": "boolean",
|
2183
2191
|
"description": "Set to false to disable invocation logs"
|
2192
|
+
},
|
2193
|
+
"persist": {
|
2194
|
+
"type": "boolean",
|
2195
|
+
"description": "If logs should be persisted to the Cloudflare observability platform where they can be queried in the dashboard.",
|
2196
|
+
"default": true
|
2197
|
+
},
|
2198
|
+
"destinations": {
|
2199
|
+
"type": "array",
|
2200
|
+
"items": {
|
2201
|
+
"type": "string"
|
2202
|
+
},
|
2203
|
+
"description": "What destinations logs emitted from the Worker should be sent to.",
|
2204
|
+
"default": []
|
2205
|
+
}
|
2206
|
+
},
|
2207
|
+
"additionalProperties": false
|
2208
|
+
},
|
2209
|
+
"traces": {
|
2210
|
+
"type": "object",
|
2211
|
+
"properties": {
|
2212
|
+
"enabled": {
|
2213
|
+
"type": "boolean"
|
2214
|
+
},
|
2215
|
+
"head_sampling_rate": {
|
2216
|
+
"type": "number",
|
2217
|
+
"description": "The sampling rate"
|
2218
|
+
},
|
2219
|
+
"persist": {
|
2220
|
+
"type": "boolean",
|
2221
|
+
"description": "If traces should be persisted to the Cloudflare observability platform where they can be queried in the dashboard.",
|
2222
|
+
"default": true
|
2223
|
+
},
|
2224
|
+
"destinations": {
|
2225
|
+
"type": "array",
|
2226
|
+
"items": {
|
2227
|
+
"type": "string"
|
2228
|
+
},
|
2229
|
+
"description": "What destinations traces emitted from the Worker should be sent to.",
|
2230
|
+
"default": []
|
2184
2231
|
}
|
2185
2232
|
},
|
2186
2233
|
"additionalProperties": false
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.35.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -53,17 +53,17 @@
|
|
53
53
|
"blake3-wasm": "2.1.5",
|
54
54
|
"esbuild": "0.25.4",
|
55
55
|
"path-to-regexp": "6.3.0",
|
56
|
-
"unenv": "2.0.0-rc.
|
57
|
-
"workerd": "1.
|
56
|
+
"unenv": "2.0.0-rc.21",
|
57
|
+
"workerd": "1.20250906.0",
|
58
58
|
"@cloudflare/kv-asset-handler": "0.4.0",
|
59
|
-
"@cloudflare/unenv-preset": "2.7.
|
60
|
-
"miniflare": "4.
|
59
|
+
"@cloudflare/unenv-preset": "2.7.3",
|
60
|
+
"miniflare": "4.20250906.0"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
64
64
|
"@cloudflare/jsrpc": "link:../../vendor/jsrpc",
|
65
65
|
"@cloudflare/types": "6.18.4",
|
66
|
-
"@cloudflare/workers-types": "^4.
|
66
|
+
"@cloudflare/workers-types": "^4.20250906.0",
|
67
67
|
"@cspotcode/source-map-support": "0.8.1",
|
68
68
|
"@iarna/toml": "^3.0.0",
|
69
69
|
"@sentry/node": "^7.86.0",
|
@@ -137,15 +137,15 @@
|
|
137
137
|
"xdg-app-paths": "^8.3.0",
|
138
138
|
"xxhash-wasm": "^1.0.1",
|
139
139
|
"yargs": "^17.7.2",
|
140
|
-
"@cloudflare/cli": "1.1.1",
|
141
140
|
"@cloudflare/containers-shared": "0.2.10",
|
141
|
+
"@cloudflare/cli": "1.1.2",
|
142
142
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
143
|
-
"@cloudflare/pages-shared": "^0.13.
|
143
|
+
"@cloudflare/pages-shared": "^0.13.69",
|
144
144
|
"@cloudflare/workers-shared": "0.18.8",
|
145
145
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
146
146
|
},
|
147
147
|
"peerDependencies": {
|
148
|
-
"@cloudflare/workers-types": "^4.
|
148
|
+
"@cloudflare/workers-types": "^4.20250906.0"
|
149
149
|
},
|
150
150
|
"peerDependenciesMeta": {
|
151
151
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -640,6 +640,8 @@ interface EnvironmentNonInheritable {
|
|
640
640
|
destination_address?: string;
|
641
641
|
/** If this binding should be restricted to a set of verified addresses */
|
642
642
|
allowed_destination_addresses?: string[];
|
643
|
+
/** Whether the binding should be remote or not (only available under `--x-remote-bindings`) */
|
644
|
+
experimental_remote?: boolean;
|
643
645
|
}[];
|
644
646
|
/**
|
645
647
|
* Specifies Queues that are bound to this Worker environment.
|
@@ -1084,6 +1086,35 @@ interface Observability {
|
|
1084
1086
|
head_sampling_rate?: number;
|
1085
1087
|
/** Set to false to disable invocation logs */
|
1086
1088
|
invocation_logs?: boolean;
|
1089
|
+
/**
|
1090
|
+
* If logs should be persisted to the Cloudflare observability platform where they can be queried in the dashboard.
|
1091
|
+
*
|
1092
|
+
* @default true
|
1093
|
+
*/
|
1094
|
+
persist?: boolean;
|
1095
|
+
/**
|
1096
|
+
* What destinations logs emitted from the Worker should be sent to.
|
1097
|
+
*
|
1098
|
+
* @default []
|
1099
|
+
*/
|
1100
|
+
destinations?: string[];
|
1101
|
+
};
|
1102
|
+
traces?: {
|
1103
|
+
enabled?: boolean;
|
1104
|
+
/** The sampling rate */
|
1105
|
+
head_sampling_rate?: number;
|
1106
|
+
/**
|
1107
|
+
* If traces should be persisted to the Cloudflare observability platform where they can be queried in the dashboard.
|
1108
|
+
*
|
1109
|
+
* @default true
|
1110
|
+
*/
|
1111
|
+
persist?: boolean;
|
1112
|
+
/**
|
1113
|
+
* What destinations traces emitted from the Worker should be sent to.
|
1114
|
+
*
|
1115
|
+
* @default []
|
1116
|
+
*/
|
1117
|
+
destinations?: string[];
|
1087
1118
|
};
|
1088
1119
|
}
|
1089
1120
|
type DockerConfiguration = {
|
package/wrangler-dist/cli.js
CHANGED
@@ -33841,7 +33841,7 @@ var name, version;
|
|
33841
33841
|
var init_package = __esm({
|
33842
33842
|
"package.json"() {
|
33843
33843
|
name = "wrangler";
|
33844
|
-
version = "4.
|
33844
|
+
version = "4.35.0";
|
33845
33845
|
}
|
33846
33846
|
});
|
33847
33847
|
|
@@ -40833,12 +40833,15 @@ var init_interactive = __esm({
|
|
40833
40833
|
const helpText = config.helpText ?? "";
|
40834
40834
|
const format9 = config.format ?? ((val2) => String(val2));
|
40835
40835
|
const defaultValue = config.defaultValue?.toString() ?? "";
|
40836
|
-
const activeRenderer = /* @__PURE__ */ __name((
|
40837
|
-
|
40838
|
-
|
40839
|
-
|
40840
|
-
|
40841
|
-
|
40836
|
+
const activeRenderer = /* @__PURE__ */ __name((props) => {
|
40837
|
+
const { valueWithCursor } = props;
|
40838
|
+
return [
|
40839
|
+
`${blCorner} ${bold(question)} ${dim(helpText)}`,
|
40840
|
+
`${space(2)}${format9(valueWithCursor || dim(defaultValue))}`,
|
40841
|
+
``
|
40842
|
+
// extra line for readability
|
40843
|
+
];
|
40844
|
+
}, "activeRenderer");
|
40842
40845
|
return {
|
40843
40846
|
initial: /* @__PURE__ */ __name(() => [
|
40844
40847
|
`${blCorner} ${bold(question)} ${dim(helpText)}`,
|
@@ -47818,6 +47821,11 @@ ${resolution}`);
|
|
47818
47821
|
key: "logs.enabled",
|
47819
47822
|
value: val2.logs?.enabled,
|
47820
47823
|
type: "boolean"
|
47824
|
+
},
|
47825
|
+
{
|
47826
|
+
key: "traces.enabled",
|
47827
|
+
value: val2.traces?.enabled,
|
47828
|
+
type: "boolean"
|
47821
47829
|
}
|
47822
47830
|
]) && isValid2;
|
47823
47831
|
isValid2 = validateOptionalProperty(
|
@@ -47828,10 +47836,18 @@ ${resolution}`);
|
|
47828
47836
|
"number"
|
47829
47837
|
) && isValid2;
|
47830
47838
|
isValid2 = validateOptionalProperty(diagnostics, field, "logs", val2.logs, "object") && isValid2;
|
47839
|
+
isValid2 = validateOptionalProperty(
|
47840
|
+
diagnostics,
|
47841
|
+
field,
|
47842
|
+
"traces",
|
47843
|
+
val2.traces,
|
47844
|
+
"object"
|
47845
|
+
) && isValid2;
|
47831
47846
|
isValid2 = validateAdditionalProperties(diagnostics, field, Object.keys(val2), [
|
47832
47847
|
"enabled",
|
47833
47848
|
"head_sampling_rate",
|
47834
|
-
"logs"
|
47849
|
+
"logs",
|
47850
|
+
"traces"
|
47835
47851
|
]) && isValid2;
|
47836
47852
|
if (typeof val2.logs === "object") {
|
47837
47853
|
isValid2 = validateOptionalProperty(
|
@@ -47855,12 +47871,47 @@ ${resolution}`);
|
|
47855
47871
|
val2.logs.invocation_logs,
|
47856
47872
|
"boolean"
|
47857
47873
|
) && isValid2;
|
47874
|
+
isValid2 = validateOptionalTypedArray(
|
47875
|
+
diagnostics,
|
47876
|
+
"logs.destinations",
|
47877
|
+
val2.logs?.destinations,
|
47878
|
+
"string"
|
47879
|
+
) && isValid2;
|
47858
47880
|
isValid2 = validateAdditionalProperties(diagnostics, field, Object.keys(val2.logs), [
|
47859
47881
|
"enabled",
|
47860
47882
|
"head_sampling_rate",
|
47861
|
-
"invocation_logs"
|
47883
|
+
"invocation_logs",
|
47884
|
+
"destinations"
|
47862
47885
|
]) && isValid2;
|
47863
47886
|
}
|
47887
|
+
if (typeof val2.traces === "object") {
|
47888
|
+
isValid2 = validateOptionalProperty(
|
47889
|
+
diagnostics,
|
47890
|
+
field,
|
47891
|
+
"traces.enabled",
|
47892
|
+
val2.traces.enabled,
|
47893
|
+
"boolean"
|
47894
|
+
) && isValid2;
|
47895
|
+
isValid2 = validateOptionalProperty(
|
47896
|
+
diagnostics,
|
47897
|
+
field,
|
47898
|
+
"traces.head_sampling_rate",
|
47899
|
+
val2.traces.head_sampling_rate,
|
47900
|
+
"number"
|
47901
|
+
) && isValid2;
|
47902
|
+
isValid2 = validateOptionalTypedArray(
|
47903
|
+
diagnostics,
|
47904
|
+
"traces.destinations",
|
47905
|
+
val2.traces?.destinations,
|
47906
|
+
"string"
|
47907
|
+
) && isValid2;
|
47908
|
+
isValid2 = validateAdditionalProperties(
|
47909
|
+
diagnostics,
|
47910
|
+
field,
|
47911
|
+
Object.keys(val2.traces),
|
47912
|
+
["enabled", "head_sampling_rate", "destinations"]
|
47913
|
+
) && isValid2;
|
47914
|
+
}
|
47864
47915
|
const samplingRate = val2?.head_sampling_rate;
|
47865
47916
|
if (samplingRate && (samplingRate < 0 || samplingRate > 1)) {
|
47866
47917
|
diagnostics.errors.push(
|
@@ -60590,6 +60641,18 @@ function convertConfigBindingsToStartWorkerBindings(configBindings) {
|
|
60590
60641
|
const { queues, ...bindings } = configBindings;
|
60591
60642
|
return convertCfWorkerInitBindingsToBindings({
|
60592
60643
|
...bindings,
|
60644
|
+
kv_namespaces: bindings.kv_namespaces.map((kv) => ({
|
60645
|
+
...kv,
|
60646
|
+
id: kv.preview_id ?? kv.id
|
60647
|
+
})),
|
60648
|
+
d1_databases: bindings.d1_databases.map((d1) => ({
|
60649
|
+
...d1,
|
60650
|
+
database_id: d1.preview_database_id ?? d1.database_id
|
60651
|
+
})),
|
60652
|
+
r2_buckets: bindings.r2_buckets.map((r22) => ({
|
60653
|
+
...r22,
|
60654
|
+
bucket_name: r22.preview_bucket_name ?? r22.bucket_name
|
60655
|
+
})),
|
60593
60656
|
queues: queues.producers?.map((q6) => ({ ...q6, queue_name: q6.queue }))
|
60594
60657
|
});
|
60595
60658
|
}
|