@commitlint/is-ignored 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/lib/defaults.js +16 -3
- package/lib/defaults.js.map +1 -1
- package/lib/index.js +16 -5
- package/lib/index.js.map +1 -1
- package/lib/is-ignored.js +3 -3
- package/lib/is-ignored.js.map +1 -1
- package/package.json +8 -8
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/is-ignored
|
|
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/is-ignored
|
|
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/is-ignored
|
|
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
|
|
package/lib/defaults.js
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
2
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
15
|
if (mod && mod.__esModule) return mod;
|
|
4
16
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
7
19
|
return result;
|
|
8
20
|
};
|
|
9
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.wildcards = void 0;
|
|
10
23
|
const semver = __importStar(require("semver"));
|
|
11
24
|
const isSemver = (c) => {
|
|
12
25
|
const firstLine = c.split('\n').shift();
|
|
@@ -25,6 +38,6 @@ exports.wildcards = [
|
|
|
25
38
|
test(/^Merged (.*?)(in|into) (.*)/),
|
|
26
39
|
test(/^Merge remote-tracking branch (.*)/),
|
|
27
40
|
test(/^Automatic merge(.*)/),
|
|
28
|
-
test(/^Auto-merged (.*?) into (.*)/)
|
|
41
|
+
test(/^Auto-merged (.*?) into (.*)/),
|
|
29
42
|
];
|
|
30
43
|
//# sourceMappingURL=defaults.js.map
|
package/lib/defaults.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAGjC,MAAM,QAAQ,GAAG,CAAC,CAAS,EAAW,EAAE;IACvC,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;IAExC,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;QAClC,OAAO,KAAK,CAAC;KACb;IAED,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACrE,OAAO,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,IAAI,GAAG,CAAC,CAAS,EAA4B,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAExD,QAAA,SAAS,GAAc;IACnC,IAAI,CACH,mFAAmF,CACnF;IACD,IAAI,CAAC,kBAAkB,CAAC;IACxB,IAAI,CAAC,kBAAkB,CAAC;IACxB,QAAQ;IACR,IAAI,CAAC,6BAA6B,CAAC;IACnC,IAAI,CAAC,oCAAoC,CAAC;IAC1C,IAAI,CAAC,sBAAsB,CAAC;IAC5B,IAAI,CAAC,8BAA8B,CAAC;CACpC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
5
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
16
|
+
exports.default = void 0;
|
|
17
|
+
__exportStar(require("./is-ignored"), exports);
|
|
7
18
|
var is_ignored_1 = require("./is-ignored");
|
|
8
|
-
exports
|
|
19
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(is_ignored_1).default; } });
|
|
9
20
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAqC;AAA7B,sHAAA,OAAO,OAAA"}
|
package/lib/is-ignored.js
CHANGED
|
@@ -6,14 +6,14 @@ function isIgnored(commit = '', opts = {}) {
|
|
|
6
6
|
if (!Array.isArray(ignores)) {
|
|
7
7
|
throw new Error(`ignores must be of type array, received ${ignores} of type ${typeof ignores}`);
|
|
8
8
|
}
|
|
9
|
-
const invalids = ignores.filter(c => typeof c !== 'function');
|
|
9
|
+
const invalids = ignores.filter((c) => typeof c !== 'function');
|
|
10
10
|
if (invalids.length > 0) {
|
|
11
11
|
throw new Error(`ignores must be array of type function, received items of type: ${invalids
|
|
12
|
-
.map(i => typeof i)
|
|
12
|
+
.map((i) => typeof i)
|
|
13
13
|
.join(', ')}`);
|
|
14
14
|
}
|
|
15
15
|
const base = opts.defaults === false ? [] : defaults_1.wildcards;
|
|
16
|
-
return [...base, ...ignores].some(w => w(commit));
|
|
16
|
+
return [...base, ...ignores].some((w) => w(commit));
|
|
17
17
|
}
|
|
18
18
|
exports.default = isIgnored;
|
|
19
19
|
//# sourceMappingURL=is-ignored.js.map
|
package/lib/is-ignored.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-ignored.js","sourceRoot":"","sources":["../src/is-ignored.ts"],"names":[],"mappings":";;AAAA,yCAAqC;AAGrC,SAAwB,SAAS,CAChC,SAAiB,EAAE,EACnB,OAAyB,EAAE;IAE3B,MAAM,OAAO,GAAG,OAAO,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;IAExE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CACd,2CAA2C,OAAO,YAAY,OAAO,OAAO,EAAE,CAC9E,CAAC;KACF;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|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Lint your commit messages",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"pkg": "pkg-check"
|
|
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/parse": "^
|
|
38
|
-
"@commitlint/test": "^
|
|
39
|
-
"@commitlint/utils": "^
|
|
40
|
-
"@types/semver": "7.
|
|
37
|
+
"@commitlint/parse": "^11.0.0",
|
|
38
|
+
"@commitlint/test": "^11.0.0",
|
|
39
|
+
"@commitlint/utils": "^11.0.0",
|
|
40
|
+
"@types/semver": "7.3.3"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@commitlint/types": "^
|
|
43
|
+
"@commitlint/types": "^11.0.0",
|
|
44
44
|
"semver": "7.3.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "922317463f7c90c0fb319e075de533dd63343863"
|
|
47
47
|
}
|