diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.yml b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml index 2ab9c36039..67670dc8fd 100644 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT.yml +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml @@ -8,11 +8,14 @@ body: value: | Provide a general summary of the issue in the Title above - type: textarea - id: expected-behavior + id: steps-to-reproduce attributes: - label: 'Expected Behavior' - description: Tell us what should happen - placeholder: Short and explicit description of your incident... + label: 'Steps to Reproduce' + description: Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant + value: | + 1. First step + 2. Second step + render: bash validations: required: true - type: textarea @@ -22,6 +25,14 @@ body: description: Tell us what happens instead of the expected behavior validations: required: false + - type: textarea + id: expected-behavior + attributes: + label: 'Expected Behavior' + description: Tell us what should happen + placeholder: Short and explicit description of your incident... + validations: + required: true - type: checkboxes id: affected-packages attributes: @@ -38,17 +49,6 @@ body: description: Not obligatory, but suggest a fix/reason for the bug, or ideas how to implement the addition or change validations: required: false - - type: textarea - id: steps-to-reproduce - attributes: - label: 'Steps to Reproduce' - description: Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant - value: | - 1. First step - 2. Second step - render: bash - validations: - required: true - type: textarea id: context attributes: diff --git a/@alias/commitlint-config-angular/CHANGELOG.md b/@alias/commitlint-config-angular/CHANGELOG.md index a3d1edacd0..0973999532 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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package commitlint-config-angular + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@alias/commitlint-config-angular/package.json b/@alias/commitlint-config-angular/package.json index 38f5f5f50c..36df77ab10 100644 --- a/@alias/commitlint-config-angular/package.json +++ b/@alias/commitlint-config-angular/package.json @@ -1,7 +1,7 @@ { "name": "commitlint-config-angular", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Shareable commitlint config enforcing the angular commit convention", "files": [ "index.js" @@ -31,7 +31,7 @@ "node": ">=v18" }, "dependencies": { - "@commitlint/config-angular": "^19.0.0" + "@commitlint/config-angular": "^19.0.3" }, "devDependencies": { "@commitlint/utils": "^19.0.0" diff --git a/@alias/commitlint-config-nx-scopes/CHANGELOG.md b/@alias/commitlint-config-nx-scopes/CHANGELOG.md index f76d3a3f4d..8160cbeae7 100644 --- a/@alias/commitlint-config-nx-scopes/CHANGELOG.md +++ b/@alias/commitlint-config-nx-scopes/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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package commitlint-config-nx-scopes + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@alias/commitlint-config-nx-scopes/package.json b/@alias/commitlint-config-nx-scopes/package.json index d6ebe11586..ffae879120 100644 --- a/@alias/commitlint-config-nx-scopes/package.json +++ b/@alias/commitlint-config-nx-scopes/package.json @@ -1,7 +1,7 @@ { "name": "commitlint-config-nx-scopes", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Shareable commitlint config enforcing nx project names as scopes", "files": [ "index.js" @@ -31,7 +31,7 @@ "node": ">=v18" }, "dependencies": { - "@commitlint/config-nx-scopes": "^19.0.0" + "@commitlint/config-nx-scopes": "^19.0.3" }, "devDependencies": { "@commitlint/utils": "^19.0.0" diff --git a/@alias/commitlint-config-patternplate/CHANGELOG.md b/@alias/commitlint-config-patternplate/CHANGELOG.md index 0ae07e7715..e1e0a63de2 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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package commitlint-config-patternplate + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@alias/commitlint-config-patternplate/package.json b/@alias/commitlint-config-patternplate/package.json index 678c32f5a2..663a07c270 100644 --- a/@alias/commitlint-config-patternplate/package.json +++ b/@alias/commitlint-config-patternplate/package.json @@ -1,7 +1,7 @@ { "name": "commitlint-config-patternplate", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint your commits, patternplate-style", "files": [ "index.js" @@ -31,7 +31,7 @@ "node": ">=v18" }, "dependencies": { - "@commitlint/config-patternplate": "^19.0.0" + "@commitlint/config-patternplate": "^19.0.3" }, "devDependencies": { "@commitlint/utils": "^19.0.0" diff --git a/@alias/commitlint/CHANGELOG.md b/@alias/commitlint/CHANGELOG.md index 4b3d35ccec..856abf0821 100644 --- a/@alias/commitlint/CHANGELOG.md +++ b/@alias/commitlint/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package commitlint + + + + + +## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) + +**Note:** Version bump only for package commitlint + + + + + +## [19.0.1](https://github.com/conventional-changelog/commitlint/compare/v19.0.0...v19.0.1) (2024-02-27) + +**Note:** Version bump only for package commitlint + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json index f76d3245ee..402a956c69 100644 --- a/@alias/commitlint/package.json +++ b/@alias/commitlint/package.json @@ -1,7 +1,7 @@ { "name": "commitlint", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint your commit messages", "files": [ "cli.js" @@ -36,8 +36,8 @@ }, "license": "MIT", "dependencies": { - "@commitlint/cli": "^19.0.0", - "@commitlint/types": "^19.0.0" + "@commitlint/cli": "^19.0.3", + "@commitlint/types": "^19.0.3" }, "devDependencies": { "@commitlint/test": "^19.0.0", diff --git a/@commitlint/cli/CHANGELOG.md b/@commitlint/cli/CHANGELOG.md index 1f6b14d353..fd33bec5cc 100644 --- a/@commitlint/cli/CHANGELOG.md +++ b/@commitlint/cli/CHANGELOG.md @@ -3,6 +3,33 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/cli + + + + + +## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) + +**Note:** Version bump only for package @commitlint/cli + + + + + +## [19.0.1](https://github.com/conventional-changelog/commitlint/compare/v19.0.0...v19.0.1) (2024-02-27) + + +### Bug Fixes + +* drop `resolve-from`, `resolve-global` and `import-fresh`, resolve global packages correctly ([#3939](https://github.com/conventional-changelog/commitlint/issues/3939)) ([8793c63](https://github.com/conventional-changelog/commitlint/commit/8793c639c083c33714da0a29429b338776813d0c)), closes [#3938](https://github.com/conventional-changelog/commitlint/issues/3938) + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index b846aab378..87cad67eab 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/cli", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint your commit messages", "files": [ "index.cjs", @@ -48,14 +48,12 @@ "lodash.merge": "^4.6.2" }, "dependencies": { - "@commitlint/format": "^19.0.0", - "@commitlint/lint": "^19.0.0", - "@commitlint/load": "^19.0.0", - "@commitlint/read": "^19.0.0", - "@commitlint/types": "^19.0.0", + "@commitlint/format": "^19.0.3", + "@commitlint/lint": "^19.0.3", + "@commitlint/load": "^19.0.3", + "@commitlint/read": "^19.0.3", + "@commitlint/types": "^19.0.3", "execa": "^8.0.1", - "resolve-from": "^5.0.0", - "resolve-global": "^2.0.0", "yargs": "^17.0.0" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" diff --git a/@commitlint/cli/src/cli.ts b/@commitlint/cli/src/cli.ts index 367a5186d5..b871d2fa56 100644 --- a/@commitlint/cli/src/cli.ts +++ b/@commitlint/cli/src/cli.ts @@ -4,7 +4,7 @@ import {fileURLToPath, pathToFileURL} from 'url'; import util from 'util'; import lint from '@commitlint/lint'; -import load from '@commitlint/load'; +import load, {resolveFromSilent, resolveGlobalSilent} from '@commitlint/load'; import read from '@commitlint/read'; import type { Formatter, @@ -16,8 +16,6 @@ import type { } from '@commitlint/types'; import type {Options} from 'conventional-commits-parser'; import {execa, type ExecaError} from 'execa'; -import resolveFrom from 'resolve-from'; -import {resolveGlobalSilent} from 'resolve-global'; import yargs, {type Arguments} from 'yargs'; import {CliFlags} from './types.js'; @@ -458,8 +456,8 @@ function loadFormatter( ): Promise { const moduleName = flags.format || config.formatter || '@commitlint/format'; const modulePath = - resolveFrom.silent(__dirname, moduleName) || - resolveFrom.silent(flags.cwd, moduleName) || + resolveFromSilent(moduleName, __dirname) || + resolveFromSilent(moduleName, flags.cwd) || resolveGlobalSilent(moduleName); if (modulePath) { diff --git a/@commitlint/config-angular/CHANGELOG.md b/@commitlint/config-angular/CHANGELOG.md index 048adfe266..175890f037 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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/config-angular + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/config-angular/package.json b/@commitlint/config-angular/package.json index ee4ba3dd98..5314b26bfa 100644 --- a/@commitlint/config-angular/package.json +++ b/@commitlint/config-angular/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/config-angular", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Shareable commitlint config enforcing the angular commit convention", "main": "index.js", "files": [ @@ -32,7 +32,7 @@ "node": ">=v18" }, "devDependencies": { - "@commitlint/lint": "^19.0.0", + "@commitlint/lint": "^19.0.3", "@commitlint/utils": "^19.0.0" }, "dependencies": { diff --git a/@commitlint/config-conventional/CHANGELOG.md b/@commitlint/config-conventional/CHANGELOG.md index cb5d0a0680..dfcebeebc9 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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json index 95b13c058c..2744e160bb 100644 --- a/@commitlint/config-conventional/package.json +++ b/@commitlint/config-conventional/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/config-conventional", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Shareable commitlint config enforcing conventional commits", "main": "lib/index.js", "files": [ @@ -35,11 +35,11 @@ "node": ">=v18" }, "devDependencies": { - "@commitlint/lint": "^19.0.0", + "@commitlint/lint": "^19.0.3", "@commitlint/utils": "^19.0.0" }, "dependencies": { - "@commitlint/types": "^19.0.0", + "@commitlint/types": "^19.0.3", "conventional-changelog-conventionalcommits": "^7.0.2" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" diff --git a/@commitlint/config-nx-scopes/CHANGELOG.md b/@commitlint/config-nx-scopes/CHANGELOG.md index fec89c133a..739f8f0b61 100644 --- a/@commitlint/config-nx-scopes/CHANGELOG.md +++ b/@commitlint/config-nx-scopes/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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/config-nx-scopes + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/config-nx-scopes/package.json b/@commitlint/config-nx-scopes/package.json index 428c183fea..487c0b60e7 100644 --- a/@commitlint/config-nx-scopes/package.json +++ b/@commitlint/config-nx-scopes/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/config-nx-scopes", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Shareable commitlint config enforcing nx project names as scopes", "files": [ "index.js" @@ -39,7 +39,7 @@ "node": ">=v18" }, "dependencies": { - "@commitlint/types": "^19.0.0" + "@commitlint/types": "^19.0.3" }, "devDependencies": { "@commitlint/test": "^19.0.0", diff --git a/@commitlint/config-patternplate/CHANGELOG.md b/@commitlint/config-patternplate/CHANGELOG.md index b8b6036714..94ae5ead62 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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/config-patternplate + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/config-patternplate/package.json b/@commitlint/config-patternplate/package.json index 6d57263b80..136ba5b2e0 100644 --- a/@commitlint/config-patternplate/package.json +++ b/@commitlint/config-patternplate/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/config-patternplate", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint your commits, patternplate-style", "files": [ "index.js" @@ -31,7 +31,7 @@ "node": ">=v18" }, "dependencies": { - "@commitlint/config-angular": "^19.0.0", + "@commitlint/config-angular": "^19.0.3", "glob": "^10.3.10", "lodash.merge": "^4.6.2" }, diff --git a/@commitlint/config-validator/CHANGELOG.md b/@commitlint/config-validator/CHANGELOG.md index 3094525ffa..1f38610acf 100644 --- a/@commitlint/config-validator/CHANGELOG.md +++ b/@commitlint/config-validator/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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/config-validator + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/config-validator/package.json b/@commitlint/config-validator/package.json index 3229bfb183..5bdd59fa65 100644 --- a/@commitlint/config-validator/package.json +++ b/@commitlint/config-validator/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/config-validator", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "config validator for commitlint.config.js", "main": "lib/validate.js", "types": "lib/validate.d.ts", @@ -39,7 +39,7 @@ "@commitlint/utils": "^19.0.0" }, "dependencies": { - "@commitlint/types": "^19.0.0", + "@commitlint/types": "^19.0.3", "ajv": "^8.11.0" }, "gitHead": "d829bf6260304ca8d6811f329fcdd1b6c50e9749" diff --git a/@commitlint/core/CHANGELOG.md b/@commitlint/core/CHANGELOG.md index 0f6a2e2cd2..d17154e5c4 100644 --- a/@commitlint/core/CHANGELOG.md +++ b/@commitlint/core/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/core + + + + + +## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) + +**Note:** Version bump only for package @commitlint/core + + + + + +## [19.0.1](https://github.com/conventional-changelog/commitlint/compare/v19.0.0...v19.0.1) (2024-02-27) + +**Note:** Version bump only for package @commitlint/core + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/core/package.json b/@commitlint/core/package.json index 0dc554b2bc..96a9579935 100644 --- a/@commitlint/core/package.json +++ b/@commitlint/core/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/core", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint your commit messages", "main": "lib/core.js", "types": "lib/core.d.ts", @@ -36,10 +36,10 @@ }, "license": "MIT", "dependencies": { - "@commitlint/format": "^19.0.0", - "@commitlint/lint": "^19.0.0", - "@commitlint/load": "^19.0.0", - "@commitlint/read": "^19.0.0" + "@commitlint/format": "^19.0.3", + "@commitlint/lint": "^19.0.3", + "@commitlint/load": "^19.0.3", + "@commitlint/read": "^19.0.3" }, "devDependencies": { "@commitlint/utils": "^19.0.0" diff --git a/@commitlint/cz-commitlint/CHANGELOG.md b/@commitlint/cz-commitlint/CHANGELOG.md index 1fd893b969..483cee074d 100644 --- a/@commitlint/cz-commitlint/CHANGELOG.md +++ b/@commitlint/cz-commitlint/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/cz-commitlint + + + + + +## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) + +**Note:** Version bump only for package @commitlint/cz-commitlint + + + + + +## [19.0.1](https://github.com/conventional-changelog/commitlint/compare/v19.0.0...v19.0.1) (2024-02-27) + +**Note:** Version bump only for package @commitlint/cz-commitlint + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/cz-commitlint/package.json b/@commitlint/cz-commitlint/package.json index 43a2a527f4..8b754f3e48 100644 --- a/@commitlint/cz-commitlint/package.json +++ b/@commitlint/cz-commitlint/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/cz-commitlint", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Commitizen adapter using the commitlint.config.js", "main": "./lib/index.js", "files": [ @@ -38,9 +38,9 @@ } }, "dependencies": { - "@commitlint/ensure": "^19.0.0", - "@commitlint/load": "^19.0.0", - "@commitlint/types": "^19.0.0", + "@commitlint/ensure": "^19.0.3", + "@commitlint/load": "^19.0.3", + "@commitlint/types": "^19.0.3", "chalk": "^5.3.0", "lodash.isplainobject": "^4.0.6", "word-wrap": "^1.2.5" diff --git a/@commitlint/ensure/CHANGELOG.md b/@commitlint/ensure/CHANGELOG.md index 98a555e6b0..2d15ce8bc7 100644 --- a/@commitlint/ensure/CHANGELOG.md +++ b/@commitlint/ensure/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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/ensure + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/ensure/package.json b/@commitlint/ensure/package.json index 3f26ac6261..c9a129c483 100644 --- a/@commitlint/ensure/package.json +++ b/@commitlint/ensure/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/ensure", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint your commit messages", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -45,7 +45,7 @@ "glob": "^10.3.10" }, "dependencies": { - "@commitlint/types": "^19.0.0", + "@commitlint/types": "^19.0.3", "lodash.camelcase": "^4.3.0", "lodash.kebabcase": "^4.1.1", "lodash.snakecase": "^4.1.1", diff --git a/@commitlint/format/CHANGELOG.md b/@commitlint/format/CHANGELOG.md index cd2e000c07..496a50e14b 100644 --- a/@commitlint/format/CHANGELOG.md +++ b/@commitlint/format/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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/format + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/format/package.json b/@commitlint/format/package.json index 37de77a813..e3b0663919 100644 --- a/@commitlint/format/package.json +++ b/@commitlint/format/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/format", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Format commitlint reports", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -39,7 +39,7 @@ "@commitlint/utils": "^19.0.0" }, "dependencies": { - "@commitlint/types": "^19.0.0", + "@commitlint/types": "^19.0.3", "chalk": "^5.3.0" }, "gitHead": "d829bf6260304ca8d6811f329fcdd1b6c50e9749" diff --git a/@commitlint/is-ignored/CHANGELOG.md b/@commitlint/is-ignored/CHANGELOG.md index 7a873283a8..204d014a53 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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/is-ignored + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/is-ignored/package.json b/@commitlint/is-ignored/package.json index fe071e1e59..d6eb126598 100644 --- a/@commitlint/is-ignored/package.json +++ b/@commitlint/is-ignored/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/is-ignored", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint your commit messages", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -36,13 +36,13 @@ }, "license": "MIT", "devDependencies": { - "@commitlint/parse": "^19.0.0", + "@commitlint/parse": "^19.0.3", "@commitlint/test": "^19.0.0", "@commitlint/utils": "^19.0.0", "@types/semver": "^7.5.7" }, "dependencies": { - "@commitlint/types": "^19.0.0", + "@commitlint/types": "^19.0.3", "semver": "^7.6.0" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" diff --git a/@commitlint/lint/CHANGELOG.md b/@commitlint/lint/CHANGELOG.md index d06f5ac710..1e8be78f86 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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/lint + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/lint/package.json b/@commitlint/lint/package.json index e2750856d2..eb9d9bdc6d 100644 --- a/@commitlint/lint/package.json +++ b/@commitlint/lint/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/lint", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint a string against commitlint rules", "main": "lib/lint.js", "types": "lib/lint.d.ts", @@ -40,10 +40,10 @@ "@commitlint/utils": "^19.0.0" }, "dependencies": { - "@commitlint/is-ignored": "^19.0.0", - "@commitlint/parse": "^19.0.0", - "@commitlint/rules": "^19.0.0", - "@commitlint/types": "^19.0.0" + "@commitlint/is-ignored": "^19.0.3", + "@commitlint/parse": "^19.0.3", + "@commitlint/rules": "^19.0.3", + "@commitlint/types": "^19.0.3" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" } diff --git a/@commitlint/load/CHANGELOG.md b/@commitlint/load/CHANGELOG.md index f3f8190efd..59829c7fe1 100644 --- a/@commitlint/load/CHANGELOG.md +++ b/@commitlint/load/CHANGELOG.md @@ -3,6 +3,33 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/load + + + + + +## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) + +**Note:** Version bump only for package @commitlint/load + + + + + +## [19.0.1](https://github.com/conventional-changelog/commitlint/compare/v19.0.0...v19.0.1) (2024-02-27) + + +### Bug Fixes + +* drop `resolve-from`, `resolve-global` and `import-fresh`, resolve global packages correctly ([#3939](https://github.com/conventional-changelog/commitlint/issues/3939)) ([8793c63](https://github.com/conventional-changelog/commitlint/commit/8793c639c083c33714da0a29429b338776813d0c)), closes [#3938](https://github.com/conventional-changelog/commitlint/issues/3938) + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 555e8ab286..6bad35e557 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/load", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Load shared commitlint configuration", "main": "lib/load.js", "types": "lib/load.d.ts", @@ -45,10 +45,10 @@ "typescript": "^5.2.2" }, "dependencies": { - "@commitlint/config-validator": "^19.0.0", + "@commitlint/config-validator": "^19.0.3", "@commitlint/execute-rule": "^19.0.0", - "@commitlint/resolve-extends": "^19.0.0", - "@commitlint/types": "^19.0.0", + "@commitlint/resolve-extends": "^19.0.3", + "@commitlint/types": "^19.0.3", "chalk": "^5.3.0", "cosmiconfig": "^8.3.6", "cosmiconfig-typescript-loader": "^5.0.0", diff --git a/@commitlint/load/src/load.test.ts b/@commitlint/load/src/load.test.ts index b47219b15d..fbf1d84ddd 100644 --- a/@commitlint/load/src/load.test.ts +++ b/@commitlint/load/src/load.test.ts @@ -5,9 +5,8 @@ import {fileURLToPath} from 'url'; import {RuleConfigSeverity} from '@commitlint/types'; import {fix, git, npm} from '@commitlint/test'; -import resolveFrom from 'resolve-from'; -import load from './load.js'; +import load, {resolveFrom} from './load.js'; import {isDynamicAwaitSupported} from './utils/load-config.js'; const __dirname = path.resolve(fileURLToPath(import.meta.url), '..'); @@ -459,7 +458,7 @@ test('resolves formatter relative from config directory', async () => { const actual = await load({}, {cwd}); expect(actual).toMatchObject({ - formatter: resolveFrom(cwd, './formatters/custom.js'), + formatter: resolveFrom('./formatters/custom.js', cwd), extends: [], plugins: {}, rules: {}, diff --git a/@commitlint/load/src/load.ts b/@commitlint/load/src/load.ts index 77c2cb0851..0d63e74f7d 100644 --- a/@commitlint/load/src/load.ts +++ b/@commitlint/load/src/load.ts @@ -4,6 +4,8 @@ import {validateConfig} from '@commitlint/config-validator'; import executeRule from '@commitlint/execute-rule'; import resolveExtends, { resolveFrom, + resolveFromSilent, + resolveGlobalSilent, loadParserPreset, } from '@commitlint/resolve-extends'; import { @@ -135,3 +137,5 @@ export default async function load( prompt, }; } + +export {resolveFrom, resolveFromSilent, resolveGlobalSilent}; diff --git a/@commitlint/parse/CHANGELOG.md b/@commitlint/parse/CHANGELOG.md index 34c9f6f2a5..db89087bfa 100644 --- a/@commitlint/parse/CHANGELOG.md +++ b/@commitlint/parse/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + + +### Bug Fixes + +* mark `@types/conventional-commits-parser` as dep for `@commitlint/types` ([#3944](https://github.com/conventional-changelog/commitlint/issues/3944)) ([5a01f59](https://github.com/conventional-changelog/commitlint/commit/5a01f59661f0b908802728389631965eb8b49d47)), closes [#3929](https://github.com/conventional-changelog/commitlint/issues/3929) [#3942](https://github.com/conventional-changelog/commitlint/issues/3942) + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/parse/package.json b/@commitlint/parse/package.json index e3f4f92d4f..8116245883 100644 --- a/@commitlint/parse/package.json +++ b/@commitlint/parse/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/parse", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint your commit messages", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -38,10 +38,10 @@ "devDependencies": { "@commitlint/test": "^19.0.0", "@commitlint/utils": "^19.0.0", - "@types/conventional-commits-parser": "^3.0.6" + "@types/conventional-commits-parser": "^5.0.0" }, "dependencies": { - "@commitlint/types": "^19.0.0", + "@commitlint/types": "^19.0.3", "conventional-changelog-angular": "^7.0.0", "conventional-commits-parser": "^5.0.0" }, diff --git a/@commitlint/prompt-cli/CHANGELOG.md b/@commitlint/prompt-cli/CHANGELOG.md index e97290aabd..cab68b0d1f 100644 --- a/@commitlint/prompt-cli/CHANGELOG.md +++ b/@commitlint/prompt-cli/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/prompt-cli + + + + + +## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) + +**Note:** Version bump only for package @commitlint/prompt-cli + + + + + +## [19.0.1](https://github.com/conventional-changelog/commitlint/compare/v19.0.0...v19.0.1) (2024-02-27) + +**Note:** Version bump only for package @commitlint/prompt-cli + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/prompt-cli/package.json b/@commitlint/prompt-cli/package.json index 9e58df3d3d..cc3be289f2 100644 --- a/@commitlint/prompt-cli/package.json +++ b/@commitlint/prompt-cli/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/prompt-cli", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "commit prompt using commitlint.config.js", "files": [ "cli.js" @@ -37,7 +37,7 @@ "@commitlint/utils": "^19.0.0" }, "dependencies": { - "@commitlint/prompt": "^19.0.0", + "@commitlint/prompt": "^19.0.3", "execa": "^8.0.1", "inquirer": "^9.2.15" }, diff --git a/@commitlint/prompt/CHANGELOG.md b/@commitlint/prompt/CHANGELOG.md index a1659de718..e35617701a 100644 --- a/@commitlint/prompt/CHANGELOG.md +++ b/@commitlint/prompt/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/prompt + + + + + +## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) + +**Note:** Version bump only for package @commitlint/prompt + + + + + +## [19.0.1](https://github.com/conventional-changelog/commitlint/compare/v19.0.0...v19.0.1) (2024-02-27) + +**Note:** Version bump only for package @commitlint/prompt + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index e513e817cb..4e67d918df 100644 --- a/@commitlint/prompt/package.json +++ b/@commitlint/prompt/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/prompt", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "commitizen prompt using commitlint.config.js", "main": "./lib/index.js", "files": [ @@ -38,16 +38,16 @@ "node": ">=v18" }, "devDependencies": { - "@commitlint/config-angular": "^19.0.0", + "@commitlint/config-angular": "^19.0.3", "@commitlint/types": "^14.0.0", "@commitlint/utils": "^19.0.0", "@types/inquirer": "^9.0.7", "commitizen": "^4.2.4" }, "dependencies": { - "@commitlint/ensure": "^19.0.0", - "@commitlint/load": "^19.0.0", - "@commitlint/types": "^19.0.0", + "@commitlint/ensure": "^19.0.3", + "@commitlint/load": "^19.0.3", + "@commitlint/types": "^19.0.3", "chalk": "^5.3.0", "inquirer": "^9.2.15" }, diff --git a/@commitlint/read/CHANGELOG.md b/@commitlint/read/CHANGELOG.md index cceeb713b4..595fb77da6 100644 --- a/@commitlint/read/CHANGELOG.md +++ b/@commitlint/read/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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/read + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/read/package.json b/@commitlint/read/package.json index fb7fb29623..1ea5ebe666 100644 --- a/@commitlint/read/package.json +++ b/@commitlint/read/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/read", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Read commit messages from a specified range or last edit", "main": "lib/read.js", "types": "lib/read.d.ts", @@ -44,7 +44,7 @@ }, "dependencies": { "@commitlint/top-level": "^19.0.0", - "@commitlint/types": "^19.0.0", + "@commitlint/types": "^19.0.3", "git-raw-commits": "^4.0.0", "minimist": "^1.2.8" }, diff --git a/@commitlint/resolve-extends/CHANGELOG.md b/@commitlint/resolve-extends/CHANGELOG.md index 6046e9f73a..4ceab01773 100644 --- a/@commitlint/resolve-extends/CHANGELOG.md +++ b/@commitlint/resolve-extends/CHANGELOG.md @@ -3,6 +3,36 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/resolve-extends + + + + + +## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) + + +### Bug Fixes + +* fallback to `resolve-from` for Yarn P'n'P ([#3941](https://github.com/conventional-changelog/commitlint/issues/3941)) ([1eb9b5f](https://github.com/conventional-changelog/commitlint/commit/1eb9b5f29979d35f5840141523850a7402633378)), closes [#3936](https://github.com/conventional-changelog/commitlint/issues/3936) + + + + + +## [19.0.1](https://github.com/conventional-changelog/commitlint/compare/v19.0.0...v19.0.1) (2024-02-27) + + +### Bug Fixes + +* drop `resolve-from`, `resolve-global` and `import-fresh`, resolve global packages correctly ([#3939](https://github.com/conventional-changelog/commitlint/issues/3939)) ([8793c63](https://github.com/conventional-changelog/commitlint/commit/8793c639c083c33714da0a29429b338776813d0c)), closes [#3938](https://github.com/conventional-changelog/commitlint/issues/3938) + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index 8bd53ec2b9..762ae40550 100644 --- a/@commitlint/resolve-extends/package.json +++ b/@commitlint/resolve-extends/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/resolve-extends", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint your commit messages", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,12 +40,12 @@ "@types/lodash.mergewith": "^4.6.8" }, "dependencies": { - "@commitlint/config-validator": "^19.0.0", - "@commitlint/types": "^19.0.0", - "import-fresh": "^3.0.0", + "@commitlint/config-validator": "^19.0.3", + "@commitlint/types": "^19.0.3", + "global-directory": "^4.0.1", "import-meta-resolve": "^4.0.0", "lodash.mergewith": "^4.6.2", - "resolve-global": "^2.0.0" + "resolve-from": "^5.0.0" }, "gitHead": "d829bf6260304ca8d6811f329fcdd1b6c50e9749" } diff --git a/@commitlint/resolve-extends/src/index.ts b/@commitlint/resolve-extends/src/index.ts index f8b18a08ac..f699e5840f 100644 --- a/@commitlint/resolve-extends/src/index.ts +++ b/@commitlint/resolve-extends/src/index.ts @@ -1,13 +1,13 @@ +import fs from 'fs'; import path from 'path'; import {pathToFileURL, fileURLToPath} from 'url'; -import 'resolve-global'; - +import globalDirectory from 'global-directory'; import {moduleResolve} from 'import-meta-resolve'; import mergeWith from 'lodash.mergewith'; +import resolveFrom_ from 'resolve-from'; import {validateConfig} from '@commitlint/config-validator'; import type {ParserPreset, UserConfig} from '@commitlint/types'; -import importFresh from 'import-fresh'; const dynamicImport = async (id: string): Promise => { const imported = await import( @@ -16,21 +16,42 @@ const dynamicImport = async (id: string): Promise => { return ('default' in imported && imported.default) || imported; }; +const pathSuffixes = [ + '', + '.js', + '.json', + `${path.sep}index.js`, + `${path.sep}index.json`, +]; + +const specifierSuffixes = ['', '.js', '.json', '/index.js', '/index.json']; + /** * @see moduleResolve */ -export const resolveFrom = (specifier: string, parent?: string): string => { - let resolved: URL; +export const resolveFrom = (lookup: string, parent?: string): string => { + if (path.isAbsolute(lookup)) { + for (const suffix of pathSuffixes) { + const filename = lookup + suffix; + if (fs.existsSync(filename)) { + return filename; + } + } + } + let resolveError: Error | undefined; - for (const suffix of ['', '.js', '.json', '/index.js', '/index.json']) { - try { - resolved = moduleResolve( - specifier + suffix, - pathToFileURL(parent ? parent : import.meta.url) - ); + const base = pathToFileURL( + parent + ? fs.statSync(parent).isDirectory() + ? path.join(parent, 'noop.js') + : parent + : import.meta.url + ); - return fileURLToPath(resolved); + for (const suffix of specifierSuffixes) { + try { + return fileURLToPath(moduleResolve(lookup + suffix, base)); } catch (err) { if (!resolveError) { resolveError = err as Error; @@ -38,7 +59,15 @@ export const resolveFrom = (specifier: string, parent?: string): string => { } } - throw resolveError; + try { + /** + * Yarn P'n'P does not support pure ESM well, this is only a workaround for + * @see https://github.com/conventional-changelog/commitlint/issues/3936 + */ + return resolveFrom_(path.dirname(fileURLToPath(base)), lookup); + } catch { + throw resolveError; + } }; /** @@ -90,11 +119,6 @@ export default async function resolveExtends( ); } -/** - * Fake file name to provide {@link moduleResolve} a filename to resolve from the configuration cwd - */ -const FAKE_FILE_NAME_FOR_RESOLVER = '__'; - async function loadExtends( config: UserConfig = {}, context: ResolveExtendsContext = {} @@ -117,10 +141,7 @@ async function loadExtends( typeof c === 'object' && typeof c.parserPreset === 'string' ) { - const resolvedParserPreset = resolveFrom( - c.parserPreset, - path.join(cwd, FAKE_FILE_NAME_FOR_RESOLVER) - ); + const resolvedParserPreset = resolveFrom(c.parserPreset, cwd); const parserPreset: ParserPreset = { name: c.parserPreset, @@ -207,18 +228,25 @@ function resolveId( throw Object.assign(err, {code: 'MODULE_NOT_FOUND'}); } -function resolveFromSilent(specifier: string, parent: string): string | void { +export function resolveFromSilent( + specifier: string, + parent: string +): string | void { try { - return resolveFrom( - specifier, - path.join(parent, FAKE_FILE_NAME_FOR_RESOLVER) - ); - } catch (err) {} + return resolveFrom(specifier, parent); + } catch {} } -function resolveGlobalSilent(specifier: string): string | void { - try { - const resolveGlobal = importFresh<(id: string) => string>('resolve-global'); - return resolveGlobal(specifier); - } catch (err) {} +/** + * @see https://github.com/sindresorhus/resolve-global/blob/682a6bb0bd8192b74a6294219bb4c536b3708b65/index.js#L7 + */ +export function resolveGlobalSilent(specifier: string): string | void { + for (const globalPackages of [ + globalDirectory.npm.packages, + globalDirectory.yarn.packages, + ]) { + try { + return resolveFrom(specifier, globalPackages); + } catch {} + } } diff --git a/@commitlint/rules/CHANGELOG.md b/@commitlint/rules/CHANGELOG.md index 96ef76dc87..4b769c1668 100644 --- a/@commitlint/rules/CHANGELOG.md +++ b/@commitlint/rules/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. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/rules + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/rules/package.json b/@commitlint/rules/package.json index b7f6aac41c..ab71cb693d 100644 --- a/@commitlint/rules/package.json +++ b/@commitlint/rules/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/rules", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint your commit messages", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -36,17 +36,17 @@ }, "license": "MIT", "devDependencies": { - "@commitlint/parse": "^19.0.0", + "@commitlint/parse": "^19.0.3", "@commitlint/test": "^19.0.0", "@commitlint/utils": "^19.0.0", "conventional-changelog-angular": "^7.0.0", "glob": "^10.3.10" }, "dependencies": { - "@commitlint/ensure": "^19.0.0", + "@commitlint/ensure": "^19.0.3", "@commitlint/message": "^19.0.0", "@commitlint/to-lines": "^19.0.0", - "@commitlint/types": "^19.0.0", + "@commitlint/types": "^19.0.3", "execa": "^8.0.1" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" diff --git a/@commitlint/travis-cli/CHANGELOG.md b/@commitlint/travis-cli/CHANGELOG.md index 1b9e511250..921a3064d1 100644 --- a/@commitlint/travis-cli/CHANGELOG.md +++ b/@commitlint/travis-cli/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + +**Note:** Version bump only for package @commitlint/travis-cli + + + + + +## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) + +**Note:** Version bump only for package @commitlint/travis-cli + + + + + +## [19.0.1](https://github.com/conventional-changelog/commitlint/compare/v19.0.0...v19.0.1) (2024-02-27) + +**Note:** Version bump only for package @commitlint/travis-cli + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index 4839b4b22e..673e392dc2 100644 --- a/@commitlint/travis-cli/package.json +++ b/@commitlint/travis-cli/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/travis-cli", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Lint all relevant commits for a change or PR on Travis CI", "files": [ "lib/", @@ -41,7 +41,7 @@ "@commitlint/utils": "^19.0.0" }, "dependencies": { - "@commitlint/cli": "^19.0.0", + "@commitlint/cli": "^19.0.3", "execa": "^8.0.1" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" diff --git a/@commitlint/types/CHANGELOG.md b/@commitlint/types/CHANGELOG.md index 8227561599..cd3ef02376 100644 --- a/@commitlint/types/CHANGELOG.md +++ b/@commitlint/types/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + + +### Bug Fixes + +* mark `@types/conventional-commits-parser` as dep for `@commitlint/types` ([#3944](https://github.com/conventional-changelog/commitlint/issues/3944)) ([5a01f59](https://github.com/conventional-changelog/commitlint/commit/5a01f59661f0b908802728389631965eb8b49d47)), closes [#3929](https://github.com/conventional-changelog/commitlint/issues/3929) [#3942](https://github.com/conventional-changelog/commitlint/issues/3942) + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/@commitlint/types/package.json b/@commitlint/types/package.json index 369904909e..8db462e0f5 100644 --- a/@commitlint/types/package.json +++ b/@commitlint/types/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/types", "type": "module", - "version": "19.0.0", + "version": "19.0.3", "description": "Shared types for commitlint packages", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -29,6 +29,7 @@ }, "license": "MIT", "dependencies": { + "@types/conventional-commits-parser": "^5.0.0", "chalk": "^5.3.0" }, "devDependencies": { diff --git a/CHANGELOG.md b/CHANGELOG.md index 818389990c..8afc09854f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,39 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [19.0.3](https://github.com/conventional-changelog/commitlint/compare/v19.0.2...v19.0.3) (2024-02-28) + + +### Bug Fixes + +* mark `@types/conventional-commits-parser` as dep for `@commitlint/types` ([#3944](https://github.com/conventional-changelog/commitlint/issues/3944)) ([5a01f59](https://github.com/conventional-changelog/commitlint/commit/5a01f59661f0b908802728389631965eb8b49d47)), closes [#3929](https://github.com/conventional-changelog/commitlint/issues/3929) [#3942](https://github.com/conventional-changelog/commitlint/issues/3942) + + + + + +## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) + + +### Bug Fixes + +* fallback to `resolve-from` for Yarn P'n'P ([#3941](https://github.com/conventional-changelog/commitlint/issues/3941)) ([1eb9b5f](https://github.com/conventional-changelog/commitlint/commit/1eb9b5f29979d35f5840141523850a7402633378)), closes [#3936](https://github.com/conventional-changelog/commitlint/issues/3936) + + + + + +## [19.0.1](https://github.com/conventional-changelog/commitlint/compare/v19.0.0...v19.0.1) (2024-02-27) + + +### Bug Fixes + +* drop `resolve-from`, `resolve-global` and `import-fresh`, resolve global packages correctly ([#3939](https://github.com/conventional-changelog/commitlint/issues/3939)) ([8793c63](https://github.com/conventional-changelog/commitlint/commit/8793c639c083c33714da0a29429b338776813d0c)), closes [#3938](https://github.com/conventional-changelog/commitlint/issues/3938) + + + + + # [19.0.0](https://github.com/conventional-changelog/commitlint/compare/v18.6.2...v19.0.0) (2024-02-27) diff --git a/lerna.json b/lerna.json index aaa21394f3..5e0d6fa08b 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,5 @@ "lerna": "4", "npmClient": "yarn", "useWorkspaces": true, - "version": "19.0.0" + "version": "19.0.3" } diff --git a/yarn.lock b/yarn.lock index 0d8a22f491..f36a812967 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1864,10 +1864,10 @@ resolved "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz" integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== -"@types/conventional-commits-parser@^3.0.6": - version "3.0.6" - resolved "https://registry.npmjs.org/@types/conventional-commits-parser/-/conventional-commits-parser-3.0.6.tgz" - integrity sha512-z4crlplLzL9uA5kbE4ZghAf5RbrEr1UL/uNGGgxYbJjI0jRBjuYKuasbo13ANZsSapLTM2DLZk6LDcjemow4qQ== +"@types/conventional-commits-parser@^5.0.0": + version "5.0.0" + resolved "https://registry.npmjs.org/@types/conventional-commits-parser/-/conventional-commits-parser-5.0.0.tgz#8c9d23e0b415b24b91626d07017303755d542dc8" + integrity sha512-loB369iXNmAZglwWATL+WRe+CRMmmBPtpolYzIebFaX4YA3x+BEfLqhUAV9WanycKI3TG1IMr5bMJDajDKLlUQ== dependencies: "@types/node" "*" @@ -4773,7 +4773,7 @@ ignore@^5.0.4, ignore@^5.2.0, ignore@^5.2.4: resolved "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz" integrity sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg== -import-fresh@^3.0.0, import-fresh@^3.2.1, import-fresh@^3.3.0: +import-fresh@^3.2.1, import-fresh@^3.3.0: version "3.3.0" resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== @@ -7085,13 +7085,6 @@ resolve-from@^5.0.0: resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== -resolve-global@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/resolve-global/-/resolve-global-2.0.0.tgz#2ff55640800bf3692f089b6008357f75e1a27e54" - integrity sha512-gnAQ0Q/KkupGkuiMyX4L0GaBV8iFwlmoXsMtOz+DFTaKmHhOO/dSlP1RMKhpvHv/dh6K/IQkowGJBqUG0NfBUw== - dependencies: - global-directory "^4.0.1" - resolve-pkg@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/resolve-pkg/-/resolve-pkg-2.0.0.tgz#ac06991418a7623edc119084edc98b0e6bf05a41"