@commitlint/lint 9.1.2 → 12.0.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/CHANGELOG.md +46 -0
- package/README.md +2 -2
- package/lib/commit-message.d.ts +1 -1
- package/lib/commit-message.d.ts.map +1 -1
- package/lib/commit-message.js +3 -1
- package/lib/commit-message.js.map +1 -1
- package/lib/lint.d.ts.map +1 -1
- package/lib/lint.js +10 -10
- package/lib/lint.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,52 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @commitlint/lint
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @commitlint/lint
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @commitlint/lint
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### BREAKING CHANGES
|
|
37
|
+
|
|
38
|
+
* remove node 8 from circle-ci checks
|
|
39
|
+
|
|
40
|
+
also remove node 13 because we do not support experimental versions
|
|
41
|
+
|
|
42
|
+
* docs: update node v10 to latest LTS 10 version
|
|
43
|
+
|
|
44
|
+
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
|
45
|
+
|
|
46
|
+
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
6
52
|
## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
|
|
7
53
|
|
|
8
54
|
**Note:** Version bump only for package @commitlint/lint
|
package/README.md
CHANGED
|
@@ -13,12 +13,12 @@ npm install --save @commitlint/lint
|
|
|
13
13
|
```js
|
|
14
14
|
const lint = require('@commitlint/lint');
|
|
15
15
|
|
|
16
|
-
lint('foo: bar', {'type-enum': [1, 'always', ['foo']]}).then(report =>
|
|
16
|
+
lint('foo: bar', {'type-enum': [1, 'always', ['foo']]}).then((report) =>
|
|
17
17
|
console.log(report)
|
|
18
18
|
);
|
|
19
19
|
// => { valid: true, errors: [], warnings: [] }
|
|
20
20
|
|
|
21
|
-
lint('foo: bar', {'type-enum': [1, 'always', ['bar']]}).then(report =>
|
|
21
|
+
lint('foo: bar', {'type-enum': [1, 'always', ['bar']]}).then((report) =>
|
|
22
22
|
console.log(report)
|
|
23
23
|
);
|
|
24
24
|
/* =>
|
package/lib/commit-message.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export interface CommitMessageData {
|
|
|
3
3
|
body?: string | null;
|
|
4
4
|
footer?: string | null;
|
|
5
5
|
}
|
|
6
|
-
export declare const buildCommitMesage: ({ header, body, footer }: CommitMessageData) => string;
|
|
6
|
+
export declare const buildCommitMesage: ({ header, body, footer, }: CommitMessageData) => string;
|
|
7
7
|
//# sourceMappingURL=commit-message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-message.d.ts","sourceRoot":"","sources":["../src/commit-message.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"commit-message.d.ts","sourceRoot":"","sources":["../src/commit-message.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,8BAI3B,iBAAiB,KAAG,MAOtB,CAAC"}
|
package/lib/commit-message.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildCommitMesage =
|
|
3
|
+
exports.buildCommitMesage = void 0;
|
|
4
|
+
const buildCommitMesage = ({ header, body, footer, }) => {
|
|
4
5
|
let message = header;
|
|
5
6
|
message = body ? `${message}\n\n${body}` : message;
|
|
6
7
|
message = footer ? `${message}\n\n${footer}` : message;
|
|
7
8
|
return message;
|
|
8
9
|
};
|
|
10
|
+
exports.buildCommitMesage = buildCommitMesage;
|
|
9
11
|
//# sourceMappingURL=commit-message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-message.js","sourceRoot":"","sources":["../src/commit-message.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commit-message.js","sourceRoot":"","sources":["../src/commit-message.ts"],"names":[],"mappings":";;;AAMO,MAAM,iBAAiB,GAAG,CAAC,EACjC,MAAM,EACN,IAAI,EACJ,MAAM,GACa,EAAU,EAAE;IAC/B,IAAI,OAAO,GAAG,MAAM,CAAC;IAErB,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,OAAO,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IACnD,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IAEvD,OAAO,OAAO,CAAC;AAChB,CAAC,CAAC;AAXW,QAAA,iBAAiB,qBAW5B"}
|
package/lib/lint.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,WAAW,EACX,WAAW,EAMX,cAAc,EACd,MAAM,mBAAmB,CAAC;AAE3B,wBAA8B,IAAI,CACjC,OAAO,EAAE,MAAM,EACf,cAAc,CAAC,EAAE,cAAc,EAC/B,OAAO,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,WAAW,EACX,WAAW,EAMX,cAAc,EACd,MAAM,mBAAmB,CAAC;AAE3B,wBAA8B,IAAI,CACjC,OAAO,EAAE,MAAM,EACf,cAAc,CAAC,EAAE,cAAc,EAC/B,OAAO,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,WAAW,CAAC,CAgLtB"}
|
package/lib/lint.js
CHANGED
|
@@ -20,7 +20,7 @@ async function lint(message, rawRulesConfig, rawOpts) {
|
|
|
20
20
|
valid: true,
|
|
21
21
|
errors: [],
|
|
22
22
|
warnings: [],
|
|
23
|
-
input: message
|
|
23
|
+
input: message,
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
// Parse the commit message
|
|
@@ -35,19 +35,19 @@ async function lint(message, rawRulesConfig, rawOpts) {
|
|
|
35
35
|
valid: true,
|
|
36
36
|
errors: [],
|
|
37
37
|
warnings: [],
|
|
38
|
-
input: message
|
|
38
|
+
input: message,
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
const allRules = new Map(Object.entries(rules_1.default));
|
|
42
42
|
if (opts.plugins) {
|
|
43
|
-
Object.values(opts.plugins).forEach(plugin => {
|
|
43
|
+
Object.values(opts.plugins).forEach((plugin) => {
|
|
44
44
|
if (plugin.rules) {
|
|
45
|
-
Object.keys(plugin.rules).forEach(ruleKey => allRules.set(ruleKey, plugin.rules[ruleKey]));
|
|
45
|
+
Object.keys(plugin.rules).forEach((ruleKey) => allRules.set(ruleKey, plugin.rules[ruleKey]));
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
// Find invalid rules configs
|
|
50
|
-
const missing = Object.keys(rulesConfig).filter(name => typeof allRules.get(name) !== 'function');
|
|
50
|
+
const missing = Object.keys(rulesConfig).filter((name) => typeof allRules.get(name) !== 'function');
|
|
51
51
|
if (missing.length > 0) {
|
|
52
52
|
const names = [...allRules.keys()];
|
|
53
53
|
throw new RangeError(`Found invalid rule names: ${missing.join(', ')}. Supported rule names are: ${names.join(', ')}`);
|
|
@@ -81,7 +81,7 @@ async function lint(message, rawRulesConfig, rawOpts) {
|
|
|
81
81
|
})
|
|
82
82
|
.filter((item) => item instanceof Error);
|
|
83
83
|
if (invalid.length > 0) {
|
|
84
|
-
throw new Error(invalid.map(i => i.message).join('\n'));
|
|
84
|
+
throw new Error(invalid.map((i) => i.message).join('\n'));
|
|
85
85
|
}
|
|
86
86
|
// Validate against all rules
|
|
87
87
|
const pendingResults = Object.entries(rulesConfig)
|
|
@@ -100,18 +100,18 @@ async function lint(message, rawRulesConfig, rawOpts) {
|
|
|
100
100
|
level,
|
|
101
101
|
valid,
|
|
102
102
|
name,
|
|
103
|
-
message
|
|
103
|
+
message,
|
|
104
104
|
};
|
|
105
105
|
});
|
|
106
106
|
const results = (await Promise.all(pendingResults)).filter((result) => result !== null);
|
|
107
|
-
const errors = results.filter(result => result.level === 2 && !result.valid);
|
|
108
|
-
const warnings = results.filter(result => result.level === 1 && !result.valid);
|
|
107
|
+
const errors = results.filter((result) => result.level === 2 && !result.valid);
|
|
108
|
+
const warnings = results.filter((result) => result.level === 1 && !result.valid);
|
|
109
109
|
const valid = errors.length === 0;
|
|
110
110
|
return {
|
|
111
111
|
valid,
|
|
112
112
|
errors,
|
|
113
113
|
warnings,
|
|
114
|
-
input: commit_message_1.buildCommitMesage(parsed)
|
|
114
|
+
input: commit_message_1.buildCommitMesage(parsed),
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
exports.default = lint;
|
package/lib/lint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.js","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AACxB,wEAA+C;AAC/C,8DAAsC;AACtC,8DAA6C;AAC7C,qDAAmD;AACnD,6CAS2B;AAEZ,KAAK,UAAU,IAAI,CACjC,OAAe,EACf,cAA+B,EAC/B,OAAqB;IAErB,MAAM,IAAI,GAAG,OAAO;QACnB,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,EAAC,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAC,CAAC;IACnD,MAAM,WAAW,GAAG,cAAc,IAAI,EAAE,CAAC;IAEzC,+BAA+B;IAC/B,IACC,oBAAS,CAAC,OAAO,EAAE,EAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,EACzE;QACD,OAAO;YACN,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,OAAO;SACd,CAAC;KACF;IAED,2BAA2B;IAC3B,MAAM,MAAM,GACX,O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int",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.1",
|
|
4
4
|
"description": "Lint a string against commitlint rules",
|
|
5
5
|
"main": "lib/lint.js",
|
|
6
6
|
"types": "lib/lint.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"pkg": "pkg-check --skip-import"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
|
-
"node": ">=
|
|
15
|
+
"node": ">=v10"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@commitlint/test": "^
|
|
38
|
-
"@commitlint/utils": "^
|
|
37
|
+
"@commitlint/test": "^12.0.1",
|
|
38
|
+
"@commitlint/utils": "^12.0.1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@commitlint/is-ignored": "^
|
|
42
|
-
"@commitlint/parse": "^
|
|
43
|
-
"@commitlint/rules": "^
|
|
44
|
-
"@commitlint/types": "^
|
|
41
|
+
"@commitlint/is-ignored": "^12.0.1",
|
|
42
|
+
"@commitlint/parse": "^12.0.1",
|
|
43
|
+
"@commitlint/rules": "^12.0.1",
|
|
44
|
+
"@commitlint/types": "^12.0.1"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "610d2911bea066c87700155de3bf5bbecf266a8d"
|
|
47
47
|
}
|