wrangler 4.120.0 → 4.121.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 +15 -15
- package/wrangler-dist/cli.d.ts +23 -5
- package/wrangler-dist/cli.js +1567 -980
- package/wrangler-dist/metafile-cjs.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.121.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -66,17 +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.
|
|
69
|
+
"workerd": "1.20260804.1",
|
|
70
70
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
71
71
|
"@cloudflare/unenv-preset": "2.16.1",
|
|
72
|
-
"miniflare": "5.
|
|
72
|
+
"miniflare": "5.20260804.1-alpha"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
76
76
|
"@aws-sdk/s3-request-presigner": "^3.721.0",
|
|
77
77
|
"@bomb.sh/tab": "^0.0.12",
|
|
78
78
|
"@cloudflare/types": "6.18.4",
|
|
79
|
-
"@cloudflare/workers-types": "^5.
|
|
79
|
+
"@cloudflare/workers-types": "^5.20260804.1",
|
|
80
80
|
"@cspotcode/source-map-support": "0.8.1",
|
|
81
81
|
"@netlify/build-info": "^10.5.1",
|
|
82
82
|
"@sentry/node": "^7.86.0",
|
|
@@ -156,25 +156,25 @@
|
|
|
156
156
|
"yaml": "^2.8.1",
|
|
157
157
|
"yargs": "^17.7.2",
|
|
158
158
|
"zod": "4.4.3",
|
|
159
|
-
"@cloudflare/autoconfig": "0.2.
|
|
160
|
-
"@cloudflare/build-output-utils": "0.1.
|
|
161
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
159
|
+
"@cloudflare/autoconfig": "0.2.6",
|
|
160
|
+
"@cloudflare/build-output-utils": "0.1.1",
|
|
161
|
+
"@cloudflare/cli-shared-helpers": "0.1.22",
|
|
162
162
|
"@cloudflare/codemod": "1.1.0",
|
|
163
|
-
"@cloudflare/config": "0.
|
|
163
|
+
"@cloudflare/config": "0.5.0",
|
|
164
164
|
"@cloudflare/containers-shared": "0.16.0",
|
|
165
|
-
"@cloudflare/deploy-helpers": "0.6.
|
|
165
|
+
"@cloudflare/deploy-helpers": "0.6.8",
|
|
166
166
|
"@cloudflare/pages-functions": "0.1.0",
|
|
167
|
-
"@cloudflare/
|
|
168
|
-
"@cloudflare/
|
|
169
|
-
"@cloudflare/
|
|
170
|
-
"@cloudflare/workers-auth": "0.6.1",
|
|
167
|
+
"@cloudflare/remote-bindings": "0.0.10",
|
|
168
|
+
"@cloudflare/runtime-types": "0.0.12",
|
|
169
|
+
"@cloudflare/pages-shared": "^0.13.167",
|
|
171
170
|
"@cloudflare/workers-shared": "0.19.9",
|
|
172
171
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
173
|
-
"@cloudflare/workers-
|
|
172
|
+
"@cloudflare/workers-auth": "0.6.2",
|
|
173
|
+
"@cloudflare/workers-utils": "0.32.0",
|
|
174
174
|
"@cloudflare/workflows-shared": "0.12.2"
|
|
175
175
|
},
|
|
176
176
|
"peerDependencies": {
|
|
177
|
-
"@cloudflare/workers-types": "^5.
|
|
177
|
+
"@cloudflare/workers-types": "^5.20260804.1"
|
|
178
178
|
},
|
|
179
179
|
"peerDependenciesMeta": {
|
|
180
180
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
-
import { Json as Json$1, WorkerdStructuredLog, DispatchFetch, Miniflare, WorkerRegistry,
|
|
3
|
+
import { Json as Json$1, WorkerdStructuredLog, DispatchFetch, Miniflare, WorkerRegistry, V4MiniflareOptions, Mutex, Response as Response$1, DurableObjectStorageOptions, DurableObjectStorageHandle, RemoteProxyConnectionString, V4WorkerOptions, V4ModuleRule, Request } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
5
5
|
import { RequestInfo, RequestInit, Response, FormData } from 'undici';
|
|
6
6
|
import { Metafile } from 'esbuild';
|
|
@@ -572,7 +572,7 @@ declare class ProxyController extends Controller {
|
|
|
572
572
|
ready: DeferredPromise<ReadyEvent>;
|
|
573
573
|
localServerReady: DeferredPromise<void>;
|
|
574
574
|
proxyWorker?: Miniflare;
|
|
575
|
-
proxyWorkerOptions?:
|
|
575
|
+
proxyWorkerOptions?: V4MiniflareOptions;
|
|
576
576
|
private inspectorProxyWorkerWebSocket?;
|
|
577
577
|
protected latestConfig?: StartDevWorkerOptions;
|
|
578
578
|
protected latestBundle?: EsbuildBundle;
|
|
@@ -1077,6 +1077,24 @@ type WorkerInput = {
|
|
|
1077
1077
|
* Wrangler environment to load from the config file.
|
|
1078
1078
|
*/
|
|
1079
1079
|
env?: string;
|
|
1080
|
+
/**
|
|
1081
|
+
* Avoids rebuilding a Worker in a Wrangler project each time the test
|
|
1082
|
+
* harness starts or resets. Build the Worker once with
|
|
1083
|
+
* `wrangler deploy --dry-run --outdir`, then specify the same output
|
|
1084
|
+
* directory here.
|
|
1085
|
+
*
|
|
1086
|
+
* When using a named Wrangler environment, `env` must match the environment
|
|
1087
|
+
* used to build the output. Relative paths resolve from server `root`.
|
|
1088
|
+
*
|
|
1089
|
+
* @example
|
|
1090
|
+
* ```sh
|
|
1091
|
+
* wrangler deploy --dry-run --env test --outdir ./worker-output
|
|
1092
|
+
* ```
|
|
1093
|
+
* ```ts
|
|
1094
|
+
* { configPath: "./wrangler.jsonc", env: "test", prebuiltWorkerDir: "./worker-output" }
|
|
1095
|
+
* ```
|
|
1096
|
+
*/
|
|
1097
|
+
prebuiltWorkerDir?: string | URL;
|
|
1080
1098
|
/**
|
|
1081
1099
|
* Test-only vars that override vars from the Wrangler config.
|
|
1082
1100
|
*/
|
|
@@ -3253,14 +3271,14 @@ type PlatformProxy<Env = Record<string, unknown>, CfProperties extends Record<st
|
|
|
3253
3271
|
* @returns An Object containing the generated proxies alongside other related utilities
|
|
3254
3272
|
*/
|
|
3255
3273
|
declare function getPlatformProxy<Env = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties>(options?: GetPlatformProxyOptions): Promise<PlatformProxy<Env, CfProperties>>;
|
|
3256
|
-
type SourcelessWorkerOptions = Omit<
|
|
3257
|
-
modulesRules?:
|
|
3274
|
+
type SourcelessWorkerOptions = Omit<V4WorkerOptions, "script" | "scriptPath" | "modules" | "modulesRoot"> & {
|
|
3275
|
+
modulesRules?: V4ModuleRule[];
|
|
3258
3276
|
};
|
|
3259
3277
|
interface Unstable_MiniflareWorkerOptions {
|
|
3260
3278
|
workerOptions: SourcelessWorkerOptions;
|
|
3261
3279
|
define: Record<string, string>;
|
|
3262
3280
|
main?: string;
|
|
3263
|
-
externalWorkers:
|
|
3281
|
+
externalWorkers: V4WorkerOptions[];
|
|
3264
3282
|
}
|
|
3265
3283
|
declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string, options?: {
|
|
3266
3284
|
remoteProxyConnectionString?: RemoteProxyConnectionString;
|