wrangler 4.15.0 → 4.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.15.0",
3
+ "version": "4.15.1",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -57,7 +57,7 @@
57
57
  "unenv": "2.0.0-rc.15",
58
58
  "workerd": "1.20250508.0",
59
59
  "@cloudflare/kv-asset-handler": "0.4.0",
60
- "miniflare": "4.20250508.0"
60
+ "miniflare": "4.20250508.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-s3": "^3.721.0",
@@ -135,11 +135,11 @@
135
135
  "xdg-app-paths": "^8.3.0",
136
136
  "xxhash-wasm": "^1.0.1",
137
137
  "yargs": "^17.7.2",
138
+ "@cloudflare/cli": "1.1.1",
138
139
  "@cloudflare/eslint-config-worker": "1.1.0",
140
+ "@cloudflare/pages-shared": "^0.13.38",
139
141
  "@cloudflare/workers-shared": "0.17.5",
140
- "@cloudflare/workers-tsconfig": "0.0.0",
141
- "@cloudflare/pages-shared": "^0.13.37",
142
- "@cloudflare/cli": "1.1.1"
142
+ "@cloudflare/workers-tsconfig": "0.0.0"
143
143
  },
144
144
  "peerDependencies": {
145
145
  "@cloudflare/workers-types": "^4.20250508.0"
@@ -0,0 +1,13 @@
1
+ function stripCfConnectingIPHeader(input, init) {
2
+ const request = new Request(input, init);
3
+ request.headers.delete("CF-Connecting-IP");
4
+ return request;
5
+ }
6
+
7
+ globalThis.fetch = new Proxy(globalThis.fetch, {
8
+ apply(target, thisArg, argArray) {
9
+ return Reflect.apply(target, thisArg, [
10
+ stripCfConnectingIPHeader.apply(null, argArray),
11
+ ]);
12
+ },
13
+ });
@@ -81414,7 +81414,7 @@ var import_undici3 = __toESM(require_undici());
81414
81414
 
81415
81415
  // package.json
81416
81416
  var name = "wrangler";
81417
- var version = "4.15.0";
81417
+ var version = "4.15.1";
81418
81418
 
81419
81419
  // src/environment-variables/misc-variables.ts
81420
81420
  init_import_meta_url();
@@ -107283,6 +107283,24 @@ async function bundleWorker(entry, destination, {
107283
107283
  }
107284
107284
  inject.push(checkedFetchFileToInject);
107285
107285
  }
107286
+ if (targetConsumer === "dev" && local) {
107287
+ const stripCfConnectingIpHeaderFileToInject = path29.join(
107288
+ tmpDir.path,
107289
+ "strip-cf-connecting-ip-header.js"
107290
+ );
107291
+ if (!fs11.existsSync(stripCfConnectingIpHeaderFileToInject)) {
107292
+ fs11.writeFileSync(
107293
+ stripCfConnectingIpHeaderFileToInject,
107294
+ fs11.readFileSync(
107295
+ path29.resolve(
107296
+ getBasePath(),
107297
+ "templates/strip-cf-connecting-ip-header.js"
107298
+ )
107299
+ )
107300
+ );
107301
+ }
107302
+ inject.push(stripCfConnectingIpHeaderFileToInject);
107303
+ }
107286
107304
  if (getFlag("MULTIWORKER")) {
107287
107305
  middlewareToLoad.push({
107288
107306
  name: "patch-console-prefix",
@@ -115466,6 +115484,8 @@ var CommandRegistry = class {
115466
115484
  }
115467
115485
  /**
115468
115486
  * Registers a specific namespace if not already registered.
115487
+ * TODO: Remove this once all commands use the command registry.
115488
+ * See https://github.com/cloudflare/workers-sdk/pull/7357#discussion_r1862138470 for more details.
115469
115489
  */
115470
115490
  registerNamespace(namespace) {
115471
115491
  if (this.#registeredNamespaces.has(namespace)) {
@@ -152272,7 +152292,7 @@ function createCLIParser(argv) {
152272
152292
  definition: secretsStoreSecretDuplicateCommand
152273
152293
  }
152274
152294
  ]);
152275
- registry.registerNamespace("cert");
152295
+ registry.registerNamespace("secrets-store");
152276
152296
  registry.define([
152277
152297
  {
152278
152298
  command: "wrangler workflows",