wrangler 4.91.0 → 4.92.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.92.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"esbuild": "0.27.3",
|
|
55
55
|
"path-to-regexp": "6.3.0",
|
|
56
56
|
"unenv": "2.0.0-rc.24",
|
|
57
|
-
"workerd": "1.
|
|
57
|
+
"workerd": "1.20260515.1",
|
|
58
58
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
59
59
|
"@cloudflare/unenv-preset": "2.16.1",
|
|
60
|
-
"miniflare": "4.
|
|
60
|
+
"miniflare": "4.20260515.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
64
64
|
"@bomb.sh/tab": "^0.0.12",
|
|
65
65
|
"@cloudflare/types": "6.18.4",
|
|
66
|
-
"@cloudflare/workers-types": "^4.
|
|
66
|
+
"@cloudflare/workers-types": "^4.20260515.1",
|
|
67
67
|
"@cspotcode/source-map-support": "0.8.1",
|
|
68
68
|
"@netlify/build-info": "^10.5.1",
|
|
69
69
|
"@sentry/node": "^7.86.0",
|
|
@@ -144,17 +144,17 @@
|
|
|
144
144
|
"xxhash-wasm": "^1.0.1",
|
|
145
145
|
"yaml": "^2.8.1",
|
|
146
146
|
"yargs": "^17.7.2",
|
|
147
|
-
"@cloudflare/codemod": "1.1.0",
|
|
148
147
|
"@cloudflare/cli-shared-helpers": "0.1.3",
|
|
148
|
+
"@cloudflare/codemod": "1.1.0",
|
|
149
149
|
"@cloudflare/containers-shared": "0.14.1",
|
|
150
|
-
"@cloudflare/pages-shared": "^0.13.
|
|
150
|
+
"@cloudflare/pages-shared": "^0.13.136",
|
|
151
151
|
"@cloudflare/workers-shared": "0.19.6",
|
|
152
152
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
153
153
|
"@cloudflare/workers-utils": "0.21.0",
|
|
154
154
|
"@cloudflare/workflows-shared": "0.10.0"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
|
-
"@cloudflare/workers-types": "^4.
|
|
157
|
+
"@cloudflare/workers-types": "^4.20260515.1"
|
|
158
158
|
},
|
|
159
159
|
"peerDependenciesMeta": {
|
|
160
160
|
"@cloudflare/workers-types": {
|
|
@@ -129,7 +129,6 @@ export class ProxyWorker implements DurableObject {
|
|
|
129
129
|
proxyData.userWorkerInnerUrlOverrides ?? {},
|
|
130
130
|
request.url
|
|
131
131
|
);
|
|
132
|
-
headers.set("MF-Original-URL", innerUrl.href);
|
|
133
132
|
|
|
134
133
|
// Preserve client `Accept-Encoding`, rather than using Worker's default
|
|
135
134
|
// of `Accept-Encoding: br, gzip`
|
|
@@ -138,6 +137,11 @@ export class ProxyWorker implements DurableObject {
|
|
|
138
137
|
|
|
139
138
|
rewriteUrlRelatedHeaders(headers, outerUrl, innerUrl);
|
|
140
139
|
|
|
140
|
+
// Set after `rewriteUrlRelatedHeaders` so that any occurrences of the
|
|
141
|
+
// outer host inside the URL's query string (e.g. `?redirect_uri=`)
|
|
142
|
+
// are preserved in `request.url` inside the user worker.
|
|
143
|
+
headers.set("MF-Original-URL", innerUrl.href);
|
|
144
|
+
|
|
141
145
|
// merge proxyData headers with the request headers
|
|
142
146
|
for (const [key, value] of Object.entries(proxyData.headers ?? {})) {
|
|
143
147
|
if (value === undefined) continue;
|
|
@@ -99,10 +99,10 @@ var ProxyWorker = class {
|
|
|
99
99
|
proxyData.userWorkerInnerUrlOverrides ?? {},
|
|
100
100
|
request.url
|
|
101
101
|
);
|
|
102
|
-
headers.set("MF-Original-URL", innerUrl.href);
|
|
103
102
|
const encoding = request.cf?.clientAcceptEncoding;
|
|
104
103
|
if (encoding !== void 0) headers.set("Accept-Encoding", encoding);
|
|
105
104
|
rewriteUrlRelatedHeaders(headers, outerUrl, innerUrl);
|
|
105
|
+
headers.set("MF-Original-URL", innerUrl.href);
|
|
106
106
|
for (const [key, value] of Object.entries(proxyData.headers ?? {})) {
|
|
107
107
|
if (value === void 0) continue;
|
|
108
108
|
if (key.toLowerCase() === "cookie") {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -3110,7 +3110,8 @@ type Teams =
|
|
|
3110
3110
|
| "Product: WVPC"
|
|
3111
3111
|
| "Product: Tunnels"
|
|
3112
3112
|
| "Product: Email Service"
|
|
3113
|
-
| "Product: Browser Run"
|
|
3113
|
+
| "Product: Browser Run"
|
|
3114
|
+
| "Product: Artifacts";
|
|
3114
3115
|
|
|
3115
3116
|
/** Convert literal string types like 'foo-bar' to 'FooBar' */
|
|
3116
3117
|
type PascalCase<S extends string> = string extends S ? string : S extends `${infer T}-${infer U}` ? `${Capitalize<T>}${PascalCase<U>}` : Capitalize<S>;
|