wrangler 3.13.1 → 3.14.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "3.13.1",
3
+ "version": "3.14.0",
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": {
@@ -738,6 +738,13 @@ declare interface EnvironmentInheritable {
738
738
  * @inheritable
739
739
  */
740
740
  usage_model: "bundled" | "unbound" | undefined;
741
+ /**
742
+ * Specify limits for runtime behavior.
743
+ * Only supported for the "standard" Usage Model
744
+ *
745
+ * @inheritable
746
+ */
747
+ limits: UserLimits | undefined;
741
748
  /**
742
749
  * An ordered list of rules that define which modules to import,
743
750
  * and what type to import them as. You will need to specify rules
@@ -1672,6 +1679,11 @@ export declare interface UnstableDevOptions {
1672
1679
  script_name?: string | undefined;
1673
1680
  environment?: string | undefined;
1674
1681
  }[];
1682
+ services?: {
1683
+ binding: string;
1684
+ service: string;
1685
+ environment?: string | undefined;
1686
+ }[];
1675
1687
  r2?: {
1676
1688
  binding: string;
1677
1689
  bucket_name: string;
@@ -1707,6 +1719,11 @@ export declare interface UnstableDevWorker {
1707
1719
  waitUntilExit: () => Promise<void>;
1708
1720
  }
1709
1721
 
1722
+ declare interface UserLimits {
1723
+ /** Maximum allowed CPU time for a worker's invocation in milliseconds */
1724
+ cpu_ms: number;
1725
+ }
1726
+
1710
1727
  declare type ZoneIdRoute = {
1711
1728
  pattern: string;
1712
1729
  zone_id: string;
@@ -51820,14 +51820,14 @@ var require_templates = __commonJS({
51820
51820
  return results;
51821
51821
  }
51822
51822
  __name(parseStyle, "parseStyle");
51823
- function buildStyle(chalk15, styles) {
51823
+ function buildStyle(chalk16, styles) {
51824
51824
  const enabled = {};
51825
51825
  for (const layer of styles) {
51826
51826
  for (const style of layer.styles) {
51827
51827
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
51828
51828
  }
51829
51829
  }
51830
- let current = chalk15;
51830
+ let current = chalk16;
51831
51831
  for (const [styleName, styles2] of Object.entries(enabled)) {
51832
51832
  if (!Array.isArray(styles2)) {
51833
51833
  continue;
@@ -51840,7 +51840,7 @@ var require_templates = __commonJS({
51840
51840
  return current;
51841
51841
  }
51842
51842
  __name(buildStyle, "buildStyle");
51843
- module2.exports = (chalk15, temporary) => {
51843
+ module2.exports = (chalk16, temporary) => {
51844
51844
  const styles = [];
51845
51845
  const chunks = [];
51846
51846
  let chunk = [];
@@ -51850,13 +51850,13 @@ var require_templates = __commonJS({
51850
51850
  } else if (style) {
51851
51851
  const string = chunk.join("");
51852
51852
  chunk = [];
51853
- chunks.push(styles.length === 0 ? string : buildStyle(chalk15, styles)(string));
51853
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk16, styles)(string));
51854
51854
  styles.push({ inverse, styles: parseStyle(style) });
51855
51855
  } else if (close) {
51856
51856
  if (styles.length === 0) {
51857
51857
  throw new Error("Found extraneous } in Chalk template literal");
51858
51858
  }
51859
- chunks.push(buildStyle(chalk15, styles)(chunk.join("")));
51859
+ chunks.push(buildStyle(chalk16, styles)(chunk.join("")));
51860
51860
  chunk = [];
51861
51861
  styles.pop();
51862
51862
  } else {
@@ -51906,16 +51906,16 @@ var require_source = __commonJS({
51906
51906
  };
51907
51907
  __name(ChalkClass, "ChalkClass");
51908
51908
  var chalkFactory = /* @__PURE__ */ __name((options25) => {
51909
- const chalk16 = {};
51910
- applyOptions(chalk16, options25);
51911
- chalk16.template = (...arguments_) => chalkTag(chalk16.template, ...arguments_);
51912
- Object.setPrototypeOf(chalk16, Chalk.prototype);
51913
- Object.setPrototypeOf(chalk16.template, chalk16);
51914
- chalk16.template.constructor = () => {
51909
+ const chalk17 = {};
51910
+ applyOptions(chalk17, options25);
51911
+ chalk17.template = (...arguments_) => chalkTag(chalk17.template, ...arguments_);
51912
+ Object.setPrototypeOf(chalk17, Chalk.prototype);
51913
+ Object.setPrototypeOf(chalk17.template, chalk17);
51914
+ chalk17.template.constructor = () => {
51915
51915
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
51916
51916
  };
51917
- chalk16.template.Instance = ChalkClass;
51918
- return chalk16.template;
51917
+ chalk17.template.Instance = ChalkClass;
51918
+ return chalk17.template;
51919
51919
  }, "chalkFactory");
51920
51920
  function Chalk(options25) {
51921
51921
  return chalkFactory(options25);
@@ -52027,7 +52027,7 @@ var require_source = __commonJS({
52027
52027
  return openAll + string + closeAll;
52028
52028
  }, "applyStyle");
52029
52029
  var template;
52030
- var chalkTag = /* @__PURE__ */ __name((chalk16, ...strings) => {
52030
+ var chalkTag = /* @__PURE__ */ __name((chalk17, ...strings) => {
52031
52031
  const [firstString] = strings;
52032
52032
  if (!isArray(firstString) || !isArray(firstString.raw)) {
52033
52033
  return strings.join(" ");
@@ -52043,14 +52043,14 @@ var require_source = __commonJS({
52043
52043
  if (template === void 0) {
52044
52044
  template = require_templates();
52045
52045
  }
52046
- return template(chalk16, parts.join(""));
52046
+ return template(chalk17, parts.join(""));
52047
52047
  }, "chalkTag");
52048
52048
  Object.defineProperties(Chalk.prototype, styles);
52049
- var chalk15 = Chalk();
52050
- chalk15.supportsColor = stdoutColor;
52051
- chalk15.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
52052
- chalk15.stderr.supportsColor = stderrColor;
52053
- module2.exports = chalk15;
52049
+ var chalk16 = Chalk();
52050
+ chalk16.supportsColor = stdoutColor;
52051
+ chalk16.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
52052
+ chalk16.stderr.supportsColor = stderrColor;
52053
+ module2.exports = chalk16;
52054
52054
  }
52055
52055
  });
52056
52056
 
@@ -55490,14 +55490,14 @@ var require_templates2 = __commonJS({
55490
55490
  return results;
55491
55491
  }
55492
55492
  __name(parseStyle, "parseStyle");
55493
- function buildStyle(chalk15, styles) {
55493
+ function buildStyle(chalk16, styles) {
55494
55494
  const enabled = {};
55495
55495
  for (const layer of styles) {
55496
55496
  for (const style of layer.styles) {
55497
55497
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
55498
55498
  }
55499
55499
  }
55500
- let current = chalk15;
55500
+ let current = chalk16;
55501
55501
  for (const styleName of Object.keys(enabled)) {
55502
55502
  if (Array.isArray(enabled[styleName])) {
55503
55503
  if (!(styleName in current)) {
@@ -55513,7 +55513,7 @@ var require_templates2 = __commonJS({
55513
55513
  return current;
55514
55514
  }
55515
55515
  __name(buildStyle, "buildStyle");
55516
- module2.exports = (chalk15, tmp5) => {
55516
+ module2.exports = (chalk16, tmp5) => {
55517
55517
  const styles = [];
55518
55518
  const chunks = [];
55519
55519
  let chunk = [];
@@ -55523,13 +55523,13 @@ var require_templates2 = __commonJS({
55523
55523
  } else if (style) {
55524
55524
  const str = chunk.join("");
55525
55525
  chunk = [];
55526
- chunks.push(styles.length === 0 ? str : buildStyle(chalk15, styles)(str));
55526
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk16, styles)(str));
55527
55527
  styles.push({ inverse, styles: parseStyle(style) });
55528
55528
  } else if (close) {
55529
55529
  if (styles.length === 0) {
55530
55530
  throw new Error("Found extraneous } in Chalk template literal");
55531
55531
  }
55532
- chunks.push(buildStyle(chalk15, styles)(chunk.join("")));
55532
+ chunks.push(buildStyle(chalk16, styles)(chunk.join("")));
55533
55533
  chunk = [];
55534
55534
  styles.pop();
55535
55535
  } else {
@@ -55568,16 +55568,16 @@ var require_chalk = __commonJS({
55568
55568
  __name(applyOptions, "applyOptions");
55569
55569
  function Chalk(options25) {
55570
55570
  if (!this || !(this instanceof Chalk) || this.template) {
55571
- const chalk15 = {};
55572
- applyOptions(chalk15, options25);
55573
- chalk15.template = function() {
55571
+ const chalk16 = {};
55572
+ applyOptions(chalk16, options25);
55573
+ chalk16.template = function() {
55574
55574
  const args = [].slice.call(arguments);
55575
- return chalkTag.apply(null, [chalk15.template].concat(args));
55575
+ return chalkTag.apply(null, [chalk16.template].concat(args));
55576
55576
  };
55577
- Object.setPrototypeOf(chalk15, Chalk.prototype);
55578
- Object.setPrototypeOf(chalk15.template, chalk15);
55579
- chalk15.template.constructor = Chalk;
55580
- return chalk15.template;
55577
+ Object.setPrototypeOf(chalk16, Chalk.prototype);
55578
+ Object.setPrototypeOf(chalk16.template, chalk16);
55579
+ chalk16.template.constructor = Chalk;
55580
+ return chalk16.template;
55581
55581
  }
55582
55582
  applyOptions(this, options25);
55583
55583
  }
@@ -55699,7 +55699,7 @@ var require_chalk = __commonJS({
55699
55699
  return str;
55700
55700
  }
55701
55701
  __name(applyStyle, "applyStyle");
55702
- function chalkTag(chalk15, strings) {
55702
+ function chalkTag(chalk16, strings) {
55703
55703
  if (!Array.isArray(strings)) {
55704
55704
  return [].slice.call(arguments, 1).join(" ");
55705
55705
  }
@@ -55709,7 +55709,7 @@ var require_chalk = __commonJS({
55709
55709
  parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
55710
55710
  parts.push(String(strings.raw[i]));
55711
55711
  }
55712
- return template(chalk15, parts.join(""));
55712
+ return template(chalk16, parts.join(""));
55713
55713
  }
55714
55714
  __name(chalkTag, "chalkTag");
55715
55715
  Object.defineProperties(Chalk.prototype, styles);
@@ -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.14.0";
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: {
@@ -122631,6 +122631,7 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, envNam
122631
122631
  isOneOf("bundled", "unbound"),
122632
122632
  void 0
122633
122633
  ),
122634
+ limits: normalizeAndValidateLimits(diagnostics, topLevelEnv, rawEnv),
122634
122635
  placement: normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv),
122635
122636
  build: build5,
122636
122637
  workers_dev,
@@ -123981,6 +123982,26 @@ var validateConsumer = /* @__PURE__ */ __name((diagnostics, field, value, _confi
123981
123982
  }
123982
123983
  return isValid;
123983
123984
  }, "validateConsumer");
123985
+ function normalizeAndValidateLimits(diagnostics, topLevelEnv, rawEnv) {
123986
+ if (rawEnv.limits) {
123987
+ validateRequiredProperty(
123988
+ diagnostics,
123989
+ "limits",
123990
+ "cpu_ms",
123991
+ rawEnv.limits.cpu_ms,
123992
+ "number"
123993
+ );
123994
+ }
123995
+ return inheritable(
123996
+ diagnostics,
123997
+ topLevelEnv,
123998
+ rawEnv,
123999
+ "limits",
124000
+ () => true,
124001
+ void 0
124002
+ );
124003
+ }
124004
+ __name(normalizeAndValidateLimits, "normalizeAndValidateLimits");
123984
124005
 
123985
124006
  // src/config/index.ts
123986
124007
  function readConfig(configPath, args) {
@@ -128769,7 +128790,7 @@ var import_node_assert15 = __toESM(require("node:assert"));
128769
128790
  var import_node_fs29 = require("node:fs");
128770
128791
  var import_node_path45 = __toESM(require("node:path"));
128771
128792
  var import_node_url10 = require("node:url");
128772
- var import_chalk13 = __toESM(require_chalk());
128793
+ var import_chalk14 = __toESM(require_chalk());
128773
128794
  var import_tmp_promise2 = __toESM(require_tmp_promise());
128774
128795
 
128775
128796
  // src/deployment-bundle/bundle-reporter.ts
@@ -128900,7 +128921,8 @@ function createWorkerUploadForm(worker) {
128900
128921
  keepVars,
128901
128922
  logpush,
128902
128923
  placement,
128903
- tail_consumers
128924
+ tail_consumers,
128925
+ limits
128904
128926
  } = worker;
128905
128927
  let { modules } = worker;
128906
128928
  const metadataBindings = [];
@@ -129155,7 +129177,8 @@ function createWorkerUploadForm(worker) {
129155
129177
  ...keepVars && { keep_bindings: ["plain_text", "json"] },
129156
129178
  ...logpush !== void 0 && { logpush },
129157
129179
  ...placement && { placement },
129158
- ...tail_consumers && { tail_consumers }
129180
+ ...tail_consumers && { tail_consumers },
129181
+ ...limits && { limits }
129159
129182
  };
129160
129183
  if (bindings.unsafe?.metadata !== void 0) {
129161
129184
  for (const key of Object.keys(bindings.unsafe.metadata)) {
@@ -129184,7 +129207,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
129184
129207
  init_import_meta_url();
129185
129208
  var import_url3 = require("url");
129186
129209
  var import_toml6 = __toESM(require_toml());
129187
- var import_chalk11 = __toESM(require_chalk());
129210
+ var import_chalk12 = __toESM(require_chalk());
129188
129211
  var import_undici16 = __toESM(require_undici());
129189
129212
 
129190
129213
  // src/init.ts
@@ -129508,7 +129531,7 @@ __name(parse4, "parse");
129508
129531
  init_import_meta_url();
129509
129532
  var import_node_os12 = __toESM(require("node:os"));
129510
129533
  var import_toml4 = __toESM(require_toml());
129511
- var import_chalk10 = __toESM(require_chalk());
129534
+ var import_chalk11 = __toESM(require_chalk());
129512
129535
 
129513
129536
  // ../../node_modules/.pnpm/supports-color@9.2.2/node_modules/supports-color/index.js
129514
129537
  init_import_meta_url();
@@ -129637,16 +129660,16 @@ var supports_color_default = supportsColor;
129637
129660
  // src/index.ts
129638
129661
  var import_undici15 = __toESM(require_undici());
129639
129662
 
129640
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/index.mjs
129663
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/index.mjs
129641
129664
  init_import_meta_url();
129642
129665
 
129643
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/yargs-factory.js
129666
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/yargs-factory.js
129644
129667
  init_import_meta_url();
129645
129668
 
129646
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/command.js
129669
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/command.js
129647
129670
  init_import_meta_url();
129648
129671
 
129649
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/typings/common-types.js
129672
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/typings/common-types.js
129650
129673
  init_import_meta_url();
129651
129674
  function assertNotStrictEqual(actual, expected, shim3, message) {
129652
129675
  shim3.assert.notStrictEqual(actual, expected, message);
@@ -129661,20 +129684,20 @@ function objectKeys(object) {
129661
129684
  }
129662
129685
  __name(objectKeys, "objectKeys");
129663
129686
 
129664
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/is-promise.js
129687
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/is-promise.js
129665
129688
  init_import_meta_url();
129666
129689
  function isPromise(maybePromise) {
129667
129690
  return !!maybePromise && !!maybePromise.then && typeof maybePromise.then === "function";
129668
129691
  }
129669
129692
  __name(isPromise, "isPromise");
129670
129693
 
129671
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/middleware.js
129694
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/middleware.js
129672
129695
  init_import_meta_url();
129673
129696
 
129674
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/argsert.js
129697
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/argsert.js
129675
129698
  init_import_meta_url();
129676
129699
 
129677
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/parse-command.js
129700
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/parse-command.js
129678
129701
  init_import_meta_url();
129679
129702
  function parseCommand2(cmd) {
129680
129703
  const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, " ");
@@ -129709,7 +129732,7 @@ function parseCommand2(cmd) {
129709
129732
  }
129710
129733
  __name(parseCommand2, "parseCommand");
129711
129734
 
129712
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/argsert.js
129735
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/argsert.js
129713
129736
  var positionName = ["first", "second", "third", "fourth", "fifth", "sixth"];
129714
129737
  function argsert(arg1, arg2, arg3) {
129715
129738
  function parseArgs() {
@@ -129771,7 +129794,7 @@ function argumentTypeError(observedType, allowedTypes, position) {
129771
129794
  }
129772
129795
  __name(argumentTypeError, "argumentTypeError");
129773
129796
 
129774
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/middleware.js
129797
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/middleware.js
129775
129798
  var GlobalMiddleware = class {
129776
129799
  constructor(yargs) {
129777
129800
  this.globalMiddleware = [];
@@ -129856,7 +129879,7 @@ function applyMiddleware(argv, yargs, middlewares, beforeValidation) {
129856
129879
  }
129857
129880
  __name(applyMiddleware, "applyMiddleware");
129858
129881
 
129859
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/maybe-async-result.js
129882
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/maybe-async-result.js
129860
129883
  init_import_meta_url();
129861
129884
  function maybeAsyncResult(getResult, resultHandler, errorHandler = (err) => {
129862
129885
  throw err;
@@ -129874,7 +129897,7 @@ function isFunction(arg) {
129874
129897
  }
129875
129898
  __name(isFunction, "isFunction");
129876
129899
 
129877
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/which-module.js
129900
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/which-module.js
129878
129901
  init_import_meta_url();
129879
129902
  function whichModule(exported) {
129880
129903
  if (typeof require === "undefined")
@@ -129888,7 +129911,7 @@ function whichModule(exported) {
129888
129911
  }
129889
129912
  __name(whichModule, "whichModule");
129890
129913
 
129891
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/command.js
129914
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/command.js
129892
129915
  var DEFAULT_MARKER = /(^\*)|(^\$0)/;
129893
129916
  var CommandInstance = class {
129894
129917
  constructor(usage2, validation2, globalMiddleware, shim3) {
@@ -130287,10 +130310,10 @@ function isCommandHandlerDefinition(cmd) {
130287
130310
  }
130288
130311
  __name(isCommandHandlerDefinition, "isCommandHandlerDefinition");
130289
130312
 
130290
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/usage.js
130313
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/usage.js
130291
130314
  init_import_meta_url();
130292
130315
 
130293
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/obj-filter.js
130316
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/obj-filter.js
130294
130317
  init_import_meta_url();
130295
130318
  function objFilter(original = {}, filter = () => true) {
130296
130319
  const obj = {};
@@ -130303,7 +130326,7 @@ function objFilter(original = {}, filter = () => true) {
130303
130326
  }
130304
130327
  __name(objFilter, "objFilter");
130305
130328
 
130306
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/set-blocking.js
130329
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/set-blocking.js
130307
130330
  init_import_meta_url();
130308
130331
  function setBlocking(blocking) {
130309
130332
  if (typeof process === "undefined")
@@ -130317,7 +130340,7 @@ function setBlocking(blocking) {
130317
130340
  }
130318
130341
  __name(setBlocking, "setBlocking");
130319
130342
 
130320
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/usage.js
130343
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/usage.js
130321
130344
  function isBoolean2(fail) {
130322
130345
  return typeof fail === "boolean";
130323
130346
  }
@@ -130855,10 +130878,10 @@ function getText(text) {
130855
130878
  }
130856
130879
  __name(getText, "getText");
130857
130880
 
130858
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/completion.js
130881
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/completion.js
130859
130882
  init_import_meta_url();
130860
130883
 
130861
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/completion-templates.js
130884
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/completion-templates.js
130862
130885
  init_import_meta_url();
130863
130886
  var completionShTemplate = `###-begin-{{app_name}}-completions-###
130864
130887
  #
@@ -130910,7 +130933,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
130910
130933
  ###-end-{{app_name}}-completions-###
130911
130934
  `;
130912
130935
 
130913
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/completion.js
130936
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/completion.js
130914
130937
  var Completion = class {
130915
130938
  constructor(yargs, usage2, command2, shim3) {
130916
130939
  var _a2, _b2, _c2;
@@ -130968,9 +130991,7 @@ var Completion = class {
130968
130991
  const negable = !!options25.configuration["boolean-negation"] && options25.boolean.includes(key);
130969
130992
  const isPositionalKey = positionalKeys.includes(key);
130970
130993
  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);
130994
+ this.completeOptionKey(key, completions, current, negable && !!options25.default[key]);
130974
130995
  }
130975
130996
  });
130976
130997
  }
@@ -131046,22 +131067,25 @@ var Completion = class {
131046
131067
  }
131047
131068
  return false;
131048
131069
  }
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) => {
131070
+ completeOptionKey(key, completions, current, negable) {
131071
+ var _a2, _b2, _c2, _d;
131072
+ let keyWithDesc = key;
131073
+ if (this.zshShell) {
131074
+ const descs = this.usage.getDescriptions();
131075
+ 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
131076
  const desc2 = descs[alias];
131060
131077
  return typeof desc2 === "string" && desc2.length > 0;
131061
131078
  });
131062
131079
  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, " ")}`);
131080
+ const desc = (_d = (_c2 = descs[key]) !== null && _c2 !== void 0 ? _c2 : descFromAlias) !== null && _d !== void 0 ? _d : "";
131081
+ keyWithDesc = `${key.replace(/:/g, "\\:")}:${desc.replace("__yargsString__:", "").replace(/(\r\n|\n|\r)/gm, " ")}`;
131082
+ }
131083
+ const startsByTwoDashes = /* @__PURE__ */ __name((s) => /^--/.test(s), "startsByTwoDashes");
131084
+ const isShortOption = /* @__PURE__ */ __name((s) => /^[^0-9]$/.test(s), "isShortOption");
131085
+ const dashes = !startsByTwoDashes(current) && isShortOption(key) ? "-" : "--";
131086
+ completions.push(dashes + keyWithDesc);
131087
+ if (negable) {
131088
+ completions.push(dashes + "no-" + keyWithDesc);
131065
131089
  }
131066
131090
  }
131067
131091
  customCompletion(args, argv, current, done) {
@@ -131126,10 +131150,10 @@ function isFallbackCompletionFunction(completionFunction) {
131126
131150
  }
131127
131151
  __name(isFallbackCompletionFunction, "isFallbackCompletionFunction");
131128
131152
 
131129
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/validation.js
131153
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/validation.js
131130
131154
  init_import_meta_url();
131131
131155
 
131132
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/levenshtein.js
131156
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/levenshtein.js
131133
131157
  init_import_meta_url();
131134
131158
  function levenshtein(a, b) {
131135
131159
  if (a.length === 0)
@@ -131162,7 +131186,7 @@ function levenshtein(a, b) {
131162
131186
  }
131163
131187
  __name(levenshtein, "levenshtein");
131164
131188
 
131165
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/validation.js
131189
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/validation.js
131166
131190
  var specialKeys = ["$0", "--", "_"];
131167
131191
  function validation(yargs, usage2, shim3) {
131168
131192
  const __ = shim3.y18n.__;
@@ -131433,7 +131457,7 @@ ${customMsgs.join("\n")}` : "";
131433
131457
  }
131434
131458
  __name(validation, "validation");
131435
131459
 
131436
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/yargs-factory.js
131460
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/yargs-factory.js
131437
131461
  var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
131438
131462
  if (kind === "m")
131439
131463
  throw new TypeError("Private method is not writable");
@@ -132935,7 +132959,7 @@ function isYargsInstance(y) {
132935
132959
  }
132936
132960
  __name(isYargsInstance, "isYargsInstance");
132937
132961
 
132938
- // ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/index.mjs
132962
+ // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/index.mjs
132939
132963
  var Yargs = YargsFactory(esm_default);
132940
132964
  var yargs_default = Yargs;
132941
132965
 
@@ -137034,7 +137058,11 @@ async function executeLocally({
137034
137058
  const id = localDB.previewDatabaseUuid ?? localDB.uuid;
137035
137059
  const persistencePath = getLocalPersistencePath(persistTo, config.configPath);
137036
137060
  const d1Persist = import_node_path26.default.join(persistencePath, "v3", "d1");
137037
- logger.log(`\u{1F300} Loading ${id} from ${readableRelative(d1Persist)}`);
137061
+ logger.log(
137062
+ `\u{1F300} Executing on local database ${name} (${id}) from ${readableRelative(
137063
+ d1Persist
137064
+ )}:`
137065
+ );
137038
137066
  const mf = new import_miniflare4.Miniflare({
137039
137067
  modules: true,
137040
137068
  script: "",
@@ -137104,7 +137132,10 @@ async function executeRemotely({
137104
137132
  );
137105
137133
  }
137106
137134
  const dbUuid = preview ? db.previewDatabaseUuid : db.uuid;
137107
- logger.log(`\u{1F300} Executing on ${name} (${dbUuid}):`);
137135
+ logger.log(`\u{1F300} Executing on remote database ${name} (${dbUuid}):`);
137136
+ logger.log(
137137
+ "\u{1F300} To execute on your local development database, pass the --local flag to 'wrangler d1 execute'"
137138
+ );
137108
137139
  const results = [];
137109
137140
  for (const sql of batches) {
137110
137141
  if (multiple_batches)
@@ -138612,6 +138643,7 @@ __name(checkAndConfirmForceDeleteIfNecessary, "checkAndConfirmForceDeleteIfNeces
138612
138643
  // src/deploy/index.ts
138613
138644
  init_import_meta_url();
138614
138645
  var import_node_path28 = __toESM(require("node:path"));
138646
+ var import_chalk8 = __toESM(require_chalk());
138615
138647
 
138616
138648
  // src/sites.ts
138617
138649
  init_import_meta_url();
@@ -138991,6 +139023,32 @@ function collectKeyValues(array) {
138991
139023
  __name(collectKeyValues, "collectKeyValues");
138992
139024
 
138993
139025
  // src/deploy/index.ts
139026
+ async function standardPricingWarning(accountId, config) {
139027
+ try {
139028
+ const { standard, reason } = await fetchResult(`/accounts/${accountId}/workers/standard`);
139029
+ if (!standard && reason !== "enterprise without override") {
139030
+ logger.log(
139031
+ import_chalk8.default.blue(
139032
+ `\u{1F6A7} New Workers Standard pricing is now available. Please visit the dashboard to view details and opt-in to new pricing: https://dash.cloudflare.com/${accountId}/workers/standard/opt-in.`
139033
+ )
139034
+ );
139035
+ if (config.limits?.cpu_ms !== void 0) {
139036
+ logger.warn(
139037
+ "The `limits` defined in wrangler.toml can only be applied to scripts opted into Workers Standard pricing. Agree to the new pricing details to set limits for your script."
139038
+ );
139039
+ }
139040
+ return;
139041
+ }
139042
+ if (standard && config.usage_model !== void 0) {
139043
+ logger.warn(
139044
+ "The `usage_model` defined in wrangler.toml is no longer used because you have opted into Workers Standard pricing. Please remove this setting from your wrangler.toml and use the dashboard to configure the usage model for your script."
139045
+ );
139046
+ return;
139047
+ }
139048
+ } catch {
139049
+ }
139050
+ }
139051
+ __name(standardPricingWarning, "standardPricingWarning");
138994
139052
  function deployOptions(yargs) {
138995
139053
  return yargs.positional("script", {
138996
139054
  describe: "The path to an entry point for your worker",
@@ -139170,6 +139228,7 @@ async function deployHandler(args) {
139170
139228
  args.siteInclude,
139171
139229
  args.siteExclude
139172
139230
  );
139231
+ await standardPricingWarning(accountId, config);
139173
139232
  await deploy({
139174
139233
  config,
139175
139234
  accountId,
@@ -140839,7 +140898,8 @@ function createWorkerBundleFormData(workerBundle) {
140839
140898
  keepVars: void 0,
140840
140899
  logpush: void 0,
140841
140900
  placement: void 0,
140842
- tail_consumers: void 0
140901
+ tail_consumers: void 0,
140902
+ limits: void 0
140843
140903
  };
140844
140904
  return createWorkerUploadForm(worker);
140845
140905
  }
@@ -144010,7 +144070,7 @@ __name(parseQuery, "parseQuery");
144010
144070
 
144011
144071
  // src/tail/printing.ts
144012
144072
  init_import_meta_url();
144013
- var import_chalk8 = __toESM(require_chalk());
144073
+ var import_chalk9 = __toESM(require_chalk());
144014
144074
  function prettyPrintLogs(data) {
144015
144075
  const eventMessage = JSON.parse(data.toString());
144016
144076
  if (isScheduledEvent(eventMessage.event)) {
@@ -144056,9 +144116,9 @@ function prettyPrintLogs(data) {
144056
144116
  );
144057
144117
  } else if (isTailInfo(eventMessage.event)) {
144058
144118
  if (eventMessage.event.type === "overload") {
144059
- logger.log(`${import_chalk8.default.red.bold(eventMessage.event.message)}`);
144119
+ logger.log(`${import_chalk9.default.red.bold(eventMessage.event.message)}`);
144060
144120
  } else if (eventMessage.event.type === "overload-stop") {
144061
- logger.log(`${import_chalk8.default.yellow.bold(eventMessage.event.message)}`);
144121
+ logger.log(`${import_chalk9.default.yellow.bold(eventMessage.event.message)}`);
144062
144122
  }
144063
144123
  } else if (isQueueEvent(eventMessage.event)) {
144064
144124
  const outcome = prettifyOutcome(eventMessage.outcome);
@@ -144517,6 +144577,9 @@ var DURABLE_OBJECTS_BINDING_REGEXP = new RegExp(
144517
144577
  /^(?<binding>[^=]+)=(?<className>[^@\s]+)(@(?<scriptName>.*)$)?$/
144518
144578
  );
144519
144579
  var BINDING_REGEXP = new RegExp(/^(?<binding>[^=]+)(?:=(?<ref>[^\s]+))?$/);
144580
+ var SERVICE_BINDING_REGEXP = new RegExp(
144581
+ /^(?<binding>[^=]+)=(?<service>[^@\s]+)(@(?<environment>.*)$)?$/
144582
+ );
144520
144583
  function Options11(yargs) {
144521
144584
  return yargs.positional("directory", {
144522
144585
  type: "string",
@@ -144600,6 +144663,11 @@ function Options11(yargs) {
144600
144663
  type: "array",
144601
144664
  description: "R2 bucket to bind (--r2 R2_BINDING)"
144602
144665
  },
144666
+ service: {
144667
+ type: "array",
144668
+ description: "Service to bind (--service SERVICE=SCRIPT_NAME)",
144669
+ alia: "s"
144670
+ },
144603
144671
  "live-reload": {
144604
144672
  type: "boolean",
144605
144673
  default: false,
@@ -144654,6 +144722,7 @@ var Handler11 = /* @__PURE__ */ __name(async ({
144654
144722
  do: durableObjects = [],
144655
144723
  d1: d1s = [],
144656
144724
  r2: r2s = [],
144725
+ service: requestedServices = [],
144657
144726
  liveReload,
144658
144727
  localProtocol,
144659
144728
  persistTo,
@@ -144922,6 +144991,28 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates/ for
144922
144991
  });
144923
144992
  }
144924
144993
  }
144994
+ const services = requestedServices.map((serviceBinding) => {
144995
+ const { binding, service, environment } = SERVICE_BINDING_REGEXP.exec(serviceBinding.toString())?.groups || {};
144996
+ if (!binding || !service) {
144997
+ logger.warn(
144998
+ "Could not parse Service binding:",
144999
+ serviceBinding.toString()
145000
+ );
145001
+ return;
145002
+ }
145003
+ let serviceName = service;
145004
+ if (environment) {
145005
+ serviceName = `${service}-${environment}`;
145006
+ }
145007
+ return {
145008
+ binding,
145009
+ service: serviceName,
145010
+ environment
145011
+ };
145012
+ }).filter(Boolean);
145013
+ if (services.find(({ environment }) => !!environment)) {
145014
+ logger.warn("Support for service binding environments is experimental.");
145015
+ }
144925
145016
  const { stop, waitUntilExit } = await unstable_dev(entrypoint, {
144926
145017
  ip: ip2,
144927
145018
  port: port2,
@@ -144933,6 +145024,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates/ for
144933
145024
  vars: Object.fromEntries(
144934
145025
  bindings.map((binding) => binding.toString().split("=")).map(([key, ...values]) => [key, values.join("=")])
144935
145026
  ),
145027
+ services,
144936
145028
  kv: kvs.map((kv) => {
144937
145029
  const { binding, ref } = BINDING_REGEXP.exec(kv.toString())?.groups || {};
144938
145030
  if (!binding) {
@@ -146788,7 +146880,8 @@ async function createDraftWorker({
146788
146880
  // this doesn't matter since it's a new script anyway
146789
146881
  logpush: false,
146790
146882
  placement: void 0,
146791
- tail_consumers: void 0
146883
+ tail_consumers: void 0,
146884
+ limits: void 0
146792
146885
  })
146793
146886
  }
146794
146887
  );
@@ -147845,7 +147938,7 @@ __name(vectorize, "vectorize");
147845
147938
 
147846
147939
  // src/whoami.ts
147847
147940
  init_import_meta_url();
147848
- var import_chalk9 = __toESM(require_chalk());
147941
+ var import_chalk10 = __toESM(require_chalk());
147849
147942
  async function whoami() {
147850
147943
  logger.log("Getting User settings...");
147851
147944
  const user = await getUserInfo();
@@ -147856,7 +147949,7 @@ async function whoami() {
147856
147949
  }
147857
147950
  if (user.email !== void 0) {
147858
147951
  logger.log(
147859
- `\u{1F44B} You are logged in with an ${user.authType}, associated with the email ${import_chalk9.default.blue(user.email)}!`
147952
+ `\u{1F44B} You are logged in with an ${user.authType}, associated with the email ${import_chalk10.default.blue(user.email)}!`
147860
147953
  );
147861
147954
  } else {
147862
147955
  logger.log(
@@ -147958,10 +148051,10 @@ async function printWranglerBanner() {
147958
148051
  let text = ` \u26C5\uFE0F wrangler ${version}`;
147959
148052
  const maybeNewVersion = await updateCheck();
147960
148053
  if (maybeNewVersion !== void 0) {
147961
- text += ` (update available ${import_chalk10.default.green(maybeNewVersion)})`;
148054
+ text += ` (update available ${import_chalk11.default.green(maybeNewVersion)})`;
147962
148055
  }
147963
148056
  logger.log(
147964
- text + "\n" + (supports_color_default.stdout ? import_chalk10.default.hex("#FF8800")("-".repeat(text.length)) : "-".repeat(text.length))
148057
+ text + "\n" + (supports_color_default.stdout ? import_chalk11.default.hex("#FF8800")("-".repeat(text.length)) : "-".repeat(text.length))
147965
148058
  );
147966
148059
  if (maybeNewVersion !== void 0) {
147967
148060
  const currentMajor = parseInt(version.split(".")[0]);
@@ -149474,9 +149567,9 @@ async function rollbackDeployment(accountId, scriptName, { send_metrics: sendMet
149474
149567
  rollbackMessage = message;
149475
149568
  } else {
149476
149569
  if (!await confirm(
149477
- `This deployment ${import_chalk11.default.underline(
149570
+ `This deployment ${import_chalk12.default.underline(
149478
149571
  firstHash
149479
- )} will immediately replace the current deployment and become the active deployment across all your deployed routes and domains. However, your local development environment will not be affected by this rollback. ${import_chalk11.default.blue.bold(
149572
+ )} will immediately replace the current deployment and become the active deployment across all your deployed routes and domains. However, your local development environment will not be affected by this rollback. ${import_chalk12.default.blue.bold(
149480
149573
  "Note:"
149481
149574
  )} Rolling back to a previous deployment will not rollback any of the bound resources (Durable Object, R2, KV, etc.).`
149482
149575
  )) {
@@ -149678,7 +149771,7 @@ __name(getMigrationsToUpload, "getMigrationsToUpload");
149678
149771
 
149679
149772
  // src/routes.ts
149680
149773
  init_import_meta_url();
149681
- var import_chalk12 = __toESM(require_chalk());
149774
+ var import_chalk13 = __toESM(require_chalk());
149682
149775
  async function getWorkersDevSubdomain(accountId) {
149683
149776
  try {
149684
149777
  const { subdomain } = await fetchResult(
@@ -149739,8 +149832,8 @@ async function registerSubdomain(accountId) {
149739
149832
  }
149740
149833
  }
149741
149834
  const ok = await confirm(
149742
- `Creating a workers.dev subdomain for your account at ${import_chalk12.default.blue(
149743
- import_chalk12.default.underline(`https://${potentialName}.workers.dev`)
149835
+ `Creating a workers.dev subdomain for your account at ${import_chalk13.default.blue(
149836
+ import_chalk13.default.underline(`https://${potentialName}.workers.dev`)
149744
149837
  )}. Ok to proceed?`
149745
149838
  );
149746
149839
  if (!ok) {
@@ -149776,8 +149869,8 @@ ${onboardingLink}`);
149776
149869
  }
149777
149870
  logger.log("Success! It may take a few minutes for DNS records to update.");
149778
149871
  logger.log(
149779
- `Visit ${import_chalk12.default.blue(
149780
- import_chalk12.default.underline(
149872
+ `Visit ${import_chalk13.default.blue(
149873
+ import_chalk13.default.underline(
149781
149874
  `https://dash.cloudflare.com/${accountId}/workers/subdomain`
149782
149875
  )
149783
149876
  )} to edit your workers.dev subdomain`
@@ -150176,7 +150269,8 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
150176
150269
  keepVars,
150177
150270
  logpush: props.logpush !== void 0 ? props.logpush : config.logpush,
150178
150271
  placement,
150179
- tail_consumers: config.tail_consumers
150272
+ tail_consumers: config.tail_consumers,
150273
+ limits: config.limits
150180
150274
  };
150181
150275
  const bundleSizePromise = printBundleSize(
150182
150276
  { name: import_node_path45.default.basename(resolvedEntryPointPath), content },
@@ -150299,13 +150393,13 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
150299
150393
  const assignedRoutes = routesWithOtherBindings[worker];
150300
150394
  errorMessage += `"${worker}" is already assigned to routes:
150301
150395
  ${assignedRoutes.map(
150302
- (r) => ` - ${import_chalk13.default.underline(r)}
150396
+ (r) => ` - ${import_chalk14.default.underline(r)}
150303
150397
  `
150304
150398
  )}`;
150305
150399
  }
150306
150400
  const resolution = "Unassign other workers from the routes you want to deploy to, and then try again.";
150307
- const dashLink = `Visit ${import_chalk13.default.blue(
150308
- import_chalk13.default.underline(
150401
+ const dashLink = `Visit ${import_chalk14.default.blue(
150402
+ import_chalk14.default.underline(
150309
150403
  `https://dash.cloudflare.com/${accountId}/workers/overview`
150310
150404
  )
150311
150405
  )} to unassign a worker from a route.`;
@@ -151075,8 +151169,10 @@ async function createRemoteWorkerInit(props) {
151075
151169
  logpush: false,
151076
151170
  placement: void 0,
151077
151171
  // no placement in dev
151078
- tail_consumers: void 0
151172
+ tail_consumers: void 0,
151079
151173
  // no tail consumers in dev - TODO revisit?
151174
+ limits: void 0
151175
+ // no limits in preview - not supported yet but can be added
151080
151176
  };
151081
151177
  return init;
151082
151178
  }
@@ -151465,6 +151561,11 @@ function DevSession(props) {
151465
151561
  "Queues are currently in Beta and are not supported in wrangler dev remote mode."
151466
151562
  );
151467
151563
  }
151564
+ if (props.local && props.bindings.hyperdrive?.length) {
151565
+ logger.warn(
151566
+ "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."
151567
+ );
151568
+ }
151468
151569
  const announceAndOnReady = /* @__PURE__ */ __name((finalIp, finalPort) => {
151469
151570
  if (process.send) {
151470
151571
  process.send(
@@ -151737,7 +151838,7 @@ init_import_meta_url();
151737
151838
  var import_node_fs31 = __toESM(require("node:fs"));
151738
151839
  var path46 = __toESM(require("node:path"));
151739
151840
  var util2 = __toESM(require("node:util"));
151740
- var import_chalk14 = __toESM(require_chalk());
151841
+ var import_chalk15 = __toESM(require_chalk());
151741
151842
  var import_signal_exit6 = __toESM(require_signal_exit());
151742
151843
  var import_tmp_promise4 = __toESM(require_tmp_promise());
151743
151844
  async function startDevServer(props) {
@@ -151968,7 +152069,7 @@ async function startLocalServer(props) {
151968
152069
  "\u2394 Support for external Durable Objects in local mode is experimental and may change."
151969
152070
  );
151970
152071
  }
151971
- logger.log(import_chalk14.default.dim("\u2394 Starting local server..."));
152072
+ logger.log(import_chalk15.default.dim("\u2394 Starting local server..."));
151972
152073
  const config = await localPropsToConfigBundle(props);
151973
152074
  return new Promise((resolve19, reject) => {
151974
152075
  const server2 = new MiniflareServer();
@@ -151990,7 +152091,7 @@ async function startLocalServer(props) {
151990
152091
  reject(error);
151991
152092
  });
151992
152093
  const removeMiniflareServerExitListener = (0, import_signal_exit6.default)(() => {
151993
- logger.log(import_chalk14.default.dim("\u2394 Shutting down local server..."));
152094
+ logger.log(import_chalk15.default.dim("\u2394 Shutting down local server..."));
151994
152095
  void server2.onDispose();
151995
152096
  });
151996
152097
  const abortController = new AbortController();
@@ -152599,6 +152700,7 @@ function getBindingsAndAssetPaths(args, configParam) {
152599
152700
  vars: { ...args.vars, ...cliVars },
152600
152701
  durableObjects: args.durableObjects,
152601
152702
  r2: args.r2,
152703
+ services: args.services,
152602
152704
  d1Databases: args.d1Databases
152603
152705
  });
152604
152706
  const maskedVars = maskVars(bindings, configParam);
@@ -152674,7 +152776,7 @@ function getBindings(configParam, env5, local, args) {
152674
152776
  ],
152675
152777
  dispatch_namespaces: configParam.dispatch_namespaces,
152676
152778
  mtls_certificates: configParam.mtls_certificates,
152677
- services: configParam.services,
152779
+ services: [...configParam.services || [], ...args.services || []],
152678
152780
  analytics_engine_datasets: configParam.analytics_engine_datasets,
152679
152781
  unsafe: {
152680
152782
  bindings: configParam.unsafe.bindings,