wrangler 3.13.1 → 3.13.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.13.1",
3
+ "version": "3.13.2",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -89,7 +89,7 @@
89
89
  "blake3-wasm": "^2.1.5",
90
90
  "chokidar": "^3.5.3",
91
91
  "esbuild": "0.17.19",
92
- "miniflare": "3.20231010.0",
92
+ "miniflare": "3.20231016.0",
93
93
  "nanoid": "^3.3.3",
94
94
  "path-to-regexp": "^6.2.0",
95
95
  "selfsigned": "^2.0.1",
@@ -179,9 +179,9 @@
179
179
  "vitest": "^0.34.4",
180
180
  "ws": "^8.5.0",
181
181
  "xdg-app-paths": "^8.3.0",
182
- "yargs": "^17.4.1",
182
+ "yargs": "^17.7.2",
183
183
  "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
184
- "@cloudflare/pages-shared": "^0.10.0",
184
+ "@cloudflare/pages-shared": "^0.10.1",
185
185
  "@cloudflare/workers-tsconfig": "0.0.0"
186
186
  },
187
187
  "optionalDependencies": {
@@ -116345,13 +116345,13 @@ module.exports = __toCommonJS(cli_exports);
116345
116345
  init_import_meta_url();
116346
116346
  var import_process = __toESM(require("process"));
116347
116347
 
116348
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/helpers/helpers.mjs
116348
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/helpers/helpers.mjs
116349
116349
  init_import_meta_url();
116350
116350
 
116351
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/apply-extends.js
116351
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/apply-extends.js
116352
116352
  init_import_meta_url();
116353
116353
 
116354
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/yerror.js
116354
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/yerror.js
116355
116355
  init_import_meta_url();
116356
116356
  var YError = class extends Error {
116357
116357
  constructor(msg) {
@@ -116364,7 +116364,7 @@ var YError = class extends Error {
116364
116364
  };
116365
116365
  __name(YError, "YError");
116366
116366
 
116367
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/apply-extends.js
116367
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/apply-extends.js
116368
116368
  var previouslyVisitedConfigs = [];
116369
116369
  var shim;
116370
116370
  function applyExtends(config, cwd2, mergeExtends, _shim) {
@@ -116422,7 +116422,7 @@ function mergeDeep(config1, config2) {
116422
116422
  }
116423
116423
  __name(mergeDeep, "mergeDeep");
116424
116424
 
116425
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/process-argv.js
116425
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/process-argv.js
116426
116426
  init_import_meta_url();
116427
116427
  function getProcessArgvBinIndex() {
116428
116428
  if (isBundledElectronApp())
@@ -117476,7 +117476,7 @@ yargsParser.decamelize = decamelize;
117476
117476
  yargsParser.looksLikeNumber = looksLikeNumber;
117477
117477
  var lib_default = yargsParser;
117478
117478
 
117479
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/lib/platform-shims/esm.mjs
117479
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/lib/platform-shims/esm.mjs
117480
117480
  init_import_meta_url();
117481
117481
  var import_assert = require("assert");
117482
117482
 
@@ -117804,7 +117804,7 @@ function sync_default(start, callback) {
117804
117804
  }
117805
117805
  __name(sync_default, "default");
117806
117806
 
117807
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/lib/platform-shims/esm.mjs
117807
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/lib/platform-shims/esm.mjs
117808
117808
  var import_util3 = require("util");
117809
117809
  var import_fs4 = require("fs");
117810
117810
  var import_url = require("url");
@@ -118004,7 +118004,7 @@ var y18n2 = /* @__PURE__ */ __name((opts) => {
118004
118004
  }, "y18n");
118005
118005
  var y18n_default = y18n2;
118006
118006
 
118007
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/lib/platform-shims/esm.mjs
118007
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/lib/platform-shims/esm.mjs
118008
118008
  var REQUIRE_ERROR = "require is not supported by ESM";
118009
118009
  var REQUIRE_DIRECTORY_ERROR = "loading a directory of commands is not supported yet for ESM";
118010
118010
  var __dirname2;
@@ -119718,7 +119718,7 @@ var import_undici3 = __toESM(require_undici());
119718
119718
  var import_undici4 = __toESM(require_undici());
119719
119719
 
119720
119720
  // package.json
119721
- var version = "3.13.1";
119721
+ var version = "3.13.2";
119722
119722
  var package_default = {
119723
119723
  name: "wrangler",
119724
119724
  version,
@@ -119828,7 +119828,7 @@ var package_default = {
119828
119828
  "blake3-wasm": "^2.1.5",
119829
119829
  chokidar: "^3.5.3",
119830
119830
  esbuild: "0.17.19",
119831
- miniflare: "3.20231010.0",
119831
+ miniflare: "3.20231016.0",
119832
119832
  nanoid: "^3.3.3",
119833
119833
  "path-to-regexp": "^6.2.0",
119834
119834
  selfsigned: "^2.0.1",
@@ -119920,7 +119920,7 @@ var package_default = {
119920
119920
  vitest: "^0.34.4",
119921
119921
  ws: "^8.5.0",
119922
119922
  "xdg-app-paths": "^8.3.0",
119923
- yargs: "^17.4.1",
119923
+ yargs: "^17.7.2",
119924
119924
  "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz"
119925
119925
  },
119926
119926
  optionalDependencies: {
@@ -129637,16 +129637,16 @@ var supports_color_default = supportsColor;
129637
129637
  // src/index.ts
129638
129638
  var import_undici15 = __toESM(require_undici());
129639
129639
 
129640
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/index.mjs
129640
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/index.mjs
129641
129641
  init_import_meta_url();
129642
129642
 
129643
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/yargs-factory.js
129643
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/yargs-factory.js
129644
129644
  init_import_meta_url();
129645
129645
 
129646
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/command.js
129646
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/command.js
129647
129647
  init_import_meta_url();
129648
129648
 
129649
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/typings/common-types.js
129649
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/typings/common-types.js
129650
129650
  init_import_meta_url();
129651
129651
  function assertNotStrictEqual(actual, expected, shim3, message) {
129652
129652
  shim3.assert.notStrictEqual(actual, expected, message);
@@ -129661,20 +129661,20 @@ function objectKeys(object) {
129661
129661
  }
129662
129662
  __name(objectKeys, "objectKeys");
129663
129663
 
129664
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/is-promise.js
129664
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/is-promise.js
129665
129665
  init_import_meta_url();
129666
129666
  function isPromise(maybePromise) {
129667
129667
  return !!maybePromise && !!maybePromise.then && typeof maybePromise.then === "function";
129668
129668
  }
129669
129669
  __name(isPromise, "isPromise");
129670
129670
 
129671
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/middleware.js
129671
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/middleware.js
129672
129672
  init_import_meta_url();
129673
129673
 
129674
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/argsert.js
129674
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/argsert.js
129675
129675
  init_import_meta_url();
129676
129676
 
129677
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/parse-command.js
129677
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/parse-command.js
129678
129678
  init_import_meta_url();
129679
129679
  function parseCommand2(cmd) {
129680
129680
  const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, " ");
@@ -129709,7 +129709,7 @@ function parseCommand2(cmd) {
129709
129709
  }
129710
129710
  __name(parseCommand2, "parseCommand");
129711
129711
 
129712
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/argsert.js
129712
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/argsert.js
129713
129713
  var positionName = ["first", "second", "third", "fourth", "fifth", "sixth"];
129714
129714
  function argsert(arg1, arg2, arg3) {
129715
129715
  function parseArgs() {
@@ -129771,7 +129771,7 @@ function argumentTypeError(observedType, allowedTypes, position) {
129771
129771
  }
129772
129772
  __name(argumentTypeError, "argumentTypeError");
129773
129773
 
129774
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/middleware.js
129774
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/middleware.js
129775
129775
  var GlobalMiddleware = class {
129776
129776
  constructor(yargs) {
129777
129777
  this.globalMiddleware = [];
@@ -129856,7 +129856,7 @@ function applyMiddleware(argv, yargs, middlewares, beforeValidation) {
129856
129856
  }
129857
129857
  __name(applyMiddleware, "applyMiddleware");
129858
129858
 
129859
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/maybe-async-result.js
129859
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/maybe-async-result.js
129860
129860
  init_import_meta_url();
129861
129861
  function maybeAsyncResult(getResult, resultHandler, errorHandler = (err) => {
129862
129862
  throw err;
@@ -129874,7 +129874,7 @@ function isFunction(arg) {
129874
129874
  }
129875
129875
  __name(isFunction, "isFunction");
129876
129876
 
129877
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/which-module.js
129877
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/which-module.js
129878
129878
  init_import_meta_url();
129879
129879
  function whichModule(exported) {
129880
129880
  if (typeof require === "undefined")
@@ -129888,7 +129888,7 @@ function whichModule(exported) {
129888
129888
  }
129889
129889
  __name(whichModule, "whichModule");
129890
129890
 
129891
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/command.js
129891
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/command.js
129892
129892
  var DEFAULT_MARKER = /(^\*)|(^\$0)/;
129893
129893
  var CommandInstance = class {
129894
129894
  constructor(usage2, validation2, globalMiddleware, shim3) {
@@ -130287,10 +130287,10 @@ function isCommandHandlerDefinition(cmd) {
130287
130287
  }
130288
130288
  __name(isCommandHandlerDefinition, "isCommandHandlerDefinition");
130289
130289
 
130290
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/usage.js
130290
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/usage.js
130291
130291
  init_import_meta_url();
130292
130292
 
130293
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/obj-filter.js
130293
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/obj-filter.js
130294
130294
  init_import_meta_url();
130295
130295
  function objFilter(original = {}, filter = () => true) {
130296
130296
  const obj = {};
@@ -130303,7 +130303,7 @@ function objFilter(original = {}, filter = () => true) {
130303
130303
  }
130304
130304
  __name(objFilter, "objFilter");
130305
130305
 
130306
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/set-blocking.js
130306
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/set-blocking.js
130307
130307
  init_import_meta_url();
130308
130308
  function setBlocking(blocking) {
130309
130309
  if (typeof process === "undefined")
@@ -130317,7 +130317,7 @@ function setBlocking(blocking) {
130317
130317
  }
130318
130318
  __name(setBlocking, "setBlocking");
130319
130319
 
130320
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/usage.js
130320
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/usage.js
130321
130321
  function isBoolean2(fail) {
130322
130322
  return typeof fail === "boolean";
130323
130323
  }
@@ -130855,10 +130855,10 @@ function getText(text) {
130855
130855
  }
130856
130856
  __name(getText, "getText");
130857
130857
 
130858
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/completion.js
130858
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/completion.js
130859
130859
  init_import_meta_url();
130860
130860
 
130861
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/completion-templates.js
130861
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/completion-templates.js
130862
130862
  init_import_meta_url();
130863
130863
  var completionShTemplate = `###-begin-{{app_name}}-completions-###
130864
130864
  #
@@ -130910,7 +130910,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
130910
130910
  ###-end-{{app_name}}-completions-###
130911
130911
  `;
130912
130912
 
130913
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/completion.js
130913
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/completion.js
130914
130914
  var Completion = class {
130915
130915
  constructor(yargs, usage2, command2, shim3) {
130916
130916
  var _a2, _b2, _c2;
@@ -130968,9 +130968,7 @@ var Completion = class {
130968
130968
  const negable = !!options25.configuration["boolean-negation"] && options25.boolean.includes(key);
130969
130969
  const isPositionalKey = positionalKeys.includes(key);
130970
130970
  if (!isPositionalKey && !options25.hiddenOptions.includes(key) && !this.argsContainKey(args, key, negable)) {
130971
- this.completeOptionKey(key, completions, current);
130972
- if (negable && !!options25.default[key])
130973
- this.completeOptionKey(`no-${key}`, completions, current);
130971
+ this.completeOptionKey(key, completions, current, negable && !!options25.default[key]);
130974
130972
  }
130975
130973
  });
130976
130974
  }
@@ -131046,22 +131044,25 @@ var Completion = class {
131046
131044
  }
131047
131045
  return false;
131048
131046
  }
131049
- completeOptionKey(key, completions, current) {
131050
- var _a2, _b2, _c2;
131051
- const descs = this.usage.getDescriptions();
131052
- const startsByTwoDashes = /* @__PURE__ */ __name((s) => /^--/.test(s), "startsByTwoDashes");
131053
- const isShortOption = /* @__PURE__ */ __name((s) => /^[^0-9]$/.test(s), "isShortOption");
131054
- const dashes = !startsByTwoDashes(current) && isShortOption(key) ? "-" : "--";
131055
- if (!this.zshShell) {
131056
- completions.push(dashes + key);
131057
- } else {
131058
- const aliasKey = (_a2 = this === null || this === void 0 ? void 0 : this.aliases) === null || _a2 === void 0 ? void 0 : _a2[key].find((alias) => {
131047
+ completeOptionKey(key, completions, current, negable) {
131048
+ var _a2, _b2, _c2, _d;
131049
+ let keyWithDesc = key;
131050
+ if (this.zshShell) {
131051
+ const descs = this.usage.getDescriptions();
131052
+ const aliasKey = (_b2 = (_a2 = this === null || this === void 0 ? void 0 : this.aliases) === null || _a2 === void 0 ? void 0 : _a2[key]) === null || _b2 === void 0 ? void 0 : _b2.find((alias) => {
131059
131053
  const desc2 = descs[alias];
131060
131054
  return typeof desc2 === "string" && desc2.length > 0;
131061
131055
  });
131062
131056
  const descFromAlias = aliasKey ? descs[aliasKey] : void 0;
131063
- const desc = (_c2 = (_b2 = descs[key]) !== null && _b2 !== void 0 ? _b2 : descFromAlias) !== null && _c2 !== void 0 ? _c2 : "";
131064
- completions.push(dashes + `${key.replace(/:/g, "\\:")}:${desc.replace("__yargsString__:", "").replace(/(\r\n|\n|\r)/gm, " ")}`);
131057
+ const desc = (_d = (_c2 = descs[key]) !== null && _c2 !== void 0 ? _c2 : descFromAlias) !== null && _d !== void 0 ? _d : "";
131058
+ keyWithDesc = `${key.replace(/:/g, "\\:")}:${desc.replace("__yargsString__:", "").replace(/(\r\n|\n|\r)/gm, " ")}`;
131059
+ }
131060
+ const startsByTwoDashes = /* @__PURE__ */ __name((s) => /^--/.test(s), "startsByTwoDashes");
131061
+ const isShortOption = /* @__PURE__ */ __name((s) => /^[^0-9]$/.test(s), "isShortOption");
131062
+ const dashes = !startsByTwoDashes(current) && isShortOption(key) ? "-" : "--";
131063
+ completions.push(dashes + keyWithDesc);
131064
+ if (negable) {
131065
+ completions.push(dashes + "no-" + keyWithDesc);
131065
131066
  }
131066
131067
  }
131067
131068
  customCompletion(args, argv, current, done) {
@@ -131126,10 +131127,10 @@ function isFallbackCompletionFunction(completionFunction) {
131126
131127
  }
131127
131128
  __name(isFallbackCompletionFunction, "isFallbackCompletionFunction");
131128
131129
 
131129
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/validation.js
131130
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/validation.js
131130
131131
  init_import_meta_url();
131131
131132
 
131132
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/levenshtein.js
131133
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/levenshtein.js
131133
131134
  init_import_meta_url();
131134
131135
  function levenshtein(a, b) {
131135
131136
  if (a.length === 0)
@@ -131162,7 +131163,7 @@ function levenshtein(a, b) {
131162
131163
  }
131163
131164
  __name(levenshtein, "levenshtein");
131164
131165
 
131165
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/validation.js
131166
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/validation.js
131166
131167
  var specialKeys = ["$0", "--", "_"];
131167
131168
  function validation(yargs, usage2, shim3) {
131168
131169
  const __ = shim3.y18n.__;
@@ -131433,7 +131434,7 @@ ${customMsgs.join("\n")}` : "";
131433
131434
  }
131434
131435
  __name(validation, "validation");
131435
131436
 
131436
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/yargs-factory.js
131437
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/yargs-factory.js
131437
131438
  var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
131438
131439
  if (kind === "m")
131439
131440
  throw new TypeError("Private method is not writable");
@@ -132935,7 +132936,7 @@ function isYargsInstance(y) {
132935
132936
  }
132936
132937
  __name(isYargsInstance, "isYargsInstance");
132937
132938
 
132938
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/index.mjs
132939
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/index.mjs
132939
132940
  var Yargs = YargsFactory(esm_default);
132940
132941
  var yargs_default = Yargs;
132941
132942
 
@@ -151465,6 +151466,11 @@ function DevSession(props) {
151465
151466
  "Queues are currently in Beta and are not supported in wrangler dev remote mode."
151466
151467
  );
151467
151468
  }
151469
+ if (props.local && props.bindings.hyperdrive?.length) {
151470
+ logger.warn(
151471
+ "Hyperdrive does not currently support 'wrangler dev' in local mode at this stage of the beta. Use the '--remote' flag to test a Hyperdrive configuration before deploying."
151472
+ );
151473
+ }
151468
151474
  const announceAndOnReady = /* @__PURE__ */ __name((finalIp, finalPort) => {
151469
151475
  if (process.send) {
151470
151476
  process.send(