wrangler 4.112.0 → 4.113.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 +22 -23
- package/package.json +15 -14
- package/templates/middleware/middleware-miniflare3-json-error.ts +14 -4
- package/templates/startDevWorker/ProxyWorker.ts +1 -1
- package/wrangler-dist/cli.d.ts +21 -70
- package/wrangler-dist/cli.js +40392 -38710
- package/wrangler-dist/experimental-config.d.mts +108 -42
- package/wrangler-dist/experimental-config.d.mts.map +1 -1
- package/wrangler-dist/experimental-config.mjs +17 -4
- package/wrangler-dist/experimental-config.mjs.map +1 -1
- package/wrangler-dist/metafile-cjs.json +1 -1
- package/templates/remoteBindings/ProxyServerWorker.ts +0 -143
- package/templates/remoteBindings/wrangler.jsonc +0 -4
- package/wrangler-dist/ProxyServerWorker.js +0 -3314
package/config-schema.json
CHANGED
|
@@ -570,8 +570,7 @@
|
|
|
570
570
|
}
|
|
571
571
|
},
|
|
572
572
|
"required": [
|
|
573
|
-
"binding"
|
|
574
|
-
"queue"
|
|
573
|
+
"binding"
|
|
575
574
|
],
|
|
576
575
|
"additionalProperties": false
|
|
577
576
|
},
|
|
@@ -1305,8 +1304,7 @@
|
|
|
1305
1304
|
}
|
|
1306
1305
|
},
|
|
1307
1306
|
"required": [
|
|
1308
|
-
"binding"
|
|
1309
|
-
"namespace"
|
|
1307
|
+
"binding"
|
|
1310
1308
|
],
|
|
1311
1309
|
"additionalProperties": false
|
|
1312
1310
|
},
|
|
@@ -1460,8 +1458,7 @@
|
|
|
1460
1458
|
}
|
|
1461
1459
|
},
|
|
1462
1460
|
"required": [
|
|
1463
|
-
"binding"
|
|
1464
|
-
"app_id"
|
|
1461
|
+
"binding"
|
|
1465
1462
|
],
|
|
1466
1463
|
"additionalProperties": false
|
|
1467
1464
|
},
|
|
@@ -1650,6 +1647,14 @@
|
|
|
1650
1647
|
"type": "boolean",
|
|
1651
1648
|
"description": "Whether dependency instrumentation is enabled. Defaults to `true`.",
|
|
1652
1649
|
"markdownDescription": "Whether dependency instrumentation is enabled. Defaults to `true`."
|
|
1650
|
+
},
|
|
1651
|
+
"exclude_packages": {
|
|
1652
|
+
"type": "array",
|
|
1653
|
+
"items": {
|
|
1654
|
+
"type": "string"
|
|
1655
|
+
},
|
|
1656
|
+
"description": "An optional list of package name patterns to exclude from the collected dependency metadata.\n\nEach entry can be an exact package name (e.g. `\"lodash\"`) or a glob pattern using `*` as a wildcard (e.g. `\"@internal/*\"` to exclude all packages under the `@internal` scope).",
|
|
1657
|
+
"markdownDescription": "An optional list of package name patterns to exclude from the\ncollected dependency metadata.\n\nEach entry can be an exact package name (e.g. `\"lodash\"`) or a glob\npattern using `*` as a wildcard (e.g. `\"@internal/*\"` to exclude all\npackages under the `@internal` scope)."
|
|
1653
1658
|
}
|
|
1654
1659
|
},
|
|
1655
1660
|
"required": [
|
|
@@ -2307,8 +2312,7 @@
|
|
|
2307
2312
|
}
|
|
2308
2313
|
},
|
|
2309
2314
|
"required": [
|
|
2310
|
-
"binding"
|
|
2311
|
-
"queue"
|
|
2315
|
+
"binding"
|
|
2312
2316
|
],
|
|
2313
2317
|
"additionalProperties": false
|
|
2314
2318
|
},
|
|
@@ -3042,8 +3046,7 @@
|
|
|
3042
3046
|
}
|
|
3043
3047
|
},
|
|
3044
3048
|
"required": [
|
|
3045
|
-
"binding"
|
|
3046
|
-
"namespace"
|
|
3049
|
+
"binding"
|
|
3047
3050
|
],
|
|
3048
3051
|
"additionalProperties": false
|
|
3049
3052
|
},
|
|
@@ -3197,8 +3200,7 @@
|
|
|
3197
3200
|
}
|
|
3198
3201
|
},
|
|
3199
3202
|
"required": [
|
|
3200
|
-
"binding"
|
|
3201
|
-
"app_id"
|
|
3203
|
+
"binding"
|
|
3202
3204
|
],
|
|
3203
3205
|
"additionalProperties": false
|
|
3204
3206
|
},
|
|
@@ -3890,16 +3892,16 @@
|
|
|
3890
3892
|
"additionalProperties": false,
|
|
3891
3893
|
"properties": {
|
|
3892
3894
|
"logpush": {
|
|
3893
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3895
|
+
"$ref": "#/definitions/interface-769040647-10591-20713-769040647-0-526802004818536"
|
|
3894
3896
|
},
|
|
3895
3897
|
"observability": {
|
|
3896
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3898
|
+
"$ref": "#/definitions/interface-769040647-10591-20713-769040647-0-526802004818536"
|
|
3897
3899
|
},
|
|
3898
3900
|
"limits": {
|
|
3899
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3901
|
+
"$ref": "#/definitions/interface-769040647-10591-20713-769040647-0-526802004818536"
|
|
3900
3902
|
},
|
|
3901
3903
|
"cache": {
|
|
3902
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3904
|
+
"$ref": "#/definitions/interface-769040647-10591-20713-769040647-0-526802004818536"
|
|
3903
3905
|
},
|
|
3904
3906
|
"define": {
|
|
3905
3907
|
"type": "object",
|
|
@@ -4094,8 +4096,7 @@
|
|
|
4094
4096
|
}
|
|
4095
4097
|
},
|
|
4096
4098
|
"required": [
|
|
4097
|
-
"binding"
|
|
4098
|
-
"queue"
|
|
4099
|
+
"binding"
|
|
4099
4100
|
],
|
|
4100
4101
|
"additionalProperties": false
|
|
4101
4102
|
},
|
|
@@ -4829,8 +4830,7 @@
|
|
|
4829
4830
|
}
|
|
4830
4831
|
},
|
|
4831
4832
|
"required": [
|
|
4832
|
-
"binding"
|
|
4833
|
-
"namespace"
|
|
4833
|
+
"binding"
|
|
4834
4834
|
],
|
|
4835
4835
|
"additionalProperties": false
|
|
4836
4836
|
},
|
|
@@ -4984,8 +4984,7 @@
|
|
|
4984
4984
|
}
|
|
4985
4985
|
},
|
|
4986
4986
|
"required": [
|
|
4987
|
-
"binding"
|
|
4988
|
-
"app_id"
|
|
4987
|
+
"binding"
|
|
4989
4988
|
],
|
|
4990
4989
|
"additionalProperties": false
|
|
4991
4990
|
},
|
|
@@ -5161,7 +5160,7 @@
|
|
|
5161
5160
|
"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`",
|
|
5162
5161
|
"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`"
|
|
5163
5162
|
},
|
|
5164
|
-
"interface-769040647-
|
|
5163
|
+
"interface-769040647-10591-20713-769040647-0-526802004818536": {
|
|
5165
5164
|
"type": "object",
|
|
5166
5165
|
"properties": {
|
|
5167
5166
|
"name": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.113.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -66,16 +66,16 @@
|
|
|
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.
|
|
69
|
+
"workerd": "1.20260721.1",
|
|
70
70
|
"@cloudflare/unenv-preset": "2.16.1",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
71
|
+
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
72
|
+
"miniflare": "4.20260721.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
76
76
|
"@bomb.sh/tab": "^0.0.12",
|
|
77
77
|
"@cloudflare/types": "6.18.4",
|
|
78
|
-
"@cloudflare/workers-types": "^5.
|
|
78
|
+
"@cloudflare/workers-types": "^5.20260721.1",
|
|
79
79
|
"@cspotcode/source-map-support": "0.8.1",
|
|
80
80
|
"@netlify/build-info": "^10.5.1",
|
|
81
81
|
"@sentry/node": "^7.86.0",
|
|
@@ -155,22 +155,23 @@
|
|
|
155
155
|
"yaml": "^2.8.1",
|
|
156
156
|
"yargs": "^17.7.2",
|
|
157
157
|
"zod": "4.4.3",
|
|
158
|
-
"@cloudflare/autoconfig": "0.
|
|
158
|
+
"@cloudflare/autoconfig": "0.2.0",
|
|
159
|
+
"@cloudflare/cli-shared-helpers": "0.1.16",
|
|
159
160
|
"@cloudflare/codemod": "1.1.0",
|
|
160
|
-
"@cloudflare/config": "0.
|
|
161
|
+
"@cloudflare/config": "0.3.0",
|
|
161
162
|
"@cloudflare/containers-shared": "0.16.0",
|
|
162
|
-
"@cloudflare/deploy-helpers": "0.
|
|
163
|
-
"@cloudflare/
|
|
164
|
-
"@cloudflare/pages-shared": "^0.13.
|
|
165
|
-
"@cloudflare/
|
|
166
|
-
"@cloudflare/workers-auth": "0.5.
|
|
163
|
+
"@cloudflare/deploy-helpers": "0.6.0",
|
|
164
|
+
"@cloudflare/runtime-types": "0.0.4",
|
|
165
|
+
"@cloudflare/pages-shared": "^0.13.159",
|
|
166
|
+
"@cloudflare/remote-bindings": "0.0.1",
|
|
167
|
+
"@cloudflare/workers-auth": "0.5.1",
|
|
167
168
|
"@cloudflare/workers-shared": "0.19.9",
|
|
169
|
+
"@cloudflare/workers-utils": "0.28.0",
|
|
168
170
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
169
|
-
"@cloudflare/workers-utils": "0.27.0",
|
|
170
171
|
"@cloudflare/workflows-shared": "0.12.1"
|
|
171
172
|
},
|
|
172
173
|
"peerDependencies": {
|
|
173
|
-
"@cloudflare/workers-types": "^5.
|
|
174
|
+
"@cloudflare/workers-types": "^5.20260721.1"
|
|
174
175
|
},
|
|
175
176
|
"peerDependenciesMeta": {
|
|
176
177
|
"@cloudflare/workers-types": {
|
|
@@ -22,10 +22,20 @@ const jsonError: Middleware = async (request, env, _ctx, middlewareCtx) => {
|
|
|
22
22
|
return await middlewareCtx.next(request, env);
|
|
23
23
|
} catch (e: any) {
|
|
24
24
|
const error = reduceError(e);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
const body = JSON.stringify(error);
|
|
26
|
+
const headers: Record<string, string> = {
|
|
27
|
+
"Content-Type": "application/json",
|
|
28
|
+
"MF-Experimental-Error-Stack": "true",
|
|
29
|
+
};
|
|
30
|
+
// `workerd` drops response bodies for `HEAD` requests, so also carry the
|
|
31
|
+
// serialised error in a header. Past roughly 16KB of encoded header the
|
|
32
|
+
// runtime drops the whole response, so stay well under that; the body
|
|
33
|
+
// remains the primary channel for every method that keeps one.
|
|
34
|
+
const encoded = encodeURIComponent(body);
|
|
35
|
+
if (encoded.length <= 8192) {
|
|
36
|
+
headers["MF-Experimental-Error-Stack-Payload"] = encoded;
|
|
37
|
+
}
|
|
38
|
+
return new Response(body, { status: 500, headers });
|
|
29
39
|
}
|
|
30
40
|
};
|
|
31
41
|
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule as Rule$1, CfModule, Environment as Environment$1, Entry, CfModuleType, Config as Config$1, StartDevWorkerInput, NodeJSCompatMode, CfScriptFormat, AsyncHook, CfAccount
|
|
1
|
+
import { Rule as Rule$1, CfModule, Environment as Environment$1, Entry, CfModuleType, Config as Config$1, StartDevWorkerInput, NodeJSCompatMode, CfScriptFormat, AsyncHook, CfAccount, AssetsOptions as AssetsOptions$1, Binding, ConfigBindingFieldName, RawConfig as RawConfig$1, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, ParseError, LoggerLevel, ComplianceConfig, ApiCredentials, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
2
2
|
export { Binding, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig } from '@cloudflare/workers-utils';
|
|
3
3
|
import { Json as Json$1, WorkerdStructuredLog, DispatchFetch, Miniflare, WorkerRegistry, MiniflareOptions, Mutex, Response as Response$1, DurableObjectStorageOptions, DurableObjectStorageHandle, RemoteProxyConnectionString, WorkerOptions, ModuleRule, Request } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
@@ -11,6 +11,8 @@ import { ContainerNormalizedConfig } from '@cloudflare/containers-shared';
|
|
|
11
11
|
import { Rpc, ExportedHandler, DurableObjectNamespace, D1Database, Workflow, Service } from '@cloudflare/workers-types';
|
|
12
12
|
import { FetcherScheduledOptions, FetcherScheduledResult, IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
|
|
13
13
|
import { RouterConfig, AssetConfig } from '@cloudflare/workers-shared';
|
|
14
|
+
import { StartRemoteProxySessionOptions as StartRemoteProxySessionOptions$1, RemoteProxySession, WorkerConfigObject, RemoteProxySessionData } from '@cloudflare/remote-bindings';
|
|
15
|
+
export { RemoteProxySession } from '@cloudflare/remote-bindings';
|
|
14
16
|
export { printBindings as unstable_printBindings } from '@cloudflare/deploy-helpers';
|
|
15
17
|
import { URLSearchParams } from 'node:url';
|
|
16
18
|
import { Argv, PositionalOptions, Options, ArgumentsCamelCase, InferredOptionTypes, InferredOptionType } from 'yargs';
|
|
@@ -392,7 +394,7 @@ type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets" | "config" | "co
|
|
|
392
394
|
};
|
|
393
395
|
dev: StartDevWorkerInput["dev"] & {
|
|
394
396
|
persist: string | false;
|
|
395
|
-
auth?: AsyncHook<CfAccount
|
|
397
|
+
auth?: AsyncHook<CfAccount>;
|
|
396
398
|
/** Handles structured runtime logs. */
|
|
397
399
|
structuredLogsHandler?: (log: WorkerdStructuredLog) => void;
|
|
398
400
|
/** An undici MockAgent to declaratively mock fetch calls to particular resources. */
|
|
@@ -736,6 +738,7 @@ type AdditionalDevProps = {
|
|
|
736
738
|
moduleRoot?: string;
|
|
737
739
|
rules?: Rule$1[];
|
|
738
740
|
showInteractiveDevSession?: boolean;
|
|
741
|
+
showLocalExplorerAgentHint?: boolean;
|
|
739
742
|
};
|
|
740
743
|
type DevArguments = Omit<(typeof dev)["args"], "installSkills" | "profile">;
|
|
741
744
|
type StartDevOptions = DevArguments & AdditionalDevProps & {
|
|
@@ -1151,7 +1154,7 @@ type AssetsOptions = {
|
|
|
1151
1154
|
/**
|
|
1152
1155
|
* Wrangler configuration types. The JSDoc on these fields is also the source
|
|
1153
1156
|
* of truth for the equivalent fields in `@cloudflare/config`
|
|
1154
|
-
* (`packages/config/src/types.ts` — `
|
|
1157
|
+
* (`packages/config/src/types.ts` — `WorkerConfig` — and the binding option
|
|
1155
1158
|
* interfaces in `packages/config/src/config.ts`). When editing prose here,
|
|
1156
1159
|
* mirror the changes there.
|
|
1157
1160
|
*/
|
|
@@ -2037,7 +2040,7 @@ interface EnvironmentNonInheritable {
|
|
|
2037
2040
|
/** The binding name used to refer to the Queue in the Worker. */
|
|
2038
2041
|
binding: string;
|
|
2039
2042
|
/** The name of this Queue. */
|
|
2040
|
-
queue
|
|
2043
|
+
queue?: string;
|
|
2041
2044
|
/** The number of seconds to wait before delivering a message */
|
|
2042
2045
|
delivery_delay?: number;
|
|
2043
2046
|
/** Whether the Queue producer should be remote or not in local development */
|
|
@@ -2464,7 +2467,7 @@ interface EnvironmentNonInheritable {
|
|
|
2464
2467
|
/** The binding name used to refer to the bound service. */
|
|
2465
2468
|
binding: string;
|
|
2466
2469
|
/** The namespace to bind to. */
|
|
2467
|
-
namespace
|
|
2470
|
+
namespace?: string;
|
|
2468
2471
|
/** Details about the outbound Worker which will handle outbound requests from your namespace */
|
|
2469
2472
|
outbound?: DispatchNamespaceOutbound;
|
|
2470
2473
|
/** Whether the Dispatch Namespace should be remote or not in local development */
|
|
@@ -2555,7 +2558,7 @@ interface EnvironmentNonInheritable {
|
|
|
2555
2558
|
/** The binding name used to refer to the bound Flagship service. */
|
|
2556
2559
|
binding: string;
|
|
2557
2560
|
/** The Flagship app ID to bind to. */
|
|
2558
|
-
app_id
|
|
2561
|
+
app_id?: string;
|
|
2559
2562
|
/** Set to `true` to suppress the remote binding warning in local dev. Flagship bindings are always remote. */
|
|
2560
2563
|
remote?: boolean;
|
|
2561
2564
|
}[];
|
|
@@ -2835,6 +2838,15 @@ interface ConfigFields<Dev extends RawDevConfig> {
|
|
|
2835
2838
|
dependencies_instrumentation: {
|
|
2836
2839
|
/** Whether dependency instrumentation is enabled. Defaults to `true`. */
|
|
2837
2840
|
enabled: boolean;
|
|
2841
|
+
/**
|
|
2842
|
+
* An optional list of package name patterns to exclude from the
|
|
2843
|
+
* collected dependency metadata.
|
|
2844
|
+
*
|
|
2845
|
+
* Each entry can be an exact package name (e.g. `"lodash"`) or a glob
|
|
2846
|
+
* pattern using `*` as a wildcard (e.g. `"@internal/*"` to exclude all
|
|
2847
|
+
* packages under the `@internal` scope).
|
|
2848
|
+
*/
|
|
2849
|
+
exclude_packages?: string[];
|
|
2838
2850
|
} | undefined;
|
|
2839
2851
|
/**
|
|
2840
2852
|
* Options to configure the development server that your worker will use.
|
|
@@ -3193,75 +3205,14 @@ declare function unstable_getMiniflareWorkerOptions(config: Config, env?: string
|
|
|
3193
3205
|
containerBuildId?: string;
|
|
3194
3206
|
}): Unstable_MiniflareWorkerOptions;
|
|
3195
3207
|
|
|
3196
|
-
|
|
3197
|
-
* A Cloudflare account.
|
|
3198
|
-
*/
|
|
3199
|
-
interface CfAccount {
|
|
3200
|
-
/**
|
|
3201
|
-
* An API token.
|
|
3202
|
-
*
|
|
3203
|
-
* @link https://api.cloudflare.com/#user-api-tokens-properties
|
|
3204
|
-
*/
|
|
3205
|
-
apiToken: ApiCredentials;
|
|
3206
|
-
/**
|
|
3207
|
-
* An account ID.
|
|
3208
|
-
*/
|
|
3209
|
-
accountId: string;
|
|
3210
|
-
}
|
|
3211
|
-
|
|
3212
|
-
type StartRemoteProxySessionOptions = {
|
|
3213
|
-
workerName?: string;
|
|
3214
|
-
auth?: NonNullable<StartDevWorkerInput["dev"]>["auth"];
|
|
3215
|
-
/** If running in a non-public compliance region, set this here. */
|
|
3216
|
-
complianceRegion?: Config$1["compliance_region"];
|
|
3217
|
-
};
|
|
3208
|
+
type StartRemoteProxySessionOptions = Omit<StartRemoteProxySessionOptions$1, "logger">;
|
|
3218
3209
|
declare function startRemoteProxySession(bindings: StartDevWorkerInput["bindings"], options?: StartRemoteProxySessionOptions): Promise<RemoteProxySession>;
|
|
3219
|
-
type RemoteProxySession = Pick<Worker, "ready" | "dispose"> & {
|
|
3220
|
-
updateBindings: (bindings: StartDevWorkerInput["bindings"]) => Promise<void>;
|
|
3221
|
-
remoteProxyConnectionString: RemoteProxyConnectionString;
|
|
3222
|
-
};
|
|
3223
3210
|
|
|
3224
3211
|
type WranglerConfigObject = {
|
|
3225
|
-
/** The path to the wrangler config file */
|
|
3226
3212
|
path: string;
|
|
3227
|
-
/** The target environment */
|
|
3228
3213
|
environment?: string;
|
|
3229
3214
|
};
|
|
3230
|
-
|
|
3231
|
-
/** The name of the worker */
|
|
3232
|
-
name?: string;
|
|
3233
|
-
/** The Worker's bindings */
|
|
3234
|
-
bindings: NonNullable<StartDevWorkerInput["bindings"]>;
|
|
3235
|
-
/** If running in a non-public compliance region, set this here. */
|
|
3236
|
-
complianceRegion?: Config$1["compliance_region"];
|
|
3237
|
-
/** Id of the account owning the worker */
|
|
3238
|
-
account_id?: Config$1["account_id"];
|
|
3239
|
-
/**
|
|
3240
|
-
* directory used to resolve the auth profile from directory bindings.
|
|
3241
|
-
* Falls back to `process.cwd()` when not provided.
|
|
3242
|
-
*/
|
|
3243
|
-
profileDir?: string;
|
|
3244
|
-
};
|
|
3245
|
-
/**
|
|
3246
|
-
* Utility for potentially starting or updating a remote proxy session.
|
|
3247
|
-
*
|
|
3248
|
-
* @param wranglerOrWorkerConfigObject either a file path to a wrangler configuration file or an object containing the name of
|
|
3249
|
-
* the target worker alongside its bindings.
|
|
3250
|
-
* @param preExistingRemoteProxySessionData the optional data of a pre-existing remote proxy session if there was one, this
|
|
3251
|
-
* argument can be omitted or set to null if there is no pre-existing remote proxy session
|
|
3252
|
-
* @param auth the authentication information for establishing the remote proxy connection
|
|
3253
|
-
* @returns null if no existing remote proxy session was provided and one should not be created (because the worker is not
|
|
3254
|
-
* defining any remote bindings), the data associated to the created/updated remote proxy session otherwise.
|
|
3255
|
-
*/
|
|
3256
|
-
declare function maybeStartOrUpdateRemoteProxySession(wranglerOrWorkerConfigObject: WranglerConfigObject | WorkerConfigObject, preExistingRemoteProxySessionData?: {
|
|
3257
|
-
session: RemoteProxySession;
|
|
3258
|
-
remoteBindings: Record<string, Binding>;
|
|
3259
|
-
auth?: AsyncHook<CfAccount> | undefined;
|
|
3260
|
-
} | null, auth?: AsyncHook<CfAccount> | undefined): Promise<{
|
|
3261
|
-
session: RemoteProxySession;
|
|
3262
|
-
remoteBindings: Record<string, Binding>;
|
|
3263
|
-
auth?: AsyncHook<CfAccount> | undefined;
|
|
3264
|
-
} | null>;
|
|
3215
|
+
declare function maybeStartOrUpdateRemoteProxySession(wranglerOrWorkerConfigObject: WranglerConfigObject | WorkerConfigObject, preExistingRemoteProxySessionData?: RemoteProxySessionData | null, auth?: AsyncHook<CfAccount>): Promise<RemoteProxySessionData | null>;
|
|
3265
3216
|
|
|
3266
3217
|
type TableRow<Keys extends string> = Record<Keys, string>;
|
|
3267
3218
|
declare class Logger {
|
|
@@ -3833,4 +3784,4 @@ interface Unstable_ASSETSBindingsOptions {
|
|
|
3833
3784
|
}
|
|
3834
3785
|
declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request) => Promise<Response$1>;
|
|
3835
3786
|
|
|
3836
|
-
export { ArgParseError, type Experimental_GenerateTypesOptions, type Experimental_GenerateTypesResult, type GetPlatformProxyOptions, type PlatformProxy, type
|
|
3787
|
+
export { ArgParseError, type Experimental_GenerateTypesOptions, type Experimental_GenerateTypesResult, type GetPlatformProxyOptions, type PlatformProxy, type SourcelessWorkerOptions, type StartRemoteProxySessionOptions, type TestHarness, type TestHarnessOptions, 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, type WorkerHandle, createTestHarness, generateTypes as experimental_generateTypes, experimental_getWranglerCommands, getPlatformProxy, maybeStartOrUpdateRemoteProxySession, parseArgs as parseCfWranglerArgs, parseBuildArgs as parseCfWranglerBuildArgs, runCfWranglerBuild, runCfWranglerDev, 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, unstable_pages, readConfig as unstable_readConfig, resolveNamedTunnel as unstable_resolveNamedTunnel, splitSqlQuery as unstable_splitSqlQuery, startWorker as unstable_startWorker };
|