@html-validate/commitlint-config 3.4.4 → 3.5.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.
- package/dist/commitlint.js +49 -5
- package/dist/install.js +6 -1
- package/dist/parser-preset.js +116 -38
- package/package.json +2 -2
package/dist/commitlint.js
CHANGED
|
@@ -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.
|
|
132
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.
|
|
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,
|
|
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
|
|
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();
|
package/dist/install.js
CHANGED
|
@@ -127,6 +127,11 @@ var require_vendors = __commonJS({
|
|
|
127
127
|
constant: "CLOUDFLARE_PAGES",
|
|
128
128
|
env: "CF_PAGES"
|
|
129
129
|
},
|
|
130
|
+
{
|
|
131
|
+
name: "Cloudflare Workers",
|
|
132
|
+
constant: "CLOUDFLARE_WORKERS",
|
|
133
|
+
env: "WORKERS_CI"
|
|
134
|
+
},
|
|
130
135
|
{
|
|
131
136
|
name: "Codefresh",
|
|
132
137
|
constant: "CODEFRESH",
|
|
@@ -421,7 +426,7 @@ var require_ci_info = __commonJS({
|
|
|
421
426
|
exports.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
422
427
|
(env.BUILD_ID || // Jenkins, Cloudbees
|
|
423
428
|
env.BUILD_NUMBER || // Jenkins, TeamCity
|
|
424
|
-
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
|
|
429
|
+
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages/Workers
|
|
425
430
|
env.CI_APP_ID || // Appflow
|
|
426
431
|
env.CI_BUILD_ID || // Appflow
|
|
427
432
|
env.CI_BUILD_NUMBER || // Appflow
|
package/dist/parser-preset.js
CHANGED
|
@@ -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
|
-
{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
{
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
{
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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
|
-
|
|
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,37 @@ 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 hasIntersection(a, b) {
|
|
289
|
+
if (!a || !b) {
|
|
290
|
+
return false;
|
|
291
|
+
}
|
|
292
|
+
let listA = a;
|
|
293
|
+
let listB = b;
|
|
294
|
+
if (!Array.isArray(listA)) {
|
|
295
|
+
listA = [listA];
|
|
296
|
+
}
|
|
297
|
+
if (!Array.isArray(listB)) {
|
|
298
|
+
listB = [listB];
|
|
299
|
+
}
|
|
300
|
+
return listA.some((item) => listB.includes(item));
|
|
301
|
+
}
|
|
302
|
+
function matchScope(config = {}, commit) {
|
|
303
|
+
const {
|
|
304
|
+
scope: targetScope,
|
|
305
|
+
scopeOnly = false
|
|
306
|
+
} = config;
|
|
307
|
+
const includesScope = hasIntersection(
|
|
308
|
+
commit.scope?.split(","),
|
|
309
|
+
targetScope
|
|
310
|
+
);
|
|
311
|
+
return !targetScope || scopeOnly && includesScope || !scopeOnly && (!commit.scope || includesScope);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// node_modules/conventional-changelog-conventionalcommits/src/writer.js
|
|
259
315
|
var dirname = fileURLToPath(new URL(".", import.meta.url));
|
|
316
|
+
var COMMIT_HASH_LENGTH = 7;
|
|
260
317
|
var releaseAsRegex = /release-as:\s*\w*@?([0-9]+\.[0-9]+\.[0-9a-z]+(-[0-9a-z.]+)?)\s*/i;
|
|
261
318
|
var owner = "{{#if this.owner}}{{~this.owner}}{{else}}{{~@root.owner}}{{/if}}";
|
|
262
319
|
var host = "{{~@root.host}}";
|
|
@@ -313,24 +370,28 @@ function getWriterOpts(config) {
|
|
|
313
370
|
let discard = true;
|
|
314
371
|
const issues = [];
|
|
315
372
|
const entry = findTypeEntry(config.types, commit);
|
|
316
|
-
let notes = addBangNotes(commit);
|
|
317
373
|
if (commit.footer && releaseAsRegex.test(commit.footer) || commit.body && releaseAsRegex.test(commit.body)) {
|
|
318
374
|
discard = false;
|
|
319
375
|
}
|
|
320
|
-
notes = notes.map((note) => {
|
|
376
|
+
const notes = commit.notes.map((note) => {
|
|
321
377
|
discard = false;
|
|
322
378
|
return {
|
|
323
379
|
...note,
|
|
324
380
|
title: "BREAKING CHANGES"
|
|
325
381
|
};
|
|
326
382
|
});
|
|
327
|
-
if (
|
|
383
|
+
if (
|
|
384
|
+
// breaking changes attached to any type are still displayed.
|
|
385
|
+
discard && (entry === void 0 || entry.hidden) || !matchScope(config, commit)
|
|
386
|
+
) {
|
|
387
|
+
return void 0;
|
|
388
|
+
}
|
|
328
389
|
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,
|
|
331
|
-
let subject = commit
|
|
390
|
+
const scope = commit.scope === "*" || config.scope ? "" : commit.scope;
|
|
391
|
+
const shortHash = typeof commit.hash === "string" ? commit.hash.substring(0, COMMIT_HASH_LENGTH) : commit.shortHash;
|
|
392
|
+
let { subject } = commit;
|
|
332
393
|
if (typeof subject === "string") {
|
|
333
|
-
const issueRegEx =
|
|
394
|
+
const issueRegEx = `(${config.issuePrefixes.join("|")})([a-z0-9]+)`;
|
|
334
395
|
const re = new RegExp(issueRegEx, "g");
|
|
335
396
|
subject = subject.replace(re, (_, prefix, issue) => {
|
|
336
397
|
issues.push(prefix + issue);
|
|
@@ -400,13 +461,26 @@ function expandTemplate(template, context) {
|
|
|
400
461
|
}
|
|
401
462
|
|
|
402
463
|
// node_modules/conventional-changelog-conventionalcommits/src/whatBump.js
|
|
403
|
-
function createWhatBump(config) {
|
|
464
|
+
function createWhatBump(config = {}) {
|
|
465
|
+
const {
|
|
466
|
+
types = DEFAULT_COMMIT_TYPES,
|
|
467
|
+
bumpStrict = false
|
|
468
|
+
} = config;
|
|
469
|
+
const hiddenTypes = bumpStrict && types.reduce((hiddenTypes2, type) => {
|
|
470
|
+
if (type.hidden) {
|
|
471
|
+
hiddenTypes2.push(type.type);
|
|
472
|
+
}
|
|
473
|
+
return hiddenTypes2;
|
|
474
|
+
}, []);
|
|
404
475
|
return function whatBump(commits) {
|
|
405
476
|
let level = 2;
|
|
406
477
|
let breakings = 0;
|
|
407
478
|
let features = 0;
|
|
479
|
+
let bugfixes = 0;
|
|
408
480
|
commits.forEach((commit) => {
|
|
409
|
-
|
|
481
|
+
if (!matchScope(config, commit)) {
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
410
484
|
if (commit.notes.length > 0) {
|
|
411
485
|
breakings += commit.notes.length;
|
|
412
486
|
level = 0;
|
|
@@ -415,10 +489,14 @@ function createWhatBump(config) {
|
|
|
415
489
|
if (level === 2) {
|
|
416
490
|
level = 1;
|
|
417
491
|
}
|
|
492
|
+
} else if (bumpStrict && !hiddenTypes.includes(commit.type)) {
|
|
493
|
+
bugfixes += 1;
|
|
418
494
|
}
|
|
419
495
|
});
|
|
420
496
|
if (config?.preMajor && level < 2) {
|
|
421
497
|
level++;
|
|
498
|
+
} else if (bumpStrict && level === 2 && !breakings && !features && !bugfixes) {
|
|
499
|
+
return null;
|
|
422
500
|
}
|
|
423
501
|
return {
|
|
424
502
|
level,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-validate/commitlint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "Commitlint sharable config used by the various HTML-validate packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commitlint"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"postinstall": "node bin/install.js"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
|
-
"node": ">=
|
|
47
|
+
"node": ">= 20"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|