@semantic-release/release-notes-generator 13.0.0 → 14.0.0-beta.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/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import { format } from "url";
|
|
|
2
2
|
import { find, merge } from "lodash-es";
|
|
3
3
|
import getStream from "get-stream";
|
|
4
4
|
import intoStream from "into-stream";
|
|
5
|
-
import {
|
|
5
|
+
import { CommitParser } from "conventional-commits-parser";
|
|
6
6
|
import writer from "./wrappers/conventional-changelog-writer.js";
|
|
7
|
-
import
|
|
7
|
+
import { filterRevertedCommitsSync } from "conventional-commits-filter";
|
|
8
8
|
import { readPackageUp } from "read-pkg-up";
|
|
9
9
|
import debugFactory from "debug";
|
|
10
10
|
import loadChangelogConfig from "./lib/load-changelog-config.js";
|
|
@@ -43,7 +43,8 @@ export async function generateNotes(pluginConfig, context) {
|
|
|
43
43
|
|
|
44
44
|
const { issue, commit, referenceActions, issuePrefixes } =
|
|
45
45
|
find(HOSTS_CONFIG, (conf) => conf.hostname === hostname) || HOSTS_CONFIG.default;
|
|
46
|
-
const
|
|
46
|
+
const parser = new CommitParser({ referenceActions, issuePrefixes, ...parserOpts });
|
|
47
|
+
const parsedCommits = filterRevertedCommitsSync(
|
|
47
48
|
commits
|
|
48
49
|
.filter(({ message, hash }) => {
|
|
49
50
|
if (!message.trim()) {
|
|
@@ -55,7 +56,7 @@ export async function generateNotes(pluginConfig, context) {
|
|
|
55
56
|
})
|
|
56
57
|
.map((rawCommit) => ({
|
|
57
58
|
...rawCommit,
|
|
58
|
-
...parser(rawCommit.message
|
|
59
|
+
...parser.parse(rawCommit.message),
|
|
59
60
|
}))
|
|
60
61
|
);
|
|
61
62
|
const previousTag = lastRelease.gitTag || lastRelease.gitHead;
|
|
@@ -33,7 +33,7 @@ export default async ({ preset, config, parserOpts, writerOpts, presetConfig },
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
return {
|
|
36
|
-
parserOpts: { ...loadedConfig.
|
|
37
|
-
writerOpts: { ...loadedConfig.
|
|
36
|
+
parserOpts: { ...loadedConfig.parser, ...parserOpts },
|
|
37
|
+
writerOpts: { ...loadedConfig.writer, ...writerOpts },
|
|
38
38
|
};
|
|
39
39
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semantic-release/release-notes-generator",
|
|
3
3
|
"description": "semantic-release plugin to generate changelog content with conventional-changelog",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "14.0.0-beta.1",
|
|
5
5
|
"author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/semantic-release/release-notes-generator/issues"
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"Gregor Martynus (https://twitter.com/gr2m)"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"conventional-changelog-angular": "^
|
|
15
|
-
"conventional-changelog-writer": "^
|
|
16
|
-
"conventional-commits-filter": "^
|
|
17
|
-
"conventional-commits-parser": "^
|
|
14
|
+
"conventional-changelog-angular": "^8.0.0",
|
|
15
|
+
"conventional-changelog-writer": "^8.0.0",
|
|
16
|
+
"conventional-commits-filter": "^5.0.0",
|
|
17
|
+
"conventional-commits-parser": "^6.0.0",
|
|
18
18
|
"debug": "^4.0.0",
|
|
19
19
|
"get-stream": "^7.0.0",
|
|
20
20
|
"import-from-esm": "^1.0.3",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"ava": "6.1.2",
|
|
27
27
|
"c8": "9.1.0",
|
|
28
|
-
"conventional-changelog-atom": "
|
|
29
|
-
"conventional-changelog-conventionalcommits": "
|
|
30
|
-
"conventional-changelog-ember": "
|
|
31
|
-
"conventional-changelog-eslint": "
|
|
32
|
-
"conventional-changelog-express": "
|
|
33
|
-
"conventional-changelog-jshint": "
|
|
28
|
+
"conventional-changelog-atom": "5.0.0",
|
|
29
|
+
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
30
|
+
"conventional-changelog-ember": "5.0.0",
|
|
31
|
+
"conventional-changelog-eslint": "6.0.0",
|
|
32
|
+
"conventional-changelog-express": "5.0.0",
|
|
33
|
+
"conventional-changelog-jshint": "5.0.0",
|
|
34
34
|
"escape-string-regexp": "5.0.0",
|
|
35
35
|
"fs-extra": "11.2.0",
|
|
36
36
|
"lockfile-lint": "4.13.2",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"npm-run-all2": "6.1.2",
|
|
39
39
|
"prettier": "3.2.5",
|
|
40
40
|
"publint": "0.2.7",
|
|
41
|
-
"semantic-release": "23.0.
|
|
41
|
+
"semantic-release": "23.0.8",
|
|
42
42
|
"sinon": "17.0.1",
|
|
43
43
|
"stream-buffers": "3.0.2",
|
|
44
44
|
"tempy": "3.1.0",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"github>semantic-release/.github:renovate-config"
|
|
128
128
|
]
|
|
129
129
|
},
|
|
130
|
-
"packageManager": "npm@10.
|
|
130
|
+
"packageManager": "npm@10.7.0"
|
|
131
131
|
}
|