wrangler 3.114.1 → 3.114.2

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": "3.114.1",
3
+ "version": "3.114.2",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -59,7 +59,7 @@
59
59
  "unenv": "2.0.0-rc.14",
60
60
  "workerd": "1.20250310.0",
61
61
  "@cloudflare/kv-asset-handler": "0.3.4",
62
- "miniflare": "3.20250310.0"
62
+ "miniflare": "3.20250310.1"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@aws-sdk/client-s3": "^3.721.0",
@@ -139,7 +139,7 @@
139
139
  "yargs": "^17.7.2",
140
140
  "@cloudflare/cli": "1.1.1",
141
141
  "@cloudflare/eslint-config-worker": "1.1.0",
142
- "@cloudflare/pages-shared": "^0.13.13",
142
+ "@cloudflare/pages-shared": "^0.13.14",
143
143
  "@cloudflare/workers-shared": "0.15.0",
144
144
  "@cloudflare/workers-tsconfig": "0.0.0"
145
145
  },
@@ -81450,7 +81450,7 @@ var import_undici3 = __toESM(require_undici());
81450
81450
 
81451
81451
  // package.json
81452
81452
  var name = "wrangler";
81453
- var version = "3.114.1";
81453
+ var version = "3.114.2";
81454
81454
 
81455
81455
  // src/environment-variables/misc-variables.ts
81456
81456
  init_import_meta_url();
@@ -88098,6 +88098,7 @@ var supportedPagesConfigFields = [
88098
88098
  "compatibility_date",
88099
88099
  "compatibility_flags",
88100
88100
  "send_metrics",
88101
+ "no_bundle",
88101
88102
  "limits",
88102
88103
  "placement",
88103
88104
  "vars",
@@ -126234,7 +126235,8 @@ function Options12(yargs) {
126234
126235
  },
126235
126236
  "no-bundle": {
126236
126237
  type: "boolean",
126237
- default: false,
126238
+ default: void 0,
126239
+ conflicts: "bundle",
126238
126240
  description: "Whether to run bundling on `_worker.js` before deploying"
126239
126241
  },
126240
126242
  config: {
@@ -126437,6 +126439,7 @@ To silence this warning, pass in --commit-dirty=true`
126437
126439
  commitDirty = isGitDirty;
126438
126440
  }
126439
126441
  }
126442
+ const enableBundling = args.bundle ?? !(args.noBundle ?? config?.no_bundle);
126440
126443
  const { deploymentResponse, formData } = await deploy2({
126441
126444
  directory,
126442
126445
  accountId,
@@ -126446,9 +126449,7 @@ To silence this warning, pass in --commit-dirty=true`
126446
126449
  commitHash,
126447
126450
  commitDirty,
126448
126451
  skipCaching: args.skipCaching,
126449
- // TODO: Here lies a known bug. If you specify both `--bundle` and `--no-bundle`, this behavior is undefined and you will get unexpected results.
126450
- // There is no sane way to get the true value out of yargs, so here we are.
126451
- bundle: args.bundle ?? !args.noBundle,
126452
+ bundle: enableBundling,
126452
126453
  // Sourcemaps from deploy arguments will take precedence so people can try it for one-off deployments without updating their wrangler.toml
126453
126454
  sourceMaps: config?.upload_source_maps || args.uploadSourceMaps,
126454
126455
  args
@@ -127250,7 +127251,8 @@ function Options14(yargs) {
127250
127251
  },
127251
127252
  "no-bundle": {
127252
127253
  type: "boolean",
127253
- default: false,
127254
+ default: void 0,
127255
+ conflicts: "bundle",
127254
127256
  description: "Whether to run bundling on `_worker.js`"
127255
127257
  },
127256
127258
  binding: {
@@ -127429,7 +127431,7 @@ The Worker script should be named \`_worker.js\` and located in the build output
127429
127431
  const workerScriptPath = directory !== void 0 ? (0, import_node_path54.join)(directory, singleWorkerScriptPath) : (0, import_node_path54.resolve)(singleWorkerScriptPath);
127430
127432
  const usingWorkerDirectory = (0, import_node_fs27.existsSync)(workerScriptPath) && (0, import_node_fs27.lstatSync)(workerScriptPath).isDirectory();
127431
127433
  const usingWorkerScript = (0, import_node_fs27.existsSync)(workerScriptPath);
127432
- const enableBundling = args.bundle ?? !args.noBundle;
127434
+ const enableBundling = args.bundle ?? !(args.noBundle ?? config.no_bundle);
127433
127435
  const functionsDirectory = "./functions";
127434
127436
  let usingFunctions = !usingWorkerScript && (0, import_node_fs27.existsSync)(functionsDirectory);
127435
127437
  let scriptPath3 = "";
@@ -127438,7 +127440,7 @@ The Worker script should be named \`_worker.js\` and located in the build output
127438
127440
  args.compatibilityFlags ?? config.compatibility_flags ?? [],
127439
127441
  {
127440
127442
  nodeCompat: args.nodeCompat,
127441
- noBundle: args.noBundle ?? config.no_bundle
127443
+ noBundle: !enableBundling
127442
127444
  }
127443
127445
  );
127444
127446
  const defineNavigatorUserAgent = isNavigatorDefined(
@@ -153377,7 +153379,13 @@ async function getEntryValue(entry) {
153377
153379
  __name(getEntryValue, "getEntryValue");
153378
153380
  function getModuleType(entry) {
153379
153381
  if (entry instanceof Blob) {
153380
- return ModuleTypeToRuleType[mimeTypeModuleType[entry.type]];
153382
+ const type = ModuleTypeToRuleType[mimeTypeModuleType[entry.type]];
153383
+ if (!type) {
153384
+ throw new Error(
153385
+ `Unable to determine module type for ${entry.type} mime type`
153386
+ );
153387
+ }
153388
+ return type;
153381
153389
  } else {
153382
153390
  return "Text";
153383
153391
  }
@@ -154661,8 +154669,10 @@ ${resolvedAssetsPath}`,
154661
154669
  );
154662
154670
  }
154663
154671
  }
154664
- const redirects = maybeGetFile(path65.join(directory, REDIRECTS_FILENAME));
154665
- const headers = maybeGetFile(path65.join(directory, HEADERS_FILENAME));
154672
+ const redirects = maybeGetFile(
154673
+ path65.join(resolvedAssetsPath, REDIRECTS_FILENAME)
154674
+ );
154675
+ const headers = maybeGetFile(path65.join(resolvedAssetsPath, HEADERS_FILENAME));
154666
154676
  const assetConfig = {
154667
154677
  html_handling: config.assets?.html_handling,
154668
154678
  not_found_handling: config.assets?.not_found_handling