wrangler 4.33.2 → 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 +49 -2
- package/package.json +12 -12
- package/templates/startDevWorker/InspectorProxyWorker.ts +1 -1
- package/wrangler-dist/InspectorProxyWorker.js +6 -2
- package/wrangler-dist/cli.d.ts +40 -1
- package/wrangler-dist/cli.js +1160 -1019
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
@@ -61,7 +61,7 @@
|
|
61
61
|
"preview_urls": {
|
62
62
|
"type": "boolean",
|
63
63
|
"description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
|
64
|
-
"default":
|
64
|
+
"default": false
|
65
65
|
},
|
66
66
|
"routes": {
|
67
67
|
"type": "array",
|
@@ -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": [
|
@@ -1063,7 +1067,7 @@
|
|
1063
1067
|
"preview_urls": {
|
1064
1068
|
"type": "boolean",
|
1065
1069
|
"description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
|
1066
|
-
"default":
|
1070
|
+
"default": false
|
1067
1071
|
},
|
1068
1072
|
"routes": {
|
1069
1073
|
"type": "array",
|
@@ -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.
|
144
|
-
"@cloudflare/workers-
|
145
|
-
"@cloudflare/workers-
|
143
|
+
"@cloudflare/pages-shared": "^0.13.69",
|
144
|
+
"@cloudflare/workers-shared": "0.18.8",
|
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": {
|
@@ -172,7 +172,7 @@
|
|
172
172
|
"clean": "rimraf wrangler-dist miniflare-dist emitted-types",
|
173
173
|
"dev": "pnpm run clean && concurrently -c black,blue --kill-others-on-fail false \"pnpm tsup --watch src --watch ../containers-shared/src\" \"pnpm run check:type --watch --preserveWatchOutput\"",
|
174
174
|
"generate-json-schema": "node -r esbuild-register scripts/generate-json-schema.ts",
|
175
|
-
"start": "pnpm run
|
175
|
+
"start": "pnpm run build && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js",
|
176
176
|
"test": "dotenv -- pnpm run assert-git-version && dotenv -- vitest",
|
177
177
|
"test:ci": "pnpm run test run",
|
178
178
|
"test:debug": "pnpm run test --silent=false --verbose=true",
|
@@ -8,12 +8,12 @@ import {
|
|
8
8
|
serialiseError,
|
9
9
|
} from "../../src/api/startDevWorker/events";
|
10
10
|
import {
|
11
|
-
assertNever,
|
12
11
|
createDeferred,
|
13
12
|
DeferredPromise,
|
14
13
|
MaybePromise,
|
15
14
|
urlFromParts,
|
16
15
|
} from "../../src/api/startDevWorker/utils";
|
16
|
+
import { assertNever } from "../../src/utils/assert-never";
|
17
17
|
import type {
|
18
18
|
InspectorProxyWorkerIncomingWebSocketMessage,
|
19
19
|
InspectorProxyWorkerOutgoingRequestBody,
|
@@ -17,6 +17,12 @@ function serialiseError(e) {
|
|
17
17
|
|
18
18
|
// src/api/startDevWorker/utils.ts
|
19
19
|
import assert from "node:assert";
|
20
|
+
|
21
|
+
// src/utils/assert-never.ts
|
22
|
+
function assertNever(_value) {
|
23
|
+
}
|
24
|
+
|
25
|
+
// src/api/startDevWorker/utils.ts
|
20
26
|
function createDeferred(previousDeferred) {
|
21
27
|
let resolve, reject;
|
22
28
|
const newPromise = new Promise((_resolve, _reject) => {
|
@@ -32,8 +38,6 @@ function createDeferred(previousDeferred) {
|
|
32
38
|
reject
|
33
39
|
};
|
34
40
|
}
|
35
|
-
function assertNever(_value) {
|
36
|
-
}
|
37
41
|
function urlFromParts(parts, base = "http://localhost") {
|
38
42
|
const url = new URL(base);
|
39
43
|
Object.assign(url, parts);
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -142,6 +142,14 @@ type ContainerApp = {
|
|
142
142
|
cities?: string[];
|
143
143
|
tier?: number;
|
144
144
|
};
|
145
|
+
/**
|
146
|
+
* Scheduling affinities
|
147
|
+
* @hidden
|
148
|
+
*/
|
149
|
+
affinities?: {
|
150
|
+
colocation?: "datacenter";
|
151
|
+
hardware_generation?: "highest-overall-performance";
|
152
|
+
};
|
145
153
|
/**
|
146
154
|
* @deprecated use the `class_name` field instead.
|
147
155
|
* @hidden
|
@@ -286,7 +294,7 @@ interface EnvironmentInheritable {
|
|
286
294
|
* Whether we use <version>-<name>.<subdomain>.workers.dev to
|
287
295
|
* serve Preview URLs for your Worker.
|
288
296
|
*
|
289
|
-
* @default
|
297
|
+
* @default false
|
290
298
|
* @inheritable
|
291
299
|
*/
|
292
300
|
preview_urls: boolean | undefined;
|
@@ -632,6 +640,8 @@ interface EnvironmentNonInheritable {
|
|
632
640
|
destination_address?: string;
|
633
641
|
/** If this binding should be restricted to a set of verified addresses */
|
634
642
|
allowed_destination_addresses?: string[];
|
643
|
+
/** Whether the binding should be remote or not (only available under `--x-remote-bindings`) */
|
644
|
+
experimental_remote?: boolean;
|
635
645
|
}[];
|
636
646
|
/**
|
637
647
|
* Specifies Queues that are bound to this Worker environment.
|
@@ -1076,6 +1086,35 @@ interface Observability {
|
|
1076
1086
|
head_sampling_rate?: number;
|
1077
1087
|
/** Set to false to disable invocation logs */
|
1078
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[];
|
1079
1118
|
};
|
1080
1119
|
}
|
1081
1120
|
type DockerConfiguration = {
|