wrangler 4.90.1 → 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
|
@@ -754,8 +754,11 @@ interface StartDevWorkerInput {
|
|
|
754
754
|
containerEngine?: ContainerEngine$1;
|
|
755
755
|
/** Re-generate your worker types when your Wrangler configuration file changes */
|
|
756
756
|
generateTypes?: boolean;
|
|
757
|
-
/**
|
|
758
|
-
tunnel?:
|
|
757
|
+
/** Tunnel configuration for this dev session. */
|
|
758
|
+
tunnel?: {
|
|
759
|
+
enabled: boolean;
|
|
760
|
+
name?: string;
|
|
761
|
+
};
|
|
759
762
|
};
|
|
760
763
|
legacy?: {
|
|
761
764
|
site?: Hook<Config$1["site"], [Config$1]>;
|
|
@@ -3033,6 +3036,19 @@ type PrintContext = {
|
|
|
3033
3036
|
*/
|
|
3034
3037
|
declare function printBindings(bindings: StartDevWorkerInput["bindings"], tailConsumers?: CfTailConsumer[], streamingTailConsumers?: CfTailConsumer[], containers?: ContainerApp$1[], context?: PrintContext): void;
|
|
3035
3038
|
|
|
3039
|
+
/**
|
|
3040
|
+
* Resolves the named tunnel to hostnames whose ingress rules
|
|
3041
|
+
* target the current local dev origin and the token needed
|
|
3042
|
+
* to start `cloudflared tunnel run`.
|
|
3043
|
+
*/
|
|
3044
|
+
declare function resolveNamedTunnel(name: string, origin: URL, options: {
|
|
3045
|
+
accountId: string | undefined;
|
|
3046
|
+
complianceRegion: Config$1["compliance_region"];
|
|
3047
|
+
}): Promise<{
|
|
3048
|
+
hostnames: string[];
|
|
3049
|
+
token: string;
|
|
3050
|
+
}>;
|
|
3051
|
+
|
|
3036
3052
|
/**
|
|
3037
3053
|
* Split an SQLQuery into an array of statements
|
|
3038
3054
|
*/
|
|
@@ -3094,7 +3110,8 @@ type Teams =
|
|
|
3094
3110
|
| "Product: WVPC"
|
|
3095
3111
|
| "Product: Tunnels"
|
|
3096
3112
|
| "Product: Email Service"
|
|
3097
|
-
| "Product: Browser Run"
|
|
3113
|
+
| "Product: Browser Run"
|
|
3114
|
+
| "Product: Artifacts";
|
|
3098
3115
|
|
|
3099
3116
|
/** Convert literal string types like 'foo-bar' to 'FooBar' */
|
|
3100
3117
|
type PascalCase<S extends string> = string extends S ? string : S extends `${infer T}-${infer U}` ? `${Capitalize<T>}${PascalCase<U>}` : Capitalize<S>;
|
|
@@ -3415,4 +3432,4 @@ interface Unstable_ASSETSBindingsOptions {
|
|
|
3415
3432
|
}
|
|
3416
3433
|
declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request) => Promise<Response$1>;
|
|
3417
3434
|
|
|
3418
|
-
export { type Experimental_GenerateTypesOptions, type Experimental_GenerateTypesResult, type GetPlatformProxyOptions, type PlatformProxy, type RemoteProxySession, type SourcelessWorkerOptions, type StartRemoteProxySessionOptions, type Unstable_ASSETSBindingsOptions, type Config as Unstable_Config, type Unstable_DevOptions, type Unstable_DevWorker, type Unstable_MiniflareWorkerOptions, type RawConfig as Unstable_RawConfig, type RawEnvironment as Unstable_RawEnvironment, Framework as experimental_AutoConfigFramework, generateTypes as experimental_generateTypes, getDetailsForAutoConfig as experimental_getDetailsForAutoConfig, experimental_getWranglerCommands, runAutoConfig as experimental_runAutoConfig, getPlatformProxy, maybeStartOrUpdateRemoteProxySession, startRemoteProxySession, DevEnv as unstable_DevEnv, convertConfigBindingsToStartWorkerBindings as unstable_convertConfigBindingsToStartWorkerBindings, unstable_dev, unstable_generateASSETSBinding, unstable_getDevCompatibilityDate, getDurableObjectClassNameToUseSQLiteMap as unstable_getDurableObjectClassNameToUseSQLiteMap, unstable_getMiniflareWorkerOptions, getVarsForDev as unstable_getVarsForDev, getWorkerNameFromProject as unstable_getWorkerNameFromProject, unstable_pages, printBindings as unstable_printBindings, readConfig as unstable_readConfig, splitSqlQuery as unstable_splitSqlQuery, startWorker as unstable_startWorker };
|
|
3435
|
+
export { type Experimental_GenerateTypesOptions, type Experimental_GenerateTypesResult, type GetPlatformProxyOptions, type PlatformProxy, type RemoteProxySession, type SourcelessWorkerOptions, type StartRemoteProxySessionOptions, type Unstable_ASSETSBindingsOptions, type Config as Unstable_Config, type Unstable_DevOptions, type Unstable_DevWorker, type Unstable_MiniflareWorkerOptions, type RawConfig as Unstable_RawConfig, type RawEnvironment as Unstable_RawEnvironment, Framework as experimental_AutoConfigFramework, generateTypes as experimental_generateTypes, getDetailsForAutoConfig as experimental_getDetailsForAutoConfig, experimental_getWranglerCommands, runAutoConfig as experimental_runAutoConfig, getPlatformProxy, maybeStartOrUpdateRemoteProxySession, startRemoteProxySession, DevEnv as unstable_DevEnv, convertConfigBindingsToStartWorkerBindings as unstable_convertConfigBindingsToStartWorkerBindings, unstable_dev, unstable_generateASSETSBinding, unstable_getDevCompatibilityDate, getDurableObjectClassNameToUseSQLiteMap as unstable_getDurableObjectClassNameToUseSQLiteMap, unstable_getMiniflareWorkerOptions, getVarsForDev as unstable_getVarsForDev, getWorkerNameFromProject as unstable_getWorkerNameFromProject, unstable_pages, printBindings as unstable_printBindings, readConfig as unstable_readConfig, resolveNamedTunnel as unstable_resolveNamedTunnel, splitSqlQuery as unstable_splitSqlQuery, startWorker as unstable_startWorker };
|