semantic-release-lerna 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +119 -70
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1367,6 +1367,47 @@ var require_coerce = __commonJS({
1367
1367
  }
1368
1368
  });
1369
1369
 
1370
+ // node_modules/semver/functions/truncate.js
1371
+ var require_truncate = __commonJS({
1372
+ "node_modules/semver/functions/truncate.js"(exports, module) {
1373
+ "use strict";
1374
+ var parse2 = require_parse2();
1375
+ var constants6 = require_constants();
1376
+ var SemVer = require_semver();
1377
+ var truncate = (version, truncation, options) => {
1378
+ if (!constants6.RELEASE_TYPES.includes(truncation)) {
1379
+ return null;
1380
+ }
1381
+ const clonedVersion = cloneInputVersion(version, options);
1382
+ return clonedVersion && doTruncation(clonedVersion, truncation);
1383
+ };
1384
+ var cloneInputVersion = (version, options) => {
1385
+ const versionStringToParse = version instanceof SemVer ? version.version : version;
1386
+ return parse2(versionStringToParse, options);
1387
+ };
1388
+ var doTruncation = (version, truncation) => {
1389
+ if (isPrerelease(truncation)) {
1390
+ return version.version;
1391
+ }
1392
+ version.prerelease = [];
1393
+ switch (truncation) {
1394
+ case "major":
1395
+ version.minor = 0;
1396
+ version.patch = 0;
1397
+ break;
1398
+ case "minor":
1399
+ version.patch = 0;
1400
+ break;
1401
+ }
1402
+ return version.format();
1403
+ };
1404
+ var isPrerelease = (type2) => {
1405
+ return type2.startsWith("pre");
1406
+ };
1407
+ module.exports = truncate;
1408
+ }
1409
+ });
1410
+
1370
1411
  // node_modules/semver/internal/lrucache.js
