@commitlint/lint 9.1.0 → 11.0.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.
- 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 +2 -1
- package/lib/commit-message.js.map +1 -1
- package/lib/lint.d.ts +2 -7
- package/lib/lint.d.ts.map +1 -1
- package/lib/lint.js +14 -17
- 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
|
+
# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @commitlint/lint
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
* 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)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### BREAKING CHANGES
|
|
21
|
+
|
|
22
|
+
* remove node 8 from circle-ci checks
|
|
23
|
+
|
|
24
|
+
also remove node 13 because we do not support experimental versions
|
|
25
|
+
|
|
26
|
+
* docs: update node v10 to latest LTS 10 version
|
|
27
|
+
|
|
28
|
+
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
|
29
|
+
|
|
30
|
+
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @commitlint/lint
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @commitlint/lint
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
6
52
|
# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21)
|
|
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,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildCommitMesage =
|
|
3
|
+
exports.buildCommitMesage = void 0;
|
|
4
|
+
exports.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;
|
|
@@ -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":";;;AAMa,QAAA,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"}
|
package/lib/lint.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function lint(message: string, rawRulesConfig?:
|
|
3
|
-
valid: boolean;
|
|
4
|
-
errors: LintRuleOutcome[];
|
|
5
|
-
warnings: LintRuleOutcome[];
|
|
6
|
-
input: string;
|
|
7
|
-
}>;
|
|
1
|
+
import { LintOptions, LintOutcome, QualifiedRules } from '@commitlint/types';
|
|
2
|
+
export default function lint(message: string, rawRulesConfig?: QualifiedRules, rawOpts?: LintOptions): Promise<LintOutcome>;
|
|
8
3
|
//# sourceMappingURL=lint.d.ts.map
|
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,
|
|
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(', ')}`);
|
|
@@ -58,7 +58,7 @@ async function lint(message, rawRulesConfig, rawOpts) {
|
|
|
58
58
|
return new Error(`config for rule ${name} must be array, received ${util_1.default.inspect(config)} of type ${typeof config}`);
|
|
59
59
|
}
|
|
60
60
|
const [level] = config;
|
|
61
|
-
if (level === types_1.
|
|
61
|
+
if (level === types_1.RuleConfigSeverity.Disabled && config.length === 1) {
|
|
62
62
|
return null;
|
|
63
63
|
}
|
|
64
64
|
const [, when] = config;
|
|
@@ -81,18 +81,15 @@ 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)
|
|
88
|
-
|
|
88
|
+
// Level 0 rules are ignored
|
|
89
|
+
.filter(([, config]) => !!config && config.length && config[0] > 0)
|
|
89
90
|
.map(async (entry) => {
|
|
90
91
|
const [name, config] = entry;
|
|
91
|
-
const [level, when, value] = config;
|
|
92
|
-
// Level 0 rules are ignored
|
|
93
|
-
if (level === 0) {
|
|
94
|
-
return null;
|
|
95
|
-
}
|
|
92
|
+
const [level, when, value] = config; //
|
|
96
93
|
const rule = allRules.get(name);
|
|
97
94
|
if (!rule) {
|
|
98
95
|
throw new Error(`Could not find rule implementation for ${name}`);
|
|
@@ -103,18 +100,18 @@ async function lint(message, rawRulesConfig, rawOpts) {
|
|
|
103
100
|
level,
|
|
104
101
|
valid,
|
|
105
102
|
name,
|
|
106
|
-
message
|
|
103
|
+
message,
|
|
107
104
|
};
|
|
108
105
|
});
|
|
109
106
|
const results = (await Promise.all(pendingResults)).filter((result) => result !== null);
|
|
110
|
-
const errors = results.filter(result => result.level === 2 && !result.valid);
|
|
111
|
-
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);
|
|
112
109
|
const valid = errors.length === 0;
|
|
113
110
|
return {
|
|
114
111
|
valid,
|
|
115
112
|
errors,
|
|
116
113
|
warnings,
|
|
117
|
-
input: commit_message_1.buildCommitMesage(parsed)
|
|
114
|
+
input: commit_message_1.buildCommitMesage(parsed),
|
|
118
115
|
};
|
|
119
116
|
}
|
|
120
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,
|
|
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,OAAO,KAAK,EAAE;QACb,CAAC,CAAC,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC;QAC1C,CAAC,CAAC,MAAM,eAAK,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAErD,IACC,MAAM,CAAC,MAAM,KAAK,IAAI;QACtB,MAAM,CAAC,IAAI,KAAK,IAAI;QACpB,MAAM,CAAC,MAAM,KAAK,IAAI,EACrB;QACD,wBAAwB;QAC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C,CAAC,CAAC;IAEJ,MAAM,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CACzD,CAAC,MAAM,EAA6B,EAAE,CAAC,MAAM,KAAK,IAAI,CACtD,CAAC;IAEF,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAC5B,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAC/C,CAAC;IACF,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAC9B,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAC/C,CAAC;IAEF,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC;IAElC,OAAO;QACN,KAAK;QACL,MAAM;QACN,QAAQ;QACR,KAAK,EAAE,kCAAiB,CAAC,MAAM,CAAC;KAChC,CAAC;AACH,CAAC;AApLD,uBAoLC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/lint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
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.22.0"
|
|
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": "^11.0.0",
|
|
38
|
+
"@commitlint/utils": "^11.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@commitlint/is-ignored": "^
|
|
42
|
-
"@commitlint/parse": "^
|
|
43
|
-
"@commitlint/rules": "^
|
|
44
|
-
"@commitlint/types": "^
|
|
41
|
+
"@commitlint/is-ignored": "^11.0.0",
|
|
42
|
+
"@commitlint/parse": "^11.0.0",
|
|
43
|
+
"@commitlint/rules": "^11.0.0",
|
|
44
|
+
"@commitlint/types": "^11.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "922317463f7c90c0fb319e075de533dd63343863"
|
|
47
47
|
}
|