@commitlint/read 13.1.0 → 16.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 +32 -0
- package/lib/get-edit-commit.js +2 -2
- package/lib/get-edit-commit.js.map +1 -1
- package/lib/get-history-commits.js +1 -1
- package/lib/get-history-commits.js.map +1 -1
- package/lib/read.js +2 -2
- package/lib/read.js.map +1 -1
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
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
|
+
# [16.0.0](https://github.com/conventional-changelog/commitlint/compare/v15.0.0...v16.0.0) (2021-12-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @commitlint/read
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [15.0.0](https://github.com/conventional-changelog/commitlint/compare/v14.2.0...v15.0.0) (2021-11-17)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @commitlint/read
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [14.0.0](https://github.com/conventional-changelog/commitlint/compare/v13.2.1...v14.0.0) (2021-10-26)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @commitlint/read
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @commitlint/read
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
# [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24)
|
|
7
39
|
|
|
8
40
|
**Note:** Version bump only for package @commitlint/read
|
package/lib/get-edit-commit.js
CHANGED
|
@@ -9,11 +9,11 @@ const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
|
9
9
|
const get_edit_file_path_1 = require("./get-edit-file-path");
|
|
10
10
|
// Get recently edited commit message
|
|
11
11
|
async function getEditCommit(cwd, edit) {
|
|
12
|
-
const top = await top_level_1.default(cwd);
|
|
12
|
+
const top = await (0, top_level_1.default)(cwd);
|
|
13
13
|
if (typeof top !== 'string') {
|
|
14
14
|
throw new TypeError(`Could not find git root from ${cwd}`);
|
|
15
15
|
}
|
|
16
|
-
const editFilePath = await get_edit_file_path_1.getEditFilePath(top, edit);
|
|
16
|
+
const editFilePath = await (0, get_edit_file_path_1.getEditFilePath)(top, edit);
|
|
17
17
|
const editFile = await fs_extra_1.default.readFile(editFilePath);
|
|
18
18
|
return [`${editFile.toString('utf-8')}\n`];
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-edit-commit.js","sourceRoot":"","sources":["../src/get-edit-commit.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA6C;AAC7C,wDAA0B;AAC1B,6DAAqD;AAErD,qCAAqC;AAC9B,KAAK,UAAU,aAAa,CAClC,GAAY,EACZ,IAAuB;IAEvB,MAAM,GAAG,GAAG,MAAM,mBAAQ,
|
|
1
|
+
{"version":3,"file":"get-edit-commit.js","sourceRoot":"","sources":["../src/get-edit-commit.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA6C;AAC7C,wDAA0B;AAC1B,6DAAqD;AAErD,qCAAqC;AAC9B,KAAK,UAAU,aAAa,CAClC,GAAY,EACZ,IAAuB;IAEvB,MAAM,GAAG,GAAG,MAAM,IAAA,mBAAQ,EAAC,GAAG,CAAC,CAAC;IAEhC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,SAAS,CAAC,gCAAgC,GAAG,EAAE,CAAC,CAAC;KAC3D;IAED,MAAM,YAAY,GAAG,MAAM,IAAA,oCAAe,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAW,MAAM,kBAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAEzD,OAAO,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC;AAdD,sCAcC"}
|
|
@@ -8,7 +8,7 @@ const git_raw_commits_1 = __importDefault(require("git-raw-commits"));
|
|
|
8
8
|
const stream_to_promise_1 = require("./stream-to-promise");
|
|
9
9
|
// Get commit messages from history
|
|
10
10
|
async function getHistoryCommits(options, opts = {}) {
|
|
11
|
-
return stream_to_promise_1.streamToPromise(git_raw_commits_1.default(options, { cwd: opts.cwd }));
|
|
11
|
+
return (0, stream_to_promise_1.streamToPromise)((0, git_raw_commits_1.default)(options, { cwd: opts.cwd }));
|
|
12
12
|
}
|
|
13
13
|
exports.getHistoryCommits = getHistoryCommits;
|
|
14
14
|
//# sourceMappingURL=get-history-commits.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-history-commits.js","sourceRoot":"","sources":["../src/get-history-commits.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA4C;AAC5C,2DAAoD;AAEpD,mCAAmC;AAC5B,KAAK,UAAU,iBAAiB,CACtC,OAAqC,EACrC,OAAuB,EAAE;IAEzB,OAAO,mCAAe,
|
|
1
|
+
{"version":3,"file":"get-history-commits.js","sourceRoot":"","sources":["../src/get-history-commits.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA4C;AAC5C,2DAAoD;AAEpD,mCAAmC;AAC5B,KAAK,UAAU,iBAAiB,CACtC,OAAqC,EACrC,OAAuB,EAAE;IAEzB,OAAO,IAAA,mCAAe,EAAC,IAAA,yBAAa,EAAC,OAAO,EAAE,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAC,CAAC,CAAC,CAAC;AACjE,CAAC;AALD,8CAKC"}
|
package/lib/read.js
CHANGED
|
@@ -6,9 +6,9 @@ const get_edit_commit_1 = require("./get-edit-commit");
|
|
|
6
6
|
async function getCommitMessages(settings) {
|
|
7
7
|
const { cwd, from, to, edit } = settings;
|
|
8
8
|
if (edit) {
|
|
9
|
-
return get_edit_commit_1.getEditCommit(cwd, edit);
|
|
9
|
+
return (0, get_edit_commit_1.getEditCommit)(cwd, edit);
|
|
10
10
|
}
|
|
11
|
-
return get_history_commits_1.getHistoryCommits({ from, to }, { cwd });
|
|
11
|
+
return (0, get_history_commits_1.getHistoryCommits)({ from, to }, { cwd });
|
|
12
12
|
}
|
|
13
13
|
exports.default = getCommitMessages;
|
|
14
14
|
//# sourceMappingURL=read.js.map
|
package/lib/read.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../src/read.ts"],"names":[],"mappings":";;AAAA,+DAAwD;AACxD,uDAAgD;AAShD,sBAAsB;AACP,KAAK,UAAU,iBAAiB,CAC9C,QAAiC;IAEjC,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAC,GAAG,QAAQ,CAAC;IAEvC,IAAI,IAAI,EAAE;QACT,OAAO,+BAAa,
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../src/read.ts"],"names":[],"mappings":";;AAAA,+DAAwD;AACxD,uDAAgD;AAShD,sBAAsB;AACP,KAAK,UAAU,iBAAiB,CAC9C,QAAiC;IAEjC,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAC,GAAG,QAAQ,CAAC;IAEvC,IAAI,IAAI,EAAE;QACT,OAAO,IAAA,+BAAa,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;KAChC;IAED,OAAO,IAAA,uCAAiB,EAAC,EAAC,IAAI,EAAE,EAAE,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,CAAC;AAC7C,CAAC;AAVD,oCAUC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/read",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "Read commit messages from a specified range or last edit",
|
|
5
5
|
"main": "lib/read.js",
|
|
6
6
|
"types": "lib/read.d.ts",
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "https://github.com/conventional-changelog/commitlint.git"
|
|
19
|
+
"url": "https://github.com/conventional-changelog/commitlint.git",
|
|
20
|
+
"directory": "@commitlint/read"
|
|
20
21
|
},
|
|
21
22
|
"bugs": {
|
|
22
23
|
"url": "https://github.com/conventional-changelog/commitlint/issues"
|
|
23
24
|
},
|
|
24
|
-
"homepage": "https://
|
|
25
|
+
"homepage": "https://commitlint.js.org/",
|
|
25
26
|
"keywords": [
|
|
26
27
|
"conventional-changelog",
|
|
27
28
|
"commitlint",
|
|
@@ -34,17 +35,17 @@
|
|
|
34
35
|
},
|
|
35
36
|
"license": "MIT",
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@commitlint/test": "^
|
|
38
|
-
"@commitlint/utils": "^
|
|
38
|
+
"@commitlint/test": "^16.0.0",
|
|
39
|
+
"@commitlint/utils": "^16.0.0",
|
|
39
40
|
"@types/fs-extra": "^9.0.1",
|
|
40
41
|
"@types/git-raw-commits": "^2.0.0",
|
|
41
42
|
"execa": "^5.0.0"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@commitlint/top-level": "^
|
|
45
|
-
"@commitlint/types": "^
|
|
45
|
+
"@commitlint/top-level": "^16.0.0",
|
|
46
|
+
"@commitlint/types": "^16.0.0",
|
|
46
47
|
"fs-extra": "^10.0.0",
|
|
47
48
|
"git-raw-commits": "^2.0.0"
|
|
48
49
|
},
|
|
49
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "a6bacf60d7dccf969677cdef48fd22f8a92b5f08"
|
|
50
51
|
}
|