wrangler 3.25.0 → 3.26.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.25.0",
3
+ "version": "3.26.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -96,7 +96,7 @@
96
96
  "selfsigned": "^2.0.1",
97
97
  "source-map": "0.6.1",
98
98
  "xxhash-wasm": "^1.0.1",
99
- "miniflare": "3.20231218.4"
99
+ "miniflare": "3.20240129.0"
100
100
  },
101
101
  "devDependencies": {
102
102
  "@cloudflare/ai": "^1.0.35",
@@ -187,7 +187,7 @@
187
187
  "yargs": "^17.7.2",
188
188
  "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
189
189
  "@cloudflare/cli": "1.1.1",
190
- "@cloudflare/pages-shared": "^0.11.9",
190
+ "@cloudflare/pages-shared": "^0.11.10",
191
191
  "@cloudflare/workers-tsconfig": "0.0.0"
192
192
  },
193
193
  "optionalDependencies": {
@@ -141,6 +141,10 @@ export declare type BindingsProxy<Bindings = Record<string, unknown>> = {
141
141
  * Object containing the various proxies
142
142
  */
143
143
  bindings: Bindings;
144
+ /**
145
+ * Caches object emulating the Workers Cache runtime API
146
+ */
147
+ caches: CacheStorage_3;
144
148
  /**
145
149
  * Function used to dispose of the child process providing the bindings implementation
146
150
  */
@@ -294,12 +298,29 @@ declare interface Cache_2 {
294
298
  keys (request?: RequestInfo_2, options?: CacheQueryOptions_2): Promise<readonly Request_2[]>
295
299
  }
296
300
 
301
+ /**
302
+ * No-op implementation of Cache
303
+ */
304
+ declare class Cache_3 {
305
+ delete(request: CacheRequest, options?: CacheQueryOptions_3): Promise<boolean>;
306
+ match(request: CacheRequest, options?: CacheQueryOptions_3): Promise<CacheResponse | undefined>;
307
+ put(request: CacheRequest, response: CacheResponse): Promise<void>;
308
+ }
309
+
297
310
  declare interface CacheQueryOptions_2 {
298
311
  ignoreSearch?: boolean,
299
312
  ignoreMethod?: boolean,
300
313
  ignoreVary?: boolean
301
314
  }
302
315
 
316
+ declare type CacheQueryOptions_3 = {
317
+ ignoreMethod?: boolean;
318
+ };
319
+
320
+ declare type CacheRequest = unknown;
321
+
322
+ declare type CacheResponse = unknown;
323
+
303
324
  declare const caches_2: CacheStorage_2;
304
325
 
305
326
  declare interface CacheStorage_2 {
@@ -315,6 +336,33 @@ declare const CacheStorage_2: {
315
336
  new(): CacheStorage_2
316
337
  };
317
338
 
339
+ /**
340
+ * Note about this file:
341
+ *
342
+ * Here we are providing a no-op implementation of the runtime Cache API instead of using
343
+ * the miniflare implementation (via `mf.getCaches()`).
344
+ *
345
+ * We are not using miniflare's implementation because that would require the user to provide
346
+ * miniflare-specific Request objects and they would receive back miniflare-specific Response
347
+ * objects, this (in particular the Request part) is not really suitable for `getBindingsProxy`
348
+ * as people would ideally interact with their bindings in a very production-like manner and
349
+ * requiring them to deal with miniflare-specific classes defeats a bit the purpose of the utility.
350
+ *
351
+ * Similarly the Request and Response types here are set to `undefined` as not to use specific ones
352
+ * that would require us to make a choice right now or the user to adapt their code in order to work
353
+ * with the api.
354
+ *
355
+ * We need to find a better/generic manner in which we can reuse the miniflare cache implementation,
356
+ * but until then the no-op implementation below will have to do.
357
+ */
358
+ /**
359
+ * No-op implementation of CacheStorage
360
+ */
361
+ declare class CacheStorage_3 {
362
+ open(cacheName: string): Promise<Cache_3>;
363
+ get default(): Cache_3;
364
+ }
365
+
318
366
  /**
319
367
  * A Cloudflare account.
320
368
  */
@@ -14580,7 +14580,7 @@ var require_cache = __commonJS({
14580
14580
  var { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = require_util2();
14581
14581
  var assert23 = require("assert");
14582
14582
  var { getGlobalDispatcher } = require_global2();
14583
- var Cache2 = class {
14583
+ var Cache3 = class {
14584
14584
  /**
14585
14585
  * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list
14586
14586
  * @type {requestResponseList}
@@ -14593,7 +14593,7 @@ var require_cache = __commonJS({
14593
14593
  this.#relevantRequestResponseList = arguments[1];
14594
14594
  }
14595
14595
  async match(request3, options25 = {}) {
14596
- webidl.brandCheck(this, Cache2);
14596
+ webidl.brandCheck(this, Cache3);
14597
14597
  webidl.argumentLengthCheck(arguments, 1, { header: "Cache.match" });
14598
14598
  request3 = webidl.converters.RequestInfo(request3);
14599
14599
  options25 = webidl.converters.CacheQueryOptions(options25);
@@ -14604,7 +14604,7 @@ var require_cache = __commonJS({
14604
14604
  return p2[0];
14605
14605
  }
14606
14606
  async matchAll(request3 = void 0, options25 = {}) {
14607
- webidl.brandCheck(this, Cache2);
14607
+ webidl.brandCheck(this, Cache3);
14608
14608
  if (request3 !== void 0)
14609
14609
  request3 = webidl.converters.RequestInfo(request3);
14610
14610
  options25 = webidl.converters.CacheQueryOptions(options25);
@@ -14643,7 +14643,7 @@ var require_cache = __commonJS({
14643
14643
  return Object.freeze(responseList);
14644
14644
  }
14645
14645
  async add(request3) {
14646
- webidl.brandCheck(this, Cache2);
14646
+ webidl.brandCheck(this, Cache3);
14647
14647
  webidl.argumentLengthCheck(arguments, 1, { header: "Cache.add" });
14648
14648
  request3 = webidl.converters.RequestInfo(request3);
14649
14649
  const requests = [request3];
@@ -14651,7 +14651,7 @@ var require_cache = __commonJS({
14651
14651
  return await responseArrayPromise;
14652
14652
  }
14653
14653
  async addAll(requests) {
14654
- webidl.brandCheck(this, Cache2);
14654
+ webidl.brandCheck(this, Cache3);
14655
14655
  webidl.argumentLengthCheck(arguments, 1, { header: "Cache.addAll" });
14656
14656
  requests = webidl.converters["sequence<RequestInfo>"](requests);
14657
14657
  const responsePromises = [];
@@ -14749,7 +14749,7 @@ var require_cache = __commonJS({
14749
14749
  return cacheJobPromise.promise;
14750
14750
  }
14751
14751
  async put(request3, response) {
14752
- webidl.brandCheck(this, Cache2);
14752
+ webidl.brandCheck(this, Cache3);
14753
14753
  webidl.argumentLengthCheck(arguments, 2, { header: "Cache.put" });
14754
14754
  request3 = webidl.converters.RequestInfo(request3);
14755
14755
  response = webidl.converters.Response(response);
@@ -14829,7 +14829,7 @@ var require_cache = __commonJS({
14829
14829
  return cacheJobPromise.promise;
14830
14830
  }
14831
14831
  async delete(request3, options25 = {}) {
14832
- webidl.brandCheck(this, Cache2);
14832
+ webidl.brandCheck(this, Cache3);
14833
14833
  webidl.argumentLengthCheck(arguments, 1, { header: "Cache.delete" });
14834
14834
  request3 = webidl.converters.RequestInfo(request3);
14835
14835
  options25 = webidl.converters.CacheQueryOptions(options25);
@@ -14874,7 +14874,7 @@ var require_cache = __commonJS({
14874
14874
  * @returns {readonly Request[]}
14875
14875
  */
14876
14876
  async keys(request3 = void 0, options25 = {}) {
14877
- webidl.brandCheck(this, Cache2);
14877
+ webidl.brandCheck(this, Cache3);
14878
14878
  if (request3 !== void 0)
14879
14879
  request3 = webidl.converters.RequestInfo(request3);
14880
14880
  options25 = webidl.converters.CacheQueryOptions(options25);
@@ -15050,8 +15050,8 @@ var require_cache = __commonJS({
15050
15050
  return true;
15051
15051
  }
15052
15052
  };
15053
- __name(Cache2, "Cache");
15054
- Object.defineProperties(Cache2.prototype, {
15053
+ __name(Cache3, "Cache");
15054
+ Object.defineProperties(Cache3.prototype, {
15055
15055
  [Symbol.toStringTag]: {
15056
15056
  value: "Cache",
15057
15057
  configurable: true
@@ -15094,7 +15094,7 @@ var require_cache = __commonJS({
15094
15094
  webidl.converters.RequestInfo
15095
15095
  );
15096
15096
  module3.exports = {
15097
- Cache: Cache2
15097
+ Cache: Cache3
15098
15098
  };
15099
15099
  }
15100
15100
  });
@@ -15105,10 +15105,10 @@ var require_cachestorage = __commonJS({
15105
15105
  "use strict";
15106
15106
  init_import_meta_url();
15107
15107
  var { kConstruct } = require_symbols4();
15108
- var { Cache: Cache2 } = require_cache();
15108
+ var { Cache: Cache3 } = require_cache();
15109
15109
  var { webidl } = require_webidl();
15110
15110
  var { kEnumerableProperty } = require_util();
15111
- var CacheStorage = class {
15111
+ var CacheStorage2 = class {
15112
15112
  /**
15113
15113
  * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-name-to-cache-map
15114
15114
  * @type {Map<string, import('./cache').requestResponseList}
@@ -15120,19 +15120,19 @@ var require_cachestorage = __commonJS({
15120
15120
  }
15121
15121
  }
15122
15122
  async match(request3, options25 = {}) {
15123
- webidl.brandCheck(this, CacheStorage);
15123
+ webidl.brandCheck(this, CacheStorage2);
15124
15124
  webidl.argumentLengthCheck(arguments, 1, { header: "CacheStorage.match" });
15125
15125
  request3 = webidl.converters.RequestInfo(request3);
15126
15126
  options25 = webidl.converters.MultiCacheQueryOptions(options25);
15127
15127
  if (options25.cacheName != null) {
15128
15128
  if (this.#caches.has(options25.cacheName)) {
15129
15129
  const cacheList = this.#caches.get(options25.cacheName);
15130
- const cache2 = new Cache2(kConstruct, cacheList);
15130
+ const cache2 = new Cache3(kConstruct, cacheList);
15131
15131
  return await cache2.match(request3, options25);
15132
15132
  }
15133
15133
  } else {
15134
15134
  for (const cacheList of this.#caches.values()) {
15135
- const cache2 = new Cache2(kConstruct, cacheList);
15135
+ const cache2 = new Cache3(kConstruct, cacheList);
15136
15136
  const response = await cache2.match(request3, options25);
15137
15137
  if (response !== void 0) {
15138
15138
  return response;
@@ -15146,7 +15146,7 @@ var require_cachestorage = __commonJS({
15146
15146
  * @returns {Promise<boolean>}
15147
15147
  */
15148
15148
  async has(cacheName) {
15149
- webidl.brandCheck(this, CacheStorage);
15149
+ webidl.brandCheck(this, CacheStorage2);
15150
15150
  webidl.argumentLengthCheck(arguments, 1, { header: "CacheStorage.has" });
15151
15151
  cacheName = webidl.converters.DOMString(cacheName);
15152
15152
  return this.#caches.has(cacheName);
@@ -15157,16 +15157,16 @@ var require_cachestorage = __commonJS({
15157
15157
  * @returns {Promise<Cache>}
15158
15158
  */
15159
15159
  async open(cacheName) {
15160
- webidl.brandCheck(this, CacheStorage);
15160
+ webidl.brandCheck(this, CacheStorage2);
15161
15161
  webidl.argumentLengthCheck(arguments, 1, { header: "CacheStorage.open" });
15162
15162
  cacheName = webidl.converters.DOMString(cacheName);
15163
15163
  if (this.#caches.has(cacheName)) {
15164
15164
  const cache3 = this.#caches.get(cacheName);
15165
- return new Cache2(kConstruct, cache3);
15165
+ return new Cache3(kConstruct, cache3);
15166
15166
  }
15167
15167
  const cache2 = [];
15168
15168
  this.#caches.set(cacheName, cache2);
15169
- return new Cache2(kConstruct, cache2);
15169
+ return new Cache3(kConstruct, cache2);
15170
15170
  }
15171
15171
  /**
15172
15172
  * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete
@@ -15174,7 +15174,7 @@ var require_cachestorage = __commonJS({
15174
15174
  * @returns {Promise<boolean>}
15175
15175
  */
15176
15176
  async delete(cacheName) {
15177
- webidl.brandCheck(this, CacheStorage);
15177
+ webidl.brandCheck(this, CacheStorage2);
15178
15178
  webidl.argumentLengthCheck(arguments, 1, { header: "CacheStorage.delete" });
15179
15179
  cacheName = webidl.converters.DOMString(cacheName);
15180
15180
  return this.#caches.delete(cacheName);
@@ -15184,13 +15184,13 @@ var require_cachestorage = __commonJS({
15184
15184
  * @returns {string[]}
15185
15185
  */
15186
15186
  async keys() {
15187
- webidl.brandCheck(this, CacheStorage);
15187
+ webidl.brandCheck(this, CacheStorage2);
15188
15188
  const keys = this.#caches.keys();
15189
15189
  return [...keys];
15190
15190
  }
15191
15191
  };
15192
- __name(CacheStorage, "CacheStorage");
15193
- Object.defineProperties(CacheStorage.prototype, {
15192
+ __name(CacheStorage2, "CacheStorage");
15193
+ Object.defineProperties(CacheStorage2.prototype, {
15194
15194
  [Symbol.toStringTag]: {
15195
15195
  value: "CacheStorage",
15196
15196
  configurable: true
@@ -15202,7 +15202,7 @@ var require_cachestorage = __commonJS({
15202
15202
  keys: kEnumerableProperty
15203
15203
  });
15204
15204
  module3.exports = {
15205
- CacheStorage
15205
+ CacheStorage: CacheStorage2
15206
15206
  };
15207
15207
  }
15208
15208
  });
@@ -17043,9 +17043,9 @@ var require_undici = __commonJS({
17043
17043
  const { setGlobalOrigin, getGlobalOrigin } = require_global();
17044
17044
  module3.exports.setGlobalOrigin = setGlobalOrigin;
17045
17045
  module3.exports.getGlobalOrigin = getGlobalOrigin;
17046
- const { CacheStorage } = require_cachestorage();
17046
+ const { CacheStorage: CacheStorage2 } = require_cachestorage();
17047
17047
  const { kConstruct } = require_symbols4();
17048
- module3.exports.caches = new CacheStorage(kConstruct);
17048
+ module3.exports.caches = new CacheStorage2(kConstruct);
17049
17049
  }
17050
17050
  if (util4.nodeMajor >= 16) {
17051
17051
  const { deleteCookie, getCookies, getSetCookies, setCookie } = require_cookies();
@@ -94602,19 +94602,19 @@ var require_cache2 = __commonJS({
94602
94602
  "../../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/cache.js"(exports2, module3) {
94603
94603
  "use strict";
94604
94604
  init_import_meta_url();
94605
- var Cache2 = module3.exports = /* @__PURE__ */ __name(function Cache3() {
94605
+ var Cache3 = module3.exports = /* @__PURE__ */ __name(function Cache4() {
94606
94606
  this._cache = {};
94607
94607
  }, "Cache");
94608
- Cache2.prototype.put = /* @__PURE__ */ __name(function Cache_put(key, value) {
94608
+ Cache3.prototype.put = /* @__PURE__ */ __name(function Cache_put(key, value) {
94609
94609
  this._cache[key] = value;
94610
94610
  }, "Cache_put");
94611
- Cache2.prototype.get = /* @__PURE__ */ __name(function Cache_get(key) {
94611
+ Cache3.prototype.get = /* @__PURE__ */ __name(function Cache_get(key) {
94612
94612
  return this._cache[key];
94613
94613
  }, "Cache_get");
94614
- Cache2.prototype.del = /* @__PURE__ */ __name(function Cache_del(key) {
94614
+ Cache3.prototype.del = /* @__PURE__ */ __name(function Cache_del(key) {
94615
94615
  delete this._cache[key];
94616
94616
  }, "Cache_del");
94617
- Cache2.prototype.clear = /* @__PURE__ */ __name(function Cache_clear() {
94617
+ Cache3.prototype.clear = /* @__PURE__ */ __name(function Cache_clear() {
94618
94618
  this._cache = {};
94619
94619
  }, "Cache_clear");
94620
94620
  }
@@ -98140,7 +98140,7 @@ var require_ajv = __commonJS({
98140
98140
  init_import_meta_url();
98141
98141
  var compileSchema = require_compile();
98142
98142
  var resolve19 = require_resolve2();
98143
- var Cache2 = require_cache2();
98143
+ var Cache3 = require_cache2();
98144
98144
  var SchemaObject = require_schema_obj();
98145
98145
  var stableStringify = require_fast_json_stable_stringify();
98146
98146
  var formats = require_formats2();
@@ -98181,7 +98181,7 @@ var require_ajv = __commonJS({
98181
98181
  this._refs = {};
98182
98182
  this._fragments = {};
98183
98183
  this._formats = formats(opts.format);
98184
- this._cache = opts.cache || new Cache2();
98184
+ this._cache = opts.cache || new Cache3();
98185
98185
  this._loadingSchemas = {};
98186
98186
  this._compilations = [];
98187
98187
  this.RULES = rules();
@@ -104585,8 +104585,7 @@ function createMetadataObject({
104585
104585
  webAnalyticsToken,
104586
104586
  deploymentId,
104587
104587
  failOpen,
104588
- logger: logger3 = /* @__PURE__ */ __name((_message) => {
104589
- }, "logger")
104588
+ logger: logger3 = noopLogger
104590
104589
  }) {
104591
104590
  return {
104592
104591
  ...constructRedirects({ redirects, logger: logger3 }),
@@ -104604,15 +104603,16 @@ function constructRedirects({
104604
104603
  return {};
104605
104604
  const num_valid = redirects.rules.length;
104606
104605
  const num_invalid = redirects.invalid.length;
104607
- logger3(
104606
+ logger3.log(
104608
104607
  `Parsed ${num_valid} valid redirect rule${num_valid === 1 ? "" : "s"}.`
104609
104608
  );
104610
104609
  if (num_invalid > 0) {
104611
- logger3(`Found invalid redirect lines:`);
104610
+ logger3.warn(`Found invalid redirect lines:`);
104612
104611
  for (const { line, lineNumber, message } of redirects.invalid) {
104613
- if (line)
104614
- logger3(` - ${lineNumber ? `#${lineNumber}: ` : ""}${line}`);
104615
- logger3(` ${message}`);
104612
+ if (line) {
104613
+ logger3.warn(` - ${lineNumber ? `#${lineNumber}: ` : ""}${line}`);
104614
+ }
104615
+ logger3.warn(` ${message}`);
104616
104616
  }
104617
104617
  }
104618
104618
  if (num_valid === 0) {
@@ -104631,8 +104631,8 @@ function constructRedirects({
104631
104631
  };
104632
104632
  continue;
104633
104633
  } else {
104634
- logger3(
104635
- `Info: the redirect rule ${rule.from} \u2192 ${rule.status} ${rule.to} could be made more performant by bringing it above any lines with splats or placeholders.`
104634
+ logger3.info(
104635
+ `The redirect rule ${rule.from} \u2192 ${rule.status} ${rule.to} could be made more performant by bringing it above any lines with splats or placeholders.`
104636
104636
  );
104637
104637
  }
104638
104638
  }
@@ -104655,13 +104655,16 @@ function constructHeaders({
104655
104655
  return {};
104656
104656
  const num_valid = headers.rules.length;
104657
104657
  const num_invalid = headers.invalid.length;
104658
- logger3(`Parsed ${num_valid} valid header rule${num_valid === 1 ? "" : "s"}.`);
104658
+ logger3.log(
104659
+ `Parsed ${num_valid} valid header rule${num_valid === 1 ? "" : "s"}.`
104660
+ );
104659
104661
  if (num_invalid > 0) {
104660
- logger3(`Found invalid header lines:`);
104662
+ logger3.warn(`Found invalid header lines:`);
104661
104663
  for (const { line, lineNumber, message } of headers.invalid) {
104662
- if (line)
104663
- logger3(` - ${lineNumber ? `#${lineNumber}: ` : ""} ${line}`);
104664
- logger3(` ${message}`);
104664
+ if (line) {
104665
+ logger3.warn(` - ${lineNumber ? `#${lineNumber}: ` : ""} ${line}`);
104666
+ }
104667
+ logger3.warn(` ${message}`);
104665
104668
  }
104666
104669
  }
104667
104670
  if (num_valid === 0) {
@@ -104696,10 +104699,23 @@ function constructWebAnalytics({
104696
104699
  }
104697
104700
  };
104698
104701
  }
104702
+ var noopLogger;
104699
104703
  var init_createMetadataObject = __esm({
104700
104704
  "../pages-shared/metadata-generator/createMetadataObject.ts"() {
104701
104705
  init_import_meta_url();
104702
104706
  init_constants();
104707
+ noopLogger = {
104708
+ debug: (_message) => {
104709
+ },
104710
+ log: (_message) => {
104711
+ },
104712
+ info: (_message) => {
104713
+ },
104714
+ warn: (_message) => {
104715
+ },
104716
+ error: (_error) => {
104717
+ }
104718
+ };
104703
104719
  __name(createMetadataObject, "createMetadataObject");
104704
104720
  __name(constructRedirects, "constructRedirects");
104705
104721
  __name(constructHeaders, "constructHeaders");
@@ -105888,7 +105904,7 @@ async function generateAssetsFetch(directory, log2) {
105888
105904
  let metadata = createMetadataObject({
105889
105905
  redirects,
105890
105906
  headers,
105891
- logger: log2.warn.bind(log2)
105907
+ logger: log2
105892
105908
  });
105893
105909
  (0, import_chokidar.watch)([headersFile, redirectsFile], { persistent: true }).on(
105894
105910
  "change",
@@ -105910,7 +105926,7 @@ async function generateAssetsFetch(directory, log2) {
105910
105926
  metadata = createMetadataObject({
105911
105927
  redirects,
105912
105928
  headers,
105913
- logger: log2.warn
105929
+ logger: log2
105914
105930
  });
105915
105931
  }
105916
105932
  );
@@ -119557,7 +119573,7 @@ var import_node_assert2 = __toESM(require("node:assert"));
119557
119573
  var import_undici3 = __toESM(require_undici());
119558
119574
 
119559
119575
  // package.json
119560
- var version = "3.25.0";
119576
+ var version = "3.26.0";
119561
119577
  var package_default = {
119562
119578
  name: "wrangler",
119563
119579
  version,
@@ -138397,12 +138413,12 @@ function _createClass3(Constructor, protoProps, staticProps) {
138397
138413
  }
138398
138414
  __name(_createClass3, "_createClass");
138399
138415
  var Cache = /* @__PURE__ */ function() {
138400
- function Cache2() {
138401
- _classCallCheck3(this, Cache2);
138416
+ function Cache3() {
138417
+ _classCallCheck3(this, Cache3);
138402
138418
  this.cache = {};
138403
138419
  }
138404
- __name(Cache2, "Cache");
138405
- _createClass3(Cache2, [{
138420
+ __name(Cache3, "Cache");
138421
+ _createClass3(Cache3, [{
138406
138422
  key: "get",
138407
138423
  value: /* @__PURE__ */ __name(function get() {
138408
138424
  var cache2 = this.cache;
@@ -138437,7 +138453,7 @@ var Cache = /* @__PURE__ */ function() {
138437
138453
  return cache2[lastKey] = value;
138438
138454
  }, "put")
138439
138455
  }]);
138440
- return Cache2;
138456
+ return Cache3;
138441
138457
  }();
138442
138458
 
138443
138459
  // ../../node_modules/.pnpm/javascript-time-ago@2.5.7/node_modules/javascript-time-ago/modules/locale.js
@@ -143333,7 +143349,8 @@ async function deployHandler(args) {
143333
143349
  args.siteInclude,
143334
143350
  args.siteExclude
143335
143351
  );
143336
- await standardPricingWarning(accountId, config);
143352
+ if (!args.dryRun)
143353
+ await standardPricingWarning(accountId, config);
143337
143354
  await deploy({
143338
143355
  config,
143339
143356
  accountId,
@@ -147303,7 +147320,7 @@ function renderProgress(done, total) {
147303
147320
  /* @__PURE__ */ import_react10.default.createElement(Progress, { done, total })
147304
147321
  );
147305
147322
  return {
147306
- // eslint-disable-next-line no-shadow
147323
+ // eslint-disable-next-line @typescript-eslint/no-shadow
147307
147324
  rerender(done2, total2) {
147308
147325
  rerender(/* @__PURE__ */ import_react10.default.createElement(Progress, { done: done2, total: total2 }));
147309
147326
  },
@@ -149442,7 +149459,7 @@ function pages(yargs) {
149442
149459
  ).command(
149443
149460
  "functions",
149444
149461
  false,
149445
- (yargs2) => yargs2.command(
149462
+ (args) => args.command(
149446
149463
  "build [directory]",
149447
149464
  "Compile a folder of Cloudflare Pages Functions into a single Worker",
149448
149465
  Options6,
@@ -149456,7 +149473,7 @@ function pages(yargs) {
149456
149473
  ).command(
149457
149474
  "project",
149458
149475
  "\u26A1\uFE0F Interact with your Pages projects",
149459
- (yargs2) => yargs2.command(
149476
+ (args) => args.command(
149460
149477
  "list",
149461
149478
  "List your Cloudflare Pages projects",
149462
149479
  ListOptions3,
@@ -149480,7 +149497,7 @@ function pages(yargs) {
149480
149497
  ).command(
149481
149498
  "deployment",
149482
149499
  "\u{1F680} Interact with the deployments of a project",
149483
- (yargs2) => yargs2.command(
149500
+ (args) => args.command(
149484
149501
  "list",
149485
149502
  "List deployments in your Cloudflare Pages project",
149486
149503
  ListOptions4,
@@ -151550,7 +151567,7 @@ var secretBulkHandler = /* @__PURE__ */ __name(async (secretBulkArgs) => {
151550
151567
  }
151551
151568
  }
151552
151569
  const inheritBindings = existingBindings.filter((binding) => {
151553
- return binding.type !== "secret_text" || !content[binding.name];
151570
+ return binding.type !== "secret_text" || content[binding.name] === void 0;
151554
151571
  }).map((binding) => ({ type: binding.type, name: binding.name }));
151555
151572
  const upsertBindings = Object.entries(
151556
151573
  content
@@ -168544,6 +168561,29 @@ init_import_meta_url();
168544
168561
  init_import_meta_url();
168545
168562
  var import_miniflare18 = require("miniflare");
168546
168563
 
168564
+ // src/api/integrations/bindings/caches.ts
168565
+ init_import_meta_url();
168566
+ var CacheStorage = class {
168567
+ async open(cacheName) {
168568
+ return new Cache2();
168569
+ }
168570
+ get default() {
168571
+ return new Cache2();
168572
+ }
168573
+ };
168574
+ __name(CacheStorage, "CacheStorage");
168575
+ var Cache2 = class {
168576
+ async delete(request3, options25) {
168577
+ return false;
168578
+ }
168579
+ async match(request3, options25) {
168580
+ return void 0;
168581
+ }
168582
+ async put(request3, response) {
168583
+ }
168584
+ };
168585
+ __name(Cache2, "Cache");
168586
+
168547
168587
  // src/api/integrations/bindings/services.ts
168548
168588
  init_import_meta_url();
168549
168589
  var import_miniflare17 = require("miniflare");
@@ -168637,6 +168677,7 @@ async function getBindingsProxy(options25 = {}) {
168637
168677
  ...vars,
168638
168678
  ...bindings
168639
168679
  },
168680
+ caches: new CacheStorage(),
168640
168681
  dispose: () => mf.dispose()
168641
168682
  };
168642
168683
  }
@@ -168662,7 +168703,10 @@ async function getMiniflareOptionsFromConfig(rawConfig, env5, options25) {
168662
168703
  script: "",
168663
168704
  modules: true,
168664
168705
  ...bindingOptions,
168665
- serviceBindings
168706
+ serviceBindings: {
168707
+ ...serviceBindings,
168708
+ ...bindingOptions.serviceBindings
168709
+ }
168666
168710
  },
168667
168711
  externalDurableObjectWorker
168668
168712
  ],