diff --git a/.releaserc.js b/.releaserc.js index 54112b7..53fa6cd 100644 --- a/.releaserc.js +++ b/.releaserc.js @@ -11,6 +11,27 @@ module.exports = { ], }, ], + [ + "@semantic-release/release-notes-generator", + { + preset: "conventionalcommits", + presetConfig: { + types: [ + { type: "feat", section: "Features" }, + { type: "fix", section: "Bug Fixes" }, + { type: "perf", section: "Performance Improvements" }, + { type: "revert", section: "Reverts" }, + { type: "docs", section: "Documentation" }, + { type: "style", section: "Styles" }, + { type: "chore", section: "Miscellaneous Chores" }, + { type: "refactor", section: "Code Refactoring" }, + { type: "test", section: "Tests", hidden: true }, + { type: "build", section: "Build System", hidden: true }, + { type: "ci", section: "Continuous Integration", hidden: true }, + ], + }, + }, + ], [ "@semantic-release/github", { diff --git a/package-lock.json b/package-lock.json index 55c3f3a..c331a06 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3585,15 +3585,16 @@ } }, "node_modules/conventional-changelog-conventionalcommits": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-7.0.2.tgz", - "integrity": "sha512-NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-8.0.0.tgz", + "integrity": "sha512-eOvlTO6OcySPyyyk8pKz2dP4jjElYunj9hn9/s0OB+gapTO8zwS9UQWrZ1pmF2hFs3vw1xhonOLGcGjy/zgsuA==", "dev": true, + "license": "ISC", "dependencies": { "compare-func": "^2.0.0" }, "engines": { - "node": ">=16" + "node": ">=18" } }, "node_modules/conventional-changelog-writer": { @@ -12910,7 +12911,7 @@ "dev": true, "requires": { "@commitlint/types": "^19.5.0", - "conventional-changelog-conventionalcommits": "^7.0.2" + "conventional-changelog-conventionalcommits": ">= 8.0.0" } }, "@commitlint/config-validator": { @@ -15159,9 +15160,9 @@ } }, "conventional-changelog-conventionalcommits": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-7.0.2.tgz", - "integrity": "sha512-NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-8.0.0.tgz", + "integrity": "sha512-eOvlTO6OcySPyyyk8pKz2dP4jjElYunj9hn9/s0OB+gapTO8zwS9UQWrZ1pmF2hFs3vw1xhonOLGcGjy/zgsuA==", "dev": true, "requires": { "compare-func": "^2.0.0" diff --git a/package.json b/package.json index 936aa09..c33d351 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,9 @@ "semantic-release": "^24.2.0", "sinon": "^19.0.2" }, + "overrides": { + "conventional-changelog-conventionalcommits": ">= 8.0.0" + }, "commitlint": { "extends": [ "@commitlint/config-conventional"