wrangler 3.65.0 → 3.65.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": "3.65.0",
3
+ "version": "3.65.1",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -65,11 +65,11 @@
65
65
  "unenv": "npm:unenv-nightly@1.10.0-1717606461.a117952",
66
66
  "xxhash-wasm": "^1.0.1",
67
67
  "@cloudflare/kv-asset-handler": "0.3.4",
68
- "miniflare": "3.20240712.0"
68
+ "miniflare": "3.20240718.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@cloudflare/types": "^6.18.4",
72
- "@cloudflare/workers-types": "^4.20240712.0",
72
+ "@cloudflare/workers-types": "^4.20240718.0",
73
73
  "@cspotcode/source-map-support": "0.8.1",
74
74
  "@iarna/toml": "^3.0.0",
75
75
  "@microsoft/api-extractor": "^7.47.0",
@@ -152,12 +152,12 @@
152
152
  "yargs": "^17.7.2",
153
153
  "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
154
154
  "@cloudflare/cli": "1.1.1",
155
- "@cloudflare/pages-shared": "^0.11.47",
156
- "@cloudflare/workers-tsconfig": "0.0.0",
157
- "@cloudflare/eslint-config-worker": "1.1.0"
155
+ "@cloudflare/eslint-config-worker": "1.1.0",
156
+ "@cloudflare/pages-shared": "^0.11.48",
157
+ "@cloudflare/workers-tsconfig": "0.0.0"
158
158
  },
159
159
  "peerDependencies": {
160
- "@cloudflare/workers-types": "^4.20240712.0"
160
+ "@cloudflare/workers-types": "^4.20240718.0"
161
161
  },
