wrangler 4.16.1 → 4.18.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/bin/wrangler.js +1 -1
- package/config-schema.json +16 -0
- package/package.json +7 -8
- package/wrangler-dist/cli.d.ts +30 -12
- package/wrangler-dist/cli.js +9014 -8333
package/bin/wrangler.js
CHANGED
package/config-schema.json
CHANGED
@@ -240,6 +240,14 @@
|
|
240
240
|
"$ref": "#/definitions/Observability",
|
241
241
|
"description": "Specify the observability behavior of the Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability"
|
242
242
|
},
|
243
|
+
"compliance_region": {
|
244
|
+
"type": "string",
|
245
|
+
"enum": [
|
246
|
+
"public",
|
247
|
+
"fedramp_high"
|
248
|
+
],
|
249
|
+
"description": "Specify the compliance region mode of the Worker.\n\nAlthough if the user does not specify a compliance region, the default is `public`, it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable."
|
250
|
+
},
|
243
251
|
"define": {
|
244
252
|
"type": "object",
|
245
253
|
"additionalProperties": {
|
@@ -1192,6 +1200,14 @@
|
|
1192
1200
|
"$ref": "#/definitions/Observability",
|
1193
1201
|
"description": "Specify the observability behavior of the Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability"
|
1194
1202
|
},
|
1203
|
+
"compliance_region": {
|
1204
|
+
"type": "string",
|
1205
|
+
"enum": [
|
1206
|
+
"public",
|
1207
|
+
"fedramp_high"
|
1208
|
+
],
|
1209
|
+
"description": "Specify the compliance region mode of the Worker.\n\nAlthough if the user does not specify a compliance region, the default is `public`, it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable."
|
1210
|
+
},
|
1195
1211
|
"define": {
|
1196
1212
|
"type": "object",
|
1197
1213
|
"additionalProperties": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.18.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -55,14 +55,14 @@
|
|
55
55
|
"esbuild": "0.25.4",
|
56
56
|
"path-to-regexp": "6.3.0",
|
57
57
|
"unenv": "2.0.0-rc.17",
|
58
|
-
"workerd": "1.
|
58
|
+
"workerd": "1.20250525.0",
|
59
59
|
"@cloudflare/kv-asset-handler": "0.4.0",
|
60
|
-
"miniflare": "4.
|
60
|
+
"miniflare": "4.20250525.0"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
64
64
|
"@cloudflare/types": "6.18.4",
|
65
|
-
"@cloudflare/workers-types": "^4.
|
65
|
+
"@cloudflare/workers-types": "^4.20250525.0",
|
66
66
|
"@cspotcode/source-map-support": "0.8.1",
|
67
67
|
"@iarna/toml": "^3.0.0",
|
68
68
|
"@microsoft/api-extractor": "^7.47.0",
|
@@ -137,12 +137,12 @@
|
|
137
137
|
"yargs": "^17.7.2",
|
138
138
|
"@cloudflare/cli": "1.1.1",
|
139
139
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
140
|
-
"@cloudflare/pages-shared": "^0.13.
|
140
|
+
"@cloudflare/pages-shared": "^0.13.42",
|
141
141
|
"@cloudflare/workers-shared": "0.17.5",
|
142
142
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
143
143
|
},
|
144
144
|
"peerDependencies": {
|
145
|
-
"@cloudflare/workers-types": "^4.
|
145
|
+
"@cloudflare/workers-types": "^4.20250525.0"
|
146
146
|
},
|
147
147
|
"peerDependenciesMeta": {
|
148
148
|
"@cloudflare/workers-types": {
|
@@ -150,8 +150,7 @@
|
|
150
150
|
}
|
151
151
|
},
|
152
152
|
"optionalDependencies": {
|
153
|
-
"fsevents": "~2.3.2"
|
154
|
-
"sharp": "^0.33.5"
|
153
|
+
"fsevents": "~2.3.2"
|
155
154
|
},
|
156
155
|
"engines": {
|
157
156
|
"node": ">=18.0.0"
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -329,8 +329,6 @@ declare type Binding = {
|
|
329
329
|
|
330
330
|
declare type BindingOmit<T> = Omit<T, "binding">;
|
331
331
|
|
332
|
-
declare type BindingsOpt = NonNullable<StartDevWorkerInput["bindings"]>;
|
333
|
-
|
334
332
|
declare interface BlobPropertyBag {
|
335
333
|
type?: string
|
336
334
|
endings?: 'native' | 'transparent'
|
@@ -1205,14 +1203,14 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
1205
1203
|
type: string;
|
1206
1204
|
};
|
1207
1205
|
latest_stage: {
|
1208
|
-
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
1209
1206
|
name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
|
1207
|
+
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
1210
1208
|
started_on: string | null;
|
1211
1209
|
ended_on: string | null;
|
1212
1210
|
};
|
1213
1211
|
stages: {
|
1214
|
-
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
1215
1212
|
name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
|
1213
|
+
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
1216
1214
|
started_on: string | null;
|
1217
1215
|
ended_on: string | null;
|
1218
1216
|
}[];
|
@@ -1942,6 +1940,13 @@ declare interface EnvironmentInheritable {
|
|
1942
1940
|
* @inheritable
|
1943
1941
|
*/
|
1944
1942
|
observability: Observability | undefined;
|
1943
|
+
/**
|
1944
|
+
* Specify the compliance region mode of the Worker.
|
1945
|
+
*
|
1946
|
+
* Although if the user does not specify a compliance region, the default is `public`,
|
1947
|
+
* it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable.
|
1948
|
+
*/
|
1949
|
+
compliance_region: "public" | "fedramp_high" | undefined;
|
1945
1950
|
}
|
1946
1951
|
|
1947
1952
|
declare interface EnvironmentMap {
|
@@ -2634,17 +2639,28 @@ declare class ExecutionContext {
|
|
2634
2639
|
props: any;
|
2635
2640
|
}
|
2636
2641
|
|
2642
|
+
export declare type Experimental_ConfigBindingOptions = Pick<Unstable_Config, "ai" | "browser" | "d1_databases" | "dispatch_namespaces" | "durable_objects" | "queues" | "r2_buckets" | "services" | "kv_namespaces" | "mtls_certificates" | "vectorize" | "workflows">;
|
2643
|
+
|
2644
|
+
export declare type Experimental_MixedModeSession = Pick<Worker, "ready" | "dispose"> & {
|
2645
|
+
updateBindings: (bindings: StartDevWorkerInput["bindings"]) => Promise<void>;
|
2646
|
+
mixedModeConnectionString: MixedModeConnectionString;
|
2647
|
+
};
|
2648
|
+
|
2637
2649
|
export declare const experimental_patchConfig: (configPath: string, patch: Unstable_RawConfig, isArrayInsertion?: boolean) => string;
|
2638
2650
|
|
2651
|
+
export declare function experimental_pickRemoteBindings(bindings: Record<string, Binding>): Record<string, Binding>;
|
2652
|
+
|
2639
2653
|
export declare const experimental_readRawConfig: (args: ReadConfigCommandArgs, options?: ReadConfigOptions) => {
|
2640
2654
|
rawConfig: Unstable_RawConfig;
|
2641
2655
|
configPath: string | undefined;
|
2642
2656
|
userConfigPath: string | undefined;
|
2643
2657
|
};
|
2644
2658
|
|
2645
|
-
export declare function experimental_startMixedModeSession(bindings:
|
2646
|
-
auth
|
2647
|
-
|
2659
|
+
export declare function experimental_startMixedModeSession(bindings: StartDevWorkerInput["bindings"], options?: {
|
2660
|
+
auth?: NonNullable<StartDevWorkerInput["dev"]>["auth"];
|
2661
|
+
/** If running in a non-public compliance region, set this here. */
|
2662
|
+
complianceRegion?: Unstable_Config["compliance_region"];
|
2663
|
+
}): Promise<Experimental_MixedModeSession>;
|
2648
2664
|
|
2649
2665
|
declare function fetch_2 (
|
2650
2666
|
input: RequestInfo,
|
@@ -3019,11 +3035,6 @@ declare interface MIMEType {
|
|
3019
3035
|
|
3020
3036
|
declare type MiniflareWorker = Awaited<ReturnType<Miniflare["getWorker"]>>;
|
3021
3037
|
|
3022
|
-
declare type MixedModeSession = Pick<Worker, "ready" | "dispose"> & {
|
3023
|
-
updateBindings: (bindings: BindingsOpt) => Promise<void>;
|
3024
|
-
mixedModeConnectionString: MixedModeConnectionString;
|
3025
|
-
};
|
3026
|
-
|
3027
3038
|
/** A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead. */
|
3028
3039
|
declare class MockAgent<TMockAgentOptions extends MockAgent.Options = MockAgent.Options> extends Dispatcher {
|
3029
3040
|
constructor(options?: MockAgent.Options)
|
@@ -26250,6 +26261,8 @@ declare interface StartDevWorkerInput {
|
|
26250
26261
|
compatibilityDate?: string;
|
26251
26262
|
/** The compatibility flags for the workerd runtime. */
|
26252
26263
|
compatibilityFlags?: string[];
|
26264
|
+
/** Specify the compliance region mode of the Worker. */
|
26265
|
+
complianceRegion?: Unstable_Config["compliance_region"];
|
26253
26266
|
env?: string;
|
26254
26267
|
/** The bindings available to the worker. The specified bindind type will be exposed to the worker on the `env` object under the same key. */
|
26255
26268
|
bindings?: Record<string, Binding>;
|
@@ -26374,6 +26387,7 @@ declare type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets"> & {
|
|
26374
26387
|
entrypoint: string;
|
26375
26388
|
assets?: AssetsOptions;
|
26376
26389
|
name: string;
|
26390
|
+
complianceRegion: Unstable_Config["compliance_region"];
|
26377
26391
|
};
|
26378
26392
|
|
26379
26393
|
/** A faster version of `request`. */
|
@@ -26574,6 +26588,8 @@ export declare interface Unstable_ASSETSBindingsOptions {
|
|
26574
26588
|
*/
|
26575
26589
|
export declare type Unstable_Config = ComputedFields & ConfigFields<DevConfig> & PagesConfigFields & Environment;
|
26576
26590
|
|
26591
|
+
export declare function unstable_convertConfigBindingsToStartWorkerBindings(configBindings: Experimental_ConfigBindingOptions): StartDevWorkerOptions["bindings"];
|
26592
|
+
|
26577
26593
|
/**
|
26578
26594
|
* unstable_dev starts a wrangler dev server, and returns a promise that resolves with utility functions to interact with it.
|
26579
26595
|
*/
|
@@ -26684,6 +26700,7 @@ export declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindi
|
|
26684
26700
|
|
26685
26701
|
export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string, options?: {
|
26686
26702
|
imagesLocalMode?: boolean;
|
26703
|
+
mixedModeConnectionString?: MixedModeConnectionString;
|
26687
26704
|
overrides?: {
|
26688
26705
|
assets?: Partial<AssetsOptions>;
|
26689
26706
|
};
|
@@ -26691,6 +26708,7 @@ export declare function unstable_getMiniflareWorkerOptions(configPath: string, e
|
|
26691
26708
|
|
26692
26709
|
export declare function unstable_getMiniflareWorkerOptions(config: Unstable_Config, env?: string, options?: {
|
26693
26710
|
imagesLocalMode?: boolean;
|
26711
|
+
mixedModeConnectionString?: MixedModeConnectionString;
|
26694
26712
|
overrides?: {
|
26695
26713
|
assets?: Partial<AssetsOptions>;
|
26696
26714
|
};
|