wrangler 4.113.0 → 4.115.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
CHANGED
|
@@ -678,6 +678,19 @@
|
|
|
678
678
|
"type": "boolean",
|
|
679
679
|
"description": "Whether the R2 bucket should be remote or not in local development",
|
|
680
680
|
"markdownDescription": "Whether the R2 bucket should be remote or not in local development"
|
|
681
|
+
},
|
|
682
|
+
"local_dev": {
|
|
683
|
+
"type": "object",
|
|
684
|
+
"properties": {
|
|
685
|
+
"experimental_s3_credentials": {
|
|
686
|
+
"$ref": "#/definitions/LocalS3Credentials",
|
|
687
|
+
"description": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible endpoint. When set, the bucket is served at `/cdn-cgi/local/r2/s3/<bucket-name>` during local development. Ignored when the bucket runs remotely.",
|
|
688
|
+
"markdownDescription": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible\nendpoint. When set, the bucket is served at\n`/cdn-cgi/local/r2/s3/<bucket-name>` during local development.\nIgnored when the bucket runs remotely."
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"additionalProperties": false,
|
|
692
|
+
"description": "Settings that only apply to local development",
|
|
693
|
+
"markdownDescription": "Settings that only apply to local development"
|
|
681
694
|
}
|
|
682
695
|
},
|
|
683
696
|
"required": [
|
|
@@ -2420,6 +2433,19 @@
|
|
|
2420
2433
|
"type": "boolean",
|
|
2421
2434
|
"description": "Whether the R2 bucket should be remote or not in local development",
|
|
2422
2435
|
"markdownDescription": "Whether the R2 bucket should be remote or not in local development"
|
|
2436
|
+
},
|
|
2437
|
+
"local_dev": {
|
|
2438
|
+
"type": "object",
|
|
2439
|
+
"properties": {
|
|
2440
|
+
"experimental_s3_credentials": {
|
|
2441
|
+
"$ref": "#/definitions/LocalS3Credentials",
|
|
2442
|
+
"description": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible endpoint. When set, the bucket is served at `/cdn-cgi/local/r2/s3/<bucket-name>` during local development. Ignored when the bucket runs remotely.",
|
|
2443
|
+
"markdownDescription": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible\nendpoint. When set, the bucket is served at\n`/cdn-cgi/local/r2/s3/<bucket-name>` during local development.\nIgnored when the bucket runs remotely."
|
|
2444
|
+
}
|
|
2445
|
+
},
|
|
2446
|
+
"additionalProperties": false,
|
|
2447
|
+
"description": "Settings that only apply to local development",
|
|
2448
|
+
"markdownDescription": "Settings that only apply to local development"
|
|
2423
2449
|
}
|
|
2424
2450
|
},
|
|
2425
2451
|
"required": [
|
|
@@ -3892,16 +3918,16 @@
|
|
|
3892
3918
|
"additionalProperties": false,
|
|
3893
3919
|
"properties": {
|
|
3894
3920
|
"logpush": {
|
|
3895
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3921
|
+
"$ref": "#/definitions/interface-769040647-10754-20876-769040647-0-532202004818536"
|
|
3896
3922
|
},
|
|
3897
3923
|
"observability": {
|
|
3898
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3924
|
+
"$ref": "#/definitions/interface-769040647-10754-20876-769040647-0-532202004818536"
|
|
3899
3925
|
},
|
|
3900
3926
|
"limits": {
|
|
3901
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3927
|
+
"$ref": "#/definitions/interface-769040647-10754-20876-769040647-0-532202004818536"
|
|
3902
3928
|
},
|
|
3903
3929
|
"cache": {
|
|
3904
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3930
|
+
"$ref": "#/definitions/interface-769040647-10754-20876-769040647-0-532202004818536"
|
|
3905
3931
|
},
|
|
3906
3932
|
"define": {
|
|
3907
3933
|
"type": "object",
|
|
@@ -4204,6 +4230,19 @@
|
|
|
4204
4230
|
"type": "boolean",
|
|
4205
4231
|
"description": "Whether the R2 bucket should be remote or not in local development",
|
|
4206
4232
|
"markdownDescription": "Whether the R2 bucket should be remote or not in local development"
|
|
4233
|
+
},
|
|
4234
|
+
"local_dev": {
|
|
4235
|
+
"type": "object",
|
|
4236
|
+
"properties": {
|
|
4237
|
+
"experimental_s3_credentials": {
|
|
4238
|
+
"$ref": "#/definitions/LocalS3Credentials",
|
|
4239
|
+
"description": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible endpoint. When set, the bucket is served at `/cdn-cgi/local/r2/s3/<bucket-name>` during local development. Ignored when the bucket runs remotely.",
|
|
4240
|
+
"markdownDescription": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible\nendpoint. When set, the bucket is served at\n`/cdn-cgi/local/r2/s3/<bucket-name>` during local development.\nIgnored when the bucket runs remotely."
|
|
4241
|
+
}
|
|
4242
|
+
},
|
|
4243
|
+
"additionalProperties": false,
|
|
4244
|
+
"description": "Settings that only apply to local development",
|
|
4245
|
+
"markdownDescription": "Settings that only apply to local development"
|
|
4207
4246
|
}
|
|
4208
4247
|
},
|
|
4209
4248
|
"required": [
|
|
@@ -5160,7 +5199,7 @@
|
|
|
5160
5199
|
"description": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments. Previews are branches of your Worker's main instance used to test features during feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`",
|
|
5161
5200
|
"markdownDescription": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments.\nPreviews are branches of your Worker's main instance used to test features\nduring feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`"
|
|
5162
5201
|
},
|
|
5163
|
-
"interface-769040647-
|
|
5202
|
+
"interface-769040647-10754-20876-769040647-0-532202004818536": {
|
|
5164
5203
|
"type": "object",
|
|
5165
5204
|
"properties": {
|
|
5166
5205
|
"name": {
|
|
@@ -5932,6 +5971,24 @@
|
|
|
5932
5971
|
"description": "Configuration for a container application",
|
|
5933
5972
|
"markdownDescription": "Configuration for a container application"
|
|
5934
5973
|
},
|
|
5974
|
+
"LocalS3Credentials": {
|
|
5975
|
+
"type": "object",
|
|
5976
|
+
"properties": {
|
|
5977
|
+
"accessKeyId": {
|
|
5978
|
+
"type": "string"
|
|
5979
|
+
},
|
|
5980
|
+
"secretAccessKey": {
|
|
5981
|
+
"type": "string"
|
|
5982
|
+
}
|
|
5983
|
+
},
|
|
5984
|
+
"required": [
|
|
5985
|
+
"accessKeyId",
|
|
5986
|
+
"secretAccessKey"
|
|
5987
|
+
],
|
|
5988
|
+
"additionalProperties": false,
|
|
5989
|
+
"description": "AWS SigV4 credentials for miniflare's local S3-compatible endpoint",
|
|
5990
|
+
"markdownDescription": "AWS SigV4 credentials for miniflare's local S3-compatible endpoint"
|
|
5991
|
+
},
|
|
5935
5992
|
"TailConsumer": {
|
|
5936
5993
|
"type": "object",
|
|
5937
5994
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.115.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -66,16 +66,17 @@
|
|
|
66
66
|
"esbuild": "0.28.1",
|
|
67
67
|
"path-to-regexp": "6.3.0",
|
|
68
68
|
"unenv": "2.0.0-rc.24",
|
|
69
|
-
"workerd": "1.
|
|
70
|
-
"@cloudflare/unenv-preset": "2.16.1",
|
|
69
|
+
"workerd": "1.20260722.1",
|
|
71
70
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
72
|
-
"
|
|
71
|
+
"@cloudflare/unenv-preset": "2.16.1",
|
|
72
|
+
"miniflare": "4.20260722.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
76
|
+
"@aws-sdk/s3-request-presigner": "^3.721.0",
|
|
76
77
|
"@bomb.sh/tab": "^0.0.12",
|
|
77
78
|
"@cloudflare/types": "6.18.4",
|
|
78
|
-
"@cloudflare/workers-types": "^5.
|
|
79
|
+
"@cloudflare/workers-types": "^5.20260722.1",
|
|
79
80
|
"@cspotcode/source-map-support": "0.8.1",
|
|
80
81
|
"@netlify/build-info": "^10.5.1",
|
|
81
82
|
"@sentry/node": "^7.86.0",
|
|
@@ -155,23 +156,23 @@
|
|
|
155
156
|
"yaml": "^2.8.1",
|
|
156
157
|
"yargs": "^17.7.2",
|
|
157
158
|
"zod": "4.4.3",
|
|
158
|
-
"@cloudflare/autoconfig": "0.2.
|
|
159
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
159
|
+
"@cloudflare/autoconfig": "0.2.1",
|
|
160
|
+
"@cloudflare/cli-shared-helpers": "0.1.17",
|
|
160
161
|
"@cloudflare/codemod": "1.1.0",
|
|
161
162
|
"@cloudflare/config": "0.3.0",
|
|
162
163
|
"@cloudflare/containers-shared": "0.16.0",
|
|
163
|
-
"@cloudflare/deploy-helpers": "0.6.
|
|
164
|
-
"@cloudflare/
|
|
165
|
-
"@cloudflare/
|
|
166
|
-
"@cloudflare/
|
|
167
|
-
"@cloudflare/workers-auth": "0.5.
|
|
164
|
+
"@cloudflare/deploy-helpers": "0.6.2",
|
|
165
|
+
"@cloudflare/pages-shared": "^0.13.161",
|
|
166
|
+
"@cloudflare/remote-bindings": "0.0.3",
|
|
167
|
+
"@cloudflare/runtime-types": "0.0.6",
|
|
168
|
+
"@cloudflare/workers-auth": "0.5.3",
|
|
168
169
|
"@cloudflare/workers-shared": "0.19.9",
|
|
169
|
-
"@cloudflare/workers-utils": "0.28.0",
|
|
170
170
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
171
|
-
"@cloudflare/
|
|
171
|
+
"@cloudflare/workers-utils": "0.29.0",
|
|
172
|
+
"@cloudflare/workflows-shared": "0.12.2"
|
|
172
173
|
},
|
|
173
174
|
"peerDependencies": {
|
|
174
|
-
"@cloudflare/workers-types": "^5.
|
|
175
|
+
"@cloudflare/workers-types": "^5.20260722.1"
|
|
175
176
|
},
|
|
176
177
|
"peerDependenciesMeta": {
|
|
177
178
|
"@cloudflare/workers-types": {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDeferred,
|
|
3
3
|
type DeferredPromise,
|
|
4
|
+
isSameUserWorkerOrigin,
|
|
4
5
|
rewriteUrlInHeaderValue,
|
|
5
6
|
urlFromParts,
|
|
6
7
|
} from "../../src/api/startDevWorker/utils";
|
|
@@ -182,12 +183,13 @@ export class ProxyWorker implements DurableObject {
|
|
|
182
183
|
// we have crossed an async boundary, so proxyData may have changed
|
|
183
184
|
// if proxyData.userWorkerUrl has changed, it means there is a new downstream UserWorker
|
|
184
185
|
// and that this error is stale since it was for a request to the old UserWorker
|
|
185
|
-
//
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
// only report the error if the request still targets the current
|
|
187
|
+
// UserWorker. isSameUserWorkerOrigin compares origin (not href) so a
|
|
188
|
+
// genuine error on a non-root path isn't misread as a reload — see
|
|
189
|
+
// its docs.
|
|
190
|
+
if (
|
|
191
|
+
isSameUserWorkerOrigin(userWorkerUrl, this.proxyData?.userWorkerUrl)
|
|
192
|
+
) {
|
|
191
193
|
void sendMessageToProxyController(this.env, {
|
|
192
194
|
type: "error",
|
|
193
195
|
error: {
|
|
@@ -38,6 +38,10 @@ function rewriteUrlInHeaderValue(value, from, to) {
|
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
+
function isSameUserWorkerOrigin(requestUrl, parts) {
|
|
42
|
+
const currentUserWorkerUrl = parts && urlFromParts(parts);
|
|
43
|
+
return requestUrl.origin === currentUserWorkerUrl?.origin;
|
|
44
|
+
}
|
|
41
45
|
|
|
42
46
|
// templates/startDevWorker/ProxyWorker.ts
|
|
43
47
|
var LIVE_RELOAD_PROTOCOL = "WRANGLER_PROXYWORKER_LIVE_RELOAD_PROTOCOL";
|
|
@@ -145,8 +149,7 @@ var ProxyWorker = class {
|
|
|
145
149
|
}
|
|
146
150
|
deferredResponse.resolve(res);
|
|
147
151
|
}).catch((error) => {
|
|
148
|
-
|
|
149
|
-
if (userWorkerUrl.href === newUserWorkerUrl?.href) {
|
|
152
|
+
if (isSameUserWorkerOrigin(userWorkerUrl, this.proxyData?.userWorkerUrl)) {
|
|
150
153
|
void sendMessageToProxyController(this.env, {
|
|
151
154
|
type: "error",
|
|
152
155
|
error: {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1168,6 +1168,11 @@ type AssetsOptions = {
|
|
|
1168
1168
|
interface Environment extends EnvironmentInheritable, EnvironmentNonInheritable {
|
|
1169
1169
|
}
|
|
1170
1170
|
type SimpleRoute = string;
|
|
1171
|
+
/** AWS SigV4 credentials for miniflare's local S3-compatible endpoint */
|
|
1172
|
+
interface LocalS3Credentials {
|
|
1173
|
+
accessKeyId: string;
|
|
1174
|
+
secretAccessKey: string;
|
|
1175
|
+
}
|
|
1171
1176
|
type ZoneIdRoute = {
|
|
1172
1177
|
pattern: string;
|
|
1173
1178
|
zone_id: string;
|
|
@@ -2090,6 +2095,16 @@ interface EnvironmentNonInheritable {
|
|
|
2090
2095
|
jurisdiction?: string;
|
|
2091
2096
|
/** Whether the R2 bucket should be remote or not in local development */
|
|
2092
2097
|
remote?: boolean;
|
|
2098
|
+
/** Settings that only apply to local development */
|
|
2099
|
+
local_dev?: {
|
|
2100
|
+
/**
|
|
2101
|
+
* EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible
|
|
2102
|
+
* endpoint. When set, the bucket is served at
|
|
2103
|
+
* `/cdn-cgi/local/r2/s3/<bucket-name>` during local development.
|
|
2104
|
+
* Ignored when the bucket runs remotely.
|
|
2105
|
+
*/
|
|
2106
|
+
experimental_s3_credentials?: LocalS3Credentials;
|
|
2107
|
+
};
|
|
2093
2108
|
}[];
|
|
2094
2109
|
/**
|
|
2095
2110
|
* Specifies D1 databases that are bound to this Worker environment.
|