wrangler 4.145.0 → 4.146.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.
Files changed (2) hide show
  1. package/package.json +14 -14
  2. package/wrangler-dist/cli.js +63 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.145.0",
3
+ "version": "4.146.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "assembly",
@@ -71,17 +71,17 @@
71
71
  "esbuild": "0.28.1",
72
72
  "path-to-regexp": "6.3.0",
73
73
  "unenv": "2.0.0-rc.24",
74
- "workerd": "1.20260930.2",
74
+ "workerd": "1.20261001.1",
75
75
  "@cloudflare/kv-asset-handler": "0.5.0",
76
76
  "@cloudflare/unenv-preset": "2.16.2",
77
- "miniflare": "5.20260930.0-alpha"
77
+ "miniflare": "5.20261001.0-alpha"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@aws-sdk/client-s3": "^3.721.0",
81
81
  "@aws-sdk/s3-request-presigner": "^3.721.0",
82
82
  "@bomb.sh/tab": "^0.0.12",
83
83
  "@cloudflare/types": "6.18.4",
84
- "@cloudflare/workers-types": "^5.20260930.2",
84
+ "@cloudflare/workers-types": "^5.20261001.1",
85
85
  "@cspotcode/source-map-support": "0.8.1",
86
86
  "@netlify/build-info": "10.5.1",
87
87
  "@sentry/node": "^7.86.0",
@@ -161,25 +161,25 @@
161
161
  "yaml": "^2.8.1",
162
162
  "yargs": "^17.7.2",
163
163
  "zod": "4.4.3",
164
- "@cloudflare/autoconfig": "0.7.3",
164
+ "@cloudflare/autoconfig": "0.7.4",
165
165
  "@cloudflare/build-output-utils": "0.8.4",
166
- "@cloudflare/cli-shared-helpers": "0.2.1",
166
+ "@cloudflare/cli-shared-helpers": "0.2.2",
167
167
  "@cloudflare/config": "0.22.0",
168
- "@cloudflare/containers-shared": "0.21.1",
169
- "@cloudflare/deploy-helpers": "0.19.0",
170
- "@cloudflare/pages-shared": "^0.13.192",
171
- "@cloudflare/remote-bindings": "0.0.40",
172
- "@cloudflare/runtime-types": "0.1.6",
168
+ "@cloudflare/containers-shared": "0.21.2",
169
+ "@cloudflare/deploy-helpers": "0.19.1",
173
170
  "@cloudflare/pages-functions": "0.1.0",
171
+ "@cloudflare/pages-shared": "^0.13.193",
172
+ "@cloudflare/remote-bindings": "0.0.42",
173
+ "@cloudflare/runtime-types": "0.1.7",
174
174
  "@cloudflare/shared-ast-primitives": "1.1.0",
175
- "@cloudflare/workers-auth": "0.10.0",
175
+ "@cloudflare/workers-auth": "0.11.1",
176
176
  "@cloudflare/workers-shared": "0.20.0",
177
177
  "@cloudflare/workers-tsconfig": "0.0.0",
178
- "@cloudflare/workers-utils": "0.45.0",
178
+ "@cloudflare/workers-utils": "0.45.1",
179
179
  "@cloudflare/workflows-shared": "0.15.0"
180
180
  },
181
181
  "peerDependencies": {
182
- "@cloudflare/workers-types": "^5.20260930.2"
182
+ "@cloudflare/workers-types": "^5.20261001.1"
183
183
  },