162
162
  "peerDependenciesMeta": {
163
163
  "@cloudflare/workers-types": {
@@ -152675,7 +152675,7 @@ init_import_meta_url();
152675
152675
  init_import_meta_url();
152676
152676
 
152677
152677
  // package.json
152678
- var version = "3.65.0";
152678
+ var version = "3.65.1";
152679
152679
  var package_default = {
152680
152680
  name: "wrangler",
152681
152681
  version,
@@ -152770,7 +152770,7 @@ var package_default = {
152770
152770
  "@cloudflare/pages-shared": "workspace:^",
152771
152771
  "@cloudflare/types": "^6.18.4",
152772
152772
  "@cloudflare/workers-tsconfig": "workspace:*",
152773
- "@cloudflare/workers-types": "^4.20240712.0",
152773
+ "@cloudflare/workers-types": "^4.20240718.0",
152774
152774
  "@cspotcode/source-map-support": "0.8.1",
152775
152775
  "@iarna/toml": "^3.0.0",
152776
152776
  "@microsoft/api-extractor": "^7.47.0",
@@ -152854,7 +152854,7 @@ var package_default = {
152854
152854
  "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz"
152855
152855
  },
152856
152856
  peerDependencies: {
152857
- "@cloudflare/workers-types": "^4.20240712.0"
152857
+ "@cloudflare/workers-types": "^4.20240718.0"
152858
152858
  },
152859
152859
  peerDependenciesMeta: {
152860
152860
  "@cloudflare/workers-types": {
@@ -160391,15 +160391,24 @@ async function findAdditionalModules(entry, rules, attachSourcemaps = false) {
160391
160391
  }
160392
160392
  if (modules.length > 0) {
160393
160393
  logger.info(`Attaching additional modules:`);
160394
- logger.table(
160395
- modules.map(({ name, type, content }) => {
160394
+ const totalSize = modules.reduce(
160395
+ (previous, { content }) => previous + content.length,
160396
+ 0
160397
+ );
160398
+ logger.table([
160399
+ ...modules.map(({ name, type, content }) => {
160396
160400
  return {
160397
160401
  Name: name,
160398
160402
  Type: type ?? "",
160399
160403
  Size: type === "python-requirement" ? "" : `${(content.length / 1024).toFixed(2)} KiB`
160400
160404
  };
160401
- })
160402
- );
160405
+ }),
160406
+ {
160407
+ Name: `Total (${modules.length} module${modules.length > 1 ? "s" : ""})`,
160408
+ Type: "",
160409
+ Size: `${(totalSize / 1024).toFixed(2)} KiB`
160410
+ }
160411
+ ]);
160403
160412
  }
160404
160413
  return modules;
160405
160414
  }
@@ -170027,9 +170036,7 @@ function handleFailure(cb) {
170027
170036
  return;
170028
170037
  }
170029
170038
  if (err instanceof Error) {
170030
- logger.log(
170031
- `${{ error: err.message, name: err.name, stack: err.stack }}`
170032
- );
170039
+ logger.log(`${JSON.stringify({ error: err.message })}`);
170033
170040
  return;
170034
170041
  }
170035
170042
  logger.log(JSON.stringify(err));
@@ -179330,8 +179337,10 @@ async function generateHandler2(args) {
179330
179337
  }
179331
179338
  await printWranglerBanner();
179332
179339
  logger.warn(
179333
- `The \`generate\` command is no longer supported and will be removed in a future version.`
179334
- // TODO: recommend replacement commands
179340
+ `Deprecation: \`wrangler generate\` has been deprecated and will be removed in a future version.
179341
+ Use \`npm create cloudflare@latest\` for new Workers and Pages projects.
179342
+
179343
+ Please refer to https://developers.cloudflare.com/workers/wrangler/deprecations/#generate for more information."`
179335
179344
  );
179336
179345
  if (args.type) {
179337
179346
  let message = "The --type option is no longer supported.";
@@ -185932,7 +185941,7 @@ var secret = /* @__PURE__ */ __name((secretYargs, subHelp) => {
185932
185941
  }
185933
185942
  ).command(
185934
185943
  "bulk [json]",
185935
- "\u{1F5C4}\uFE0F Bulk upload secrets for a Pages project",
185944
+ "Bulk upload secrets for a Pages project",
185936
185945
  (yargs) => {
185937
185946
  return yargs.positional("json", {
185938
185947
  describe: `The JSON file of key-value pairs to upload, in form {"key": value, ...}`,
@@ -207112,10 +207121,20 @@ __name(onKeyPress, "onKeyPress");
207112
207121
  // src/cli-hotkeys.ts
207113
207122
  function cli_hotkeys_default(options29) {
207114
207123
  function formatInstructions() {
207115
- const instructions = options29.filter((option) => !unwrapHook(option.disabled)).map(({ keys, label }) => `[${keys[0]}] ${unwrapHook(label)}`).join(", ");
207116
- return `\u256D\u2500\u2500${"\u2500".repeat(instructions.length)}\u2500\u2500\u256E
207117
- \u2502 ${instructions} \u2502
207118
- \u2570\u2500\u2500${"\u2500".repeat(instructions.length)}\u2500\u2500\u256F`;
207124
+ const instructions = options29.filter((option) => !unwrapHook(option.disabled)).map(({ keys, label }) => `[${keys[0]}] ${unwrapHook(label)}`);
207125
+ let stringifiedInstructions = instructions.join(", ");
207126
+ const ADDITIONAL_CHARS = 6;
207127
+ const willWrap = stringifiedInstructions.length + ADDITIONAL_CHARS > process.stdout.columns;
207128
+ if (willWrap) {
207129
+ stringifiedInstructions = instructions.join("\n");
207130
+ }
207131
+ const maxLineLength = Math.max(
207132
+ ...stringifiedInstructions.split("\n").map((line) => line.length)
207133
+ );
207134
+ stringifiedInstructions = stringifiedInstructions.split("\n").map((line) => `\u2502 ${line.padEnd(maxLineLength, " ")} \u2502`).join("\n");
207135
+ return `\u256D\u2500\u2500${"\u2500".repeat(maxLineLength)}\u2500\u2500\u256E
207136
+ ` + stringifiedInstructions + `
207137
+ \u2570\u2500\u2500${"\u2500".repeat(maxLineLength)}\u2500\u2500\u256F`;
207119
207138
  }
207120
207139
  __name(formatInstructions, "formatInstructions");
207121
207140
  const unregisterKeyPress = onKeyPress(async (key) => {
@@ -211580,3 +211599,4 @@ yargs-parser/build/lib/index.js:
211580
211599
  * SPDX-License-Identifier: ISC
211581
211600
  *)
211582
211601
  */
211602
+ //# sourceMappingURL=cli.js.map