@semantic-release/release-notes-generator
Advanced tools
Comparing version 11.0.4 to 12.1.0
import { dirname } from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import { promisify } from "node:util"; | ||
import { isPlainObject } from "lodash-es"; | ||
import importFrom from "import-from"; | ||
import importFrom from "import-from-esm"; | ||
import conventionalChangelogAngular from "conventional-changelog-angular"; | ||
@@ -28,15 +26,11 @@ | ||
const presetPackage = `conventional-changelog-${preset.toLowerCase()}`; | ||
loadedConfig = importFrom.silent(__dirname, presetPackage) || importFrom(cwd, presetPackage); | ||
loadedConfig = await ( | ||
(await importFrom.silent(__dirname, presetPackage)) || (await importFrom(cwd, presetPackage)) | ||
)(presetConfig); | ||
} else if (config) { | ||
loadedConfig = importFrom.silent(__dirname, config) || importFrom(cwd, config); | ||
loadedConfig = await ((await importFrom.silent(__dirname, config)) || (await importFrom(cwd, config)))(); | ||
} else { | ||
loadedConfig = conventionalChangelogAngular; | ||
loadedConfig = await conventionalChangelogAngular(); | ||
} | ||
loadedConfig = await (typeof loadedConfig === "function" | ||
? isPlainObject(presetConfig) | ||
? loadedConfig(presetConfig) | ||
: promisify(loadedConfig)() | ||
: loadedConfig); | ||
return { | ||
@@ -43,0 +37,0 @@ parserOpts: { ...loadedConfig.parserOpts, ...parserOpts }, |
{ | ||
"name": "@semantic-release/release-notes-generator", | ||
"description": "semantic-release plugin to generate changelog content with conventional-changelog", | ||
"version": "11.0.4", | ||
"version": "12.1.0", | ||
"author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)", | ||
@@ -14,32 +14,33 @@ "bugs": { | ||
"dependencies": { | ||
"conventional-changelog-angular": "^6.0.0", | ||
"conventional-changelog-writer": "^6.0.0", | ||
"conventional-commits-filter": "^3.0.0", | ||
"conventional-commits-parser": "^4.0.0", | ||
"conventional-changelog-angular": "^7.0.0", | ||
"conventional-changelog-writer": "^7.0.0", | ||
"conventional-commits-filter": "^4.0.0", | ||
"conventional-commits-parser": "^5.0.0", | ||
"debug": "^4.0.0", | ||
"get-stream": "^7.0.0", | ||
"import-from": "^4.0.0", | ||
"import-from-esm": "^1.0.3", | ||
"into-stream": "^7.0.0", | ||
"lodash-es": "^4.17.21", | ||
"read-pkg-up": "^10.0.0" | ||
"read-pkg-up": "^11.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "5.3.1", | ||
"c8": "8.0.0", | ||
"conventional-changelog-atom": "3.0.0", | ||
"conventional-changelog-conventionalcommits": "6.1.0", | ||
"conventional-changelog-ember": "3.0.0", | ||
"conventional-changelog-eslint": "4.0.0", | ||
"conventional-changelog-express": "3.0.0", | ||
"conventional-changelog-jshint": "3.0.0", | ||
"c8": "8.0.1", | ||
"conventional-changelog-atom": "4.0.0", | ||
"conventional-changelog-conventionalcommits": "7.0.2", | ||
"conventional-changelog-ember": "4.0.0", | ||
"conventional-changelog-eslint": "5.0.0", | ||
"conventional-changelog-express": "4.0.0", | ||
"conventional-changelog-jshint": "4.0.0", | ||
"escape-string-regexp": "5.0.0", | ||
"fs-extra": "11.1.1", | ||
"prettier": "2.8.8", | ||
"semantic-release": "21.0.6", | ||
"prettier": "3.0.3", | ||
"semantic-release": "22.0.7", | ||
"sinon": "16.1.0", | ||
"stream-buffers": "3.0.2", | ||
"tempy": "3.0.0", | ||
"testdouble": "3.18.0" | ||
"tempy": "3.1.0", | ||
"testdouble": "3.20.0" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
"node": "^18.17 || >=20.6.1" | ||
}, | ||
@@ -96,4 +97,4 @@ "files": [ | ||
"semantic-release": "semantic-release", | ||
"test": "c8 ava -v", | ||
"test:ci": "c8 ava -v" | ||
"test": "c8 ava --verbose", | ||
"test:ci": "c8 ava --verbose" | ||
}, | ||
@@ -100,0 +101,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33551
16
178
+ Addedimport-from-esm@^1.0.3
+ Addedconventional-changelog-angular@7.0.0(transitive)
+ Addedconventional-changelog-writer@7.0.1(transitive)
+ Addedconventional-commits-filter@4.0.0(transitive)
+ Addedconventional-commits-parser@5.0.0(transitive)
+ Addedis-text-path@2.0.0(transitive)
+ Addedmeow@12.1.1(transitive)
+ Addedread-pkg-up@11.0.0(transitive)
+ Addedsplit2@4.2.0(transitive)
+ Addedtext-extensions@2.4.0(transitive)
- Removedimport-from@^4.0.0
- Removed@types/minimist@1.2.5(transitive)
- Removedarrify@1.0.1(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcamelcase-keys@6.2.2(transitive)
- Removedconventional-changelog-angular@6.0.0(transitive)
- Removedconventional-changelog-writer@6.0.1(transitive)
- Removedconventional-commits-filter@3.0.0(transitive)
- Removedconventional-commits-parser@4.0.0(transitive)
- Removeddateformat@3.0.3(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddecamelize-keys@1.1.1(transitive)
- Removedfind-up@4.1.06.3.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedhard-rejection@2.1.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.94.1.0(transitive)
- Removedimport-from@4.0.0(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-plain-obj@1.1.0(transitive)
- Removedis-text-path@1.0.1(transitive)
- Removedjson-parse-even-better-errors@3.0.2(transitive)
- Removedkind-of@6.0.3(transitive)
- Removedlines-and-columns@2.0.4(transitive)
- Removedlocate-path@5.0.07.2.0(transitive)
- Removedlodash.ismatch@4.4.0(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removedmap-obj@1.0.14.3.0(transitive)
- Removedmeow@8.1.2(transitive)
- Removedmin-indent@1.0.1(transitive)
- Removedminimist-options@4.1.0(transitive)
- Removedmodify-values@1.0.1(transitive)
- Removednormalize-package-data@2.5.03.0.3(transitive)
- Removedp-limit@2.3.04.0.0(transitive)
- Removedp-locate@4.1.06.0.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedparse-json@7.1.1(transitive)
- Removedpath-exists@4.0.05.0.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedquick-lru@4.0.1(transitive)
- Removedread-pkg@5.2.08.1.0(transitive)
- Removedread-pkg-up@10.1.07.0.1(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedredent@3.0.0(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsplit@1.0.1(transitive)
- Removedsplit2@3.2.2(transitive)
- Removedstrip-indent@3.0.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtext-extensions@1.9.0(transitive)
- Removedtrim-newlines@3.0.1(transitive)
- Removedtype-fest@0.6.00.8.13.13.1(transitive)
- Removedyallist@4.0.0(transitive)
- Removedyocto-queue@1.1.1(transitive)
Updatedread-pkg-up@^11.0.0