@mrshmllw/campfire 2.3.4-crumbs-feature-testing-breaking-change-regexp.1 → 2.3.4-crumbs-feature-testing-breaking-change-regexp.2
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.
|
@@ -54,14 +54,45 @@ const config = {
|
|
|
54
54
|
'@semantic-release/commit-analyzer',
|
|
55
55
|
{
|
|
56
56
|
preset: 'angular',
|
|
57
|
+
parserOpts: {
|
|
58
|
+
// Allow breaking changes to be detected in header/subject, not just footer
|
|
59
|
+
headerPattern: /^(breaking[\s-]change(?:s)?|.*?)(\(.*\))?:?\s(.*)$/i,
|
|
60
|
+
headerCorrespondence: ['type', 'scope', 'subject'],
|
|
61
|
+
noteKeywords: [
|
|
62
|
+
'BREAKING CHANGE',
|
|
63
|
+
'BREAKING-CHANGE',
|
|
64
|
+
'BREAKING CHANGES',
|
|
65
|
+
'BREAKING-CHANGES',
|
|
66
|
+
'Breaking Change',
|
|
67
|
+
'Breaking-Change',
|
|
68
|
+
'Breaking Changes',
|
|
69
|
+
'Breaking-Changes',
|
|
70
|
+
'breaking change',
|
|
71
|
+
'breaking-change',
|
|
72
|
+
'breaking changes',
|
|
73
|
+
'breaking-changes',
|
|
74
|
+
],
|
|
75
|
+
},
|
|
57
76
|
releaseRules: [
|
|
58
77
|
{ breaking: true, release: 'major' },
|
|
59
|
-
// Match breaking changes in
|
|
78
|
+
// Match breaking changes in various commit fields (case-insensitive)
|
|
60
79
|
// Matches: "BREAKING CHANGE:", "breaking change:", "BREAKING-CHANGE:", etc.
|
|
61
80
|
{
|
|
62
81
|
header: /^breaking[\s-]change(?:s)?:/i,
|
|
63
82
|
release: 'major',
|
|
64
83
|
},
|
|
84
|
+
{
|
|
85
|
+
subject: /^breaking[\s-]change(?:s)?:/i,
|
|
86
|
+
release: 'major',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
message: /^breaking[\s-]change(?:s)?:/i,
|
|
90
|
+
release: 'major',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: /^breaking[\s-]change(?:s)?$/i,
|
|
94
|
+
release: 'major',
|
|
95
|
+
},
|
|
65
96
|
{ type: 'feat', release: 'minor' },
|
|
66
97
|
{ type: 'fix', release: 'patch' },
|
|
67
98
|
{ type: 'docs', release: 'patch' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrshmllw/campfire",
|
|
3
|
-
"version": "2.3.4-crumbs-feature-testing-breaking-change-regexp.
|
|
3
|
+
"version": "2.3.4-crumbs-feature-testing-breaking-change-regexp.2",
|
|
4
4
|
"description": "Collection of toasty utils and configs used by Marshmallow Technology",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|