1371
1412
  var require_lrucache = __commonJS({
1372
1413
  "node_modules/semver/internal/lrucache.js"(exports, module) {
@@ -2401,6 +2442,7 @@ var require_semver2 = __commonJS({
2401
2442
  var lte2 = require_lte();
2402
2443
  var cmp = require_cmp();
2403
2444
  var coerce = require_coerce();
2445
+ var truncate = require_truncate();
2404
2446
  var Comparator = require_comparator();
2405
2447
  var Range = require_range();
2406
2448
  var satisfies2 = require_satisfies();
@@ -2439,6 +2481,7 @@ var require_semver2 = __commonJS({
2439
2481
  lte: lte2,
2440
2482
  cmp,
2441
2483
  coerce,
2484
+ truncate,
2442
2485
  Comparator,
2443
2486
  Range,
2444
2487
  satisfies: satisfies2,
@@ -2465,43 +2508,49 @@ var require_semver2 = __commonJS({
2465
2508
  }
2466
2509
  });
2467
2510
 
2468
- // node_modules/hosted-git-info/node_modules/lru-cache/dist/commonjs/index.min.js
2511
+ // node_modules/hosted-git-info/node_modules/lru-cache/dist/commonjs/node/index.min.js
2469
2512
  var require_index_min = __commonJS({
2470
- "node_modules/hosted-git-info/node_modules/lru-cache/dist/commonjs/index.min.js"(exports) {
2513
+ "node_modules/hosted-git-info/node_modules/lru-cache/dist/commonjs/node/index.min.js"(exports) {
2471
2514
  "use strict";
2472
- var G = (c3, t) => () => (t || c3((t = { exports: {} }).exports, t), t.exports);
2473
- var M = G((O) => {
2515
+ var M = (c3, t) => () => (t || c3((t = { exports: {} }).exports, t), t.exports);
2516
+ var U = M((O) => {
2474
2517
  "use strict";
2475
2518
  Object.defineProperty(O, "__esModule", { value: true });
2476
2519
  O.tracing = O.metrics = void 0;
2477
- var L = __require("node:diagnostics_channel");
2478
- O.metrics = (0, L.channel)("lru-cache:metrics");
2479
- O.tracing = (0, L.tracingChannel)("lru-cache");
2520
+ var j = __require("node:diagnostics_channel");
2521
+ O.metrics = (0, j.channel)("lru-cache:metrics");
2522
+ O.tracing = (0, j.tracingChannel)("lru-cache");
2523
+ });
2524
+ var I = M((R) => {
2525
+ "use strict";
2526
+ Object.defineProperty(R, "__esModule", { value: true });
2527
+ R.defaultPerf = void 0;
2528
+ R.defaultPerf = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
2480
2529
  });
2481
2530
  Object.defineProperty(exports, "__esModule", { value: true });
2482
2531
  exports.LRUCache = void 0;
2483
- var u2 = M();
2484
- var D = () => u2.metrics.hasSubscribers || u2.tracing.hasSubscribers;
2485
- var P = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
2486
- var U = /* @__PURE__ */ new Set();
2487
- var j = typeof process == "object" && process ? process : {};
2488
- var H = (c3, t, e, i2) => {
2489
- typeof j.emitWarning == "function" ? j.emitWarning(c3, t, e, i2) : console.error(`[${e}] ${t}: ${c3}`);
2490
- };
2491
- var N = (c3) => !U.has(c3);
2532
+ var u2 = U();
2533
+ var N = I();
2534
+ var C = () => u2.metrics.hasSubscribers || u2.tracing.hasSubscribers;
2535
+ var G = /* @__PURE__ */ new Set();
2536
+ var P = typeof process == "object" && process ? process : {};
2537
+ var k = (c3, t, e, i2) => {
2538
+ typeof P.emitWarning == "function" ? P.emitWarning(c3, t, e, i2) : console.error(`[${e}] ${t}: ${c3}`);
2539
+ };
2540
+ var q = (c3) => !G.has(c3);
2492
2541
  var F = (c3) => !!c3 && c3 === Math.floor(c3) && c3 > 0 && isFinite(c3);
2493
- var I = (c3) => F(c3) ? c3 <= Math.pow(2, 8) ? Uint8Array : c3 <= Math.pow(2, 16) ? Uint16Array : c3 <= Math.pow(2, 32) ? Uint32Array : c3 <= Number.MAX_SAFE_INTEGER ? W : null : null;
2542
+ var H = (c3) => F(c3) ? c3 <= Math.pow(2, 8) ? Uint8Array : c3 <= Math.pow(2, 16) ? Uint16Array : c3 <= Math.pow(2, 32) ? Uint32Array : c3 <= Number.MAX_SAFE_INTEGER ? W : null : null;
2494
2543
  var W = class extends Array {
2495
2544
  constructor(t) {
2496
2545
  super(t), this.fill(0);
2497
2546
  }
2498
2547
  };
2499
- var C = class c3 {
2548
+ var x = class c3 {
2500
2549
  heap;
2501
2550
  length;
2502
2551
  static #o = false;
2503
2552
  static create(t) {
2504
- let e = I(t);
2553
+ let e = H(t);
2505
2554
  if (!e) return [];
2506
2555
  c3.#o = true;
2507
2556
  let i2 = new c3(t, e);
@@ -2518,7 +2567,7 @@ var require_index_min = __commonJS({
2518
2567
  return this.heap[--this.length];
2519
2568
  }
2520
2569
  };
2521
- var x = class c3 {
2570
+ var L = class c3 {
2522
2571
  #o;
2523
2572
  #c;
2524
2573
  #m;
@@ -2554,9 +2603,9 @@ var require_index_min = __commonJS({
2554
2603
  #u;
2555
2604
  #a;
2556
2605
  #h;
2557
- #y;
2558
- #r;
2559
2606
  #_;
2607
+ #r;
2608
+ #y;
2560
2609
  #F;
2561
2610
  #d;
2562
2611
  #g;
@@ -2565,11 +2614,11 @@ var require_index_min = __commonJS({
2565
2614
  #f;
2566
2615
  #U;
2567
2616
  static unsafeExposeInternals(t) {
2568
- return { starts: t.#F, ttls: t.#d, autopurgeTimers: t.#g, sizes: t.#_, keyMap: t.#s, keyList: t.#i, valList: t.#t, next: t.#l, prev: t.#u, get head() {
2617
+ return { starts: t.#F, ttls: t.#d, autopurgeTimers: t.#g, sizes: t.#y, keyMap: t.#s, keyList: t.#i, valList: t.#t, next: t.#l, prev: t.#u, get head() {
2569
2618
  return t.#a;
2570
2619
  }, get tail() {
2571
2620
  return t.#h;
2572
- }, free: t.#y, isBackgroundFetch: (e) => t.#e(e), backgroundFetch: (e, i2, s, n2) => t.#P(e, i2, s, n2), moveToTail: (e) => t.#L(e), indexes: (e) => t.#A(e), rindexes: (e) => t.#v(e), isStale: (e) => t.#p(e) };
2621
+ }, free: t.#_, isBackgroundFetch: (e) => t.#e(e), backgroundFetch: (e, i2, s, n2) => t.#G(e, i2, s, n2), moveToTail: (e) => t.#L(e), indexes: (e) => t.#A(e), rindexes: (e) => t.#v(e), isStale: (e) => t.#p(e) };
2573
2622
  }
2574
2623
  get max() {
2575
2624
  return this.#o;
@@ -2599,18 +2648,18 @@ var require_index_min = __commonJS({
2599
2648
  return this.#w;
2600
2649
  }
2601
2650
  constructor(t) {
2602
- let { max: e = 0, ttl: i2, ttlResolution: s = 1, ttlAutopurge: n2, updateAgeOnGet: o2, updateAgeOnHas: r, allowStale: h2, dispose: a2, onInsert: d, disposeAfter: f, noDisposeOnSet: p, noUpdateTTL: m, maxSize: T = 0, maxEntrySize: w = 0, sizeCalculation: y, fetchMethod: l, memoMethod: S, noDeleteOnFetchRejection: _, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: g, allowStaleOnFetchAbort: A, ignoreFetchAbort: v, perf: R } = t;
2603
- if (R !== void 0 && typeof R?.now != "function") throw new TypeError("perf option must have a now() method if specified");
2604
- if (this.#S = R ?? P, e !== 0 && !F(e)) throw new TypeError("max option must be a nonnegative integer");
2605
- let z = e ? I(e) : Array;
2651
+ let { max: e = 0, ttl: i2, ttlResolution: s = 1, ttlAutopurge: n2, updateAgeOnGet: o2, updateAgeOnHas: r, allowStale: h2, dispose: a2, onInsert: d, disposeAfter: f, noDisposeOnSet: p, noUpdateTTL: m, maxSize: T = 0, maxEntrySize: w = 0, sizeCalculation: _, fetchMethod: l, memoMethod: S, noDeleteOnFetchRejection: y, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: g, allowStaleOnFetchAbort: A, ignoreFetchAbort: v, perf: D } = t;
2652
+ if (D !== void 0 && typeof D?.now != "function") throw new TypeError("perf option must have a now() method if specified");
2653
+ if (this.#S = D ?? N.defaultPerf, e !== 0 && !F(e)) throw new TypeError("max option must be a nonnegative integer");
2654
+ let z = e ? H(e) : Array;
2606
2655
  if (!z) throw new Error("invalid max value: " + e);
2607
- if (this.#o = e, this.#c = T, this.maxEntrySize = w || this.#c, this.sizeCalculation = y, this.sizeCalculation) {
2656
+ if (this.#o = e, this.#c = T, this.maxEntrySize = w || this.#c, this.sizeCalculation = _, this.sizeCalculation) {
2608
2657
  if (!this.#c && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
2609
2658
  if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
2610
2659
  }
2611
2660
  if (S !== void 0 && typeof S != "function") throw new TypeError("memoMethod must be a function if defined");
2612
2661
  if (this.#j = S, l !== void 0 && typeof l != "function") throw new TypeError("fetchMethod must be a function if specified");
2613
- if (this.#M = l, this.#O = !!l, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: e }).fill(void 0), this.#t = Array.from({ length: e }).fill(void 0), this.#l = new z(e), this.#u = new z(e), this.#a = 0, this.#h = 0, this.#y = C.create(e), this.#n = 0, this.#b = 0, typeof a2 == "function" && (this.#m = a2), typeof d == "function" && (this.#D = d), typeof f == "function" ? (this.#w = f, this.#r = []) : (this.#w = void 0, this.#r = void 0), this.#T = !!this.#m, this.#U = !!this.#D, this.#f = !!this.#w, this.noDisposeOnSet = !!p, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!_, this.allowStaleOnFetchRejection = !!g, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!v, this.maxEntrySize !== 0) {
2662
+ if (this.#M = l, this.#O = !!l, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: e }).fill(void 0), this.#t = Array.from({ length: e }).fill(void 0), this.#l = new z(e), this.#u = new z(e), this.#a = 0, this.#h = 0, this.#_ = x.create(e), this.#n = 0, this.#b = 0, typeof a2 == "function" && (this.#m = a2), typeof d == "function" && (this.#D = d), typeof f == "function" ? (this.#w = f, this.#r = []) : (this.#w = void 0, this.#r = void 0), this.#T = !!this.#m, this.#U = !!this.#D, this.#f = !!this.#w, this.noDisposeOnSet = !!p, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!y, this.allowStaleOnFetchRejection = !!g, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!v, this.maxEntrySize !== 0) {
2614
2663
  if (this.#c !== 0 && !F(this.#c)) throw new TypeError("maxSize must be a positive integer if specified");
2615
2664
  if (!F(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
2616
2665
  this.#X();
@@ -2622,7 +2671,7 @@ var require_index_min = __commonJS({
2622
2671
  if (this.#o === 0 && this.ttl === 0 && this.#c === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
2623
2672
  if (!this.ttlAutopurge && !this.#o && !this.#c) {
2624
2673
  let E = "LRU_CACHE_UNBOUNDED";
2625
- N(E) && (U.add(E), H("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", E, c3));
2674
+ q(E) && (G.add(E), k("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", E, c3));
2626
2675
  }
2627
2676
  }
2628
2677
  getRemainingTTL(t) {
@@ -2685,7 +2734,7 @@ var require_index_min = __commonJS({
2685
2734
  #p = () => false;
2686
2735
  #X() {
2687
2736
  let t = new W(this.#o);
2688
- this.#b = 0, this.#_ = t, this.#C = (e) => {
2737
+ this.#b = 0, this.#y = t, this.#C = (e) => {
2689
2738
  this.#b -= t[e], t[e] = 0;
2690
2739
  }, this.#k = (e, i2, s, n2) => {
2691
2740
  if (this.#e(i2)) return 0;
@@ -2697,7 +2746,7 @@ var require_index_min = __commonJS({
2697
2746
  }, this.#I = (e, i2, s) => {
2698
2747
  if (t[e] = i2, this.#c) {
2699
2748
  let n2 = this.#c - t[e];
2700
- for (; this.#b > n2; ) this.#G(true);
2749
+ for (; this.#b > n2; ) this.#P(true);
2701
2750
  }
2702
2751
  this.#b += t[e], s && (s.entrySize = i2, s.totalCalculatedSize = this.#b);
2703
2752
  };
@@ -2711,12 +2760,12 @@ var require_index_min = __commonJS({
2711
2760
  return 0;
2712
2761
  };
2713
2762
  *#A({ allowStale: t = this.allowStale } = {}) {
2714
- if (this.#n) for (let e = this.#h; this.#V(e) && ((t || !this.#p(e)) && (yield e), e !== this.#a); ) e = this.#u[e];
2763
+ if (this.#n) for (let e = this.#h; this.#q(e) && ((t || !this.#p(e)) && (yield e), e !== this.#a); ) e = this.#u[e];
2715
2764
  }
2716
2765
  *#v({ allowStale: t = this.allowStale } = {}) {
2717
- if (this.#n) for (let e = this.#a; this.#V(e) && ((t || !this.#p(e)) && (yield e), e !== this.#h); ) e = this.#l[e];
2766
+ if (this.#n) for (let e = this.#a; this.#q(e) && ((t || !this.#p(e)) && (yield e), e !== this.#h); ) e = this.#l[e];
2718
2767
  }
2719
- #V(t) {
2768
+ #q(t) {
2720
2769
  return t !== void 0 && this.#s.get(this.#i[t]) === t;
2721
2770
  }
2722
2771
  *entries() {
@@ -2783,7 +2832,7 @@ var require_index_min = __commonJS({
2783
2832
  n2.ttl = h2, n2.start = Date.now();
2784
2833
  }
2785
2834
  }
2786
- return this.#_ && (n2.size = this.#_[e]), n2;
2835
+ return this.#y && (n2.size = this.#y[e]), n2;
2787
2836
  }
2788
2837
  dump() {
2789
2838
  let t = [];
@@ -2796,7 +2845,7 @@ var require_index_min = __commonJS({
2796
2845
  let r = this.#S.now() - this.#F[e];
2797
2846
  o2.start = Math.floor(Date.now() - r);
2798
2847
  }
2799
- this.#_ && (o2.size = this.#_[e]), t.unshift([i2, o2]);
2848
+ this.#y && (o2.size = this.#y[e]), t.unshift([i2, o2]);
2800
2849
  }
2801
2850
  return t;
2802
2851
  }
@@ -2824,7 +2873,7 @@ var require_index_min = __commonJS({
2824
2873
  let d = this.#k(t, e, i2.size || 0, r, h2);
2825
2874
  if (this.maxEntrySize && d > this.maxEntrySize) return this.#z(t, "set"), h2 && (h2.set = "miss", h2.maxEntrySizeExceeded = true), this;
2826
2875
  let f = this.#n === 0 ? void 0 : this.#s.get(t);
2827
- if (f === void 0) f = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[f] = t, this.#t[f] = e, this.#s.set(t, f), this.#l[this.#h] = f, this.#u[f] = this.#h, this.#h = f, this.#n++, this.#I(f, d, h2), h2 && (h2.set = "add"), a2 = false, this.#U && this.#D?.(e, t, "add");
2876
+ if (f === void 0) f = this.#n === 0 ? this.#h : this.#_.length !== 0 ? this.#_.pop() : this.#n === this.#o ? this.#P(false) : this.#n, this.#i[f] = t, this.#t[f] = e, this.#s.set(t, f), this.#l[this.#h] = f, this.#u[f] = this.#h, this.#h = f, this.#n++, this.#I(f, d, h2), h2 && (h2.set = "add"), a2 = false, this.#U && this.#D?.(e, t, "add");
2828
2877
  else {
2829
2878
  this.#L(f);
2830
2879
  let p = this.#t[f];
@@ -2852,7 +2901,7 @@ var require_index_min = __commonJS({
2852
2901
  try {
2853
2902
  for (; this.#n; ) {
2854
2903
  let t = this.#t[this.#a];
2855
- if (this.#G(true), this.#e(t)) {
2904
+ if (this.#P(true), this.#e(t)) {
2856
2905
  if (t.__staleWhileFetching) return t.__staleWhileFetching;
2857
2906
  } else if (t !== void 0) return t;
2858
2907
  }
@@ -2863,9 +2912,9 @@ var require_index_min = __commonJS({
2863
2912
  }
2864
2913
  }
2865
2914
  }
2866
- #G(t) {
2915
+ #P(t) {
2867
2916
  let e = this.#a, i2 = this.#i[e], s = this.#t[e];
2868
- return this.#O && this.#e(s) ? s.__abortController.abort(new Error("evicted")) : (this.#T || this.#f) && (this.#T && this.#m?.(s, i2, "evict"), this.#f && this.#r?.push([s, i2, "evict"])), this.#C(e), this.#g?.[e] && (clearTimeout(this.#g[e]), this.#g[e] = void 0), t && (this.#i[e] = void 0, this.#t[e] = void 0, this.#y.push(e)), this.#n === 1 ? (this.#a = this.#h = 0, this.#y.length = 0) : this.#a = this.#l[e], this.#s.delete(i2), this.#n--, e;
2917
+ return this.#O && this.#e(s) ? s.__abortController.abort(new Error("evicted")) : (this.#T || this.#f) && (this.#T && this.#m?.(s, i2, "evict"), this.#f && this.#r?.push([s, i2, "evict"])), this.#C(e), this.#g?.[e] && (clearTimeout(this.#g[e]), this.#g[e] = void 0), t && (this.#i[e] = void 0, this.#t[e] = void 0, this.#_.push(e)), this.#n === 1 ? (this.#a = this.#h = 0, this.#_.length = 0) : this.#a = this.#l[e], this.#s.delete(i2), this.#n--, e;
2869
2918
  }
2870
2919
  has(t, e = {}) {
2871
2920
  let { status: i2 = u2.metrics.hasSubscribers ? {} : void 0 } = e;
@@ -2884,7 +2933,7 @@ var require_index_min = __commonJS({
2884
2933
  return false;
2885
2934
  }
2886
2935
  peek(t, e = {}) {
2887
- let { status: i2 = D() ? {} : void 0 } = e;
2936
+ let { status: i2 = C() ? {} : void 0 } = e;
2888
2937
  i2 && (i2.op = "peek", i2.key = t), e.status = i2;
2889
2938
  let s = this.#J(t, e);
2890
2939
  return u2.metrics.hasSubscribers && u2.metrics.publish(i2), s;
@@ -2898,23 +2947,23 @@ var require_index_min = __commonJS({
2898
2947
  let o2 = this.#t[n2], r = this.#e(o2) ? o2.__staleWhileFetching : o2;
2899
2948
  return i2 && (r !== void 0 ? (i2.peek = "hit", i2.value = r) : i2.peek = "miss"), r;
2900
2949
  }
2901
- #P(t, e, i2, s) {
2950
+ #G(t, e, i2, s) {
2902
2951
  let n2 = e === void 0 ? void 0 : this.#t[e];
2903
2952
  if (this.#e(n2)) return n2;
2904
2953
  let o2 = new AbortController(), { signal: r } = i2;
2905
2954
  r?.addEventListener("abort", () => o2.abort(r.reason), { signal: o2.signal });
2906
- let h2 = { signal: o2.signal, options: i2, context: s }, a2 = (w, y = false) => {
2907
- let { aborted: l } = o2.signal, S = i2.ignoreFetchAbort && w !== void 0, _ = i2.ignoreFetchAbort || !!(i2.allowStaleOnFetchAbort && w !== void 0);
2908
- if (i2.status && (l && !y ? (i2.status.fetchAborted = true, i2.status.fetchError = o2.signal.reason, S && (i2.status.fetchAbortIgnored = true)) : i2.status.fetchResolved = true), l && !S && !y) return f(o2.signal.reason, _);
2955
+ let h2 = { signal: o2.signal, options: i2, context: s }, a2 = (w, _ = false) => {
2956
+ let { aborted: l } = o2.signal, S = i2.ignoreFetchAbort && w !== void 0, y = i2.ignoreFetchAbort || !!(i2.allowStaleOnFetchAbort && w !== void 0);
2957
+ if (i2.status && (l && !_ ? (i2.status.fetchAborted = true, i2.status.fetchError = o2.signal.reason, S && (i2.status.fetchAbortIgnored = true)) : i2.status.fetchResolved = true), l && !S && !_) return f(o2.signal.reason, y);
2909
2958
  let b = m, g = this.#t[e];
2910
- return (g === m || g === void 0 && S && y) && (w === void 0 ? b.__staleWhileFetching !== void 0 ? this.#t[e] = b.__staleWhileFetching : this.#z(t, "fetch") : (i2.status && (i2.status.fetchUpdated = true), this.#W(t, w, h2.options))), w;
2911
- }, d = (w) => (i2.status && (i2.status.fetchRejected = true, i2.status.fetchError = w), f(w, false)), f = (w, y) => {
2912
- let { aborted: l } = o2.signal, S = l && i2.allowStaleOnFetchAbort, _ = S || i2.allowStaleOnFetchRejection, b = _ || i2.noDeleteOnFetchRejection, g = m;
2913
- if (this.#t[e] === m && (!b || !y && g.__staleWhileFetching === void 0 ? this.#z(t, "fetch") : S || (this.#t[e] = g.__staleWhileFetching)), _) return i2.status && g.__staleWhileFetching !== void 0 && (i2.status.returnedStale = true), g.__staleWhileFetching;
2959
+ return (g === m || g === void 0 && S && _) && (w === void 0 ? b.__staleWhileFetching !== void 0 ? this.#t[e] = b.__staleWhileFetching : this.#z(t, "fetch") : (i2.status && (i2.status.fetchUpdated = true), this.#W(t, w, h2.options))), w;
2960
+ }, d = (w) => (i2.status && (i2.status.fetchRejected = true, i2.status.fetchError = w), f(w, false)), f = (w, _) => {
2961
+ let { aborted: l } = o2.signal, S = l && i2.allowStaleOnFetchAbort, y = S || i2.allowStaleOnFetchRejection, b = y || i2.noDeleteOnFetchRejection, g = m;
2962
+ if (this.#t[e] === m && (!b || !_ && g.__staleWhileFetching === void 0 ? this.#z(t, "fetch") : S || (this.#t[e] = g.__staleWhileFetching)), y) return i2.status && g.__staleWhileFetching !== void 0 && (i2.status.returnedStale = true), g.__staleWhileFetching;
2914
2963
  if (g.__returned === g) throw w;
2915
- }, p = (w, y) => {
2964
+ }, p = (w, _) => {
2916
2965
  let l = this.#M?.(t, n2, h2);
2917
- l && l instanceof Promise && l.then((S) => w(S === void 0 ? void 0 : S), y), o2.signal.addEventListener("abort", () => {
2966
+ l && l instanceof Promise && l.then((S) => w(S === void 0 ? void 0 : S), _), o2.signal.addEventListener("abort", () => {
2918
2967
  (!i2.ignoreFetchAbort || i2.allowStaleOnFetchAbort) && (w(void 0), i2.allowStaleOnFetchAbort && (w = (S) => a2(S, true)));
2919
2968
  });
2920
2969
  };
@@ -2928,19 +2977,19 @@ var require_index_min = __commonJS({
2928
2977
  return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof AbortController;
2929
2978
  }
2930
2979
  fetch(t, e = {}) {
2931
- let i2 = u2.tracing.hasSubscribers, { status: s = D() ? {} : void 0 } = e;
2980
+ let i2 = u2.tracing.hasSubscribers, { status: s = C() ? {} : void 0 } = e;
2932
2981
  e.status = s, s && e.context && (s.context = e.context);
2933
- let n2 = this.#q(t, e);
2934
- return s && D() && i2 && (s.trace = true, u2.tracing.tracePromise(() => n2, s).catch(() => {
2982
+ let n2 = this.#V(t, e);
2983
+ return s && i2 && (s.trace = true, u2.tracing.tracePromise(() => n2, s).catch(() => {
2935
2984
  })), n2;
2936
2985
  }
2937
- async #q(t, e = {}) {
2938
- let { allowStale: i2 = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n2 = this.noDeleteOnStaleGet, ttl: o2 = this.ttl, noDisposeOnSet: r = this.noDisposeOnSet, size: h2 = 0, sizeCalculation: a2 = this.sizeCalculation, noUpdateTTL: d = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: p = this.allowStaleOnFetchRejection, ignoreFetchAbort: m = this.ignoreFetchAbort, allowStaleOnFetchAbort: T = this.allowStaleOnFetchAbort, context: w, forceRefresh: y = false, status: l, signal: S } = e;
2939
- if (l && (l.op = "fetch", l.key = t, y && (l.forceRefresh = true)), !this.#O) return l && (l.fetch = "get"), this.#x(t, { allowStale: i2, updateAgeOnGet: s, noDeleteOnStaleGet: n2, status: l });
2940
- let _ = { allowStale: i2, updateAgeOnGet: s, noDeleteOnStaleGet: n2, ttl: o2, noDisposeOnSet: r, size: h2, sizeCalculation: a2, noUpdateTTL: d, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: T, ignoreFetchAbort: m, status: l, signal: S }, b = this.#s.get(t);
2986
+ async #V(t, e = {}) {
2987
+ let { allowStale: i2 = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n2 = this.noDeleteOnStaleGet, ttl: o2 = this.ttl, noDisposeOnSet: r = this.noDisposeOnSet, size: h2 = 0, sizeCalculation: a2 = this.sizeCalculation, noUpdateTTL: d = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: p = this.allowStaleOnFetchRejection, ignoreFetchAbort: m = this.ignoreFetchAbort, allowStaleOnFetchAbort: T = this.allowStaleOnFetchAbort, context: w, forceRefresh: _ = false, status: l, signal: S } = e;
2988
+ if (l && (l.op = "fetch", l.key = t, _ && (l.forceRefresh = true)), !this.#O) return l && (l.fetch = "get"), this.#x(t, { allowStale: i2, updateAgeOnGet: s, noDeleteOnStaleGet: n2, status: l });
2989
+ let y = { allowStale: i2, updateAgeOnGet: s, noDeleteOnStaleGet: n2, ttl: o2, noDisposeOnSet: r, size: h2, sizeCalculation: a2, noUpdateTTL: d, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: T, ignoreFetchAbort: m, status: l, signal: S }, b = this.#s.get(t);
2941
2990
  if (b === void 0) {
2942
2991
  l && (l.fetch = "miss");
2943
- let g = this.#P(t, b, _, w);
2992
+ let g = this.#G(t, b, y, w);
2944
2993
  return g.__returned = g;
2945
2994
  } else {
2946
2995
  let g = this.#t[b];
@@ -2949,20 +2998,20 @@ var require_index_min = __commonJS({
2949
2998
  return l && (l.fetch = "inflight", E && (l.returnedStale = true)), E ? g.__staleWhileFetching : g.__returned = g;
2950
2999
  }
2951
3000
  let A = this.#p(b);
2952
- if (!y && !A) return l && (l.fetch = "hit"), this.#L(b), s && this.#R(b), l && this.#E(l, b), g;
2953
- let v = this.#P(t, b, _, w), z = v.__staleWhileFetching !== void 0 && i2;
3001
+ if (!_ && !A) return l && (l.fetch = "hit"), this.#L(b), s && this.#R(b), l && this.#E(l, b), g;
3002
+ let v = this.#G(t, b, y, w), z = v.__staleWhileFetching !== void 0 && i2;
2954
3003
  return l && (l.fetch = A ? "stale" : "refresh", z && A && (l.returnedStale = true)), z ? v.__staleWhileFetching : v.__returned = v;
2955
3004
  }
2956
3005
  }
2957
3006
  forceFetch(t, e = {}) {
2958
- let i2 = u2.tracing.hasSubscribers, { status: s = D() ? {} : void 0 } = e;
3007
+ let i2 = u2.tracing.hasSubscribers, { status: s = C() ? {} : void 0 } = e;
2959
3008
  e.status = s, s && e.context && (s.context = e.context);
2960
3009
  let n2 = this.#K(t, e);
2961
- return s && D() && i2 && (s.trace = true, u2.tracing.tracePromise(() => n2, s).catch(() => {
3010
+ return s && i2 && (s.trace = true, u2.tracing.tracePromise(() => n2, s).catch(() => {
2962
3011
  })), n2;
2963
3012
  }
2964
3013
  async #K(t, e = {}) {
2965
- let i2 = await this.#q(t, e);
3014
+ let i2 = await this.#V(t, e);
2966
3015
  if (i2 === void 0) throw new Error("fetch() returned undefined");
2967
3016
  return i2;
2968
3017
  }
@@ -3023,7 +3072,7 @@ var require_index_min = __commonJS({
3023
3072
  let r = this.#l[s];
3024
3073
  this.#u[r] = this.#u[s];
3025
3074
  }
3026
- this.#n--, this.#y.push(s);
3075
+ this.#n--, this.#_.push(s);
3027
3076
  }
3028
3077
  }
3029
3078
  if (this.#f && this.#r?.length) {
@@ -3049,13 +3098,13 @@ var require_index_min = __commonJS({
3049
3098
  for (let e of this.#g ?? []) e !== void 0 && clearTimeout(e);
3050
3099
  this.#g?.fill(void 0);
3051
3100
  }
3052
- if (this.#_ && this.#_.fill(0), this.#a = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
3101
+ if (this.#y && this.#y.fill(0), this.#a = 0, this.#h = 0, this.#_.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
3053
3102
  let e = this.#r, i2;
3054
3103
  for (; i2 = e?.shift(); ) this.#w?.(...i2);
3055
3104
  }
3056
3105
  }
3057
3106
  };
3058
- exports.LRUCache = x;
3107
+ exports.LRUCache = L;
3059
3108
  }
3060
3109
  });
3061
3110
 
@@ -25996,7 +26045,7 @@ function expand_(str2, max, isTop) {
25996
26045
  }
25997
26046
  const pad = n2.some(isPadded);
25998
26047
  N = [];
25999
- for (let i2 = x; test(i2, y); i2 += incr) {
26048
+ for (let i2 = x; test(i2, y) && N.length < max; i2 += incr) {
26000
26049
  let c3;
26001
26050
  if (isAlphaSequence) {
26002
26051
  c3 = String.fromCharCode(i2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semantic-release-lerna",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "semantic-release plugin to publish lerna monorepo packages to npm",
5
5
  "keywords": [
6
6
  "npm",
@@ -50,7 +50,7 @@
50
50
  "semantic-release": "^24.0.0 || ^25.0.0"
51
51
  },
52
52
  "engines": {
53
- "node": ">= 22.16"
53
+ "node": "^22.16.0 || >= 24.0.0"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public",