diff --git a/.vscode/settings.json b/.vscode/settings.json index ddc00b3f..84a2b3ee 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,7 +14,9 @@ "conventionalCommits.scopes": [ "dotnet", "node", - "vscode" + "vscode", + "deps", + "deps-dev" ], "cSpell.words": [ "conventionalcommits", diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bf6ae9a..7779c792 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [2.4.1-develop.1](https://github.com/halospv3/hce.shared/compare/v2.4.0...v2.4.1-develop.1) (2024-05-31) + + +### Bug Fixes + +* :ambulance: bump braces to 3.0.3 ([c4a0948](https://github.com/halospv3/hce.shared/commit/c4a09484c3e7c2f0337453e3543e4b143d5d026c)) +* **deps:** :arrow_down: downgrade conventional-changelog-conventionalcommits ([7d7d418](https://github.com/halospv3/hce.shared/commit/7d7d418b072e57848207a7fcf368985adb76e016)), closes [#402](https://github.com/halospv3/hce.shared/issues/402) + ## [2.2.4](https://github.com/halospv3/hce.shared/compare/v2.2.3...v2.2.4) (2024-04-06) ## [2.2.3](https://github.com/halospv3/hce.shared/compare/v2.2.2...v2.2.3) (2024-03-29) diff --git a/package-lock.json b/package-lock.json index 128b24a3..72141d04 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "@types/semantic-release": "^20.0.6", "@typescript-eslint/eslint-plugin": "^7.10.0", "@typescript-eslint/parser": "^7.10.0", - "conventional-changelog-conventionalcommits": "^8.0.0", + "conventional-changelog-conventionalcommits": "^7.0.2", "debug": "^4.3.4", "eslint-plugin-jsonc": "^2.15.1", "globals": "^15.3.0", @@ -2573,17 +2573,6 @@ "node": ">=v18" } }, - "node_modules/@commitlint/config-conventional/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==", - "dependencies": { - "compare-func": "^2.0.0" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/@commitlint/config-validator": { "version": "19.0.3", "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-19.0.3.tgz", @@ -6430,14 +6419,15 @@ } }, "node_modules/conventional-changelog-conventionalcommits": { - "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==", + "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==", + "license": "ISC", "dependencies": { "compare-func": "^2.0.0" }, "engines": { - "node": ">=18" + "node": ">=16" } }, "node_modules/conventional-changelog-writer": { diff --git a/package.json b/package.json index da4b24bc..c0f2c09e 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "@types/semantic-release": "^20.0.6", "@typescript-eslint/eslint-plugin": "^7.10.0", "@typescript-eslint/parser": "^7.10.0", - "conventional-changelog-conventionalcommits": "^8.0.0", + "conventional-changelog-conventionalcommits": "^7.0.2", "debug": "^4.3.4", "eslint-plugin-jsonc": "^2.15.1", "globals": "^15.3.0", diff --git a/tests/commitlintConfig.test.ts b/tests/commitlintConfig.test.ts index e1b0f0dc..7d2a1d58 100644 --- a/tests/commitlintConfig.test.ts +++ b/tests/commitlintConfig.test.ts @@ -39,9 +39,15 @@ await describe("commitlintConfig", async () => { const config = await load(rawConfig); await it('has parserPreset', async () => { const preset = await createPreset(); + ok(preset); + ok(preset.parserOpts) ok(config.parserPreset); deepStrictEqual(config.parserPreset.name, commitLintConventional.parserPreset); - deepStrictEqual(config.parserPreset.parserOpts, preset.parser); + if ("parser" in preset) + deepStrictEqual(config.parserPreset.parserOpts, preset.parser); + else { + deepStrictEqual(config.parserPreset.parserOpts, preset.parserOpts) + } }); await it('has rules', async () => { deepStrictEqual(config.rules['body-leading-blank'], commitLintConventional.rules['body-leading-blank']);