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,134 @@
1
+ 'use strict';
2
+
3
+ // src/commit-types.ts
4
+ var COMMIT_TYPES = {
5
+ /* --- Bumps version when selected --- */
6
+ "chore": {
7
+ "description": "Other changes that don't modify src or test files",
8
+ "title": "Chore",
9
+ "emoji": "\u2699\uFE0F ",
10
+ "semverBump": "patch",
11
+ "changelog": {
12
+ "title": "Miscellaneous",
13
+ "hidden": false
14
+ }
15
+ },
16
+ "fix": {
17
+ "description": "A change that resolves an issue previously identified with the package",
18
+ "title": "Bug Fix",
19
+ "emoji": "\u{1FAB2} ",
20
+ "semverBump": "patch",
21
+ "changelog": {
22
+ "title": "Bug Fixes",
23
+ "hidden": false
24
+ }
25
+ },
26
+ "feat": {
27
+ "description": "A change that adds a new feature to the package",
28
+ "title": "Feature",
29
+ "emoji": "\u{1F511} ",
30
+ "semverBump": "minor",
31
+ "changelog": {
32
+ "title": "Features",
33
+ "hidden": false
34
+ }
35
+ },
36
+ "ci": {
37
+ "description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
38
+ "title": "Continuous Integration",
39
+ "emoji": "\u{1F9F0} ",
40
+ "semverBump": "patch",
41
+ "changelog": {
42
+ "title": "Continuous Integration",
43
+ "hidden": false
44
+ }
45
+ },
46
+ "refactor": {
47
+ "description": "A code change that neither fixes a bug nor adds a feature",
48
+ "title": "Code Refactoring",
49
+ "emoji": "\u{1F9EA} ",
50
+ "semverBump": "patch",
51
+ "changelog": {
52
+ "title": "Source Code Improvements",
53
+ "hidden": false
54
+ }
55
+ },
56
+ "style": {
57
+ "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
58
+ "title": "Style Improvements",
59
+ "emoji": "\u{1F48E} ",
60
+ "semverBump": "patch",
61
+ "changelog": {
62
+ "title": "Style Improvements",
63
+ "hidden": false
64
+ }
65
+ },
66
+ "perf": {
67
+ "description": "A code change that improves performance",
68
+ "title": "Performance Improvement",
69
+ "emoji": "\u23F1\uFE0F ",
70
+ "semverBump": "patch",
71
+ "changelog": {
72
+ "title": "Performance Improvements",
73
+ "hidden": false
74
+ }
75
+ },
76
+ /* --- Does not bump version when selected --- */
77
+ "docs": {
78
+ "description": "A change that only includes documentation updates",
79
+ "title": "Documentation",
80
+ "emoji": "\u{1F4DC} ",
81
+ "semverBump": "none",
82
+ "changelog": {
83
+ "title": "Documentation",
84
+ "hidden": false
85
+ }
86
+ },
87
+ "test": {
88
+ "description": "Adding missing tests or correcting existing tests",
89
+ "title": "Testing",
90
+ "emoji": "\u{1F6A8} ",
91
+ "semverBump": "none",
92
+ "changelog": {
93
+ "title": "Testing",
94
+ "hidden": true
95
+ }
96
+ },
97
+ /* --- Not included in commitlint but included in changelog --- */
98
+ "deps": {
99
+ "description": "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
100
+ "title": "Dependencies",
101
+ "emoji": "\u{1F4E6} ",
102
+ "hidden": true,
103
+ "semverBump": "patch",
104
+ "changelog": {
105
+ "title": "Dependency Upgrades",
106
+ "hidden": false
107
+ }
108
+ },
109
+ /* --- Not included in commitlint or changelog --- */
110
+ "build": {
111
+ "description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
112
+ "title": "Build",
113
+ "emoji": "\u{1F6E0} ",
114
+ "hidden": true,
115
+ "semverBump": "none",
116
+ "changelog": {
117
+ "title": "Build",
118
+ "hidden": true
119
+ }
120
+ },
121
+ "release": {
122
+ "description": "Publishing a commit containing a newly released version",
123
+ "title": "Publish Release",
124
+ "emoji": "\u{1F680} ",
125
+ "hidden": true,
126
+ "semverBump": "none",
127
+ "changelog": {
128
+ "title": "Publish Release",
129
+ "hidden": true
130
+ }
131
+ }
132
+ };
133
+
134
+ exports.COMMIT_TYPES = COMMIT_TYPES;
@@ -0,0 +1,8 @@
1
+ import { MINIMAL_PARSER_DEFAULT_OPTIONS, MONOREPO_PARSER_DEFAULT_OPTIONS } from './chunk-IJLTWVLG.js';
2
+
3
+ // src/parser.ts
4
+ function createParserOpts(variant) {
5
+ return variant === "minimal" ? MINIMAL_PARSER_DEFAULT_OPTIONS : MONOREPO_PARSER_DEFAULT_OPTIONS;
6
+ }
7
+
8
+ export { createParserOpts };
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/assets/cjs_shims.js
4
+ var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
5
+ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
6
+
7
+ exports.importMetaUrl = importMetaUrl;
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var chunkKRZANN66_cjs = require('./chunk-KRZANN66.cjs');
4
+ var chunkYBJMQHWU_cjs = require('./chunk-YBJMQHWU.cjs');
5
+
6
+ // src/whatBump.ts
7
+ function createWhatBump(options) {
8
+ const hiddenTypes = options.bumpStrict ? chunkYBJMQHWU_cjs.CHANGELOG_COMMIT_ORDER.reduce((hiddenTypes2, type) => {
9
+ if (type.hidden) {
10
+ hiddenTypes2.push(type.type);
11
+ }
12
+ return hiddenTypes2;
13
+ }, []) : [];
14
+ return function whatBump(commits) {
15
+ let level = 2;
16
+ let breakings = 0;
17
+ let features = 0;
18
+ let bugfixes = 0;
19
+ commits.forEach((commit) => {
20
+ if (!chunkKRZANN66_cjs.matchScope(options, commit)) {
21
+ return;
22
+ }
23
+ if (commit.notes.length > 0) {
24
+ breakings += commit.notes.length;
25
+ level = 0;
26
+ } else if (commit.type === "feat" || commit.type === "feature") {
27
+ features += 1;
28
+ if (level === 2) {
29
+ level = 1;
30
+ }
31
+ } else if (options.bumpStrict && !hiddenTypes.includes(commit.type)) {
32
+ bugfixes += 1;
33
+ }
34
+ });
35
+ if (options?.preMajor && level < 2) {
36
+ level++;
37
+ } else if (options.bumpStrict && level === 2 && !breakings && !features && !bugfixes) {
38
+ return null;
39
+ }
40
+ return {
41
+ level,
42
+ reason: breakings === 1 ? `There is ${breakings} BREAKING CHANGE and ${features} features` : `There are ${breakings} BREAKING CHANGES and ${features} features`
43
+ };
44
+ };
45
+ }
46
+
47
+ exports.createWhatBump = createWhatBump;
@@ -0,0 +1 @@
1
+