wrangler 4.148.0 → 4.150.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.
@@ -258,8 +258,8 @@
258
258
  },
259
259
  "upload_source_maps": {
260
260
  "type": "boolean",
261
- "description": "Include source maps when uploading this worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps",
262
- "markdownDescription": "Include source maps when uploading this worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps"
261
+ "description": "Include source maps when uploading this worker.\n\nDefaults to `true` for `wrangler deploy`, `wrangler versions upload` and `wrangler preview`, where source maps that can't be resolved are skipped rather than failing the upload. Defaults to `false` for `wrangler build --experimental-cf-build-output`.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps",
262
+ "markdownDescription": "Include source maps when uploading this worker.\n\nDefaults to `true` for `wrangler deploy`, `wrangler versions upload` and\n`wrangler preview`, where source maps that can't be resolved are skipped\nrather than failing the upload. Defaults to `false` for\n`wrangler build --experimental-cf-build-output`.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps"
263
263
  },
264
264
  "placement": {
265
265
  "anyOf": [
@@ -1858,8 +1858,8 @@
1858
1858
  "items": {
1859
1859
  "type": "string"
1860
1860
  },
1861
- "description": "The inbound email addresses handled by the Worker being deployed.\n\nEach entry is a literal recipient address (e.g. `\"support@example.com\"`) or a `*@domain` catch-all (e.g. `\"*@example.com\"`). Every entry creates an Email Routing rule whose action routes mail to this Worker.\n\nThis field is top-level only and applies to every environment of the Worker; it cannot be set under `env.*`.",
1862
- "markdownDescription": "The inbound email addresses handled by the Worker being deployed.\n\nEach entry is a literal recipient address (e.g. `\"support@example.com\"`)\nor a `*@domain` catch-all (e.g. `\"*@example.com\"`). Every entry creates an\nEmail Routing rule whose action routes mail to this Worker.\n\nThis field is top-level only and applies to every environment of the\nWorker; it cannot be set under `env.*`."
1861
+ "description": "The inbound email addresses handled by the Worker being deployed.\n\nEach entry is a literal recipient address (e.g. `\"support@example.com\"`) or a `*@domain` catch-all (e.g. `\"*@example.com\"`). Every entry creates an Email Routing rule whose action routes mail to this Worker.\n\nA `*@domain` catch-all must use the zone apex (e.g. `\"*@example.com\"`, not `\"*@mail.example.com\"`). The zone catch-all also receives mail for every subdomain in the zone that has no literal rule.\n\nThis field is top-level only and applies to every environment of the Worker; it cannot be set under `env.*`.",
1862
+ "markdownDescription": "The inbound email addresses handled by the Worker being deployed.\n\nEach entry is a literal recipient address (e.g. `\"support@example.com\"`)\nor a `*@domain` catch-all (e.g. `\"*@example.com\"`). Every entry creates an\nEmail Routing rule whose action routes mail to this Worker.\n\nA `*@domain` catch-all must use the zone apex (e.g. `\"*@example.com\"`,\nnot `\"*@mail.example.com\"`). The zone catch-all also receives mail for\nevery subdomain in the zone that has no literal rule.\n\nThis field is top-level only and applies to every environment of the\nWorker; it cannot be set under `env.*`."
1863
1863
  }
1864
1864
  }
1865
1865
  },
@@ -2108,8 +2108,8 @@
2108
2108
  },
2109
2109
  "upload_source_maps": {
2110
2110
  "type": "boolean",
2111
- "description": "Include source maps when uploading this worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps",
2112
- "markdownDescription": "Include source maps when uploading this worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps"
2111
+ "description": "Include source maps when uploading this worker.\n\nDefaults to `true` for `wrangler deploy`, `wrangler versions upload` and `wrangler preview`, where source maps that can't be resolved are skipped rather than failing the upload. Defaults to `false` for `wrangler build --experimental-cf-build-output`.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps",
2112
+ "markdownDescription": "Include source maps when uploading this worker.\n\nDefaults to `true` for `wrangler deploy`, `wrangler versions upload` and\n`wrangler preview`, where source maps that can't be resolved are skipped\nrather than failing the upload. Defaults to `false` for\n`wrangler build --experimental-cf-build-output`.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps"
2113
2113
  },