184
184
  "peerDependenciesMeta": {
185
185
  "@cloudflare/workers-types": {
@@ -27412,7 +27412,7 @@ var DEFAULT_COMPAT_DATE;
27412
27412
  var init_default_compat_date = __esm({
27413
27413
  "../workers-utils/src/default-compat-date.ts"() {
27414
27414
  init_import_meta_url();
27415
- DEFAULT_COMPAT_DATE = "2026-09-30";
27415
+ DEFAULT_COMPAT_DATE = "2026-10-01";
27416
27416
  }
27417
27417
  });
27418
27418
 
@@ -57511,13 +57511,16 @@ You can try:
57511
57511
  }
57512
57512
  function redactCloudflaredArgsForLogging(args) {
57513
57513
  const redacted = [...args];
57514
+ const sensitiveArgs = ["--token", "--allowed-mail"];
57514
57515
  for (let i8 = 0; i8 < redacted.length; i8++) {
57515
57516
  const arg = redacted[i8];
57516
- if (arg === "--token" && i8 + 1 < redacted.length) {
57517
- redacted[i8 + 1] = "[REDACTED]";
57518
- }
57519
- if (arg.startsWith("--token=")) {
57520
- redacted[i8] = "--token=[REDACTED]";
57517
+ for (const sensitiveArg of sensitiveArgs) {
57518
+ if (arg === sensitiveArg && i8 + 1 < redacted.length) {
57519
+ redacted[i8 + 1] = "[REDACTED]";
57520
+ }
57521
+ if (arg.startsWith(`${sensitiveArg}=`)) {
57522
+ redacted[i8] = `${sensitiveArg}=[REDACTED]`;
57523
+ }
57521
57524
  }
57522
57525
  }
57523
57526
  return redacted;
@@ -57786,6 +57789,27 @@ async function spawnCloudflared(args, options) {
57786
57789
  confirmDownload: options?.confirmDownload,
57787
57790
  logger: logger7
57788
57791
  });
57792
+ if (args.some(
57793
+ (arg) => arg === "--allowed-mail" || arg.startsWith("--allowed-mail=")
57794
+ )) {
57795
+ const minimumVersion = "2026.9.2";
57796
+ const installedVersion = getInstalledVersion(binPath);
57797
+ if (!installedVersion || isVersionOutdated(installedVersion, minimumVersion)) {
57798
+ throw new UserError(
57799
+ `[cloudflared] --allowed-mail requires cloudflared ${minimumVersion} or later.
57800
+
57801
+ ` + (installedVersion ? `The selected binary (${binPath}) is version ${installedVersion}.
57802
+
57803
+ ` : `Could not determine the version of the selected binary (${binPath}).
57804
+
57805
+ `) + `Update cloudflared in your PATH or set CLOUDFLARED_PATH to a compatible binary.
57806
+ Download instructions: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/`,
57807
+ {
57808
+ telemetryMessage: "tunnel cloudflared allowed mail unsupported version"
57809
+ }
57810
+ );
57811
+ }
57812
+ }
57789
57813
  logger7?.debug(
57790
57814
  `Spawning cloudflared: ${binPath} ${redactCloudflaredArgsForLogging(args).join(" ")}`
57791
57815
  );
@@ -63047,7 +63071,7 @@ var name, version2;
63047
63071
  var init_package = __esm({
63048
63072
  "package.json"() {
63049
63073
  name = "wrangler";
63050
- version2 = "4.145.0";
63074
+ version2 = "4.146.0";
63051
63075
  }
63052
63076
  });
63053
63077
 
@@ -179899,6 +179923,10 @@ var init_cf = __esm({
179899
179923
  "ip-prefix-bgp-on-demand.write",
179900
179924
  "ip-prefix.read",
179901
179925
  "ip-prefix.write",
179926
+ "k2.consume",
179927
+ "k2.produce",
179928
+ "k2.read",
179929
+ "k2.write",
179902
179930
  "l4-ddos-managed-ruleset.read",
179903
179931
  "l4-ddos-managed-ruleset.write",
179904
179932
  "load-balancers-account.read",
@@ -180572,7 +180600,7 @@ var init_dist14 = __esm({
180572
180600
  init_wrapper();
180573
180601
  init_create_worker_upload_form();
180574
180602
  import_undici13 = __toESM(require_undici(), 1);
180575
- version3 = "0.0.40";
180603
+ version3 = "0.0.42";
180576
180604
  NoDefaultValueProvided2 = class extends UserError {
180577
180605
  static {
180578
180606
  __name(this, "NoDefaultValueProvided");
@@ -211792,7 +211820,7 @@ var init_namespaces4 = __esm({
211792
211820
  artifactsNamespacesNamespace = createNamespace({
211793
211821
  metadata: {
211794
211822
  description: "Manage Artifacts namespaces",
211795
- status: "private beta",
211823
+ status: "open beta",
211796
211824
  owner: "Product: Artifacts"
211797
211825
  }
211798
211826
  });
@@ -211801,7 +211829,7 @@ var init_namespaces4 = __esm({
211801
211829
  artifactsNamespacesListCommand = createCommand({
211802
211830
  metadata: {
211803
211831
  description: "List Artifacts namespaces",
211804
- status: "private beta",
211832
+ status: "open beta",
211805
211833
  owner: "Product: Artifacts"
211806
211834
  },
211807
211835
  behaviour: {
@@ -211833,7 +211861,7 @@ var init_namespaces4 = __esm({
211833
211861
  artifactsNamespacesGetCommand = createCommand({
211834
211862
  metadata: {
211835
211863
  description: "Get an Artifacts namespace",
211836
- status: "private beta",
211864
+ status: "open beta",
211837
211865
  owner: "Product: Artifacts"
211838
211866
  },
211839
211867
  behaviour: {
@@ -211933,7 +211961,7 @@ var init_repos = __esm({
211933
211961
  artifactsReposNamespace = createNamespace({
211934
211962
  metadata: {
211935
211963
  description: "Manage Artifacts repositories",
211936
- status: "private beta",
211964
+ status: "open beta",
211937
211965
  owner: "Product: Artifacts"
211938
211966
  }
211939
211967
  });
@@ -211944,7 +211972,7 @@ var init_repos = __esm({
211944
211972
  artifactsReposCreateCommand = createCommand({
211945
211973
  metadata: {
211946
211974
  description: "Create an Artifacts repository",
211947
- status: "private beta",
211975
+ status: "open beta",
211948
211976
  owner: "Product: Artifacts"
211949
211977
  },
211950
211978
  behaviour: {
@@ -211991,7 +212019,7 @@ var init_repos = __esm({
211991
212019
  artifactsReposListCommand = createCommand({
211992
212020
  metadata: {
211993
212021
  description: "List Artifacts repositories in a namespace",
211994
- status: "private beta",
212022
+ status: "open beta",
211995
212023
  owner: "Product: Artifacts"
211996
212024
  },
211997
212025
  behaviour: {
@@ -212025,7 +212053,7 @@ var init_repos = __esm({
212025
212053
  artifactsReposGetCommand = createCommand({
212026
212054
  metadata: {
212027
212055
  description: "Get an Artifacts repository",
212028
- status: "private beta",
212056
+ status: "open beta",
212029
212057
  owner: "Product: Artifacts"
212030
212058
  },
212031
212059
  behaviour: {
@@ -212049,7 +212077,7 @@ var init_repos = __esm({
212049
212077
  artifactsReposDeleteCommand = createCommand({
212050
212078
  metadata: {
212051
212079
  description: "Delete an Artifacts repository",
212052
- status: "private beta",
212080
+ status: "open beta",
212053
212081
  owner: "Product: Artifacts"
212054
212082
  },
212055
212083
  behaviour: {
@@ -212086,7 +212114,7 @@ var init_repos = __esm({
212086
212114
  artifactsReposIssueTokenCommand = createCommand({
212087
212115
  metadata: {
212088
212116
  description: "Issue a repo-scoped Artifacts token",
212089
- status: "private beta",
212117
+ status: "open beta",
212090
212118
  owner: "Product: Artifacts"
212091
212119
  },
212092
212120
  behaviour: {
@@ -212148,7 +212176,7 @@ var init_artifacts = __esm({
212148
212176
  artifactsNamespace = createNamespace({
212149
212177
  metadata: {
212150
212178
  description: "\u{1F9F1} Manage Artifacts namespaces and repos",
212151
- status: "private beta",
212179
+ status: "open beta",
212152
212180
  owner: "Product: Artifacts",
212153
212181
  category: "Storage & databases"
212154
212182
  }
@@ -303115,11 +303143,14 @@ function parseMethod(method) {
303115
303143
  return { method };
303116
303144
  }
303117
303145
  function parseHeader(header) {
303118
- const [headerKey, headerQuery] = header.split(":", 2);
303146
+ const separatorIndex = header.indexOf(":");
303147
+ if (separatorIndex === -1) {
303148
+ return { header: { key: header.trim() } };
303149
+ }
303119
303150
  return {
303120
303151
  header: {
303121
- key: headerKey.trim(),
303122
- query: headerQuery?.trim()
303152
+ key: header.slice(0, separatorIndex).trim(),
303153
+ query: header.slice(separatorIndex + 1).trim()
303123
303154
  }
303124
303155
  };
303125
303156
  }
@@ -350364,6 +350395,12 @@ var init_quick_start = __esm({
350364
350395
  demandOption: true,
350365
350396
  description: "The local URL to expose (e.g., http://localhost:3000)"
350366
350397
  },
350398
+ "allowed-mail": {
350399
+ type: "string",
350400
+ array: true,
350401
+ nargs: 1,
350402
+ description: "Require email authentication (cloudflared 2026.9.2 or later). Accepts an exact address or domain wildcard such as user@example.com or *@example.org. May be repeated or comma-separated."
350403
+ },
350367
350404
  "log-level": {
350368
350405
  type: "string",
350369
350406
  default: "info",
@@ -350381,7 +350418,11 @@ var init_quick_start = __esm({
350381
350418
  "--url",
350382
350419
  args.url,
350383
350420
  "--loglevel",
350384
- args.logLevel || "info"
350421
+ args.logLevel || "info",
350422
+ ...(args.allowedMail ?? []).flatMap((allowedMail) => [
350423
+ "--allowed-mail",
350424
+ allowedMail
350425
+ ])
350385
350426
  ];
350386
350427
  logger7.log(`
350387
350428
  Starting cloudflared...`);