@commitlint/is-ignored 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 CHANGED
@@ -3,6 +3,56 @@
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/is-ignored
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
+
17
+ ### Bug Fixes
18
+
19
+ * update dependency semver to v7.3.4 ([#2336](https://github.com/conventional-changelog/commitlint/issues/2336)) ([790b61a](https://github.com/conventional-changelog/commitlint/commit/790b61afa668d0eab80bbe49db58d3d5d29bb16e))
20
+ * **is-ignored:** ignore azure devops messages ([#2230](https://github.com/conventional-changelog/commitlint/issues/2230)) ([fe29ce7](https://github.com/conventional-changelog/commitlint/commit/fe29ce76bd87d5b42048228fbf0f47cc8d5411ec))
21
+
22
+
23
+
24
+
25
+
26
+ # [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
27
+
28
+ **Note:** Version bump only for package @commitlint/is-ignored
29
+
30
+
31
+
32
+
33
+
34
+ # [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
35
+
36
+
37
+ * 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)
38
+
39
+
40
+ ### BREAKING CHANGES
41
+
42
+ * remove node 8 from circle-ci checks
43
+
44
+ also remove node 13 because we do not support experimental versions
45
+
46
+ * docs: update node v10 to latest LTS 10 version
47
+
48
+ Co-authored-by: Cedric van Putten <me@bycedric.com>
49
+
50
+ Co-authored-by: Cedric van Putten <me@bycedric.com>
51
+
52
+
53
+
54
+
55
+
6
56
  ## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
7
57
 
8
58
  **Note:** Version bump only for package @commitlint/is-ignored
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[k] = mod[k];
6
- result["default"] = mod;
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();
@@ -22,9 +35,9 @@ exports.wildcards = [
22
35
  test(/^(R|r)evert (.*)/),
23
36
  test(/^(fixup|squash)!/),
24
37
  isSemver,
25
- test(/^Merged (.*?)(in|into) (.*)/),
26
- test(/^Merge remote-tracking branch (.*)/),
38
+ test(/^(Merged (.*?)(in|into) (.*)|Merged PR (.*): (.*))/),
39
+ test(/^Merge remote-tracking branch(\s*)(.*)/),
27
40
  test(/^Automatic merge(.*)/),
28
- test(/^Auto-merged (.*?) into (.*)/)
41
+ test(/^Auto-merged (.*?) into (.*)/),
29
42
  ];
30
43
  //# sourceMappingURL=defaults.js.map
@@ -1 +1 @@
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"}
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,oDAAoD,CAAC;IAC1D,IAAI,CAAC,wCAAwC,CAAC;IAC9C,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 __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
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
- __export(require("./is-ignored"));
16
+ exports.default = void 0;
17
+ __exportStar(require("./is-ignored"), exports);
7
18
  var is_ignored_1 = require("./is-ignored");
8
- exports.default = is_ignored_1.default;
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":";;;;;AAAA,kCAA6B;AAC7B,2CAAqC;AAA7B,+BAAA,OAAO,CAAA"}
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
@@ -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,CAA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,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,UAAU,CAAC,CAAC;IAEhE,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;QACxB,MAAM,IAAI,KAAK,CACd,mEAAmE,QAAQ;aACzE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;aACpB,IAAI,CAAC,IAAI,CAAC,EAAE,CACd,CAAC;KACF;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,oBAAS,CAAC;IACtD,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACrD,CAAC;AAxBD,4BAwBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commitlint/is-ignored",
3
- "version": "9.1.2",
3
+ "version": "12.0.1",
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": ">=v8.17.0"
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/parse": "^9.1.2",
38
- "@commitlint/test": "^9.1.2",
39
- "@commitlint/utils": "^9.1.2",
40
- "@types/semver": "7.3.1"
37
+ "@commitlint/parse": "^12.0.1",
38
+ "@commitlint/test": "^12.0.1",
39
+ "@commitlint/utils": "^12.0.1",
40
+ "@types/semver": "7.3.4"
41
41
  },
42
42
  "dependencies": {
43
- "@commitlint/types": "^9.1.2",
44
- "semver": "7.3.2"
43
+ "@commitlint/types": "^12.0.1",
44
+ "semver": "7.3.4"
45
45
  },
46
- "gitHead": "41d4f5851508be1421bd23e0424cacf043bc6a88"
46
+ "gitHead": "610d2911bea066c87700155de3bf5bbecf266a8d"
47
47
  }