2114
2114
  "placement": {
2115
2115
  "anyOf": [
@@ -4409,19 +4409,19 @@
4409
4409
  "type": "object",
4410
4410
  "properties": {
4411
4411
  "logpush": {
4412
- "$ref": "#/definitions/interface-769040647-14867-25229-769040647-0-615212004818536"
4412
+ "$ref": "#/definitions/interface-769040647-14867-25500-769040647-0-617922004818536"
4413
4413
  },
4414
4414
  "observability": {
4415
- "$ref": "#/definitions/interface-769040647-14867-25229-769040647-0-615212004818536"
4415
+ "$ref": "#/definitions/interface-769040647-14867-25500-769040647-0-617922004818536"
4416
4416
  },
4417
4417
  "limits": {
4418
- "$ref": "#/definitions/interface-769040647-14867-25229-769040647-0-615212004818536"
4418
+ "$ref": "#/definitions/interface-769040647-14867-25500-769040647-0-617922004818536"
4419
4419
  },
4420
4420
  "placement": {
4421
- "$ref": "#/definitions/interface-769040647-14867-25229-769040647-0-615212004818536"
4421
+ "$ref": "#/definitions/interface-769040647-14867-25500-769040647-0-617922004818536"
4422
4422
  },
4423
4423
  "cache": {
4424
- "$ref": "#/definitions/interface-769040647-14867-25229-769040647-0-615212004818536"
4424
+ "$ref": "#/definitions/interface-769040647-14867-25500-769040647-0-617922004818536"
4425
4425
  },
4426
4426
  "define": {
4427
4427
  "type": "object",
@@ -5786,7 +5786,7 @@
5786
5786
  "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`, `placement`, `cache`",
5787
5787
  "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`, `placement`, `cache`"
5788
5788
  },
5789
- "interface-769040647-14867-25229-769040647-0-615212004818536": {
5789
+ "interface-769040647-14867-25500-769040647-0-617922004818536": {
5790
5790
  "type": "object",
5791
5791
  "properties": {
5792
5792
  "name": {
@@ -6027,8 +6027,8 @@
6027
6027
  },
6028
6028
  "upload_source_maps": {
6029
6029
  "type": "boolean",
6030
- "description": "Include source maps when uploading this worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps",
6031
- "markdownDescription": "Include source maps when uploading this worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps"
6030
+ "description": "Include source maps when uploading this worker.\n\nDefaults to `true` for `wrangler deploy`, `wrangler versions upload` and `wrangler preview`, where source maps that can't be resolved are skipped rather than failing the upload. Defaults to `false` for `wrangler build --experimental-cf-build-output`.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps",
6031
+ "markdownDescription": "Include source maps when uploading this worker.\n\nDefaults to `true` for `wrangler deploy`, `wrangler versions upload` and\n`wrangler preview`, where source maps that can't be resolved are skipped\nrather than failing the upload. Defaults to `false` for\n`wrangler build --experimental-cf-build-output`.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps"
6032
6032
  },
6033
6033
  "placement": {
6034
6034
  "anyOf": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.148.0",
3
+ "version": "4.150.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "assembly",
@@ -68,12 +68,12 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "blake3-wasm": "2.1.5",
71
- "esbuild": "0.28.1",
71
+ "esbuild": "0.28.2",
72
72
  "path-to-regexp": "6.3.0",
73
73
  "unenv": "2.0.0-rc.24",
74
74
  "workerd": "1.20261006.1",
75
75
  "@cloudflare/kv-asset-handler": "0.5.0",
76
- "miniflare": "5.20261006.0-alpha",
76
+ "miniflare": "5.20261006.2-beta",
77
77
  "@cloudflare/unenv-preset": "2.16.2"
78
78
  },
79
79
  "devDependencies": {
@@ -160,23 +160,23 @@
160
160
  "xxhash-wasm": "^1.0.1",
161
161
  "yaml": "^2.8.1",
162
162
  "yargs": "^17.7.2",
163
- "zod": "4.4.3",
164
- "@cloudflare/autoconfig": "0.7.6",
165
- "@cloudflare/build-output-utils": "0.8.6",
166
- "@cloudflare/cli-shared-helpers": "0.2.4",
167
- "@cloudflare/config": "0.24.0",
168
- "@cloudflare/containers-shared": "0.21.4",
169
- "@cloudflare/pages-functions": "0.1.0",
170
- "@cloudflare/deploy-helpers": "0.20.0",
171
- "@cloudflare/pages-shared": "^0.13.194",
172
- "@cloudflare/remote-bindings": "0.0.44",
173
- "@cloudflare/runtime-types": "0.1.8",
163
+ "zod": "4.6.5",
164
+ "@cloudflare/build-output-utils": "0.9.1",
165
+ "@cloudflare/autoconfig": "0.7.8",
166
+ "@cloudflare/cli-shared-helpers": "0.2.6",
167
+ "@cloudflare/config": "0.25.0",
168
+ "@cloudflare/containers-shared": "0.21.6",
169
+ "@cloudflare/deploy-helpers": "0.20.2",
170
+ "@cloudflare/pages-functions": "0.1.1",
171
+ "@cloudflare/pages-shared": "^0.13.196",
172
+ "@cloudflare/remote-bindings": "0.0.46",
173
+ "@cloudflare/runtime-types": "0.1.10",
174
174
  "@cloudflare/shared-ast-primitives": "1.1.0",
175
- "@cloudflare/workers-auth": "0.13.0",
176
- "@cloudflare/workers-shared": "0.20.0",
175
+ "@cloudflare/workers-auth": "0.14.0",
177
176
  "@cloudflare/workers-tsconfig": "0.0.0",
178
- "@cloudflare/workers-utils": "0.47.0",
179
- "@cloudflare/workflows-shared": "0.15.0"
177
+ "@cloudflare/workers-shared": "0.20.1",
178
+ "@cloudflare/workers-utils": "0.47.2",
179
+ "@cloudflare/workflows-shared": "0.15.1"
180
180
  },
181
181
  "peerDependencies": {
182
182
  "@cloudflare/workers-types": "^5.20261006.1"
@@ -1919,6 +1919,11 @@ interface EnvironmentInheritable {
1919
1919
  /**
1920
1920
  * Include source maps when uploading this worker.
1921
1921
  *
1922
+ * Defaults to `true` for `wrangler deploy`, `wrangler versions upload` and
1923
+ * `wrangler preview`, where source maps that can't be resolved are skipped
1924
+ * rather than failing the upload. Defaults to `false` for
1925
+ * `wrangler build --experimental-cf-build-output`.
1926
+ *
1922
1927
  * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
1923
1928
  *
1924
1929
  * @inheritable
@@ -3234,6 +3239,10 @@ interface ConfigFields<Dev extends RawDevConfig> {
3234
3239
  * or a `*@domain` catch-all (e.g. `"*@example.com"`). Every entry creates an
3235
3240
  * Email Routing rule whose action routes mail to this Worker.
3236
3241
  *
3242
+ * A `*@domain` catch-all must use the zone apex (e.g. `"*@example.com"`,
3243
+ * not `"*@mail.example.com"`). The zone catch-all also receives mail for
3244
+ * every subdomain in the zone that has no literal rule.
3245
+ *
3237
3246
  * This field is top-level only and applies to every environment of the
3238
3247
  * Worker; it cannot be set under `env.*`.
3239
3248
  *
@@ -3490,7 +3499,7 @@ declare function unstable_getMiniflareWorkerOptions(config: Config, env?: string
3490
3499
  containerBuildId?: string;
3491
3500
  }): Unstable_MiniflareWorkerOptions;
3492
3501
 
3493
- type StartRemoteProxySessionOptions = Omit<StartRemoteProxySessionOptions$1, "logger">;
3502
+ type StartRemoteProxySessionOptions = Omit<StartRemoteProxySessionOptions$1, "cliDisplayName" | "logger">;
3494
3503
  declare function startRemoteProxySession(bindings: StartDevWorkerInput["bindings"], options?: StartRemoteProxySessionOptions): Promise<RemoteProxySession>;
3495
3504
 
3496
3505
  type WranglerConfigObject = {
@@ -3838,9 +3847,11 @@ type CommandDefinition<NamedArgDefs extends NamedArgDefinitions = NamedArgDefini
3838
3847
  suggestSkillsAfterHandler?: boolean | ((args: HandlerArgs<NamedArgDefs>) => boolean);
3839
3848
  /**
3840
3849
  * Whether this command can authenticate with a temporary preview account
3841
- * (via the hidden `--temporary` flag) when no real credentials are available.
3842
- * Only enable this for commands whose API calls are covered by the temporary
3843
- * preview-account deploy token (Workers, KV, D1, Hyperdrive, Queues, SSL/Certs).
3850
+ * (via the hidden `--temporary` and `--event-code` flags) when no real
3851
+ * credentials are available. Only enable this for commands whose API calls
3852
+ * are covered by the temporary preview-account deploy token (Workers, KV,
3853
+ * D1, Hyperdrive, Queues, SSL/Certs). R2 and Containers commands are also
3854
+ * enabled, but only work on event accounts created with `--event-code`.
3844
3855
  * @default false
3845
3856
  */
3846
3857
  supportTemporary?: boolean;