@mrshmllw/campfire 2.3.3 → 2.3.4-crumbs-feature-testing-breaking-change-regexp.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.
@@ -1,7 +1,14 @@
1
1
  import { RuleConfigSeverity } from '@commitlint/types';
2
2
  export const config = {
3
3
  parserPreset: 'conventional-changelog-conventionalcommits',
4
- ignores: [(commit) => /^BREAKING(?:[- ]CHANGE(?:S)?):/.test(commit)],
4
+ ignores: [
5
+ // Allow breaking changes in subject line with all case and format variations:
6
+ // - BREAKING CHANGE:, breaking change:, Breaking Change:, etc.
7
+ // - BREAKING-CHANGE:, breaking-change:, Breaking-Change:, etc.
8
+ // - BREAKING CHANGES:, breaking changes:, Breaking Changes:, etc.
9
+ // - BREAKING-CHANGES:, breaking-changes:, Breaking-Changes:, etc.
10
+ (commit) => /^breaking[\s-]change(?:s)?:/i.test(commit),
11
+ ],
5
12
  rules: {
6
13
  'type-case': [RuleConfigSeverity.Error, 'always', 'lower-case'],
7
14
  'type-empty': [RuleConfigSeverity.Error, 'never'],
@@ -56,6 +56,12 @@ const config = {
56
56
  preset: 'angular',
57
57
  releaseRules: [
58
58
  { breaking: true, release: 'major' },
59
+ // Match breaking changes in subject line (case-insensitive)
60
+ // Matches: "BREAKING CHANGE:", "breaking change:", "BREAKING-CHANGE:", etc.
61
+ {
62
+ header: /^breaking[\s-]change(?:s)?:/i,
63
+ release: 'major',
64
+ },
59
65
  { type: 'feat', release: 'minor' },
60
66
  { type: 'fix', release: 'patch' },
61
67
  { type: 'docs', release: 'patch' },
@@ -68,14 +74,6 @@ const config = {
68
74
  { type: 'revert', release: 'patch' },
69
75
  { type: 'chore', release: 'patch' },
70
76
  ],
71
- parserOpts: {
72
- noteKeywords: [
73
- 'BREAKING CHANGE',
74
- 'BREAKING-CHANGE',
75
- 'BREAKING CHANGES',
76
- 'BREAKING-CHANGES',
77
- ],
78
- },
79
77
  },
80
78
  ],
81
79
  [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrshmllw/campfire",
3
- "version": "2.3.3",
3
+ "version": "2.3.4-crumbs-feature-testing-breaking-change-regexp.1",
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",