wrangler 4.130.0 → 4.131.1
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 +75 -10
- package/package.json +17 -17
- package/wrangler-dist/cli.d.ts +41 -15
- package/wrangler-dist/cli.js +47222 -46057
package/config-schema.json
CHANGED
|
@@ -3609,6 +3609,31 @@
|
|
|
3609
3609
|
"description": "The Durable Objects being renamed.",
|
|
3610
3610
|
"markdownDescription": "The Durable Objects being renamed."
|
|
3611
3611
|
},
|
|
3612
|
+
"transferred_classes": {
|
|
3613
|
+
"type": "array",
|
|
3614
|
+
"items": {
|
|
3615
|
+
"type": "object",
|
|
3616
|
+
"properties": {
|
|
3617
|
+
"from": {
|
|
3618
|
+
"type": "string"
|
|
3619
|
+
},
|
|
3620
|
+
"from_script": {
|
|
3621
|
+
"type": "string"
|
|
3622
|
+
},
|
|
3623
|
+
"to": {
|
|
3624
|
+
"type": "string"
|
|
3625
|
+
}
|
|
3626
|
+
},
|
|
3627
|
+
"required": [
|
|
3628
|
+
"from",
|
|
3629
|
+
"from_script",
|
|
3630
|
+
"to"
|
|
3631
|
+
],
|
|
3632
|
+
"additionalProperties": false
|
|
3633
|
+
},
|
|
3634
|
+
"description": "The Durable Objects being transferred from another Worker.",
|
|
3635
|
+
"markdownDescription": "The Durable Objects being transferred from another Worker."
|
|
3636
|
+
},
|
|
3612
3637
|
"deleted_classes": {
|
|
3613
3638
|
"type": "array",
|
|
3614
3639
|
"items": {
|
|
@@ -4106,16 +4131,16 @@
|
|
|
4106
4131
|
"additionalProperties": false,
|
|
4107
4132
|
"properties": {
|
|
4108
4133
|
"logpush": {
|
|
4109
|
-
"$ref": "#/definitions/interface-769040647-
|
|
4134
|
+
"$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
|
|
4110
4135
|
},
|
|
4111
4136
|
"observability": {
|
|
4112
|
-
"$ref": "#/definitions/interface-769040647-
|
|
4137
|
+
"$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
|
|
4113
4138
|
},
|
|
4114
4139
|
"limits": {
|
|
4115
|
-
"$ref": "#/definitions/interface-769040647-
|
|
4140
|
+
"$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
|
|
4116
4141
|
},
|
|
4117
4142
|
"cache": {
|
|
4118
|
-
"$ref": "#/definitions/interface-769040647-
|
|
4143
|
+
"$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
|
|
4119
4144
|
},
|
|
4120
4145
|
"define": {
|
|
4121
4146
|
"type": "object",
|
|
@@ -5419,7 +5444,7 @@
|
|
|
5419
5444
|
"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`",
|
|
5420
5445
|
"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`"
|
|
5421
5446
|
},
|
|
5422
|
-
"interface-769040647-
|
|
5447
|
+
"interface-769040647-13628-23990-769040647-0-585492004818536": {
|
|
5423
5448
|
"type": "object",
|
|
5424
5449
|
"properties": {
|
|
5425
5450
|
"name": {
|
|
@@ -6020,6 +6045,14 @@
|
|
|
6020
6045
|
"description": "The path to a Dockerfile, or an image URI for the Cloudflare registry.",
|
|
6021
6046
|
"markdownDescription": "The path to a Dockerfile, or an image URI for the Cloudflare registry."
|
|
6022
6047
|
},
|
|
6048
|
+
"images": {
|
|
6049
|
+
"type": "object",
|
|
6050
|
+
"additionalProperties": {
|
|
6051
|
+
"$ref": "#/definitions/DurableObjectContainerImage"
|
|
6052
|
+
},
|
|
6053
|
+
"description": "Named images available to a Durable Object-managed container through `ctx.container.images` and `env.EXPERIMENTAL_CLOUDFLARE_CONTAINER_IMAGES[className]`.\n\nOnly supported when `scheduling_policy` is `\"durable_object\"`.",
|
|
6054
|
+
"markdownDescription": "Named images available to a Durable Object-managed container through\n`ctx.container.images` and\n`env.EXPERIMENTAL_CLOUDFLARE_CONTAINER_IMAGES[className]`.\n\nOnly supported when `scheduling_policy` is `\"durable_object\"`."
|
|
6055
|
+
},
|
|
6023
6056
|
"image_build_context": {
|
|
6024
6057
|
"type": "string",
|
|
6025
6058
|
"description": "Build context of the application.",
|
|
@@ -6047,6 +6080,7 @@
|
|
|
6047
6080
|
"type": "string",
|
|
6048
6081
|
"enum": [
|
|
6049
6082
|
"default",
|
|
6083
|
+
"durable_object",
|
|
6050
6084
|
"moon",
|
|
6051
6085
|
"regional"
|
|
6052
6086
|
],
|
|
@@ -6231,11 +6265,42 @@
|
|
|
6231
6265
|
"default": 0
|
|
6232
6266
|
}
|
|
6233
6267
|
},
|
|
6234
|
-
"required": [
|
|
6235
|
-
"image"
|
|
6236
|
-
],
|
|
6237
6268
|
"additionalProperties": false
|
|
6238
6269
|
},
|
|
6270
|
+
"DurableObjectContainerImage": {
|
|
6271
|
+
"anyOf": [
|
|
6272
|
+
{
|
|
6273
|
+
"type": "object",
|
|
6274
|
+
"properties": {
|
|
6275
|
+
"dockerfile": {
|
|
6276
|
+
"type": "string",
|
|
6277
|
+
"description": "Path to the Dockerfile Wrangler builds and pushes.",
|
|
6278
|
+
"markdownDescription": "Path to the Dockerfile Wrangler builds and pushes."
|
|
6279
|
+
}
|
|
6280
|
+
},
|
|
6281
|
+
"required": [
|
|
6282
|
+
"dockerfile"
|
|
6283
|
+
],
|
|
6284
|
+
"additionalProperties": false
|
|
6285
|
+
},
|
|
6286
|
+
{
|
|
6287
|
+
"type": "object",
|
|
6288
|
+
"properties": {
|
|
6289
|
+
"image": {
|
|
6290
|
+
"type": "string",
|
|
6291
|
+
"description": "Digest-pinned image in the account's managed registry.",
|
|
6292
|
+
"markdownDescription": "Digest-pinned image in the account's managed registry."
|
|
6293
|
+
}
|
|
6294
|
+
},
|
|
6295
|
+
"required": [
|
|
6296
|
+
"image"
|
|
6297
|
+
],
|
|
6298
|
+
"additionalProperties": false
|
|
6299
|
+
}
|
|
6300
|
+
],
|
|
6301
|
+
"description": "An image Wrangler prepares for a Durable Object-managed container.",
|
|
6302
|
+
"markdownDescription": "An image Wrangler prepares for a Durable Object-managed container."
|
|
6303
|
+
},
|
|
6239
6304
|
"ContainerObservability": {
|
|
6240
6305
|
"type": "object",
|
|
6241
6306
|
"properties": {
|
|
@@ -6265,8 +6330,8 @@
|
|
|
6265
6330
|
}
|
|
6266
6331
|
},
|
|
6267
6332
|
"additionalProperties": false,
|
|
6268
|
-
"description": "Configuration for a container application",
|
|
6269
|
-
"markdownDescription": "Configuration for a container application"
|
|
6333
|
+
"description": "Configuration for a container application.",
|
|
6334
|
+
"markdownDescription": "Configuration for a container application."
|
|
6270
6335
|
},
|
|
6271
6336
|
"LocalS3Credentials": {
|
|
6272
6337
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.131.1",
|
|
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.
|
|
70
|
-
"miniflare": "5.20260908.0-alpha",
|
|
69
|
+
"workerd": "1.20260911.1",
|
|
71
70
|
"@cloudflare/unenv-preset": "2.16.1",
|
|
72
|
-
"@cloudflare/kv-asset-handler": "0.5.0"
|
|
71
|
+
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
72
|
+
"miniflare": "5.20260911.0-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.20260911.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",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"resolve": "^1.22.8",
|
|
138
138
|
"rosie-skills": "^0.8.1",
|
|
139
139
|
"semiver": "^1.1.0",
|
|
140
|
-
"shell-quote": "^1.
|
|
140
|
+
"shell-quote": "^1.9.0",
|
|
141
141
|
"signal-exit": "4.1.0",
|
|
142
142
|
"smol-toml": "1.5.2",
|
|
143
143
|
"supports-color": "^9.2.2",
|
|
@@ -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.4.
|
|
159
|
+
"@cloudflare/autoconfig": "0.4.4",
|
|
160
160
|
"@cloudflare/build-output-utils": "0.4.1",
|
|
161
|
-
"@cloudflare/cli-shared-helpers": "0.1.28",
|
|
162
|
-
"@cloudflare/deploy-helpers": "0.10.3",
|
|
163
161
|
"@cloudflare/config": "0.11.0",
|
|
164
|
-
"@cloudflare/
|
|
165
|
-
"@cloudflare/pages-shared": "^0.13.178",
|
|
166
|
-
"@cloudflare/runtime-types": "0.0.23",
|
|
162
|
+
"@cloudflare/cli-shared-helpers": "0.1.29",
|
|
167
163
|
"@cloudflare/pages-functions": "0.1.0",
|
|
168
|
-
"@cloudflare/
|
|
169
|
-
"@cloudflare/
|
|
170
|
-
"@cloudflare/
|
|
164
|
+
"@cloudflare/deploy-helpers": "0.11.1",
|
|
165
|
+
"@cloudflare/containers-shared": "0.16.1",
|
|
166
|
+
"@cloudflare/pages-shared": "^0.13.180",
|
|
167
|
+
"@cloudflare/remote-bindings": "0.0.23",
|
|
168
|
+
"@cloudflare/runtime-types": "0.0.25",
|
|
171
169
|
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
170
|
+
"@cloudflare/workers-shared": "0.19.9",
|
|
171
|
+
"@cloudflare/workers-auth": "0.6.11",
|
|
172
172
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
173
|
-
"@cloudflare/workers-utils": "0.
|
|
173
|
+
"@cloudflare/workers-utils": "0.38.0",
|
|
174
174
|
"@cloudflare/workflows-shared": "0.13.0"
|
|
175
175
|
},
|
|
176
176
|
"peerDependencies": {
|
|
177
|
-
"@cloudflare/workers-types": "^5.
|
|
177
|
+
"@cloudflare/workers-types": "^5.20260911.1"
|
|
178
178
|
},
|
|
179
179
|
"peerDependenciesMeta": {
|
|
180
180
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
export { Binding, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig, printBindings as unstable_printBindings } from '@cloudflare/workers-utils';
|
|
2
|
+
export { Binding, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig, getDurableObjectClassNameToUseSQLiteMap as unstable_getDurableObjectClassNameToUseSQLiteMap, printBindings as unstable_printBindings } from '@cloudflare/workers-utils';
|
|
3
3
|
import { Json as Json$1, WorkerdStructuredLog, DispatchFetch, Miniflare, WorkerRegistry, V4MiniflareOptions, Mutex, Response as Response$1, EmailHandlerResult, DurableObjectStorageOptions, DurableObjectStorageHandle, V4WorkerOptions, V4ModuleRule, RemoteProxyConnectionString, Request } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
5
5
|
import { RequestInfo, RequestInit, Response, FormData } from 'undici';
|
|
@@ -197,13 +197,13 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
|
197
197
|
};
|
|
198
198
|
latest_stage: {
|
|
199
199
|
status: "success" | "skipped" | "active" | "canceled" | "idle" | "failure";
|
|
200
|
-
name: "queued" | "
|
|
200
|
+
name: "queued" | "deploy" | "build" | "initialize" | "clone_repo";
|
|
201
201
|
started_on: string | null;
|
|
202
202
|
ended_on: string | null;
|
|
203
203
|
};
|
|
204
204
|
stages: {
|
|
205
205
|
status: "success" | "skipped" | "active" | "canceled" | "idle" | "failure";
|
|
206
|
-
name: "queued" | "
|
|
206
|
+
name: "queued" | "deploy" | "build" | "initialize" | "clone_repo";
|
|
207
207
|
started_on: string | null;
|
|
208
208
|
ended_on: string | null;
|
|
209
209
|
}[];
|
|
@@ -1124,14 +1124,6 @@ type ReadConfigOptions = ResolveConfigPathOptions & {
|
|
|
1124
1124
|
*/
|
|
1125
1125
|
declare function readConfig(args: ReadConfigCommandArgs, options?: ReadConfigOptions): Config$1;
|
|
1126
1126
|
|
|
1127
|
-
/**
|
|
1128
|
-
* Infer Durable Object class names and storage backends from migrations and
|
|
1129
|
-
* live declarative `exports` entries.
|
|
1130
|
-
*
|
|
1131
|
-
* In practice only one of `migrations` or `exports` will have the Durable Object configuration.
|
|
1132
|
-
*/
|
|
1133
|
-
declare function getDurableObjectClassNameToUseSQLiteMap(migrations: Config$1["migrations"] | undefined, exports?: Config$1["exports"] | undefined): Map<string, boolean>;
|
|
1134
|
-
|
|
1135
1127
|
/**
|
|
1136
1128
|
* Note about this file:
|
|
1137
1129
|
*
|
|
@@ -1272,7 +1264,23 @@ type UnsafeBinding = {
|
|
|
1272
1264
|
[key: string]: unknown;
|
|
1273
1265
|
};
|
|
1274
1266
|
/**
|
|
1275
|
-
*
|
|
1267
|
+
* An image Wrangler prepares for a Durable Object-managed container.
|
|
1268
|
+
*/
|
|
1269
|
+
type DurableObjectContainerImage = {
|
|
1270
|
+
/**
|
|
1271
|
+
* Path to the Dockerfile Wrangler builds and pushes.
|
|
1272
|
+
*/
|
|
1273
|
+
dockerfile: string;
|
|
1274
|
+
image?: never;
|
|
1275
|
+
} | {
|
|
1276
|
+
/**
|
|
1277
|
+
* Digest-pinned image in the account's managed registry.
|
|
1278
|
+
*/
|
|
1279
|
+
image: string;
|
|
1280
|
+
dockerfile?: never;
|
|
1281
|
+
};
|
|
1282
|
+
/**
|
|
1283
|
+
* Configuration for a container application.
|
|
1276
1284
|
*/
|
|
1277
1285
|
type ContainerObservability = {
|
|
1278
1286
|
/** If observability is enabled for this container application */
|
|
@@ -1317,7 +1325,15 @@ type ContainerApp = {
|
|
|
1317
1325
|
/**
|
|
1318
1326
|
* The path to a Dockerfile, or an image URI for the Cloudflare registry.
|
|
1319
1327
|
*/
|
|
1320
|
-
image
|
|
1328
|
+
image?: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* Named images available to a Durable Object-managed container through
|
|
1331
|
+
* `ctx.container.images` and
|
|
1332
|
+
* `env.EXPERIMENTAL_CLOUDFLARE_CONTAINER_IMAGES[className]`.
|
|
1333
|
+
*
|
|
1334
|
+
* Only supported when `scheduling_policy` is `"durable_object"`.
|
|
1335
|
+
*/
|
|
1336
|
+
images?: Record<string, DurableObjectContainerImage>;
|
|
1321
1337
|
/**
|
|
1322
1338
|
* Build context of the application.
|
|
1323
1339
|
* @optional - defaults to the directory of `image`.
|
|
@@ -1346,9 +1362,13 @@ type ContainerApp = {
|
|
|
1346
1362
|
/**
|
|
1347
1363
|
* The scheduling policy of the application
|
|
1348
1364
|
* @optional
|
|
1365
|
+
* `"durable_object"` makes each Durable Object instance own its Container.
|
|
1366
|
+
* In that mode, only `name`, `class_name`, `scheduling_policy`, and `images` are
|
|
1367
|
+
* supported on this entry.
|
|
1368
|
+
*
|
|
1349
1369
|
* @default "default"
|
|
1350
1370
|
*/
|
|
1351
|
-
scheduling_policy?: "default" | "moon" | "regional";
|
|
1371
|
+
scheduling_policy?: "default" | "durable_object" | "moon" | "regional";
|
|
1352
1372
|
/**
|
|
1353
1373
|
* The instance type to be used for the container.
|
|
1354
1374
|
* Select from one of the following named instance types:
|
|
@@ -1526,6 +1546,12 @@ type DurableObjectMigration = {
|
|
|
1526
1546
|
from: string;
|
|
1527
1547
|
to: string;
|
|
1528
1548
|
}[];
|
|
1549
|
+
/** The Durable Objects being transferred from another Worker. */
|
|
1550
|
+
transferred_classes?: {
|
|
1551
|
+
from: string;
|
|
1552
|
+
from_script: string;
|
|
1553
|
+
to: string;
|
|
1554
|
+
}[];
|
|
1529
1555
|
/** The Durable Objects being removed. */
|
|
1530
1556
|
deleted_classes?: string[];
|
|
1531
1557
|
};
|
|
@@ -3961,4 +3987,4 @@ interface Unstable_ASSETSBindingsOptions {
|
|
|
3961
3987
|
}
|
|
3962
3988
|
declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request) => Promise<Response$1>;
|
|
3963
3989
|
|
|
3964
|
-
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,
|
|
3990
|
+
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, unstable_getMiniflareWorkerOptions, getVarsForDev as unstable_getVarsForDev, unstable_pages, readConfig as unstable_readConfig, resolveNamedTunnel as unstable_resolveNamedTunnel, splitSqlQuery as unstable_splitSqlQuery, startWorker as unstable_startWorker };
|