conventional-changelog-storm-software 0.1.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.
Files changed (90) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +278 -0
  3. package/dist/chunk-2MZWLEPP.js +132 -0
  4. package/dist/chunk-3KLR5ZGK.js +1 -0
  5. package/dist/chunk-5GQ7ZUDG.cjs +2 -0
  6. package/dist/chunk-63544DKM.js +153 -0
  7. package/dist/chunk-DL5576FZ.cjs +10 -0
  8. package/dist/chunk-HVVJTAOT.cjs +160 -0
  9. package/dist/chunk-I6KKIB6V.js +77 -0
  10. package/dist/chunk-IJLTWVLG.js +57 -0
  11. package/dist/chunk-KRZANN66.cjs +82 -0
  12. package/dist/chunk-KTGUQC7L.js +1 -0
  13. package/dist/chunk-LPCM2SVA.js +45 -0
  14. package/dist/chunk-M7BTBQHL.cjs +134 -0
  15. package/dist/chunk-O35EG2LQ.js +8 -0
  16. package/dist/chunk-RR5776TG.cjs +7 -0
  17. package/dist/chunk-S5TOCB3P.js +1 -0
  18. package/dist/chunk-SPHHWYOU.cjs +2 -0
  19. package/dist/chunk-UK5DQTL2.cjs +47 -0
  20. package/dist/chunk-UXD2EFE6.js +1 -0
  21. package/dist/chunk-UZZOYD6Y.cjs +2360 -0
  22. package/dist/chunk-XHJNEOAM.cjs +2 -0
  23. package/dist/chunk-YBJMQHWU.cjs +67 -0
  24. package/dist/chunk-ZLZS2G36.js +2353 -0
  25. package/dist/chunk-ZPVHPMDE.cjs +2 -0
  26. package/dist/commit-types.cjs +11 -0
  27. package/dist/commit-types.d.cts +130 -0
  28. package/dist/commit-types.d.ts +130 -0
  29. package/dist/commit-types.js +1 -0
  30. package/dist/index.cjs +36 -0
  31. package/dist/index.d.cts +16 -0
  32. package/dist/index.d.ts +16 -0
  33. package/dist/index.js +23 -0
  34. package/dist/parser.cjs +13 -0
  35. package/dist/parser.d.cts +12 -0
  36. package/dist/parser.d.ts +12 -0
  37. package/dist/parser.js +3 -0
  38. package/dist/types/commit-types.cjs +4 -0
  39. package/dist/types/commit-types.d.cts +19 -0
  40. package/dist/types/commit-types.d.ts +19 -0
  41. package/dist/types/commit-types.js +1 -0
  42. package/dist/types/config.cjs +5 -0
  43. package/dist/types/config.d.cts +67 -0
  44. package/dist/types/config.d.ts +67 -0
  45. package/dist/types/config.js +1 -0
  46. package/dist/types/index.cjs +8 -0
  47. package/dist/types/index.d.cts +5 -0
  48. package/dist/types/index.d.ts +5 -0
  49. package/dist/types/index.js +4 -0
  50. package/dist/types/misc.cjs +5 -0
  51. package/dist/types/misc.d.cts +3 -0
  52. package/dist/types/misc.d.ts +3 -0
  53. package/dist/types/misc.js +1 -0
  54. package/dist/types/preset.cjs +5 -0
  55. package/dist/types/preset.d.cts +12 -0
  56. package/dist/types/preset.d.ts +12 -0
  57. package/dist/types/preset.js +1 -0
  58. package/dist/types/write.cjs +5 -0
  59. package/dist/types/write.d.cts +78 -0
  60. package/dist/types/write.d.ts +78 -0
  61. package/dist/types/write.js +1 -0
  62. package/dist/utilities/constants.cjs +44 -0
  63. package/dist/utilities/constants.d.cts +75 -0
  64. package/dist/utilities/constants.d.ts +75 -0
  65. package/dist/utilities/constants.js +2 -0
  66. package/dist/utilities/helpers.cjs +25 -0
  67. package/dist/utilities/helpers.d.cts +30 -0
  68. package/dist/utilities/helpers.d.ts +30 -0
  69. package/dist/utilities/helpers.js +3 -0
  70. package/dist/utilities/index.cjs +66 -0
  71. package/dist/utilities/index.d.cts +6 -0
  72. package/dist/utilities/index.d.ts +6 -0
  73. package/dist/utilities/index.js +4 -0
  74. package/dist/utilities/options.cjs +14 -0
  75. package/dist/utilities/options.d.cts +12 -0
  76. package/dist/utilities/options.d.ts +12 -0
  77. package/dist/utilities/options.js +4 -0
  78. package/dist/whatBump.cjs +14 -0
  79. package/dist/whatBump.d.cts +6 -0
  80. package/dist/whatBump.d.ts +6 -0
  81. package/dist/whatBump.js +4 -0
  82. package/dist/writer.cjs +14 -0
  83. package/dist/writer.d.cts +13 -0
  84. package/dist/writer.d.ts +13 -0
  85. package/dist/writer.js +4 -0
  86. package/package.json +203 -0
  87. package/templates/templates/commit.hbd +29 -0
  88. package/templates/templates/footer.hbd +9 -0
  89. package/templates/templates/header.hbd +9 -0
  90. package/templates/templates/template.hbd +21 -0
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ require('../chunk-5GQ7ZUDG.cjs');
4
+ require('../chunk-RR5776TG.cjs');
5
+
@@ -0,0 +1,12 @@
1
+ import { CommitsConfig, ParserConfig, WhatBumpFunction } from './config.cjs';
2
+ import { WriteConfig } from './write.cjs';
3
+ import '@storm-software/config/types';
4
+
5
+ interface StormSoftwarePreset {
6
+ commits: CommitsConfig;
7
+ parser: ParserConfig;
8
+ writer: WriteConfig;
9
+ whatBump: WhatBumpFunction;
10
+ }
11
+
12
+ export type { StormSoftwarePreset };
@@ -0,0 +1,12 @@
1
+ import { CommitsConfig, ParserConfig, WhatBumpFunction } from './config.js';
2
+ import { WriteConfig } from './write.js';
3
+ import '@storm-software/config/types';
4
+
5
+ interface StormSoftwarePreset {
6
+ commits: CommitsConfig;
7
+ parser: ParserConfig;
8
+ writer: WriteConfig;
9
+ whatBump: WhatBumpFunction;
10
+ }
11
+
12
+ export type { StormSoftwarePreset };
@@ -0,0 +1 @@
1
+ import '../chunk-3KLR5ZGK.js';
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ require('../chunk-ZPVHPMDE.cjs');
4
+ require('../chunk-RR5776TG.cjs');
5
+
@@ -0,0 +1,78 @@
1
+ interface Reference {
2
+ prefix: string;
3
+ issue: string;
4
+ }
5
+ interface Context {
6
+ host: string;
7
+ owner: string;
8
+ repository: string;
9
+ }
10
+ interface CommitKnownProps {
11
+ type: string;
12
+ scope?: string;
13
+ subject: string;
14
+ header?: string;
15
+ body?: string;
16
+ footer?: string;
17
+ version?: string;
18
+ hash?: string;
19
+ shortHash?: string;
20
+ revert?: boolean;
21
+ notes?: CommitNote[];
22
+ committerDate?: string;
23
+ references?: Reference[];
24
+ }
25
+ interface CommitNote {
26
+ title: string;
27
+ text: string;
28
+ [key: string]: any;
29
+ }
30
+ interface TransformedCommit<TCommit extends CommitKnownProps = CommitKnownProps> {
31
+ raw: TCommit;
32
+ header?: string;
33
+ version?: string;
34
+ hash?: string;
35
+ shortHash?: string;
36
+ revert?: boolean;
37
+ type: string;
38
+ scope: string | null;
39
+ footer?: string;
40
+ body?: string;
41
+ notes: CommitNote[];
42
+ committerDate?: string;
43
+ subject: string;
44
+ references: Reference[];
45
+ }
46
+ interface CommitGroup<TCommit extends CommitKnownProps = CommitKnownProps> {
47
+ title: string;
48
+ commits: TCommit[];
49
+ }
50
+ interface CommitNoteGroup {
51
+ title: string;
52
+ notes: CommitNote[];
53
+ }
54
+ interface TemplatesOptions {
55
+ mainTemplate?: string;
56
+ headerPartial?: string;
57
+ commitPartial?: string;
58
+ footerPartial?: string;
59
+ partials?: Record<string, string | null>;
60
+ }
61
+ type RequiredTemplatesOptions = Required<TemplatesOptions>;
62
+ interface FinalTemplatesOptions extends TemplatesOptions {
63
+ mainTemplate: RequiredTemplatesOptions["mainTemplate"];
64
+ headerPartial: RequiredTemplatesOptions["headerPartial"];
65
+ commitPartial: RequiredTemplatesOptions["commitPartial"];
66
+ footerPartial: RequiredTemplatesOptions["footerPartial"];
67
+ }
68
+ type extractFunc<T> = (e: T) => number | string;
69
+ type WriteConfig<TCommit extends CommitKnownProps = CommitKnownProps> = FinalTemplatesOptions & {
70
+ transform: (commit: TCommit, context: Context) => TransformedCommit | undefined;
71
+ groupBy: string;
72
+ commitGroupsSort: (a: CommitGroup, b: CommitGroup) => number;
73
+ commitsSort: string[];
74
+ noteGroupsSort: string;
75
+ notesSort: <T>(prop?: ReadonlyArray<string | extractFunc<T>> | string | extractFunc<T>) => (e1: T, e2: T) => number;
76
+ };
77
+
78
+ export type { CommitGroup, CommitKnownProps, CommitNote, CommitNoteGroup, Context, FinalTemplatesOptions, Reference, TemplatesOptions, TransformedCommit, WriteConfig };
@@ -0,0 +1,78 @@
1
+ interface Reference {
2
+ prefix: string;
3
+ issue: string;
4
+ }
5
+ interface Context {
6
+ host: string;
7
+ owner: string;
8
+ repository: string;
9
+ }
10
+ interface CommitKnownProps {
11
+ type: string;
12
+ scope?: string;
13
+ subject: string;
14
+ header?: string;
15
+ body?: string;
16
+ footer?: string;
17
+ version?: string;
18
+ hash?: string;
19
+ shortHash?: string;
20
+ revert?: boolean;
21
+ notes?: CommitNote[];
22
+ committerDate?: string;
23
+ references?: Reference[];
24
+ }
25
+ interface CommitNote {
26
+ title: string;
27
+ text: string;
28
+ [key: string]: any;
29
+ }
30
+ interface TransformedCommit<TCommit extends CommitKnownProps = CommitKnownProps> {
31
+ raw: TCommit;
32
+ header?: string;
33
+ version?: string;
34
+ hash?: string;
35
+ shortHash?: string;
36
+ revert?: boolean;
37
+ type: string;
38
+ scope: string | null;
39
+ footer?: string;
40
+ body?: string;
41
+ notes: CommitNote[];
42
+ committerDate?: string;
43
+ subject: string;
44
+ references: Reference[];
45
+ }
46
+ interface CommitGroup<TCommit extends CommitKnownProps = CommitKnownProps> {
47
+ title: string;
48
+ commits: TCommit[];
49
+ }
50
+ interface CommitNoteGroup {
51
+ title: string;
52
+ notes: CommitNote[];
53
+ }
54
+ interface TemplatesOptions {
55
+ mainTemplate?: string;
56
+ headerPartial?: string;
57
+ commitPartial?: string;
58
+ footerPartial?: string;
59
+ partials?: Record<string, string | null>;
60
+ }
61
+ type RequiredTemplatesOptions = Required<TemplatesOptions>;
62
+ interface FinalTemplatesOptions extends TemplatesOptions {
63
+ mainTemplate: RequiredTemplatesOptions["mainTemplate"];
64
+ headerPartial: RequiredTemplatesOptions["headerPartial"];
65
+ commitPartial: RequiredTemplatesOptions["commitPartial"];
66
+ footerPartial: RequiredTemplatesOptions["footerPartial"];
67
+ }
68
+ type extractFunc<T> = (e: T) => number | string;
69
+ type WriteConfig<TCommit extends CommitKnownProps = CommitKnownProps> = FinalTemplatesOptions & {
70
+ transform: (commit: TCommit, context: Context) => TransformedCommit | undefined;
71
+ groupBy: string;
72
+ commitGroupsSort: (a: CommitGroup, b: CommitGroup) => number;
73
+ commitsSort: string[];
74
+ noteGroupsSort: string;
75
+ notesSort: <T>(prop?: ReadonlyArray<string | extractFunc<T>> | string | extractFunc<T>) => (e1: T, e2: T) => number;
76
+ };
77
+
78
+ export type { CommitGroup, CommitKnownProps, CommitNote, CommitNoteGroup, Context, FinalTemplatesOptions, Reference, TemplatesOptions, TransformedCommit, WriteConfig };
@@ -0,0 +1 @@
1
+ import '../chunk-UXD2EFE6.js';
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ var chunkYBJMQHWU_cjs = require('../chunk-YBJMQHWU.cjs');
4
+ require('../chunk-M7BTBQHL.cjs');
5
+ require('../chunk-RR5776TG.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "CHANGELOG_COMMITS", {
10
+ enumerable: true,
11
+ get: function () { return chunkYBJMQHWU_cjs.CHANGELOG_COMMITS; }
12
+ });
13
+ Object.defineProperty(exports, "CHANGELOG_COMMIT_ORDER", {
14
+ enumerable: true,
15
+ get: function () { return chunkYBJMQHWU_cjs.CHANGELOG_COMMIT_ORDER; }
16
+ });
17
+ Object.defineProperty(exports, "CHANGELOG_COMMIT_TITLE_ORDER", {
18
+ enumerable: true,
19
+ get: function () { return chunkYBJMQHWU_cjs.CHANGELOG_COMMIT_TITLE_ORDER; }
20
+ });
21
+ Object.defineProperty(exports, "CHANGELOG_COMMIT_TYPE_ORDER", {
22
+ enumerable: true,
23
+ get: function () { return chunkYBJMQHWU_cjs.CHANGELOG_COMMIT_TYPE_ORDER; }
24
+ });
25
+ Object.defineProperty(exports, "DATETIME_LENGTH", {
26
+ enumerable: true,
27
+ get: function () { return chunkYBJMQHWU_cjs.DATETIME_LENGTH; }
28
+ });
29
+ Object.defineProperty(exports, "HASH_SHORT_LENGTH", {
30
+ enumerable: true,
31
+ get: function () { return chunkYBJMQHWU_cjs.HASH_SHORT_LENGTH; }
32
+ });
33
+ Object.defineProperty(exports, "HEADER_MAX_LENGTH", {
34
+ enumerable: true,
35
+ get: function () { return chunkYBJMQHWU_cjs.HEADER_MAX_LENGTH; }
36
+ });
37
+ Object.defineProperty(exports, "MINIMAL_PARSER_DEFAULT_OPTIONS", {
38
+ enumerable: true,
39
+ get: function () { return chunkYBJMQHWU_cjs.MINIMAL_PARSER_DEFAULT_OPTIONS; }
40
+ });
41
+ Object.defineProperty(exports, "MONOREPO_PARSER_DEFAULT_OPTIONS", {
42
+ enumerable: true,
43
+ get: function () { return chunkYBJMQHWU_cjs.MONOREPO_PARSER_DEFAULT_OPTIONS; }
44
+ });
@@ -0,0 +1,75 @@
1
+ declare const CHANGELOG_COMMITS: Record<string, {
2
+ type: string;
3
+ title: string;
4
+ hidden: boolean | undefined;
5
+ }>;
6
+ declare const CHANGELOG_COMMIT_ORDER: readonly [{
7
+ type: string;
8
+ title: string;
9
+ hidden: boolean | undefined;
10
+ }, {
11
+ type: string;
12
+ title: string;
13
+ hidden: boolean | undefined;
14
+ }, {
15
+ type: string;
16
+ title: string;
17
+ hidden: boolean | undefined;
18
+ }, {
19
+ type: string;
20
+ title: string;
21
+ hidden: boolean | undefined;
22
+ }, {
23
+ type: string;
24
+ title: string;
25
+ hidden: boolean | undefined;
26
+ }, {
27
+ type: string;
28
+ title: string;
29
+ hidden: boolean | undefined;
30
+ }, {
31
+ type: string;
32
+ title: string;
33
+ hidden: boolean | undefined;
34
+ }, {
35
+ type: string;
36
+ title: string;
37
+ hidden: boolean | undefined;
38
+ }, {
39
+ type: string;
40
+ title: string;
41
+ hidden: boolean | undefined;
42
+ }, {
43
+ type: string;
44
+ title: string;
45
+ hidden: boolean | undefined;
46
+ }, {
47
+ type: string;
48
+ title: string;
49
+ hidden: boolean | undefined;
50
+ }];
51
+ declare const CHANGELOG_COMMIT_TYPE_ORDER: string[];
52
+ declare const CHANGELOG_COMMIT_TITLE_ORDER: string[];
53
+ declare const HASH_SHORT_LENGTH = 7;
54
+ declare const HEADER_MAX_LENGTH = 100;
55
+ declare const DATETIME_LENGTH = 10;
56
+ declare const MINIMAL_PARSER_DEFAULT_OPTIONS: {
57
+ headerPattern: RegExp;
58
+ breakingHeaderPattern: RegExp;
59
+ headerCorrespondence: string[];
60
+ noteKeywords: string[];
61
+ revertPattern: RegExp;
62
+ revertCorrespondence: string[];
63
+ issuePrefixes: string[];
64
+ };
65
+ declare const MONOREPO_PARSER_DEFAULT_OPTIONS: {
66
+ headerPattern: RegExp;
67
+ breakingHeaderPattern: RegExp;
68
+ headerCorrespondence: string[];
69
+ noteKeywords: string[];
70
+ revertPattern: RegExp;
71
+ revertCorrespondence: string[];
72
+ issuePrefixes: string[];
73
+ };
74
+
75
+ export { CHANGELOG_COMMITS, CHANGELOG_COMMIT_ORDER, CHANGELOG_COMMIT_TITLE_ORDER, CHANGELOG_COMMIT_TYPE_ORDER, DATETIME_LENGTH, HASH_SHORT_LENGTH, HEADER_MAX_LENGTH, MINIMAL_PARSER_DEFAULT_OPTIONS, MONOREPO_PARSER_DEFAULT_OPTIONS };
@@ -0,0 +1,75 @@
1
+ declare const CHANGELOG_COMMITS: Record<string, {
2
+ type: string;
3
+ title: string;
4
+ hidden: boolean | undefined;
5
+ }>;
6
+ declare const CHANGELOG_COMMIT_ORDER: readonly [{
7
+ type: string;
8
+ title: string;
9
+ hidden: boolean | undefined;
10
+ }, {
11
+ type: string;
12
+ title: string;
13
+ hidden: boolean | undefined;
14
+ }, {
15
+ type: string;
16
+ title: string;
17
+ hidden: boolean | undefined;
18
+ }, {
19
+ type: string;
20
+ title: string;
21
+ hidden: boolean | undefined;
22
+ }, {
23
+ type: string;
24
+ title: string;
25
+ hidden: boolean | undefined;
26
+ }, {
27
+ type: string;
28
+ title: string;
29
+ hidden: boolean | undefined;
30
+ }, {
31
+ type: string;
32
+ title: string;
33
+ hidden: boolean | undefined;
34
+ }, {
35
+ type: string;
36
+ title: string;
37
+ hidden: boolean | undefined;
38
+ }, {
39
+ type: string;
40
+ title: string;
41
+ hidden: boolean | undefined;
42
+ }, {
43
+ type: string;
44
+ title: string;
45
+ hidden: boolean | undefined;
46
+ }, {
47
+ type: string;
48
+ title: string;
49
+ hidden: boolean | undefined;
50
+ }];
51
+ declare const CHANGELOG_COMMIT_TYPE_ORDER: string[];
52
+ declare const CHANGELOG_COMMIT_TITLE_ORDER: string[];
53
+ declare const HASH_SHORT_LENGTH = 7;
54
+ declare const HEADER_MAX_LENGTH = 100;
55
+ declare const DATETIME_LENGTH = 10;
56
+ declare const MINIMAL_PARSER_DEFAULT_OPTIONS: {
57
+ headerPattern: RegExp;
58
+ breakingHeaderPattern: RegExp;
59
+ headerCorrespondence: string[];
60
+ noteKeywords: string[];
61
+ revertPattern: RegExp;
62
+ revertCorrespondence: string[];
63
+ issuePrefixes: string[];
64
+ };
65
+ declare const MONOREPO_PARSER_DEFAULT_OPTIONS: {
66
+ headerPattern: RegExp;
67
+ breakingHeaderPattern: RegExp;
68
+ headerCorrespondence: string[];
69
+ noteKeywords: string[];
70
+ revertPattern: RegExp;
71
+ revertCorrespondence: string[];
72
+ issuePrefixes: string[];
73
+ };
74
+
75
+ export { CHANGELOG_COMMITS, CHANGELOG_COMMIT_ORDER, CHANGELOG_COMMIT_TITLE_ORDER, CHANGELOG_COMMIT_TYPE_ORDER, DATETIME_LENGTH, HASH_SHORT_LENGTH, HEADER_MAX_LENGTH, MINIMAL_PARSER_DEFAULT_OPTIONS, MONOREPO_PARSER_DEFAULT_OPTIONS };
@@ -0,0 +1,2 @@
1
+ export { CHANGELOG_COMMITS, CHANGELOG_COMMIT_ORDER, CHANGELOG_COMMIT_TITLE_ORDER, CHANGELOG_COMMIT_TYPE_ORDER, DATETIME_LENGTH, HASH_SHORT_LENGTH, HEADER_MAX_LENGTH, MINIMAL_PARSER_DEFAULT_OPTIONS, MONOREPO_PARSER_DEFAULT_OPTIONS } from '../chunk-IJLTWVLG.js';
2
+ import '../chunk-2MZWLEPP.js';
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ var chunkKRZANN66_cjs = require('../chunk-KRZANN66.cjs');
4
+ require('../chunk-YBJMQHWU.cjs');
5
+ require('../chunk-M7BTBQHL.cjs');
6
+ require('../chunk-RR5776TG.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "createComparator", {
11
+ enumerable: true,
12
+ get: function () { return chunkKRZANN66_cjs.createComparator; }
13
+ });
14
+ Object.defineProperty(exports, "formatDate", {
15
+ enumerable: true,
16
+ get: function () { return chunkKRZANN66_cjs.formatDate; }
17
+ });
18
+ Object.defineProperty(exports, "matchScope", {
19
+ enumerable: true,
20
+ get: function () { return chunkKRZANN66_cjs.matchScope; }
21
+ });
22
+ Object.defineProperty(exports, "stringify", {
23
+ enumerable: true,
24
+ get: function () { return chunkKRZANN66_cjs.stringify; }
25
+ });
@@ -0,0 +1,30 @@
1
+ import { StringsRecord, Comparator } from 'conventional-changelog-writer';
2
+
3
+ interface Config {
4
+ scope?: string | string[];
5
+ scopeOnly?: boolean;
6
+ }
7
+ interface Commit {
8
+ scope?: string;
9
+ }
10
+ declare function matchScope(config: Config | undefined, commit: Commit): boolean;
11
+ /**
12
+ * Formats date to yyyy-mm-dd format.
13
+ * @param date - Date string or Date object.
14
+ * @returns Date string in yyyy-mm-dd format.
15
+ */
16
+ declare function formatDate(date: string | Date): string;
17
+ /**
18
+ * Safe JSON.stringify with circular reference support.
19
+ * @param obj
20
+ * @returns Stringified object with circular references.
21
+ */
22
+ declare function stringify(obj: unknown): string;
23
+ /**
24
+ * Creates a compare function for sorting from object keys.
25
+ * @param strings - String or array of strings of object keys to compare.
26
+ * @returns Compare function.
27
+ */
28
+ declare function createComparator<K extends string, T extends StringsRecord<K>>(strings: K | K[] | Comparator<T> | undefined): Comparator<T> | undefined;
29
+
30
+ export { createComparator, formatDate, matchScope, stringify };
@@ -0,0 +1,30 @@
1
+ import { StringsRecord, Comparator } from 'conventional-changelog-writer';
2
+
3
+ interface Config {
4
+ scope?: string | string[];
5
+ scopeOnly?: boolean;
6
+ }
7
+ interface Commit {
8
+ scope?: string;
9
+ }
10
+ declare function matchScope(config: Config | undefined, commit: Commit): boolean;
11
+ /**
12
+ * Formats date to yyyy-mm-dd format.
13
+ * @param date - Date string or Date object.
14
+ * @returns Date string in yyyy-mm-dd format.
15
+ */
16
+ declare function formatDate(date: string | Date): string;
17
+ /**
18
+ * Safe JSON.stringify with circular reference support.
19
+ * @param obj
20
+ * @returns Stringified object with circular references.
21
+ */
22
+ declare function stringify(obj: unknown): string;
23
+ /**
24
+ * Creates a compare function for sorting from object keys.
25
+ * @param strings - String or array of strings of object keys to compare.
26
+ * @returns Compare function.
27
+ */
28
+ declare function createComparator<K extends string, T extends StringsRecord<K>>(strings: K | K[] | Comparator<T> | undefined): Comparator<T> | undefined;
29
+
30
+ export { createComparator, formatDate, matchScope, stringify };
@@ -0,0 +1,3 @@
1
+ export { createComparator, formatDate, matchScope, stringify } from '../chunk-I6KKIB6V.js';
2
+ import '../chunk-IJLTWVLG.js';
3
+ import '../chunk-2MZWLEPP.js';
@@ -0,0 +1,66 @@
1
+ 'use strict';
2
+
3
+ var chunkUZZOYD6Y_cjs = require('../chunk-UZZOYD6Y.cjs');
4
+ var chunkKRZANN66_cjs = require('../chunk-KRZANN66.cjs');
5
+ var chunkYBJMQHWU_cjs = require('../chunk-YBJMQHWU.cjs');
6
+ require('../chunk-M7BTBQHL.cjs');
7
+ require('../chunk-RR5776TG.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "resolveOptions", {
12
+ enumerable: true,
13
+ get: function () { return chunkUZZOYD6Y_cjs.resolveOptions; }
14
+ });
15
+ Object.defineProperty(exports, "createComparator", {
16
+ enumerable: true,
17
+ get: function () { return chunkKRZANN66_cjs.createComparator; }
18
+ });
19
+ Object.defineProperty(exports, "formatDate", {
20
+ enumerable: true,
21
+ get: function () { return chunkKRZANN66_cjs.formatDate; }
22
+ });
23
+ Object.defineProperty(exports, "matchScope", {
24
+ enumerable: true,
25
+ get: function () { return chunkKRZANN66_cjs.matchScope; }
26
+ });
27
+ Object.defineProperty(exports, "stringify", {
28
+ enumerable: true,
29
+ get: function () { return chunkKRZANN66_cjs.stringify; }
30
+ });
31
+ Object.defineProperty(exports, "CHANGELOG_COMMITS", {
32
+ enumerable: true,
33
+ get: function () { return chunkYBJMQHWU_cjs.CHANGELOG_COMMITS; }
34
+ });
35
+ Object.defineProperty(exports, "CHANGELOG_COMMIT_ORDER", {
36
+ enumerable: true,
37
+ get: function () { return chunkYBJMQHWU_cjs.CHANGELOG_COMMIT_ORDER; }
38
+ });
39
+ Object.defineProperty(exports, "CHANGELOG_COMMIT_TITLE_ORDER", {
40
+ enumerable: true,
41
+ get: function () { return chunkYBJMQHWU_cjs.CHANGELOG_COMMIT_TITLE_ORDER; }
42
+ });
43
+ Object.defineProperty(exports, "CHANGELOG_COMMIT_TYPE_ORDER", {
44
+ enumerable: true,
45
+ get: function () { return chunkYBJMQHWU_cjs.CHANGELOG_COMMIT_TYPE_ORDER; }
46
+ });
47
+ Object.defineProperty(exports, "DATETIME_LENGTH", {
48
+ enumerable: true,
49
+ get: function () { return chunkYBJMQHWU_cjs.DATETIME_LENGTH; }
50
+ });
51
+ Object.defineProperty(exports, "HASH_SHORT_LENGTH", {
52
+ enumerable: true,
53
+ get: function () { return chunkYBJMQHWU_cjs.HASH_SHORT_LENGTH; }
54
+ });
55
+ Object.defineProperty(exports, "HEADER_MAX_LENGTH", {
56
+ enumerable: true,
57
+ get: function () { return chunkYBJMQHWU_cjs.HEADER_MAX_LENGTH; }
58
+ });
59
+ Object.defineProperty(exports, "MINIMAL_PARSER_DEFAULT_OPTIONS", {
60
+ enumerable: true,
61
+ get: function () { return chunkYBJMQHWU_cjs.MINIMAL_PARSER_DEFAULT_OPTIONS; }
62
+ });
63
+ Object.defineProperty(exports, "MONOREPO_PARSER_DEFAULT_OPTIONS", {
64
+ enumerable: true,
65
+ get: function () { return chunkYBJMQHWU_cjs.MONOREPO_PARSER_DEFAULT_OPTIONS; }
66
+ });
@@ -0,0 +1,6 @@
1
+ export { CHANGELOG_COMMITS, CHANGELOG_COMMIT_ORDER, CHANGELOG_COMMIT_TITLE_ORDER, CHANGELOG_COMMIT_TYPE_ORDER, DATETIME_LENGTH, HASH_SHORT_LENGTH, HEADER_MAX_LENGTH, MINIMAL_PARSER_DEFAULT_OPTIONS, MONOREPO_PARSER_DEFAULT_OPTIONS } from './constants.cjs';
2
+ export { createComparator, formatDate, matchScope, stringify } from './helpers.cjs';
3
+ export { resolveOptions } from './options.cjs';
4
+ import 'conventional-changelog-writer';
5
+ import '../types/config.cjs';
6
+ import '@storm-software/config/types';
@@ -0,0 +1,6 @@
1
+ export { CHANGELOG_COMMITS, CHANGELOG_COMMIT_ORDER, CHANGELOG_COMMIT_TITLE_ORDER, CHANGELOG_COMMIT_TYPE_ORDER, DATETIME_LENGTH, HASH_SHORT_LENGTH, HEADER_MAX_LENGTH, MINIMAL_PARSER_DEFAULT_OPTIONS, MONOREPO_PARSER_DEFAULT_OPTIONS } from './constants.js';
2
+ export { createComparator, formatDate, matchScope, stringify } from './helpers.js';
3
+ export { resolveOptions } from './options.js';
4
+ import 'conventional-changelog-writer';
5
+ import '../types/config.js';
6
+ import '@storm-software/config/types';
@@ -0,0 +1,4 @@
1
+ export { resolveOptions } from '../chunk-ZLZS2G36.js';
2
+ export { createComparator, formatDate, matchScope, stringify } from '../chunk-I6KKIB6V.js';
3
+ export { CHANGELOG_COMMITS, CHANGELOG_COMMIT_ORDER, CHANGELOG_COMMIT_TITLE_ORDER, CHANGELOG_COMMIT_TYPE_ORDER, DATETIME_LENGTH, HASH_SHORT_LENGTH, HEADER_MAX_LENGTH, MINIMAL_PARSER_DEFAULT_OPTIONS, MONOREPO_PARSER_DEFAULT_OPTIONS } from '../chunk-IJLTWVLG.js';
4
+ import '../chunk-2MZWLEPP.js';
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkUZZOYD6Y_cjs = require('../chunk-UZZOYD6Y.cjs');
4
+ require('../chunk-KRZANN66.cjs');
5
+ require('../chunk-YBJMQHWU.cjs');
6
+ require('../chunk-M7BTBQHL.cjs');
7
+ require('../chunk-RR5776TG.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "resolveOptions", {
12
+ enumerable: true,
13
+ get: function () { return chunkUZZOYD6Y_cjs.resolveOptions; }
14
+ });
@@ -0,0 +1,12 @@
1
+ import { PresetConfig, ResolvedPresetOptions } from '../types/config.cjs';
2
+ import '@storm-software/config/types';
3
+
4
+ /**
5
+ * Resolve the preset options.
6
+ *
7
+ * @param config The preset configuration object.
8
+ * @returns The resolved preset options.
9
+ */
10
+ declare function resolveOptions(config?: PresetConfig): Promise<ResolvedPresetOptions>;
11
+
12
+ export { resolveOptions };
@@ -0,0 +1,12 @@
1
+ import { PresetConfig, ResolvedPresetOptions } from '../types/config.js';
2
+ import '@storm-software/config/types';
3
+
4
+ /**
5
+ * Resolve the preset options.
6
+ *
7
+ * @param config The preset configuration object.
8
+ * @returns The resolved preset options.
9
+ */
10
+ declare function resolveOptions(config?: PresetConfig): Promise<ResolvedPresetOptions>;
11
+
12
+ export { resolveOptions };
@@ -0,0 +1,4 @@
1
+ export { resolveOptions } from '../chunk-ZLZS2G36.js';
2
+ import '../chunk-I6KKIB6V.js';
3
+ import '../chunk-IJLTWVLG.js';
4
+ import '../chunk-2MZWLEPP.js';
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkUK5DQTL2_cjs = require('./chunk-UK5DQTL2.cjs');
4
+ require('./chunk-KRZANN66.cjs');
5
+ require('./chunk-YBJMQHWU.cjs');
6
+ require('./chunk-M7BTBQHL.cjs');
7
+ require('./chunk-RR5776TG.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "createWhatBump", {
12
+ enumerable: true,
13
+ get: function () { return chunkUK5DQTL2_cjs.createWhatBump; }
14
+ });
@@ -0,0 +1,6 @@
1
+ import { ResolvedPresetOptions, WhatBumpFunction } from './types/config.cjs';
2
+ import '@storm-software/config/types';
3
+
4
+ declare function createWhatBump(options: ResolvedPresetOptions): WhatBumpFunction;
5
+
6
+ export { createWhatBump };
@@ -0,0 +1,6 @@
1
+ import { ResolvedPresetOptions, WhatBumpFunction } from './types/config.js';
2
+ import '@storm-software/config/types';
3
+
4
+ declare function createWhatBump(options: ResolvedPresetOptions): WhatBumpFunction;
5
+
6
+ export { createWhatBump };
@@ -0,0 +1,4 @@
1
+ export { createWhatBump } from './chunk-LPCM2SVA.js';
2
+ import './chunk-I6KKIB6V.js';
3
+ import './chunk-IJLTWVLG.js';
4
+ import './chunk-2MZWLEPP.js';