@html-validate/commitlint-config 3.4.3 → 3.5.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.
@@ -48,6 +48,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
48
48
  // node_modules/@commitlint/is-ignored/node_modules/semver/internal/constants.js
49
49
  var require_constants = __commonJS({
50
50
  "node_modules/@commitlint/is-ignored/node_modules/semver/internal/constants.js"(exports, module) {
51
+ "use strict";
51
52
  var SEMVER_SPEC_VERSION = "2.0.0";
52
53
  var MAX_LENGTH = 256;
53
54
  var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
@@ -79,6 +80,7 @@ var require_constants = __commonJS({
79
80
  // node_modules/@commitlint/is-ignored/node_modules/semver/internal/debug.js
80
81
  var require_debug = __commonJS({
81
82
  "node_modules/@commitlint/is-ignored/node_modules/semver/internal/debug.js"(exports, module) {
83
+ "use strict";
82
84
  var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
83
85
  };
84
86
  module.exports = debug;
@@ -88,6 +90,7 @@ var require_debug = __commonJS({
88
90
  // node_modules/@commitlint/is-ignored/node_modules/semver/internal/re.js
89
91
  var require_re = __commonJS({
90
92
  "node_modules/@commitlint/is-ignored/node_modules/semver/internal/re.js"(exports, module) {
93
+ "use strict";
91
94
  var {
92
95
  MAX_SAFE_COMPONENT_LENGTH,
93
96
  MAX_SAFE_BUILD_LENGTH,
@@ -128,8 +131,8 @@ var require_re = __commonJS({
128
131
  createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
129
132
  createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
130
133
  createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
131
- createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
132
- createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
134
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
135
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
133
136
  createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
134
137
  createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
135
138
  createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
@@ -175,6 +178,7 @@ var require_re = __commonJS({
175
178
  // node_modules/@commitlint/is-ignored/node_modules/semver/internal/parse-options.js
176
179
  var require_parse_options = __commonJS({
177
180
  "node_modules/@commitlint/is-ignored/node_modules/semver/internal/parse-options.js"(exports, module) {
181
+ "use strict";
178
182
  var looseOption = Object.freeze({ loose: true });
179
183
  var emptyOpts = Object.freeze({});
180
184
  var parseOptions = (options) => {
@@ -193,6 +197,7 @@ var require_parse_options = __commonJS({
193
197
  // node_modules/@commitlint/is-ignored/node_modules/semver/internal/identifiers.js
194
198
  var require_identifiers = __commonJS({
195
199
  "node_modules/@commitlint/is-ignored/node_modules/semver/internal/identifiers.js"(exports, module) {
200
+ "use strict";
196
201
  var numeric = /^[0-9]+$/;
197
202
  var compareIdentifiers = (a, b) => {
198
203
  const anum = numeric.test(a);
@@ -214,9 +219,10 @@ var require_identifiers = __commonJS({
214
219
  // node_modules/@commitlint/is-ignored/node_modules/semver/classes/semver.js
215
220
  var require_semver = __commonJS({
216
221
  "node_modules/@commitlint/is-ignored/node_modules/semver/classes/semver.js"(exports, module) {
222
+ "use strict";
217
223
  var debug = require_debug();
218
224
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
219
- var { safeRe: re, safeSrc: src, t } = require_re();
225
+ var { safeRe: re, t } = require_re();
220
226
  var parseOptions = require_parse_options();
221
227
  var { compareIdentifiers } = require_identifiers();
222
228
  var SemVer = class _SemVer {
@@ -361,8 +367,7 @@ var require_semver = __commonJS({
361
367
  throw new Error("invalid increment argument: identifier is empty");
362
368
  }
363
369
  if (identifier) {
364
- const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
365
- const match2 = `-${identifier}`.match(r);
370
+ const match2 = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
366
371
  if (!match2 || match2[1] !== identifier) {
367
372
  throw new Error(`invalid identifier: ${identifier}`);
368
373
  }
@@ -475,6 +480,7 @@ var require_semver = __commonJS({
475
480
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/parse.js
476
481
  var require_parse = __commonJS({
477
482
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/parse.js"(exports, module) {
483
+ "use strict";
478
484
  var SemVer = require_semver();
479
485
  var parse2 = (version, options, throwErrors = false) => {
480
486
  if (version instanceof SemVer) {
@@ -496,6 +502,7 @@ var require_parse = __commonJS({
496
502
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/valid.js
497
503
  var require_valid = __commonJS({
498
504
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/valid.js"(exports, module) {
505
+ "use strict";
499
506
  var parse2 = require_parse();
500
507
  var valid = (version, options) => {
501
508
  const v = parse2(version, options);
@@ -508,6 +515,7 @@ var require_valid = __commonJS({
508
515
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/clean.js
509
516
  var require_clean = __commonJS({
510
517
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/clean.js"(exports, module) {
518
+ "use strict";
511
519
  var parse2 = require_parse();
512
520
  var clean = (version, options) => {
513
521
  const s = parse2(version.trim().replace(/^[=v]+/, ""), options);
@@ -520,6 +528,7 @@ var require_clean = __commonJS({
520
528
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/inc.js
521
529
  var require_inc = __commonJS({
522
530
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/inc.js"(exports, module) {
531
+ "use strict";
523
532
  var SemVer = require_semver();
524
533
  var inc = (version, release, options, identifier, identifierBase) => {
525
534
  if (typeof options === "string") {
@@ -543,6 +552,7 @@ var require_inc = __commonJS({
543
552
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/diff.js
544
553
  var require_diff = __commonJS({
545
554
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/diff.js"(exports, module) {
555
+ "use strict";
546
556
  var parse2 = require_parse();
547
557
  var diff = (version1, version2) => {
548
558
  const v1 = parse2(version1, null, true);
@@ -586,6 +596,7 @@ var require_diff = __commonJS({
586
596
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/major.js
587
597
  var require_major = __commonJS({
588
598
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/major.js"(exports, module) {
599
+ "use strict";
589
600
  var SemVer = require_semver();
590
601
  var major = (a, loose) => new SemVer(a, loose).major;
591
602
  module.exports = major;
@@ -595,6 +606,7 @@ var require_major = __commonJS({
595
606
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/minor.js
596
607
  var require_minor = __commonJS({
597
608
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/minor.js"(exports, module) {
609
+ "use strict";
598
610
  var SemVer = require_semver();
599
611
  var minor = (a, loose) => new SemVer(a, loose).minor;
600
612
  module.exports = minor;
@@ -604,6 +616,7 @@ var require_minor = __commonJS({
604
616
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/patch.js
605
617
  var require_patch = __commonJS({
606
618
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/patch.js"(exports, module) {
619
+ "use strict";
607
620
  var SemVer = require_semver();
608
621
  var patch = (a, loose) => new SemVer(a, loose).patch;
609
622
  module.exports = patch;
@@ -613,6 +626,7 @@ var require_patch = __commonJS({
613
626
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/prerelease.js
614
627
  var require_prerelease = __commonJS({
615
628
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/prerelease.js"(exports, module) {
629
+ "use strict";
616
630
  var parse2 = require_parse();
617
631
  var prerelease = (version, options) => {
618
632
  const parsed = parse2(version, options);
@@ -625,6 +639,7 @@ var require_prerelease = __commonJS({
625
639
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/compare.js
626
640
  var require_compare = __commonJS({
627
641
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/compare.js"(exports, module) {
642
+ "use strict";
628
643
  var SemVer = require_semver();
629
644
  var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
630
645
  module.exports = compare;
@@ -634,6 +649,7 @@ var require_compare = __commonJS({
634
649
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/rcompare.js
635
650
  var require_rcompare = __commonJS({
636
651
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/rcompare.js"(exports, module) {
652
+ "use strict";
637
653
  var compare = require_compare();
638
654
  var rcompare = (a, b, loose) => compare(b, a, loose);
639
655
  module.exports = rcompare;
@@ -643,6 +659,7 @@ var require_rcompare = __commonJS({
643
659
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/compare-loose.js
644
660
  var require_compare_loose = __commonJS({
645
661
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/compare-loose.js"(exports, module) {
662
+ "use strict";
646
663
  var compare = require_compare();
647
664
  var compareLoose = (a, b) => compare(a, b, true);
648
665
  module.exports = compareLoose;
@@ -652,6 +669,7 @@ var require_compare_loose = __commonJS({
652
669
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/compare-build.js
653
670
  var require_compare_build = __commonJS({
654
671
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/compare-build.js"(exports, module) {
672
+ "use strict";
655
673
  var SemVer = require_semver();
656
674
  var compareBuild = (a, b, loose) => {
657
675
  const versionA = new SemVer(a, loose);
@@ -665,6 +683,7 @@ var require_compare_build = __commonJS({
665
683
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/sort.js
666
684
  var require_sort = __commonJS({
667
685
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/sort.js"(exports, module) {
686
+ "use strict";
668
687
  var compareBuild = require_compare_build();
669
688
  var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
670
689
  module.exports = sort;
@@ -674,6 +693,7 @@ var require_sort = __commonJS({
674
693
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/rsort.js
675
694
  var require_rsort = __commonJS({
676
695
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/rsort.js"(exports, module) {
696
+ "use strict";
677
697
  var compareBuild = require_compare_build();
678
698
  var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
679
699
  module.exports = rsort;
@@ -683,6 +703,7 @@ var require_rsort = __commonJS({
683
703
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/gt.js
684
704
  var require_gt = __commonJS({
685
705
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/gt.js"(exports, module) {
706
+ "use strict";
686
707
  var compare = require_compare();
687
708
  var gt = (a, b, loose) => compare(a, b, loose) > 0;
688
709
  module.exports = gt;
@@ -692,6 +713,7 @@ var require_gt = __commonJS({
692
713
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/lt.js
693
714
  var require_lt = __commonJS({
694
715
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/lt.js"(exports, module) {
716
+ "use strict";
695
717
  var compare = require_compare();
696
718
  var lt2 = (a, b, loose) => compare(a, b, loose) < 0;
697
719
  module.exports = lt2;
@@ -701,6 +723,7 @@ var require_lt = __commonJS({
701
723
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/eq.js
702
724
  var require_eq = __commonJS({
703
725
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/eq.js"(exports, module) {
726
+ "use strict";
704
727
  var compare = require_compare();
705
728
  var eq = (a, b, loose) => compare(a, b, loose) === 0;
706
729
  module.exports = eq;
@@ -710,6 +733,7 @@ var require_eq = __commonJS({
710
733
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/neq.js
711
734
  var require_neq = __commonJS({
712
735
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/neq.js"(exports, module) {
736
+ "use strict";
713
737
  var compare = require_compare();
714
738
  var neq = (a, b, loose) => compare(a, b, loose) !== 0;
715
739
  module.exports = neq;
@@ -719,6 +743,7 @@ var require_neq = __commonJS({
719
743
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/gte.js
720
744
  var require_gte = __commonJS({
721
745
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/gte.js"(exports, module) {
746
+ "use strict";
722
747
  var compare = require_compare();
723
748
  var gte = (a, b, loose) => compare(a, b, loose) >= 0;
724
749
  module.exports = gte;
@@ -728,6 +753,7 @@ var require_gte = __commonJS({
728
753
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/lte.js
729
754
  var require_lte = __commonJS({
730
755
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/lte.js"(exports, module) {
756
+ "use strict";
731
757
  var compare = require_compare();
732
758
  var lte = (a, b, loose) => compare(a, b, loose) <= 0;
733
759
  module.exports = lte;
@@ -737,6 +763,7 @@ var require_lte = __commonJS({
737
763
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/cmp.js
738
764
  var require_cmp = __commonJS({
739
765
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/cmp.js"(exports, module) {
766
+ "use strict";
740
767
  var eq = require_eq();
741
768
  var neq = require_neq();
742
769
  var gt = require_gt();
@@ -786,6 +813,7 @@ var require_cmp = __commonJS({
786
813
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/coerce.js
787
814
  var require_coerce = __commonJS({
788
815
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/coerce.js"(exports, module) {
816
+ "use strict";
789
817
  var SemVer = require_semver();
790
818
  var parse2 = require_parse();
791
819
  var { safeRe: re, t } = require_re();
@@ -831,6 +859,7 @@ var require_coerce = __commonJS({
831
859
  // node_modules/@commitlint/is-ignored/node_modules/semver/internal/lrucache.js
832
860
  var require_lrucache = __commonJS({
833
861
  "node_modules/@commitlint/is-ignored/node_modules/semver/internal/lrucache.js"(exports, module) {
862
+ "use strict";
834
863
  var LRUCache = class {
835
864
  constructor() {
836
865
  this.max = 1e3;
@@ -868,6 +897,7 @@ var require_lrucache = __commonJS({
868
897
  // node_modules/@commitlint/is-ignored/node_modules/semver/classes/range.js
869
898
  var require_range = __commonJS({
870
899
  "node_modules/@commitlint/is-ignored/node_modules/semver/classes/range.js"(exports, module) {
900
+ "use strict";
871
901
  var SPACE_CHARACTERS = /\s+/g;
872
902
  var Range = class _Range {
873
903
  constructor(range, options) {
@@ -1243,6 +1273,7 @@ var require_range = __commonJS({
1243
1273
  // node_modules/@commitlint/is-ignored/node_modules/semver/classes/comparator.js
1244
1274
  var require_comparator = __commonJS({
1245
1275
  "node_modules/@commitlint/is-ignored/node_modules/semver/classes/comparator.js"(exports, module) {
1276
+ "use strict";
1246
1277
  var ANY = Symbol("SemVer ANY");
1247
1278
  var Comparator = class _Comparator {
1248
1279
  static get ANY() {
@@ -1355,6 +1386,7 @@ var require_comparator = __commonJS({
1355
1386
  // node_modules/@commitlint/is-ignored/node_modules/semver/functions/satisfies.js
1356
1387
  var require_satisfies = __commonJS({
1357
1388
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/satisfies.js"(exports, module) {
1389
+ "use strict";
1358
1390
  var Range = require_range();
1359
1391
  var satisfies = (version, range, options) => {
1360
1392
  try {
@@ -1371,6 +1403,7 @@ var require_satisfies = __commonJS({
1371
1403
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/to-comparators.js
1372
1404
  var require_to_comparators = __commonJS({
1373
1405
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/to-comparators.js"(exports, module) {
1406
+ "use strict";
1374
1407
  var Range = require_range();
1375
1408
  var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1376
1409
  module.exports = toComparators;
@@ -1380,6 +1413,7 @@ var require_to_comparators = __commonJS({
1380
1413
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/max-satisfying.js
1381
1414
  var require_max_satisfying = __commonJS({
1382
1415
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
1416
+ "use strict";
1383
1417
  var SemVer = require_semver();
1384
1418
  var Range = require_range();
1385
1419
  var maxSatisfying = (versions, range, options) => {
@@ -1408,6 +1442,7 @@ var require_max_satisfying = __commonJS({
1408
1442
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/min-satisfying.js
1409
1443
  var require_min_satisfying = __commonJS({
1410
1444
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
1445
+ "use strict";
1411
1446
  var SemVer = require_semver();
1412
1447
  var Range = require_range();
1413
1448
  var minSatisfying = (versions, range, options) => {
@@ -1436,6 +1471,7 @@ var require_min_satisfying = __commonJS({
1436
1471
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/min-version.js
1437
1472
  var require_min_version = __commonJS({
1438
1473
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/min-version.js"(exports, module) {
1474
+ "use strict";
1439
1475
  var SemVer = require_semver();
1440
1476
  var Range = require_range();
1441
1477
  var gt = require_gt();
@@ -1494,6 +1530,7 @@ var require_min_version = __commonJS({
1494
1530
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/valid.js
1495
1531
  var require_valid2 = __commonJS({
1496
1532
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/valid.js"(exports, module) {
1533
+ "use strict";
1497
1534
  var Range = require_range();
1498
1535
  var validRange = (range, options) => {
1499
1536
  try {
@@ -1509,6 +1546,7 @@ var require_valid2 = __commonJS({
1509
1546
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/outside.js
1510
1547
  var require_outside = __commonJS({
1511
1548
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/outside.js"(exports, module) {
1549
+ "use strict";
1512
1550
  var SemVer = require_semver();
1513
1551
  var Comparator = require_comparator();
1514
1552
  var { ANY } = Comparator;
@@ -1577,6 +1615,7 @@ var require_outside = __commonJS({
1577
1615
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/gtr.js
1578
1616
  var require_gtr = __commonJS({
1579
1617
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/gtr.js"(exports, module) {
1618
+ "use strict";
1580
1619
  var outside = require_outside();
1581
1620
  var gtr = (version, range, options) => outside(version, range, ">", options);
1582
1621
  module.exports = gtr;
@@ -1586,6 +1625,7 @@ var require_gtr = __commonJS({
1586
1625
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/ltr.js
1587
1626
  var require_ltr = __commonJS({
1588
1627
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/ltr.js"(exports, module) {
1628
+ "use strict";
1589
1629
  var outside = require_outside();
1590
1630
  var ltr = (version, range, options) => outside(version, range, "<", options);
1591
1631
  module.exports = ltr;
@@ -1595,6 +1635,7 @@ var require_ltr = __commonJS({
1595
1635
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/intersects.js
1596
1636
  var require_intersects = __commonJS({
1597
1637
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/intersects.js"(exports, module) {
1638
+ "use strict";
1598
1639
  var Range = require_range();
1599
1640
  var intersects = (r1, r2, options) => {
1600
1641
  r1 = new Range(r1, options);
@@ -1608,6 +1649,7 @@ var require_intersects = __commonJS({
1608
1649
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/simplify.js
1609
1650
  var require_simplify = __commonJS({
1610
1651
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/simplify.js"(exports, module) {
1652
+ "use strict";
1611
1653
  var satisfies = require_satisfies();
1612
1654
  var compare = require_compare();
1613
1655
  module.exports = (versions, range, options) => {
@@ -1657,6 +1699,7 @@ var require_simplify = __commonJS({
1657
1699
  // node_modules/@commitlint/is-ignored/node_modules/semver/ranges/subset.js
1658
1700
  var require_subset = __commonJS({
1659
1701
  "node_modules/@commitlint/is-ignored/node_modules/semver/ranges/subset.js"(exports, module) {
1702
+ "use strict";
1660
1703
  var Range = require_range();
1661
1704
  var Comparator = require_comparator();
1662
1705
  var { ANY } = Comparator;
@@ -1818,6 +1861,7 @@ var require_subset = __commonJS({
1818
1861
  // node_modules/@commitlint/is-ignored/node_modules/semver/index.js
1819
1862
  var require_semver2 = __commonJS({
1820
1863
  "node_modules/@commitlint/is-ignored/node_modules/semver/index.js"(exports, module) {
1864
+ "use strict";
1821
1865
  var internalRe = require_re();
1822
1866
  var constants = require_constants();
1823
1867
  var SemVer = require_semver();
@@ -21187,7 +21231,7 @@ var require_typescript = __commonJS({
21187
21231
  });
21188
21232
  module2.exports = __toCommonJS(typescript_exports);
21189
21233
  var versionMajorMinor = "5.8";
21190
- var version = "5.8.2";
21234
+ var version = "5.8.3";
21191
21235
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
21192
21236
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
21193
21237
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -77821,10 +77865,11 @@ ${lanes.join("\n")}
77821
77865
  serializeExistingTypeNode(context, typeNode, addUndefined) {
77822
77866
  return serializeExistingTypeNode(context, typeNode, !!addUndefined);
77823
77867
  },
77824
- serializeReturnTypeForSignature(syntacticContext, signatureDeclaration) {
77868
+ serializeReturnTypeForSignature(syntacticContext, signatureDeclaration, symbol) {
77825
77869
  const context = syntacticContext;
77826
77870
  const signature = getSignatureFromDeclaration(signatureDeclaration);
77827
- const returnType = context.enclosingSymbolTypes.get(getSymbolId(getSymbolOfDeclaration(signatureDeclaration))) ?? instantiateType(getReturnTypeOfSignature(signature), context.mapper);
77871
+ symbol ?? (symbol = getSymbolOfDeclaration(signatureDeclaration));
77872
+ const returnType = context.enclosingSymbolTypes.get(getSymbolId(symbol)) ?? instantiateType(getReturnTypeOfSignature(signature), context.mapper);
77828
77873
  return serializeInferredReturnTypeForSignature(context, signature, returnType);
77829
77874
  },
77830
77875
  serializeTypeOfExpression(syntacticContext, expr) {
@@ -77838,7 +77883,7 @@ ${lanes.join("\n")}
77838
77883
  symbol ?? (symbol = getSymbolOfDeclaration(declaration));
77839
77884
  let type = (_a2 = context.enclosingSymbolTypes) == null ? void 0 : _a2.get(getSymbolId(symbol));
77840
77885
  if (type === void 0) {
77841
- type = symbol && !(symbol.flags & (2048 | 131072)) ? instantiateType(getWidenedLiteralType(getTypeOfSymbol(symbol)), context.mapper) : errorType;
77886
+ type = symbol.flags & 98304 && declaration.kind === 178 ? instantiateType(getWriteTypeOfSymbol(symbol), context.mapper) : symbol && !(symbol.flags & (2048 | 131072)) ? instantiateType(getWidenedLiteralType(getTypeOfSymbol(symbol)), context.mapper) : errorType;
77842
77887
  }
77843
77888
  const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration, context.enclosingDeclaration);
77844
77889
  if (addUndefinedForParameter) {
@@ -77903,6 +77948,7 @@ ${lanes.join("\n")}
77903
77948
  const context = syntacticContext;
77904
77949
  if (context.bundled || context.enclosingFile !== getSourceFileOfNode(lit)) {
77905
77950
  let name = lit.text;
77951
+ const originalName = name;
77906
77952
  const nodeSymbol = getNodeLinks(parent2).resolvedSymbol;
77907
77953
  const meaning = parent2.isTypeOf ? 111551 : 788968;
77908
77954
  const parentSymbol = nodeSymbol && isSymbolAccessible(
@@ -77932,7 +77978,9 @@ ${lanes.join("\n")}
77932
77978
  context.tracker.reportLikelyUnsafeImportRequiredError(name);
77933
77979
  }
77934
77980
  }
77935
- return name;
77981
+ if (name !== originalName) {
77982
+ return name;
77983
+ }
77936
77984
  }
77937
77985
  },
77938
77986
  canReuseTypeNode(context, typeNode) {
@@ -79115,6 +79163,7 @@ ${lanes.join("\n")}
79115
79163
  if (propertySymbol.flags & 98304) {
79116
79164
  const writeType = getWriteTypeOfSymbol(propertySymbol);
79117
79165
  if (propertyType !== writeType && !isErrorType(propertyType) && !isErrorType(writeType)) {
79166
+ const symbolMapper = getSymbolLinks(propertySymbol).mapper;
79118
79167
  const getterDeclaration = getDeclarationOfKind(
79119
79168
  propertySymbol,
79120
79169
  177
@@ -79124,7 +79173,7 @@ ${lanes.join("\n")}
79124
79173
  typeElements.push(
79125
79174
  setCommentRange2(
79126
79175
  context,
79127
- signatureToSignatureDeclarationHelper(getterSignature, 177, context, { name: propertyName }),
79176
+ signatureToSignatureDeclarationHelper(symbolMapper ? instantiateSignature(getterSignature, symbolMapper) : getterSignature, 177, context, { name: propertyName }),
79128
79177
  getterDeclaration
79129
79178
  )
79130
79179
  );
@@ -79137,7 +79186,7 @@ ${lanes.join("\n")}
79137
79186
  typeElements.push(
79138
79187
  setCommentRange2(
79139
79188
  context,
79140
- signatureToSignatureDeclarationHelper(setterSignature, 178, context, { name: propertyName }),
79189
+ signatureToSignatureDeclarationHelper(symbolMapper ? instantiateSignature(setterSignature, symbolMapper) : setterSignature, 178, context, { name: propertyName }),
79141
79190
  setterDeclaration
79142
79191
  )
79143
79192
  );
@@ -80403,13 +80452,13 @@ ${lanes.join("\n")}
80403
80452
  const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration, context.enclosingDeclaration);
80404
80453
  const decl = declaration ?? symbol.valueDeclaration ?? getDeclarationWithTypeAnnotation(symbol) ?? ((_a2 = symbol.declarations) == null ? void 0 : _a2[0]);
80405
80454
  if (decl) {
80455
+ const restore = addSymbolTypeToContext(context, symbol, type);
80406
80456
  if (isAccessor(decl)) {
80407
80457
  result = syntacticNodeBuilder.serializeTypeOfAccessor(decl, symbol, context);
80408
80458
  } else if (hasInferredType(decl) && !nodeIsSynthesized(decl) && !(getObjectFlags(type) & 196608)) {
80409
- const restore = addSymbolTypeToContext(context, symbol, type);
80410
80459
  result = syntacticNodeBuilder.serializeTypeOfDeclaration(decl, symbol, context);
80411
- restore();
80412
80460
  }
80461
+ restore();
80413
80462
  }
80414
80463
  if (!result) {
80415
80464
  if (addUndefinedForParameter) {
@@ -80581,10 +80630,7 @@ ${lanes.join("\n")}
80581
80630
  /*context*/
80582
80631
  void 0
80583
80632
  );
80584
- if (updated !== node2) {
80585
- setTextRange2(context, updated, node2);
80586
- }
80587
- return updated;
80633
+ return setTextRange2(context, updated, node2);
80588
80634
  }
80589
80635
  }
80590
80636
  function serializeTypeName(context, node, isTypeOf, typeArguments) {
@@ -106145,6 +106191,11 @@ ${lanes.join("\n")}
106145
106191
  ])) {
106146
106192
  grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
106147
106193
  }
106194
+ if (compilerOptions.erasableSyntaxOnly) {
106195
+ const start = skipTrivia(file.text, node.pos);
106196
+ const end = node.expression.pos;
106197
+ diagnostics.add(createFileDiagnostic(file, start, end - start, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled));
106198
+ }
106148
106199
  }
106149
106200
  return checkAssertionWorker(node, checkMode);
106150
106201
  }
@@ -165090,9 +165141,11 @@ ${lanes.join("\n")}
165090
165141
  if (!resolver.canReuseTypeNode(context, node)) {
165091
165142
  return resolver.serializeExistingTypeNode(context, node);
165092
165143
  }
165144
+ const specifier = rewriteModuleSpecifier2(node, node.argument.literal);
165145
+ const literal = specifier === node.argument.literal ? reuseNode(context, node.argument.literal) : specifier;
165093
165146
  return factory.updateImportTypeNode(
165094
165147
  node,
165095
- factory.updateLiteralTypeNode(node.argument, rewriteModuleSpecifier2(node, node.argument.literal)),
165148
+ literal === node.argument.literal ? reuseNode(context, node.argument) : factory.createLiteralTypeNode(literal),
165096
165149
  visitNode(node.attributes, visitExistingNodeTreeSymbols, isImportAttributes),
165097
165150
  visitNode(node.qualifier, visitExistingNodeTreeSymbols, isEntityName),
165098
165151
  visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode),
@@ -165253,10 +165306,7 @@ ${lanes.join("\n")}
165253
165306
  }
165254
165307
  function rewriteModuleSpecifier2(parent2, lit) {
165255
165308
  const newName = resolver.getModuleSpecifierOverride(context, parent2, lit);
165256
- if (newName) {
165257
- return setOriginalNode(factory.createStringLiteral(newName), lit);
165258
- }
165259
- return visitNode(lit, visitExistingNodeTreeSymbols, isStringLiteral);
165309
+ return newName ? setOriginalNode(factory.createStringLiteral(newName), lit) : lit;
165260
165310
  }
165261
165311
  }
165262
165312
  }
@@ -165429,12 +165479,7 @@ ${lanes.join("\n")}
165429
165479
  return withNewScope(context, node, () => serializeTypeAnnotationOfDeclaration(accessorType, context, node, symbol) ?? inferTypeOfDeclaration(node, symbol, context));
165430
165480
  }
165431
165481
  if (accessorDeclarations.getAccessor) {
165432
- return withNewScope(context, accessorDeclarations.getAccessor, () => createReturnFromSignature(
165433
- accessorDeclarations.getAccessor,
165434
- /*symbol*/
165435
- void 0,
165436
- context
165437
- ));
165482
+ return withNewScope(context, accessorDeclarations.getAccessor, () => createReturnFromSignature(accessorDeclarations.getAccessor, symbol, context));
165438
165483
  }
165439
165484
  return void 0;
165440
165485
  }
@@ -165553,7 +165598,7 @@ ${lanes.join("\n")}
165553
165598
  /* AnyKeyword */
165554
165599
  );
165555
165600
  }
165556
- function inferReturnTypeOfSignatureSignature(node, context, reportFallback) {
165601
+ function inferReturnTypeOfSignatureSignature(node, context, symbol, reportFallback) {
165557
165602
  if (reportFallback) {
165558
165603
  context.tracker.reportInferenceFallback(node);
165559
165604
  }
@@ -165563,7 +165608,7 @@ ${lanes.join("\n")}
165563
165608
  /* AnyKeyword */
165564
165609
  );
165565
165610
  }
165566
- return resolver.serializeReturnTypeForSignature(context, node) ?? factory.createKeywordTypeNode(
165611
+ return resolver.serializeReturnTypeForSignature(context, node, symbol) ?? factory.createKeywordTypeNode(
165567
165612
  133
165568
165613
  /* AnyKeyword */
165569
165614
  );
@@ -165878,18 +165923,17 @@ ${lanes.join("\n")}
165878
165923
  );
165879
165924
  }
165880
165925
  function reuseTypeParameters(typeParameters, context) {
165881
- return typeParameters == null ? void 0 : typeParameters.map(
165882
- (tp) => {
165883
- var _a2;
165884
- return factory.updateTypeParameterDeclaration(
165885
- tp,
165886
- (_a2 = tp.modifiers) == null ? void 0 : _a2.map((m) => reuseNode(context, m)),
165887
- reuseNode(context, tp.name),
165888
- serializeExistingTypeNodeWithFallback(tp.constraint, context),
165889
- serializeExistingTypeNodeWithFallback(tp.default, context)
165890
- );
165891
- }
165892
- );
165926
+ return typeParameters == null ? void 0 : typeParameters.map((tp) => {
165927
+ var _a2;
165928
+ const { node: tpName } = resolver.trackExistingEntityName(context, tp.name);
165929
+ return factory.updateTypeParameterDeclaration(
165930
+ tp,
165931
+ (_a2 = tp.modifiers) == null ? void 0 : _a2.map((m) => reuseNode(context, m)),
165932
+ tpName,
165933
+ serializeExistingTypeNodeWithFallback(tp.constraint, context),
165934
+ serializeExistingTypeNodeWithFallback(tp.default, context)
165935
+ );
165936
+ });
165893
165937
  }
165894
165938
  function typeFromObjectLiteralMethod(method, name, context, isConstContext) {
165895
165939
  const returnType = createReturnFromSignature(
@@ -166042,7 +166086,7 @@ ${lanes.join("\n")}
166042
166086
  } else if (isValueSignatureDeclaration(fn)) {
166043
166087
  returnType = typeFromSingleReturnExpression(fn, context);
166044
166088
  }
166045
- return returnType.type !== void 0 ? returnType.type : inferReturnTypeOfSignatureSignature(fn, context, reportFallback && returnType.reportFallback && !returnTypeNode);
166089
+ return returnType.type !== void 0 ? returnType.type : inferReturnTypeOfSignatureSignature(fn, context, symbol, reportFallback && returnType.reportFallback && !returnTypeNode);
166046
166090
  }
166047
166091
  function typeFromSingleReturnExpression(declaration, context) {
166048
166092
  let candidateExpr;
@@ -261738,24 +261782,17 @@ var headerMinLength = (parsed, _when = void 0, value2 = 0) => {
261738
261782
  // node_modules/@commitlint/rules/lib/header-trim.js
261739
261783
  var headerTrim = (parsed) => {
261740
261784
  const { header } = parsed;
261741
- if (!header) {
261785
+ if (!header)
261742
261786
  return [true];
261743
- }
261744
- const startsWithWhiteSpace = header !== header.trimStart();
261745
- const endsWithWhiteSpace = header !== header.trimEnd();
261746
- switch (true) {
261747
- case (startsWithWhiteSpace && endsWithWhiteSpace):
261748
- return [
261749
- false,
261750
- message(["header", "must not be surrounded by whitespace"])
261751
- ];
261752
- case startsWithWhiteSpace:
261753
- return [false, message(["header", "must not start with whitespace"])];
261754
- case endsWithWhiteSpace:
261755
- return [false, message(["header", "must not end with whitespace"])];
261756
- default:
261757
- return [true];
261758
- }
261787
+ const startsWithWhiteSpace = header.length > header.trimStart().length;
261788
+ const endsWithWhiteSpace = header.length > header.trimEnd().length;
261789
+ if (startsWithWhiteSpace && endsWithWhiteSpace)
261790
+ return [false, message(["header", "must not be surrounded by whitespace"])];
261791
+ if (startsWithWhiteSpace)
261792
+ return [false, message(["header", "must not start with whitespace"])];
261793
+ if (endsWithWhiteSpace)
261794
+ return [false, message(["header", "must not end with whitespace"])];
261795
+ return [true];
261759
261796
  };
261760
261797
 
261761
261798
  // node_modules/@commitlint/rules/lib/references-empty.js
@@ -264713,9 +264750,8 @@ var Queue = class {
264713
264750
  }
264714
264751
  }
264715
264752
  *drain() {
264716
- let current;
264717
- while ((current = this.dequeue()) !== void 0) {
264718
- yield current;
264753
+ while (this.#head) {
264754
+ yield this.dequeue();
264719
264755
  }
264720
264756
  }
264721
264757
  };
@@ -270743,8 +270779,6 @@ typescript/lib/typescript.js:
270743
270779
  ***************************************************************************** *)
270744
270780
 
270745
270781
  cosmiconfig/dist/loaders.js:
270746
- (* istanbul ignore next -- @preserve *)
270747
-
270748
270782
  cosmiconfig/dist/util.js:
270749
270783
  (* istanbul ignore next -- @preserve *)
270750
270784
 
@@ -270753,32 +270787,12 @@ cosmiconfig/dist/ExplorerBase.js:
270753
270787
  (* istanbul ignore next -- @preserve *)
270754
270788
 
270755
270789
  cosmiconfig/dist/Explorer.js:
270756
- (* istanbul ignore if -- @preserve *)
270757
-
270758
270790
  cosmiconfig/dist/ExplorerSync.js:
270759
270791
  (* istanbul ignore if -- @preserve *)
270760
270792
 
270761
270793
  yargs-parser/build/lib/string-utils.js:
270762
- (**
270763
- * @license
270764
- * Copyright (c) 2016, Contributors
270765
- * SPDX-License-Identifier: ISC
270766
- *)
270767
-
270768
270794
  yargs-parser/build/lib/tokenize-arg-string.js:
270769
- (**
270770
- * @license
270771
- * Copyright (c) 2016, Contributors
270772
- * SPDX-License-Identifier: ISC
270773
- *)
270774
-
270775
270795
  yargs-parser/build/lib/yargs-parser-types.js:
270776
- (**
270777
- * @license
270778
- * Copyright (c) 2016, Contributors
270779
- * SPDX-License-Identifier: ISC
270780
- *)
270781
-
270782
270796
  yargs-parser/build/lib/yargs-parser.js:
270783
270797
  (**
270784
270798
  * @license
package/dist/install.js CHANGED
@@ -122,6 +122,11 @@ var require_vendors = __commonJS({
122
122
  env: "CIRRUS_CI",
123
123
  pr: "CIRRUS_PR"
124
124
  },
125
+ {
126
+ name: "Cloudflare Pages",
127
+ constant: "CLOUDFLARE_PAGES",
128
+ env: "CF_PAGES"
129
+ },
125
130
  {
126
131
  name: "Codefresh",
127
132
  constant: "CODEFRESH",
@@ -416,7 +421,7 @@ var require_ci_info = __commonJS({
416
421
  exports.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
417
422
  (env.BUILD_ID || // Jenkins, Cloudbees
418
423
  env.BUILD_NUMBER || // Jenkins, TeamCity
419
- env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
424
+ env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
420
425
  env.CI_APP_ID || // Appflow
421
426
  env.CI_BUILD_ID || // Appflow
422
427
  env.CI_BUILD_NUMBER || // Appflow
@@ -204,41 +204,68 @@ var require_compare_func = __commonJS({
204
204
 
205
205
  // node_modules/conventional-changelog-conventionalcommits/src/constants.js
206
206
  var DEFAULT_COMMIT_TYPES = Object.freeze([
207
- { type: "feat", section: "Features" },
208
- { type: "feature", section: "Features" },
209
- { type: "fix", section: "Bug Fixes" },
210
- { type: "perf", section: "Performance Improvements" },
211
- { type: "revert", section: "Reverts" },
212
- { type: "docs", section: "Documentation", hidden: true },
213
- { type: "style", section: "Styles", hidden: true },
214
- { type: "chore", section: "Miscellaneous Chores", hidden: true },
215
- { type: "refactor", section: "Code Refactoring", hidden: true },
216
- { type: "test", section: "Tests", hidden: true },
217
- { type: "build", section: "Build System", hidden: true },
218
- { type: "ci", section: "Continuous Integration", hidden: true }
219
- ].map(Object.freeze));
220
-
221
- // node_modules/conventional-changelog-conventionalcommits/src/utils.js
222
- var breakingHeaderPattern = /^(\w*)(?:\((.*)\))?!: (.*)$/;
223
- function addBangNotes(commit) {
224
- const match = commit.header.match(breakingHeaderPattern);
225
- if (match && commit.notes.length === 0) {
226
- const noteText = match[3];
227
- return [
228
- {
229
- title: "BREAKING CHANGE",
230
- text: noteText
231
- }
232
- ];
207
+ {
208
+ type: "feat",
209
+ section: "Features"
210
+ },
211
+ {
212
+ type: "feature",
213
+ section: "Features"
214
+ },
215
+ {
216
+ type: "fix",
217
+ section: "Bug Fixes"
218
+ },
219
+ {
220
+ type: "perf",
221
+ section: "Performance Improvements"
222
+ },
223
+ {
224
+ type: "revert",
225
+ section: "Reverts"
226
+ },
227
+ {
228
+ type: "docs",
229
+ section: "Documentation",
230
+ hidden: true
231
+ },
232
+ {
233
+ type: "style",
234
+ section: "Styles",
235
+ hidden: true
236
+ },
237
+ {
238
+ type: "chore",
239
+ section: "Miscellaneous Chores",
240
+ hidden: true
241
+ },
242
+ {
243
+ type: "refactor",
244
+ section: "Code Refactoring",
245
+ hidden: true
246
+ },
247
+ {
248
+ type: "test",
249
+ section: "Tests",
250
+ hidden: true
251
+ },
252
+ {
253
+ type: "build",
254
+ section: "Build System",
255
+ hidden: true
256
+ },
257
+ {
258
+ type: "ci",
259
+ section: "Continuous Integration",
260
+ hidden: true
233
261
  }
234
- return commit.notes;
235
- }
262
+ ].map(Object.freeze));
236
263
 
237
264
  // node_modules/conventional-changelog-conventionalcommits/src/parser.js
238
265
  function createParserOpts(config) {
239
266
  return {
240
267
  headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
241
- breakingHeaderPattern,
268
+ breakingHeaderPattern: /^(\w*)(?:\((.*)\))?!: (.*)$/,
242
269
  headerCorrespondence: [
243
270
  "type",
244
271
  "scope",
@@ -256,7 +283,20 @@ var import_compare_func = __toESM(require_compare_func(), 1);
256
283
  import { readFile } from "fs/promises";
257
284
  import { resolve } from "path";
258
285
  import { fileURLToPath } from "url";
286
+
287
+ // node_modules/conventional-changelog-conventionalcommits/src/utils.js
288
+ function matchScope(config = {}, commit) {
289
+ const {
290
+ scope: targetScope,
291
+ scopeOnly = false
292
+ } = config;
293
+ const includesScope = commit.scope?.split(",").includes(targetScope);
294
+ return !targetScope || scopeOnly && includesScope || !scopeOnly && (!commit.scope || includesScope);
295
+ }
296
+
297
+ // node_modules/conventional-changelog-conventionalcommits/src/writer.js
259
298
  var dirname = fileURLToPath(new URL(".", import.meta.url));
299
+ var COMMIT_HASH_LENGTH = 7;
260
300
  var releaseAsRegex = /release-as:\s*\w*@?([0-9]+\.[0-9]+\.[0-9a-z]+(-[0-9a-z.]+)?)\s*/i;
261
301
  var owner = "{{#if this.owner}}{{~this.owner}}{{else}}{{~@root.owner}}{{/if}}";
262
302
  var host = "{{~@root.host}}";
@@ -313,24 +353,28 @@ function getWriterOpts(config) {
313
353
  let discard = true;
314
354
  const issues = [];
315
355
  const entry = findTypeEntry(config.types, commit);
316
- let notes = addBangNotes(commit);
317
356
  if (commit.footer && releaseAsRegex.test(commit.footer) || commit.body && releaseAsRegex.test(commit.body)) {
318
357
  discard = false;
319
358
  }
320
- notes = notes.map((note) => {
359
+ const notes = commit.notes.map((note) => {
321
360
  discard = false;
322
361
  return {
323
362
  ...note,
324
363
  title: "BREAKING CHANGES"
325
364
  };
326
365
  });
327
- if (discard && (entry === void 0 || entry.hidden)) return;
366
+ if (
367
+ // breaking changes attached to any type are still displayed.
368
+ discard && (entry === void 0 || entry.hidden) || !matchScope(config, commit)
369
+ ) {
370
+ return void 0;
371
+ }
328
372
  const type = entry ? entry.section : commit.type;
329
- const scope = commit.scope === "*" ? "" : commit.scope;
330
- const shortHash = typeof commit.hash === "string" ? commit.hash.substring(0, 7) : commit.shortHash;
331
- let subject = commit.subject;
373
+ const scope = commit.scope === "*" || config.scope ? "" : commit.scope;
374
+ const shortHash = typeof commit.hash === "string" ? commit.hash.substring(0, COMMIT_HASH_LENGTH) : commit.shortHash;
375
+ let { subject } = commit;
332
376
  if (typeof subject === "string") {
333
- const issueRegEx = "(" + config.issuePrefixes.join("|") + ")([a-z0-9]+)";
377
+ const issueRegEx = `(${config.issuePrefixes.join("|")})([a-z0-9]+)`;
334
378
  const re = new RegExp(issueRegEx, "g");
335
379
  subject = subject.replace(re, (_, prefix, issue) => {
336
380
  issues.push(prefix + issue);
@@ -400,13 +444,26 @@ function expandTemplate(template, context) {
400
444
  }
401
445
 
402
446
  // node_modules/conventional-changelog-conventionalcommits/src/whatBump.js
403
- function createWhatBump(config) {
447
+ function createWhatBump(config = {}) {
448
+ const {
449
+ types = DEFAULT_COMMIT_TYPES,
450
+ bumpStrict = false
451
+ } = config;
452
+ const hiddenTypes = bumpStrict && types.reduce((hiddenTypes2, type) => {
453
+ if (type.hidden) {
454
+ hiddenTypes2.push(type.type);
455
+ }
456
+ return hiddenTypes2;
457
+ }, []);
404
458
  return function whatBump(commits) {
405
459
  let level = 2;
406
460
  let breakings = 0;
407
461
  let features = 0;
462
+ let bugfixes = 0;
408
463
  commits.forEach((commit) => {
409
- commit.notes = addBangNotes(commit);
464
+ if (!matchScope(config, commit)) {
465
+ return;
466
+ }
410
467
  if (commit.notes.length > 0) {
411
468
  breakings += commit.notes.length;
412
469
  level = 0;
@@ -415,10 +472,14 @@ function createWhatBump(config) {
415
472
  if (level === 2) {
416
473
  level = 1;
417
474
  }
475
+ } else if (bumpStrict && !hiddenTypes.includes(commit.type)) {
476
+ bugfixes += 1;
418
477
  }
419
478
  });
420
479
  if (config?.preMajor && level < 2) {
421
480
  level++;
481
+ } else if (bumpStrict && level === 2 && !breakings && !features && !bugfixes) {
482
+ return null;
422
483
  }
423
484
  return {
424
485
  level,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/commitlint-config",
3
- "version": "3.4.3",
3
+ "version": "3.5.0",
4
4
  "description": "Commitlint sharable config used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "commitlint"