@semantic-release/release-notes-generator 11.0.7 → 12.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.
@@ -25,19 +25,13 @@ export default async ({ preset, config, parserOpts, writerOpts, presetConfig },
25
25
 
26
26
  if (preset) {
27
27
  const presetPackage = `conventional-changelog-${preset.toLowerCase()}`;
28
- loadedConfig = importFrom.silent(__dirname, presetPackage) || importFrom(cwd, presetPackage);
28
+ loadedConfig = await (importFrom.silent(__dirname, presetPackage) || importFrom(cwd, presetPackage))(presetConfig);
29
29
  } else if (config) {
30
- loadedConfig = importFrom.silent(__dirname, config) || importFrom(cwd, config);
30
+ loadedConfig = await (importFrom.silent(__dirname, config) || importFrom(cwd, config))();
31
31
  } else {
32
- loadedConfig = conventionalChangelogAngular;
32
+ loadedConfig = await conventionalChangelogAngular();
33
33
  }
34
34
 
35
- loadedConfig = await (typeof loadedConfig === "function"
36
- ? isPlainObject(presetConfig)
37
- ? loadedConfig(presetConfig)
38
- : promisify(loadedConfig)()
39
- : loadedConfig);
40
-
41
35
  return {
42
36
  parserOpts: { ...loadedConfig.parserOpts, ...parserOpts },
43
37
  writerOpts: { ...loadedConfig.writerOpts, ...writerOpts },
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": "11.0.7",
4
+ "version": "12.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,7 +11,7 @@
11
11
  "Gregor Martynus (https://twitter.com/gr2m)"
12
12
  ],
13
13
  "dependencies": {
14
- "conventional-changelog-angular": "^6.0.0",
14
+ "conventional-changelog-angular": "^7.0.0",
15
15
  "conventional-changelog-writer": "^6.0.0",
16
16
  "conventional-commits-filter": "^4.0.0",
17
17
  "conventional-commits-parser": "^5.0.0",
@@ -25,15 +25,15 @@
25
25
  "devDependencies": {
26
26
  "ava": "5.3.1",
27
27
  "c8": "8.0.1",
28
- "conventional-changelog-atom": "3.0.0",
28
+ "conventional-changelog-atom": "4.0.0",
29
29
  "conventional-changelog-conventionalcommits": "7.0.1",
30
- "conventional-changelog-ember": "3.0.0",
31
- "conventional-changelog-eslint": "4.0.0",
32
- "conventional-changelog-express": "3.0.0",
33
- "conventional-changelog-jshint": "3.0.0",
30
+ "conventional-changelog-ember": "4.0.0",
31
+ "conventional-changelog-eslint": "5.0.0",
32
+ "conventional-changelog-express": "4.0.0",
33
+ "conventional-changelog-jshint": "4.0.0",
34
34
  "escape-string-regexp": "5.0.0",
35
35
  "fs-extra": "11.1.1",
36
- "prettier": "3.0.2",
36
+ "prettier": "3.0.3",
37
37
  "semantic-release": "21.1.1",
38
38
  "stream-buffers": "3.0.2",
39
39
  "tempy": "3.1.0",
@@ -92,8 +92,8 @@
92
92
  "lint:fix": "prettier --write \"*.{js,json,md}\" \".github/**/*.{md,yml}\" \"{bin,lib,test}/*.js\"",
93
93
  "pretest": "npm run lint",
94
94
  "semantic-release": "semantic-release",
95
- "test": "c8 ava -v",
96
- "test:ci": "c8 ava -v"
95
+ "test": "c8 ava --verbose",
96
+ "test:ci": "c8 ava --verbose"
97
97
  },
98
98
  "type": "module",
99
99
  "ava": {