diff --git a/@alias/commitlint-config-angular/CHANGELOG.md b/@alias/commitlint-config-angular/CHANGELOG.md index adfed1e2de..da0a6acdac 100644 --- a/@alias/commitlint-config-angular/CHANGELOG.md +++ b/@alias/commitlint-config-angular/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package commitlint-config-angular + + + + + # [18.4.0](https://github.com/conventional-changelog/commitlint/compare/v18.3.0...v18.4.0) (2023-11-10) **Note:** Version bump only for package commitlint-config-angular diff --git a/@alias/commitlint-config-angular/package.json b/@alias/commitlint-config-angular/package.json index 421d6fcdd3..53fa3f1144 100644 --- a/@alias/commitlint-config-angular/package.json +++ b/@alias/commitlint-config-angular/package.json @@ -1,6 +1,6 @@ { "name": "commitlint-config-angular", - "version": "18.4.0", + "version": "18.4.2", "description": "Shareable commitlint config enforcing the angular commit convention", "files": [ "index.js" @@ -30,7 +30,7 @@ "node": ">=v18" }, "dependencies": { - "@commitlint/config-angular": "^18.4.0" + "@commitlint/config-angular": "^18.4.2" }, "devDependencies": { "@commitlint/utils": "^18.4.0" diff --git a/@alias/commitlint-config-patternplate/CHANGELOG.md b/@alias/commitlint-config-patternplate/CHANGELOG.md index 1ebfc5505b..bbdd33bfbb 100644 --- a/@alias/commitlint-config-patternplate/CHANGELOG.md +++ b/@alias/commitlint-config-patternplate/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package commitlint-config-patternplate + + + + + # [18.4.0](https://github.com/conventional-changelog/commitlint/compare/v18.3.0...v18.4.0) (2023-11-10) **Note:** Version bump only for package commitlint-config-patternplate diff --git a/@alias/commitlint-config-patternplate/package.json b/@alias/commitlint-config-patternplate/package.json index 1e04067d88..45bfdd5bc7 100644 --- a/@alias/commitlint-config-patternplate/package.json +++ b/@alias/commitlint-config-patternplate/package.json @@ -1,6 +1,6 @@ { "name": "commitlint-config-patternplate", - "version": "18.4.0", + "version": "18.4.2", "description": "Lint your commits, patternplate-style", "files": [ "index.js" @@ -30,7 +30,7 @@ "node": ">=v18" }, "dependencies": { - "@commitlint/config-patternplate": "^18.4.0" + "@commitlint/config-patternplate": "^18.4.2" }, "devDependencies": { "@commitlint/utils": "^18.4.0" diff --git a/@alias/commitlint/CHANGELOG.md b/@alias/commitlint/CHANGELOG.md index 8da9c9e922..7950e23af4 100644 --- a/@alias/commitlint/CHANGELOG.md +++ b/@alias/commitlint/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package commitlint + + + + + ## [18.4.1](https://github.com/conventional-changelog/commitlint/compare/v18.4.0...v18.4.1) (2023-11-12) **Note:** Version bump only for package commitlint diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json index 1c8112207a..f45e2f0fa8 100644 --- a/@alias/commitlint/package.json +++ b/@alias/commitlint/package.json @@ -1,6 +1,6 @@ { "name": "commitlint", - "version": "18.4.1", + "version": "18.4.2", "description": "Lint your commit messages", "files": [ "cli.js" @@ -35,7 +35,7 @@ }, "license": "MIT", "dependencies": { - "@commitlint/cli": "^18.4.1", + "@commitlint/cli": "^18.4.2", "@commitlint/types": "^18.4.0" }, "devDependencies": { diff --git a/@commitlint/cli/CHANGELOG.md b/@commitlint/cli/CHANGELOG.md index 543f1dcc92..aba1e515ec 100644 --- a/@commitlint/cli/CHANGELOG.md +++ b/@commitlint/cli/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/cli + + + + + ## [18.4.1](https://github.com/conventional-changelog/commitlint/compare/v18.4.0...v18.4.1) (2023-11-12) **Note:** Version bump only for package @commitlint/cli diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index 1eae5c7203..e8640f284e 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/cli", - "version": "18.4.1", + "version": "18.4.2", "description": "Lint your commit messages", "files": [ "index.js", @@ -48,8 +48,8 @@ }, "dependencies": { "@commitlint/format": "^18.4.0", - "@commitlint/lint": "^18.4.0", - "@commitlint/load": "^18.4.1", + "@commitlint/lint": "^18.4.2", + "@commitlint/load": "^18.4.2", "@commitlint/read": "^18.4.0", "@commitlint/types": "^18.4.0", "execa": "^5.0.0", diff --git a/@commitlint/config-angular/CHANGELOG.md b/@commitlint/config-angular/CHANGELOG.md index 22406f48db..33f0a7af5f 100644 --- a/@commitlint/config-angular/CHANGELOG.md +++ b/@commitlint/config-angular/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/config-angular + + + + + # [18.4.0](https://github.com/conventional-changelog/commitlint/compare/v18.3.0...v18.4.0) (2023-11-10) **Note:** Version bump only for package @commitlint/config-angular diff --git a/@commitlint/config-angular/package.json b/@commitlint/config-angular/package.json index d6b1339988..94aaf33403 100644 --- a/@commitlint/config-angular/package.json +++ b/@commitlint/config-angular/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/config-angular", - "version": "18.4.0", + "version": "18.4.2", "description": "Shareable commitlint config enforcing the angular commit convention", "files": [ "index.js" @@ -30,7 +30,7 @@ "node": ">=v18" }, "devDependencies": { - "@commitlint/lint": "^18.4.0", + "@commitlint/lint": "^18.4.2", "@commitlint/utils": "^18.4.0" }, "dependencies": { diff --git a/@commitlint/config-conventional/CHANGELOG.md b/@commitlint/config-conventional/CHANGELOG.md index b0bc823dbe..15c46ad4b7 100644 --- a/@commitlint/config-conventional/CHANGELOG.md +++ b/@commitlint/config-conventional/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + # [18.4.0](https://github.com/conventional-changelog/commitlint/compare/v18.3.0...v18.4.0) (2023-11-10) **Note:** Version bump only for package @commitlint/config-conventional diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json index df8fa71f88..ccdffc87b8 100644 --- a/@commitlint/config-conventional/package.json +++ b/@commitlint/config-conventional/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/config-conventional", - "version": "18.4.0", + "version": "18.4.2", "description": "Shareable commitlint config enforcing conventional commits", "files": [ "index.js" @@ -33,7 +33,7 @@ "node": ">=v18" }, "devDependencies": { - "@commitlint/lint": "^18.4.0", + "@commitlint/lint": "^18.4.2", "@commitlint/utils": "^18.4.0" }, "dependencies": { diff --git a/@commitlint/config-patternplate/CHANGELOG.md b/@commitlint/config-patternplate/CHANGELOG.md index bfb1c115f6..96e8189c1d 100644 --- a/@commitlint/config-patternplate/CHANGELOG.md +++ b/@commitlint/config-patternplate/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/config-patternplate + + + + + # [18.4.0](https://github.com/conventional-changelog/commitlint/compare/v18.3.0...v18.4.0) (2023-11-10) **Note:** Version bump only for package @commitlint/config-patternplate diff --git a/@commitlint/config-patternplate/package.json b/@commitlint/config-patternplate/package.json index 9e1f5c29f5..2e78437a37 100644 --- a/@commitlint/config-patternplate/package.json +++ b/@commitlint/config-patternplate/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/config-patternplate", - "version": "18.4.0", + "version": "18.4.2", "description": "Lint your commits, patternplate-style", "files": [ "index.js" @@ -30,7 +30,7 @@ "node": ">=v18" }, "dependencies": { - "@commitlint/config-angular": "^18.4.0", + "@commitlint/config-angular": "^18.4.2", "glob": "^8.0.3", "lodash.merge": "^4.6.2" }, diff --git a/@commitlint/core/CHANGELOG.md b/@commitlint/core/CHANGELOG.md index b151dc91c7..a8d65f6ba7 100644 --- a/@commitlint/core/CHANGELOG.md +++ b/@commitlint/core/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/core + + + + + ## [18.4.1](https://github.com/conventional-changelog/commitlint/compare/v18.4.0...v18.4.1) (2023-11-12) **Note:** Version bump only for package @commitlint/core diff --git a/@commitlint/core/package.json b/@commitlint/core/package.json index 693c9604e8..a3e99103f2 100644 --- a/@commitlint/core/package.json +++ b/@commitlint/core/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/core", - "version": "18.4.1", + "version": "18.4.2", "description": "Lint your commit messages", "main": "lib/core.js", "types": "lib/core.d.ts", @@ -36,8 +36,8 @@ "license": "MIT", "dependencies": { "@commitlint/format": "^18.4.0", - "@commitlint/lint": "^18.4.0", - "@commitlint/load": "^18.4.1", + "@commitlint/lint": "^18.4.2", + "@commitlint/load": "^18.4.2", "@commitlint/read": "^18.4.0" }, "devDependencies": { diff --git a/@commitlint/cz-commitlint/CHANGELOG.md b/@commitlint/cz-commitlint/CHANGELOG.md index 4ef119d1e3..45f6280186 100644 --- a/@commitlint/cz-commitlint/CHANGELOG.md +++ b/@commitlint/cz-commitlint/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/cz-commitlint + + + + + ## [18.4.1](https://github.com/conventional-changelog/commitlint/compare/v18.4.0...v18.4.1) (2023-11-12) **Note:** Version bump only for package @commitlint/cz-commitlint diff --git a/@commitlint/cz-commitlint/package.json b/@commitlint/cz-commitlint/package.json index 55ee4f2361..f45466636a 100644 --- a/@commitlint/cz-commitlint/package.json +++ b/@commitlint/cz-commitlint/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/cz-commitlint", - "version": "18.4.1", + "version": "18.4.2", "description": "Commitizen adapter using the commitlint.config.js", "main": "./lib/index.js", "files": [ @@ -38,7 +38,7 @@ }, "dependencies": { "@commitlint/ensure": "^18.4.0", - "@commitlint/load": "^18.4.1", + "@commitlint/load": "^18.4.2", "@commitlint/types": "^18.4.0", "chalk": "^4.1.0", "lodash.isplainobject": "^4.0.6", diff --git a/@commitlint/is-ignored/CHANGELOG.md b/@commitlint/is-ignored/CHANGELOG.md index e80f64d598..ccf2cebddc 100644 --- a/@commitlint/is-ignored/CHANGELOG.md +++ b/@commitlint/is-ignored/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/is-ignored + + + + + # [18.4.0](https://github.com/conventional-changelog/commitlint/compare/v18.3.0...v18.4.0) (2023-11-10) **Note:** Version bump only for package @commitlint/is-ignored diff --git a/@commitlint/is-ignored/package.json b/@commitlint/is-ignored/package.json index 5e2f6cc57e..3b0ca7176f 100644 --- a/@commitlint/is-ignored/package.json +++ b/@commitlint/is-ignored/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/is-ignored", - "version": "18.4.0", + "version": "18.4.2", "description": "Lint your commit messages", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/@commitlint/lint/CHANGELOG.md b/@commitlint/lint/CHANGELOG.md index 1c98d60f8f..13f5f8ea1d 100644 --- a/@commitlint/lint/CHANGELOG.md +++ b/@commitlint/lint/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/lint + + + + + # [18.4.0](https://github.com/conventional-changelog/commitlint/compare/v18.3.0...v18.4.0) (2023-11-10) **Note:** Version bump only for package @commitlint/lint diff --git a/@commitlint/lint/package.json b/@commitlint/lint/package.json index b75fef836b..dd7af702fa 100644 --- a/@commitlint/lint/package.json +++ b/@commitlint/lint/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/lint", - "version": "18.4.0", + "version": "18.4.2", "description": "Lint a string against commitlint rules", "main": "lib/lint.js", "types": "lib/lint.d.ts", @@ -39,7 +39,7 @@ "@commitlint/utils": "^18.4.0" }, "dependencies": { - "@commitlint/is-ignored": "^18.4.0", + "@commitlint/is-ignored": "^18.4.2", "@commitlint/parse": "^18.4.0", "@commitlint/rules": "^18.4.0", "@commitlint/types": "^18.4.0" diff --git a/@commitlint/load/CHANGELOG.md b/@commitlint/load/CHANGELOG.md index e4801904c1..efcf8ebed3 100644 --- a/@commitlint/load/CHANGELOG.md +++ b/@commitlint/load/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/load + + + + + ## [18.4.1](https://github.com/conventional-changelog/commitlint/compare/v18.4.0...v18.4.1) (2023-11-12) diff --git a/@commitlint/load/fixtures/basic-config/.commitlintrc b/@commitlint/load/fixtures/basic-config/.commitlintrc new file mode 100644 index 0000000000..c0c57253b1 --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/.commitlintrc @@ -0,0 +1,5 @@ +formatter: '@commitlint/format' +rules: + zero: [0, 'never'] + one: [1, 'always'] + two: [2, 'never'] \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/.commitlintrc.cjs b/@commitlint/load/fixtures/basic-config/.commitlintrc.cjs new file mode 100644 index 0000000000..2f37065f43 --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/.commitlintrc.cjs @@ -0,0 +1,8 @@ +module.exports = { + formatter: '@commitlint/format', + rules: { + zero: [0, 'never'], + one: [1, 'always'], + two: [2, 'never'], + }, +}; \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/.commitlintrc.js b/@commitlint/load/fixtures/basic-config/.commitlintrc.js new file mode 100644 index 0000000000..2f37065f43 --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/.commitlintrc.js @@ -0,0 +1,8 @@ +module.exports = { + formatter: '@commitlint/format', + rules: { + zero: [0, 'never'], + one: [1, 'always'], + two: [2, 'never'], + }, +}; \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/.commitlintrc.json b/@commitlint/load/fixtures/basic-config/.commitlintrc.json new file mode 100644 index 0000000000..df7c0e9b36 --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/.commitlintrc.json @@ -0,0 +1,8 @@ +{ + "formatter": "@commitlint/format", + "rules": { + "zero": [0, "never"], + "one": [1, "always"], + "two": [2, "never"] + } +} \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/.commitlintrc.yaml b/@commitlint/load/fixtures/basic-config/.commitlintrc.yaml new file mode 100644 index 0000000000..c0c57253b1 --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/.commitlintrc.yaml @@ -0,0 +1,5 @@ +formatter: '@commitlint/format' +rules: + zero: [0, 'never'] + one: [1, 'always'] + two: [2, 'never'] \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/.commitlintrc.yml b/@commitlint/load/fixtures/basic-config/.commitlintrc.yml new file mode 100644 index 0000000000..c0c57253b1 --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/.commitlintrc.yml @@ -0,0 +1,5 @@ +formatter: '@commitlint/format' +rules: + zero: [0, 'never'] + one: [1, 'always'] + two: [2, 'never'] \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/commitlint.config.cjs b/@commitlint/load/fixtures/basic-config/commitlint.config.cjs new file mode 100644 index 0000000000..2f37065f43 --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/commitlint.config.cjs @@ -0,0 +1,8 @@ +module.exports = { + formatter: '@commitlint/format', + rules: { + zero: [0, 'never'], + one: [1, 'always'], + two: [2, 'never'], + }, +}; \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/commitlint.config.js b/@commitlint/load/fixtures/basic-config/commitlint.config.js new file mode 100644 index 0000000000..2f37065f43 --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/commitlint.config.js @@ -0,0 +1,8 @@ +module.exports = { + formatter: '@commitlint/format', + rules: { + zero: [0, 'never'], + one: [1, 'always'], + two: [2, 'never'], + }, +}; \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/esm/.commitlintrc.js b/@commitlint/load/fixtures/basic-config/esm/.commitlintrc.js new file mode 100644 index 0000000000..fea4afc3ae --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/esm/.commitlintrc.js @@ -0,0 +1,8 @@ +export default { + formatter: '@commitlint/format', + rules: { + zero: [0, 'never'], + one: [1, 'always'], + two: [2, 'never'], + }, +}; \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/esm/.commitlintrc.mjs b/@commitlint/load/fixtures/basic-config/esm/.commitlintrc.mjs new file mode 100644 index 0000000000..fea4afc3ae --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/esm/.commitlintrc.mjs @@ -0,0 +1,8 @@ +export default { + formatter: '@commitlint/format', + rules: { + zero: [0, 'never'], + one: [1, 'always'], + two: [2, 'never'], + }, +}; \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/esm/commitlint.config.js b/@commitlint/load/fixtures/basic-config/esm/commitlint.config.js new file mode 100644 index 0000000000..fea4afc3ae --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/esm/commitlint.config.js @@ -0,0 +1,8 @@ +export default { + formatter: '@commitlint/format', + rules: { + zero: [0, 'never'], + one: [1, 'always'], + two: [2, 'never'], + }, +}; \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-config/esm/commitlint.config.mjs b/@commitlint/load/fixtures/basic-config/esm/commitlint.config.mjs new file mode 100644 index 0000000000..fea4afc3ae --- /dev/null +++ b/@commitlint/load/fixtures/basic-config/esm/commitlint.config.mjs @@ -0,0 +1,8 @@ +export default { + formatter: '@commitlint/format', + rules: { + zero: [0, 'never'], + one: [1, 'always'], + two: [2, 'never'], + }, +}; \ No newline at end of file diff --git a/@commitlint/load/fixtures/basic-template/package.json b/@commitlint/load/fixtures/basic-template/package.json new file mode 100644 index 0000000000..0cef8e445f --- /dev/null +++ b/@commitlint/load/fixtures/basic-template/package.json @@ -0,0 +1,3 @@ +{ + "name": "load-test-js" +} \ No newline at end of file diff --git a/@commitlint/load/fixtures/config/package.json b/@commitlint/load/fixtures/config/package.json deleted file mode 100644 index 72a2dd6652..0000000000 --- a/@commitlint/load/fixtures/config/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "commitlint": { - "extends": [ - "./first-extended" - ], - "rules": { - "zero": [ - 0, - "never" - ] - } - } -} \ No newline at end of file diff --git a/@commitlint/load/fixtures/config/.commitlintrc b/@commitlint/load/fixtures/extends-config/.commitlintrc similarity index 100% rename from @commitlint/load/fixtures/config/.commitlintrc rename to @commitlint/load/fixtures/extends-config/.commitlintrc diff --git a/@commitlint/load/fixtures/config/.commitlintrc.cjs b/@commitlint/load/fixtures/extends-config/.commitlintrc.cjs similarity index 100% rename from @commitlint/load/fixtures/config/.commitlintrc.cjs rename to @commitlint/load/fixtures/extends-config/.commitlintrc.cjs diff --git a/@commitlint/load/fixtures/config/.commitlintrc.js b/@commitlint/load/fixtures/extends-config/.commitlintrc.js similarity index 100% rename from @commitlint/load/fixtures/config/.commitlintrc.js rename to @commitlint/load/fixtures/extends-config/.commitlintrc.js diff --git a/@commitlint/load/fixtures/config/.commitlintrc.json b/@commitlint/load/fixtures/extends-config/.commitlintrc.json similarity index 100% rename from @commitlint/load/fixtures/config/.commitlintrc.json rename to @commitlint/load/fixtures/extends-config/.commitlintrc.json diff --git a/@commitlint/load/fixtures/config/.commitlintrc.yaml b/@commitlint/load/fixtures/extends-config/.commitlintrc.yaml similarity index 100% rename from @commitlint/load/fixtures/config/.commitlintrc.yaml rename to @commitlint/load/fixtures/extends-config/.commitlintrc.yaml diff --git a/@commitlint/load/fixtures/config/.commitlintrc.yml b/@commitlint/load/fixtures/extends-config/.commitlintrc.yml similarity index 100% rename from @commitlint/load/fixtures/config/.commitlintrc.yml rename to @commitlint/load/fixtures/extends-config/.commitlintrc.yml diff --git a/@commitlint/load/fixtures/config/commitlint.config.cjs b/@commitlint/load/fixtures/extends-config/commitlint.config.cjs similarity index 100% rename from @commitlint/load/fixtures/config/commitlint.config.cjs rename to @commitlint/load/fixtures/extends-config/commitlint.config.cjs diff --git a/@commitlint/load/fixtures/config/commitlint.config.js b/@commitlint/load/fixtures/extends-config/commitlint.config.js similarity index 100% rename from @commitlint/load/fixtures/config/commitlint.config.js rename to @commitlint/load/fixtures/extends-config/commitlint.config.js diff --git a/@commitlint/load/fixtures/config/.commitlintrc.mjs b/@commitlint/load/fixtures/extends-config/esm/.commitlintrc.js similarity index 100% rename from @commitlint/load/fixtures/config/.commitlintrc.mjs rename to @commitlint/load/fixtures/extends-config/esm/.commitlintrc.js diff --git a/@commitlint/load/fixtures/config/commitlint.config.mjs b/@commitlint/load/fixtures/extends-config/esm/.commitlintrc.mjs similarity index 100% rename from @commitlint/load/fixtures/config/commitlint.config.mjs rename to @commitlint/load/fixtures/extends-config/esm/.commitlintrc.mjs diff --git a/@commitlint/load/fixtures/extends-config/esm/commitlint.config.js b/@commitlint/load/fixtures/extends-config/esm/commitlint.config.js new file mode 100644 index 0000000000..bd3061cabb --- /dev/null +++ b/@commitlint/load/fixtures/extends-config/esm/commitlint.config.js @@ -0,0 +1,6 @@ +export default { + extends: ['./first-extended'], + rules: { + zero: [0, 'never'], + }, +}; \ No newline at end of file diff --git a/@commitlint/load/fixtures/extends-config/esm/commitlint.config.mjs b/@commitlint/load/fixtures/extends-config/esm/commitlint.config.mjs new file mode 100644 index 0000000000..bd3061cabb --- /dev/null +++ b/@commitlint/load/fixtures/extends-config/esm/commitlint.config.mjs @@ -0,0 +1,6 @@ +export default { + extends: ['./first-extended'], + rules: { + zero: [0, 'never'], + }, +}; \ No newline at end of file diff --git a/@commitlint/load/fixtures/recursive-extends-js-template/first-extended/index.js b/@commitlint/load/fixtures/extends-js-template/first-extended/index.js similarity index 100% rename from @commitlint/load/fixtures/recursive-extends-js-template/first-extended/index.js rename to @commitlint/load/fixtures/extends-js-template/first-extended/index.js diff --git a/@commitlint/load/fixtures/recursive-extends-js-template/first-extended/second-extended/index.js b/@commitlint/load/fixtures/extends-js-template/first-extended/second-extended/index.js similarity index 100% rename from @commitlint/load/fixtures/recursive-extends-js-template/first-extended/second-extended/index.js rename to @commitlint/load/fixtures/extends-js-template/first-extended/second-extended/index.js diff --git a/@commitlint/load/fixtures/extends-js-template/package.json b/@commitlint/load/fixtures/extends-js-template/package.json new file mode 100644 index 0000000000..0cef8e445f --- /dev/null +++ b/@commitlint/load/fixtures/extends-js-template/package.json @@ -0,0 +1,3 @@ +{ + "name": "load-test-js" +} \ No newline at end of file diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 5123b1299c..3363cc625c 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/load", - "version": "18.4.1", + "version": "18.4.2", "description": "Load shared commitlint configuration", "main": "lib/load.js", "types": "lib/load.d.ts", diff --git a/@commitlint/load/src/load.test.ts b/@commitlint/load/src/load.test.ts index c2b053689e..c4690774ef 100644 --- a/@commitlint/load/src/load.test.ts +++ b/@commitlint/load/src/load.test.ts @@ -188,41 +188,108 @@ test('respects cwd option', async () => { }); }); -const mjsConfigFiles = isDynamicAwaitSupported() - ? ['commitlint.config.mjs', '.commitlintrc.mjs'] - : []; +describe.each([['basic'], ['extends']])('%s config', (template) => { + const isExtendsTemplate = template === 'extends'; -test.each( - [ + const configFiles = [ 'commitlint.config.cjs', 'commitlint.config.js', + 'commitlint.config.mjs', 'package.json', '.commitlintrc', '.commitlintrc.cjs', '.commitlintrc.js', '.commitlintrc.json', + '.commitlintrc.mjs', '.commitlintrc.yml', '.commitlintrc.yaml', - ...mjsConfigFiles, - ].map((configFile) => [configFile]) -)('recursive extends with %s', async (configFile) => { - const cwd = await gitBootstrap(`fixtures/recursive-extends-js-template`); - const configPath = path.join(__dirname, `../fixtures/config/${configFile}`); - const config = readFileSync(configPath); - - writeFileSync(path.join(cwd, configFile), config); - - const actual = await load({}, {cwd}); - - expect(actual).toMatchObject({ - formatter: '@commitlint/format', - extends: ['./first-extended'], - plugins: {}, - rules: { - zero: [0, 'never'], - one: [1, 'always'], - two: [2, 'never'], - }, + ]; + + const configTestCases = [ + ...configFiles + .filter((filename) => !filename.endsWith('.mjs')) + .map((filename) => ({filename, isEsm: false})), + ...configFiles + .filter((filename) => + ['.mjs', '.js'].some((ext) => filename.endsWith(ext)) + ) + .map((filename) => ({filename, isEsm: true})), + ]; + + const getConfigContents = ({ + filename, + isEsm, + }): string | NodeJS.ArrayBufferView => { + if (filename === 'package.json') { + const configPath = path.join( + __dirname, + `../fixtures/${template}-config/.commitlintrc.json` + ); + const commitlint = JSON.parse( + readFileSync(configPath, {encoding: 'utf-8'}) + ); + return JSON.stringify({commitlint}); + } else { + const filePath = ['..', 'fixtures', `${template}-config`, filename]; + + if (isEsm) { + filePath.splice(3, 0, 'esm'); + } + + const configPath = path.join(__dirname, filePath.join('/')); + return readFileSync(configPath); + } + }; + + const esmBootstrap = (cwd: string) => { + const packageJsonPath = path.join(cwd, 'package.json'); + const packageJSON = JSON.parse( + readFileSync(packageJsonPath, {encoding: 'utf-8'}) + ); + + writeFileSync( + packageJsonPath, + JSON.stringify({ + ...packageJSON, + type: 'module', + }) + ); + }; + + const templateFolder = [template, isExtendsTemplate ? 'js' : '', 'template'] + .filter((elem) => elem) + .join('-'); + + it.each( + configTestCases + // Skip ESM tests for the extends suite until resolve-extends supports ESM + .filter(({isEsm}) => template !== 'extends' || !isEsm) + // Skip ESM tests if dynamic await is not supported; Jest will crash with a seg fault error + .filter(({isEsm}) => isDynamicAwaitSupported() || !isEsm) + )('$filename, ESM: $isEsm', async ({filename, isEsm}) => { + const cwd = await gitBootstrap(`fixtures/${templateFolder}`); + + if (isEsm) { + esmBootstrap(cwd); + } + + writeFileSync( + path.join(cwd, filename), + getConfigContents({filename, isEsm}) + ); + + const actual = await load({}, {cwd}); + + expect(actual).toMatchObject({ + formatter: '@commitlint/format', + extends: isExtendsTemplate ? ['./first-extended'] : [], + plugins: {}, + rules: { + zero: [0, 'never'], + one: [1, 'always'], + two: [2, 'never'], + }, + }); }); }); diff --git a/@commitlint/load/src/utils/load-config.ts b/@commitlint/load/src/utils/load-config.ts index e08353d8c4..9d4a9b8728 100644 --- a/@commitlint/load/src/utils/load-config.ts +++ b/@commitlint/load/src/utils/load-config.ts @@ -1,10 +1,11 @@ import { cosmiconfig, defaultLoadersSync, - Options, type Loader, + defaultLoaders, } from 'cosmiconfig'; import {TypeScriptLoader} from 'cosmiconfig-typescript-loader'; +import {existsSync, readFileSync} from 'fs'; import path from 'path'; export interface LoadConfigResult { @@ -27,7 +28,12 @@ export async function loadConfig( return tsLoaderInstance(...args); }; - const {searchPlaces, loaders} = getDynamicAwaitConfig(); + // If dynamic await is supported (Node >= v20.8.0) or directory uses ESM, support + // async js/cjs loaders (dynamic import). Otherwise, use synchronous js/cjs loaders. + const loaders = + isDynamicAwaitSupported() || isEsmModule(cwd) + ? defaultLoaders + : defaultLoadersSync; const explorer = cosmiconfig(moduleName, { searchPlaces: [ @@ -40,22 +46,22 @@ export async function loadConfig( `.${moduleName}rc.yml`, `.${moduleName}rc.js`, `.${moduleName}rc.cjs`, + `.${moduleName}rc.mjs`, `${moduleName}.config.js`, `${moduleName}.config.cjs`, + `${moduleName}.config.mjs`, // files supported by TypescriptLoader `.${moduleName}rc.ts`, `.${moduleName}rc.cts`, `${moduleName}.config.ts`, `${moduleName}.config.cts`, - - ...(searchPlaces || []), ], loaders: { '.ts': tsLoader, '.cts': tsLoader, - - ...(loaders || {}), + '.cjs': loaders['.cjs'], + '.js': loaders['.js'], }, }); @@ -71,7 +77,7 @@ export async function loadConfig( return null; } -// See the following issues for more context: +// See the following issues for more context, contributing to failing Jest tests: // - Issue: https://github.com/nodejs/node/issues/40058 // - Resolution: https://github.com/nodejs/node/pull/48510 (Node v20.8.0) export const isDynamicAwaitSupported = () => { @@ -83,18 +89,14 @@ export const isDynamicAwaitSupported = () => { return major >= 20 && minor >= 8; }; -// If dynamic await is supported (Node >= v20.8.0), support mjs config. -// Otherwise, don't support mjs and use synchronous js/cjs loaders. -export const getDynamicAwaitConfig = (): Partial => - isDynamicAwaitSupported() - ? { - searchPlaces: [`.${moduleName}rc.mjs`, `${moduleName}.config.mjs`], - loaders: {}, - } - : { - searchPlaces: [], - loaders: { - '.cjs': defaultLoadersSync['.cjs'], - '.js': defaultLoadersSync['.js'], - }, - }; +// Is the given directory set up to use ESM (ECMAScript Modules)? +export const isEsmModule = (cwd: string) => { + const packagePath = path.join(cwd, 'package.json'); + + if (!existsSync(packagePath)) { + return false; + } + + const packageJSON = readFileSync(packagePath, {encoding: 'utf-8'}); + return JSON.parse(packageJSON)?.type === 'module'; +}; diff --git a/@commitlint/prompt-cli/CHANGELOG.md b/@commitlint/prompt-cli/CHANGELOG.md index 61db754a80..50f6ef0f18 100644 --- a/@commitlint/prompt-cli/CHANGELOG.md +++ b/@commitlint/prompt-cli/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/prompt-cli + + + + + ## [18.4.1](https://github.com/conventional-changelog/commitlint/compare/v18.4.0...v18.4.1) (2023-11-12) **Note:** Version bump only for package @commitlint/prompt-cli diff --git a/@commitlint/prompt-cli/package.json b/@commitlint/prompt-cli/package.json index e5a680edaf..35e885a5d6 100644 --- a/@commitlint/prompt-cli/package.json +++ b/@commitlint/prompt-cli/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/prompt-cli", - "version": "18.4.1", + "version": "18.4.2", "description": "commit prompt using commitlint.config.js", "files": [ "cli.js" @@ -36,7 +36,7 @@ "@commitlint/utils": "^18.4.0" }, "dependencies": { - "@commitlint/prompt": "^18.4.1", + "@commitlint/prompt": "^18.4.2", "execa": "^5.0.0", "inquirer": "^6.5.2" }, diff --git a/@commitlint/prompt/CHANGELOG.md b/@commitlint/prompt/CHANGELOG.md index 39f64caa08..fa56cf4b97 100644 --- a/@commitlint/prompt/CHANGELOG.md +++ b/@commitlint/prompt/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/prompt + + + + + ## [18.4.1](https://github.com/conventional-changelog/commitlint/compare/v18.4.0...v18.4.1) (2023-11-12) **Note:** Version bump only for package @commitlint/prompt diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index 3ed2cf25ca..634d13cbdf 100644 --- a/@commitlint/prompt/package.json +++ b/@commitlint/prompt/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/prompt", - "version": "18.4.1", + "version": "18.4.2", "description": "commitizen prompt using commitlint.config.js", "main": "./lib/index.js", "files": [ @@ -37,7 +37,7 @@ "node": ">=v18" }, "devDependencies": { - "@commitlint/config-angular": "^18.4.0", + "@commitlint/config-angular": "^18.4.2", "@commitlint/types": "^14.0.0", "@commitlint/utils": "^18.4.0", "@types/inquirer": "^6.5.0", @@ -46,7 +46,7 @@ }, "dependencies": { "@commitlint/ensure": "^18.4.0", - "@commitlint/load": "^18.4.1", + "@commitlint/load": "^18.4.2", "@commitlint/types": "^18.4.0", "chalk": "^4.1.0", "inquirer": "^6.5.2" diff --git a/@commitlint/travis-cli/CHANGELOG.md b/@commitlint/travis-cli/CHANGELOG.md index c8ae2f1fe2..f2dac9c16a 100644 --- a/@commitlint/travis-cli/CHANGELOG.md +++ b/@commitlint/travis-cli/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + +**Note:** Version bump only for package @commitlint/travis-cli + + + + + ## [18.4.1](https://github.com/conventional-changelog/commitlint/compare/v18.4.0...v18.4.1) (2023-11-12) **Note:** Version bump only for package @commitlint/travis-cli diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index 25731f7302..9b35d0e1d0 100644 --- a/@commitlint/travis-cli/package.json +++ b/@commitlint/travis-cli/package.json @@ -1,6 +1,6 @@ { "name": "@commitlint/travis-cli", - "version": "18.4.1", + "version": "18.4.2", "description": "Lint all relevant commits for a change or PR on Travis CI", "files": [ "lib/", @@ -40,7 +40,7 @@ "@commitlint/utils": "^18.4.0" }, "dependencies": { - "@commitlint/cli": "^18.4.1", + "@commitlint/cli": "^18.4.2", "execa": "^5.0.0" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" diff --git a/@packages/utils/package.json b/@packages/utils/package.json index dcd1cb56fc..aec7cf505c 100644 --- a/@packages/utils/package.json +++ b/@packages/utils/package.json @@ -43,7 +43,7 @@ "dependencies": { "execa": "^5.0.0", "fs-extra": "^11.0.0", - "read-pkg": "9.0.0", + "read-pkg": "9.0.1", "require-from-string": "2.0.2", "tar-fs": "3.0.4", "tmp": "0.2.1", diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c3de50ff0..6e8685134a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [18.4.2](https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2) (2023-11-16) + + +### Bug Fixes + +* update dependency @types/fs-extra to v11.0.4 ([#3767](https://github.com/conventional-changelog/commitlint/issues/3767)) ([f6c4696](https://github.com/conventional-changelog/commitlint/commit/f6c46962a7c77f86953f3a2285427caeeedc2472)) +* update dependency @types/tmp to v0.2.6 ([#3769](https://github.com/conventional-changelog/commitlint/issues/3769)) ([bc849bc](https://github.com/conventional-changelog/commitlint/commit/bc849bc0b123ec4a70e08449b7d010fdc6bcfdd7)) + + + + + ## [18.4.1](https://github.com/conventional-changelog/commitlint/compare/v18.4.0...v18.4.1) (2023-11-12) diff --git a/README.md b/README.md index a70bc84e67..576f27117b 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ ## Contents - [What is commitlint](#what-is-commitlint) - - [Benefits using commitlint](#benefits-using-commitlint) + - [Benefits of using commitlint](#benefits-using-commitlint) - [Getting started](#getting-started) - [CLI](#cli) - [Config](#config) @@ -76,7 +76,7 @@ Common types according to [commitlint-config-conventional (based on the Angular These can be modified by [your own configuration](#config). -### Benefits using commitlint +### Benefits of using commitlint - [Why Use Conventional Commits?](https://www.conventionalcommits.org/en/v1.0.0-beta.2/#why-use-conventional-commits) - ["The perks of committing with conventions" (Talk slides)](https://slides.com/marionebl/the-perks-of-committing-with-conventions#/) @@ -142,12 +142,12 @@ Check the [husky documentation](https://typicode.github.io/husky/#/?id=manual) o - `.commitlintrc.yml` - `.commitlintrc.js` - `.commitlintrc.cjs` - - `.commitlintrc.mjs` (Node >= v20.8.0) + - `.commitlintrc.mjs` - `.commitlintrc.ts` - `.commitlintrc.cts` - `commitlint.config.js` - `commitlint.config.cjs` - - `commitlint.config.mjs` (Node >= v20.8.0) + - `commitlint.config.mjs` - `commitlint.config.ts` - `commitlint.config.cts` - `commitlint` field in `package.json` @@ -191,7 +191,7 @@ Check the [main website](https://commitlint.js.org/). ## Roadmap -`commitlint` is considered stable and is used in various projects as development tool. +`commitlint` is considered stable and is used in various projects as a development tool. > **Ideas**: [conventional-changelog/commitlint#94](https://github.com/conventional-changelog/commitlint/issues/94) @@ -205,16 +205,16 @@ Check the [main website](https://commitlint.js.org/). Security patches will be applied to versions which are not yet EOL.\ Features will only be applied to the current main version. -| Release | Inital release | -| -------------------------------------------------------------------------------- | -------------- | -| [v18](https://github.com/conventional-changelog/commitlint/releases/tag/v18.0.0) | 10/2023 | -| [v17](https://github.com/conventional-changelog/commitlint/releases/tag/v17.0.0) | 05/2022 | -| [v16](https://github.com/conventional-changelog/commitlint/releases/tag/v16.0.0) | 12/2021 | -| [v15](https://github.com/conventional-changelog/commitlint/releases/tag/v15.0.0) | 11/2021 | -| [v14](https://github.com/conventional-changelog/commitlint/releases/tag/v14.0.0) | 10/2021 | -| [v13](https://github.com/conventional-changelog/commitlint/releases/tag/v13.0.0) | 05/2021 | -| [v12](https://github.com/conventional-changelog/commitlint/releases/tag/v12.0.0) | 02/2021 | -| [v11](https://github.com/conventional-changelog/commitlint/releases/tag/v11.0.0) | 09/2020 | +| Release | Initial release | +| -------------------------------------------------------------------------------- | --------------- | +| [v18](https://github.com/conventional-changelog/commitlint/releases/tag/v18.0.0) | 10/2023 | +| [v17](https://github.com/conventional-changelog/commitlint/releases/tag/v17.0.0) | 05/2022 | +| [v16](https://github.com/conventional-changelog/commitlint/releases/tag/v16.0.0) | 12/2021 | +| [v15](https://github.com/conventional-changelog/commitlint/releases/tag/v15.0.0) | 11/2021 | +| [v14](https://github.com/conventional-changelog/commitlint/releases/tag/v14.0.0) | 10/2021 | +| [v13](https://github.com/conventional-changelog/commitlint/releases/tag/v13.0.0) | 05/2021 | +| [v12](https://github.com/conventional-changelog/commitlint/releases/tag/v12.0.0) | 02/2021 | +| [v11](https://github.com/conventional-changelog/commitlint/releases/tag/v11.0.0) | 09/2020 | EOL is usually after around a year. @@ -285,11 +285,11 @@ yarn test yarn run publish --otp ``` -If something in between fails (like a new packages was added and needs to be published for the -first time but you forgot) you can use `lerna publish from-package` to publish anythign that +If something in between fails (like a new package was added and needs to be published for the +first time but you forgot) you can use `lerna publish from-package` to publish anything that has not been published yet. -#### Create Github release +#### Create GitHub release 1. Copy changelog entry for the new version 1. Create release for the new tag: https://github.com/conventional-changelog/commitlint/releases diff --git a/docs/guides-ci-setup.md b/docs/guides-ci-setup.md index 870fa924ab..8325e7b613 100644 --- a/docs/guides-ci-setup.md +++ b/docs/guides-ci-setup.md @@ -102,7 +102,7 @@ jobs: - attach_workspace: at: ~/project - run: - name: Define environment variable with lastest commit's message + name: Define environment variable with latest commit's message command: | echo 'export COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")' >> $BASH_ENV source $BASH_ENV diff --git a/docs/guides-releases.md b/docs/guides-releases.md index 55e9f50fa8..053bede855 100644 --- a/docs/guides-releases.md +++ b/docs/guides-releases.md @@ -3,13 +3,7 @@ Security patches will be applied to versions which are not yet EOL. Features will only be applied to the current main version. -| Release | Inital release | End-of-life | -| -------------------------------------------------------------------------------- | -------------- | ----------- | -| [v13](https://github.com/conventional-changelog/commitlint/releases/tag/v13.0.0) | 24.05.2021 | 24.05.2022 | -| [v12](https://github.com/conventional-changelog/commitlint/releases/tag/v12.0.0) | 23.02.2021 | 23.02.2022 | -| [v11](https://github.com/conventional-changelog/commitlint/releases/tag/v11.0.0) | 13.09.2020 | 13.09.2020 | - -_Dates are subject to change._ - -We're not a sponsored OSS project. Therefor we can't promise that we will release patch versions for older releases in a timley manner. +We're not a sponsored OSS project. Therefore we can't promise that we will release patch versions for older releases in a timely manner. If you are stuck on an older version and need a security patch we're happy if you can provide a PR. + +For a list of releases check our [README](https://github.com/conventional-changelog/commitlint#releases) diff --git a/docs/reference-api.md b/docs/reference-api.md index 794ceb3315..aa701f61cd 100644 --- a/docs/reference-api.md +++ b/docs/reference-api.md @@ -446,7 +446,7 @@ read({to: 'HEAD', from: 'HEAD~2'}).then((commits) => ); ``` -- **Simplfied last-commit checker** +- **Simplified last-commit checker** ```js const load = require('@commitlint/load').default; diff --git a/docs/reference-community-projects.md b/docs/reference-community-projects.md index 9586f41c5d..c68a2d9c3b 100644 --- a/docs/reference-community-projects.md +++ b/docs/reference-community-projects.md @@ -11,7 +11,7 @@ If you want to add a project to this list [open a pull request](https://github.c ## List of Projects - [Gitmoji Commit Workflow](https://github.com/arvinxx/gitmoji-commit-workflow) -- [commitlint.io](https://github.com/tomasen/commitlintio) - helps your project to ensures nice and tidy commit messages without needing any download or installation +- [commitlint.io](https://github.com/tomasen/commitlintio) - helps your project to ensure nice and tidy commit messages without needing any download or installation - [commitlint plugin function rules](https://github.com/vidavidorra/commitlint-plugin-function-rules) - use functions as rule value to create rules based on commit messages, with regular expressions and more - [commitlint-plugin-selective-scope](https://github.com/ridvanaltun/commitlint-plugin-selective-scope) - limit scopes per type with regular expressions and plain text - [commitlint-gitlab-ci](https://gitlab.com/dmoonfire/commitlint-gitlab-ci/) - a small wrapper around `commitlint` for working with the quirks of Gitlab's CI without failing jobs diff --git a/docs/reference-prompt.md b/docs/reference-prompt.md index 34a0f9ddba..34ae6ea799 100644 --- a/docs/reference-prompt.md +++ b/docs/reference-prompt.md @@ -9,22 +9,22 @@ There are three fields: `settings`, `messages` and `questions` Set optional options. - `enableMultipleScopes`: `(boolean)` Enable multiple scopes, select scope with a radio list, disabled by default. -- `scopeEnumSeparator`: `(string)` Commitlint supports [multiple scopes](./concepts-commit-conventions.md?id=multiple-scopes), you can specify the delimiter.It is applied when `enableMultipleScopes` set true. +- `scopeEnumSeparator`: `(string)` Commitlint supports [multiple scopes](./concepts-commit-conventions.md?id=multiple-scopes), you can specify the delimiter. It is applied when `enableMultipleScopes` set true. ## `messages` Set hint contents, you can configure it to support localization. -- `skip`: The field can be skip by enter +- `skip`: The field can be skipped by pressing enter - `max`: Maximum number of characters - `min`: Minimum number of characters -- `emptyWarning`: The field can not be empty -- `upperLimitWarning`: The characters limit is exceeded -- `lowerLimitWarning`: The characters is less than lower limit +- `emptyWarning`: The field cannot be empty +- `upperLimitWarning`: The character limit is exceeded +- `lowerLimitWarning`: The characters are less than lower limit ## `questions` -Specify the interactive steps, Steps can only be configure in +Specify the interactive steps, Steps can only be configured in - `header` - `type` diff --git a/lerna.json b/lerna.json index eee49ef575..b2995231b8 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,5 @@ "lerna": "4", "npmClient": "yarn", "useWorkspaces": true, - "version": "18.4.1" + "version": "18.4.2" } diff --git a/yarn.lock b/yarn.lock index ff4e0f9b97..38e61d2d80 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1904,7 +1904,12 @@ expect "^29.0.0" pretty-format "^29.0.0" -"@types/json-schema@^7.0.12", "@types/json-schema@^7.0.9": +"@types/json-schema@^7.0.12": + version "7.0.15" + resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== + +"@types/json-schema@^7.0.9": version "7.0.14" resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.14.tgz#74a97a5573980802f32c8e47b663530ab3b6b7d1" integrity sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw== @@ -2035,12 +2040,12 @@ resolved "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.1.tgz#27f7559836ad796cea31acb63163b203756a5b4e" integrity sha512-3YmXzzPAdOTVljVMkTMBdBEvlOLg2cDQaDhnnhT3nT9uDbnJzjWhKlzb+desT12Y7tGqaN6d+AbozcKzyL36Ng== -"@types/semver@7.5.5": +"@types/semver@7.5.5", "@types/semver@^7.5.0": version "7.5.5" resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.5.tgz#deed5ab7019756c9c90ea86139106b0346223f35" integrity sha512-+d+WYC1BxJ6yVOgUgzK8gWvp5qF8ssV5r4nsDcZWKRWcDQLQ619tvWAxJQYGgBrO1MnLJC7a5GtiYsAoQ47dJg== -"@types/semver@^7.3.12", "@types/semver@^7.5.0": +"@types/semver@^7.3.12": version "7.5.4" resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.4.tgz#0a41252ad431c473158b22f9bfb9a63df7541cff" integrity sha512-MMzuxN3GdFwskAnb6fz0orFvhfqi752yjaXylr0Rp4oDg5H0Zn1IuyRhDVvYOwAXoJirx2xuS16I3WjxnAIHiQ== @@ -2082,15 +2087,15 @@ "@types/yargs-parser" "*" "@typescript-eslint/eslint-plugin@^6.8.0": - version "6.10.0" - resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.10.0.tgz#cfe2bd34e26d2289212946b96ab19dcad64b661a" - integrity sha512-uoLj4g2OTL8rfUQVx2AFO1hp/zja1wABJq77P6IclQs6I/m9GLrm7jCdgzZkvWdDCQf1uEvoa8s8CupsgWQgVg== + version "6.11.0" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.11.0.tgz#52aae65174ff526576351f9ccd41cea01001463f" + integrity sha512-uXnpZDc4VRjY4iuypDBKzW1rz9T5YBBK0snMn8MaTSNd2kMlj50LnLBABELjJiOL5YHk7ZD8hbSpI9ubzqYI0w== dependencies: "@eslint-community/regexpp" "^4.5.1" - "@typescript-eslint/scope-manager" "6.10.0" - "@typescript-eslint/type-utils" "6.10.0" - "@typescript-eslint/utils" "6.10.0" - "@typescript-eslint/visitor-keys" "6.10.0" + "@typescript-eslint/scope-manager" "6.11.0" + "@typescript-eslint/type-utils" "6.11.0" + "@typescript-eslint/utils" "6.11.0" + "@typescript-eslint/visitor-keys" "6.11.0" debug "^4.3.4" graphemer "^1.4.0" ignore "^5.2.4" @@ -2099,14 +2104,14 @@ ts-api-utils "^1.0.1" "@typescript-eslint/parser@^6.8.0": - version "6.10.0" - resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.10.0.tgz#578af79ae7273193b0b6b61a742a2bc8e02f875a" - integrity sha512-+sZwIj+s+io9ozSxIWbNB5873OSdfeBEH/FR0re14WLI6BaKuSOnnwCJ2foUiu8uXf4dRp1UqHP0vrZ1zXGrog== - dependencies: - "@typescript-eslint/scope-manager" "6.10.0" - "@typescript-eslint/types" "6.10.0" - "@typescript-eslint/typescript-estree" "6.10.0" - "@typescript-eslint/visitor-keys" "6.10.0" + version "6.11.0" + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.11.0.tgz#9640d9595d905f3be4f278bf515130e6129b202e" + integrity sha512-+whEdjk+d5do5nxfxx73oanLL9ghKO3EwM9kBCkUtWMRwWuPaFv9ScuqlYfQ6pAD6ZiJhky7TZ2ZYhrMsfMxVQ== + dependencies: + "@typescript-eslint/scope-manager" "6.11.0" + "@typescript-eslint/types" "6.11.0" + "@typescript-eslint/typescript-estree" "6.11.0" + "@typescript-eslint/visitor-keys" "6.11.0" debug "^4.3.4" "@typescript-eslint/scope-manager@5.62.0": @@ -2117,21 +2122,21 @@ "@typescript-eslint/types" "5.62.0" "@typescript-eslint/visitor-keys" "5.62.0" -"@typescript-eslint/scope-manager@6.10.0": - version "6.10.0" - resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.10.0.tgz#b0276118b13d16f72809e3cecc86a72c93708540" - integrity sha512-TN/plV7dzqqC2iPNf1KrxozDgZs53Gfgg5ZHyw8erd6jd5Ta/JIEcdCheXFt9b1NYb93a1wmIIVW/2gLkombDg== +"@typescript-eslint/scope-manager@6.11.0": + version "6.11.0" + resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.11.0.tgz#621f603537c89f4d105733d949aa4d55eee5cea8" + integrity sha512-0A8KoVvIURG4uhxAdjSaxy8RdRE//HztaZdG8KiHLP8WOXSk0vlF7Pvogv+vlJA5Rnjj/wDcFENvDaHb+gKd1A== dependencies: - "@typescript-eslint/types" "6.10.0" - "@typescript-eslint/visitor-keys" "6.10.0" + "@typescript-eslint/types" "6.11.0" + "@typescript-eslint/visitor-keys" "6.11.0" -"@typescript-eslint/type-utils@6.10.0": - version "6.10.0" - resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.10.0.tgz#1007faede067c78bdbcef2e8abb31437e163e2e1" - integrity sha512-wYpPs3hgTFblMYwbYWPT3eZtaDOjbLyIYuqpwuLBBqhLiuvJ+9sEp2gNRJEtR5N/c9G1uTtQQL5AhV0fEPJYcg== +"@typescript-eslint/type-utils@6.11.0": + version "6.11.0" + resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.11.0.tgz#d0b8b1ab6c26b974dbf91de1ebc5b11fea24e0d1" + integrity sha512-nA4IOXwZtqBjIoYrJcYxLRO+F9ri+leVGoJcMW1uqr4r1Hq7vW5cyWrA43lFbpRvQ9XgNrnfLpIkO3i1emDBIA== dependencies: - "@typescript-eslint/typescript-estree" "6.10.0" - "@typescript-eslint/utils" "6.10.0" + "@typescript-eslint/typescript-estree" "6.11.0" + "@typescript-eslint/utils" "6.11.0" debug "^4.3.4" ts-api-utils "^1.0.1" @@ -2140,10 +2145,10 @@ resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f" integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ== -"@typescript-eslint/types@6.10.0": - version "6.10.0" - resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.10.0.tgz#f4f0a84aeb2ac546f21a66c6e0da92420e921367" - integrity sha512-36Fq1PWh9dusgo3vH7qmQAj5/AZqARky1Wi6WpINxB6SkQdY5vQoT2/7rW7uBIsPDcvvGCLi4r10p0OJ7ITAeg== +"@typescript-eslint/types@6.11.0": + version "6.11.0" + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.11.0.tgz#8ad3aa000cbf4bdc4dcceed96e9b577f15e0bf53" + integrity sha512-ZbEzuD4DwEJxwPqhv3QULlRj8KYTAnNsXxmfuUXFCxZmO6CF2gM/y+ugBSAQhrqaJL3M+oe4owdWunaHM6beqA== "@typescript-eslint/typescript-estree@5.62.0": version "5.62.0" @@ -2158,30 +2163,30 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/typescript-estree@6.10.0": - version "6.10.0" - resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.10.0.tgz#667381eed6f723a1a8ad7590a31f312e31e07697" - integrity sha512-ek0Eyuy6P15LJVeghbWhSrBCj/vJpPXXR+EpaRZqou7achUWL8IdYnMSC5WHAeTWswYQuP2hAZgij/bC9fanBg== +"@typescript-eslint/typescript-estree@6.11.0": + version "6.11.0" + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.11.0.tgz#7b52c12a623bf7f8ec7f8a79901b9f98eb5c7990" + integrity sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ== dependencies: - "@typescript-eslint/types" "6.10.0" - "@typescript-eslint/visitor-keys" "6.10.0" + "@typescript-eslint/types" "6.11.0" + "@typescript-eslint/visitor-keys" "6.11.0" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/utils@6.10.0": - version "6.10.0" - resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.10.0.tgz#4d76062d94413c30e402c9b0df8c14aef8d77336" - integrity sha512-v+pJ1/RcVyRc0o4wAGux9x42RHmAjIGzPRo538Z8M1tVx6HOnoQBCX/NoadHQlZeC+QO2yr4nNSFWOoraZCAyg== +"@typescript-eslint/utils@6.11.0": + version "6.11.0" + resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.11.0.tgz#11374f59ef4cea50857b1303477c08aafa2ca604" + integrity sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g== dependencies: "@eslint-community/eslint-utils" "^4.4.0" "@types/json-schema" "^7.0.12" "@types/semver" "^7.5.0" - "@typescript-eslint/scope-manager" "6.10.0" - "@typescript-eslint/types" "6.10.0" - "@typescript-eslint/typescript-estree" "6.10.0" + "@typescript-eslint/scope-manager" "6.11.0" + "@typescript-eslint/types" "6.11.0" + "@typescript-eslint/typescript-estree" "6.11.0" semver "^7.5.4" "@typescript-eslint/utils@^5.10.0": @@ -2206,12 +2211,12 @@ "@typescript-eslint/types" "5.62.0" eslint-visitor-keys "^3.3.0" -"@typescript-eslint/visitor-keys@6.10.0": - version "6.10.0" - resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.10.0.tgz#b9eaf855a1ac7e95633ae1073af43d451e8f84e3" - integrity sha512-xMGluxQIEtOM7bqFCo+rCMh5fqI+ZxV5RUUOa29iVPz1OgCZrtc7rFnz5cLUazlkPKYqX+75iuDq7m0HQ48nCg== +"@typescript-eslint/visitor-keys@6.11.0": + version "6.11.0" + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.11.0.tgz#d991538788923f92ec40d44389e7075b359f3458" + integrity sha512-+SUN/W7WjBr05uRxPggJPSzyB8zUpaYo2hByKasWbqr3PM8AXfZt8UHdNpBS1v9SA62qnSSMF3380SwDqqprgQ== dependencies: - "@typescript-eslint/types" "6.10.0" + "@typescript-eslint/types" "6.11.0" eslint-visitor-keys "^3.4.1" "@ungap/structured-clone@^1.2.0": @@ -7497,15 +7502,16 @@ read-pkg-up@^7.0.1: read-pkg "^5.2.0" type-fest "^0.8.1" -read-pkg@9.0.0: - version "9.0.0" - resolved "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.0.tgz#c8ea8e7405c4cfa2f990515a61207cb85f5258cd" - integrity sha512-SBoBio4xhJmlF4xs9IBliWZGSbDAnrOfQkLGL7xB+RYEUZNAN2LlNkzO45B7gc7c2dLMX987bhHAaJ/LG3efeQ== +read-pkg@9.0.1: + version "9.0.1" + resolved "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.1.tgz#b1b81fb15104f5dbb121b6bbdee9bbc9739f569b" + integrity sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA== dependencies: "@types/normalize-package-data" "^2.4.3" normalize-package-data "^6.0.0" parse-json "^8.0.0" type-fest "^4.6.0" + unicorn-magic "^0.1.0" read-pkg@^3.0.0: version "3.0.0" @@ -8651,6 +8657,11 @@ undici-types@~5.26.4: resolved "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== +unicorn-magic@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz#1bb9a51c823aaf9d73a8bfcd3d1a23dde94b0ce4" + integrity sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ== + unique-filename@^2.0.0: version "2.0.1" resolved "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz#e785f8675a9a7589e0ac77e0b5c34d2eaeac6da2"