From 8793c639c083c33714da0a29429b338776813d0c Mon Sep 17 00:00:00 2001 From: JounQin Date: Wed, 28 Feb 2024 01:11:59 +0800 Subject: [PATCH 1/7] fix: drop `resolve-from`, `resolve-global` and `import-fresh`, resolve global packages correctly (#3939) * fix: drop `resolve-from`, `resolve-global` and `import-fresh`, resolve global packages correctly close #3938 * chore: fix Windows compatible issue --- @commitlint/cli/package.json | 2 - @commitlint/cli/src/cli.ts | 8 +-- @commitlint/load/src/load.test.ts | 5 +- @commitlint/load/src/load.ts | 4 ++ @commitlint/resolve-extends/package.json | 5 +- @commitlint/resolve-extends/src/index.ts | 83 +++++++++++++++--------- yarn.lock | 9 +-- 7 files changed, 63 insertions(+), 53 deletions(-) diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index b846aab378..112cac008f 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -54,8 +54,6 @@ "@commitlint/read": "^19.0.0", "@commitlint/types": "^19.0.0", "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/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/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index 8bd53ec2b9..6de0a54afd 100644 --- a/@commitlint/resolve-extends/package.json +++ b/@commitlint/resolve-extends/package.json @@ -42,10 +42,9 @@ "dependencies": { "@commitlint/config-validator": "^19.0.0", "@commitlint/types": "^19.0.0", - "import-fresh": "^3.0.0", + "global-directory": "^4.0.1", "import-meta-resolve": "^4.0.0", - "lodash.mergewith": "^4.6.2", - "resolve-global": "^2.0.0" + "lodash.mergewith": "^4.6.2" }, "gitHead": "d829bf6260304ca8d6811f329fcdd1b6c50e9749" } diff --git a/@commitlint/resolve-extends/src/index.ts b/@commitlint/resolve-extends/src/index.ts index f8b18a08ac..744f357cff 100644 --- a/@commitlint/resolve-extends/src/index.ts +++ b/@commitlint/resolve-extends/src/index.ts @@ -1,13 +1,12 @@ +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 {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 +15,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; @@ -90,11 +110,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 +132,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 +219,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/yarn.lock b/yarn.lock index 0d8a22f491..0dca252bd3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" From 9351b8e1f4e9fc1ff45e55dabcd2d887ac2a8070 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Tue, 27 Feb 2024 18:13:03 +0100 Subject: [PATCH 2/7] v19.0.1 --- @alias/commitlint/CHANGELOG.md | 8 ++++++++ @alias/commitlint/package.json | 4 ++-- @commitlint/cli/CHANGELOG.md | 11 +++++++++++ @commitlint/cli/package.json | 4 ++-- @commitlint/core/CHANGELOG.md | 8 ++++++++ @commitlint/core/package.json | 4 ++-- @commitlint/cz-commitlint/CHANGELOG.md | 8 ++++++++ @commitlint/cz-commitlint/package.json | 4 ++-- @commitlint/load/CHANGELOG.md | 11 +++++++++++ @commitlint/load/package.json | 4 ++-- @commitlint/prompt-cli/CHANGELOG.md | 8 ++++++++ @commitlint/prompt-cli/package.json | 4 ++-- @commitlint/prompt/CHANGELOG.md | 8 ++++++++ @commitlint/prompt/package.json | 4 ++-- @commitlint/resolve-extends/CHANGELOG.md | 11 +++++++++++ @commitlint/resolve-extends/package.json | 2 +- @commitlint/travis-cli/CHANGELOG.md | 8 ++++++++ @commitlint/travis-cli/package.json | 4 ++-- CHANGELOG.md | 11 +++++++++++ lerna.json | 2 +- 20 files changed, 110 insertions(+), 18 deletions(-) diff --git a/@alias/commitlint/CHANGELOG.md b/@alias/commitlint/CHANGELOG.md index 4b3d35ccec..c79f99dfb4 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. +## [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..2856734f88 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.1", "description": "Lint your commit messages", "files": [ "cli.js" @@ -36,7 +36,7 @@ }, "license": "MIT", "dependencies": { - "@commitlint/cli": "^19.0.0", + "@commitlint/cli": "^19.0.1", "@commitlint/types": "^19.0.0" }, "devDependencies": { diff --git a/@commitlint/cli/CHANGELOG.md b/@commitlint/cli/CHANGELOG.md index 1f6b14d353..9b0b526ef2 100644 --- a/@commitlint/cli/CHANGELOG.md +++ b/@commitlint/cli/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.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 112cac008f..fd03b407d5 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.1", "description": "Lint your commit messages", "files": [ "index.cjs", @@ -50,7 +50,7 @@ "dependencies": { "@commitlint/format": "^19.0.0", "@commitlint/lint": "^19.0.0", - "@commitlint/load": "^19.0.0", + "@commitlint/load": "^19.0.1", "@commitlint/read": "^19.0.0", "@commitlint/types": "^19.0.0", "execa": "^8.0.1", diff --git a/@commitlint/core/CHANGELOG.md b/@commitlint/core/CHANGELOG.md index 0f6a2e2cd2..b53d55938b 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. +## [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..b4824e8449 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.1", "description": "Lint your commit messages", "main": "lib/core.js", "types": "lib/core.d.ts", @@ -38,7 +38,7 @@ "dependencies": { "@commitlint/format": "^19.0.0", "@commitlint/lint": "^19.0.0", - "@commitlint/load": "^19.0.0", + "@commitlint/load": "^19.0.1", "@commitlint/read": "^19.0.0" }, "devDependencies": { diff --git a/@commitlint/cz-commitlint/CHANGELOG.md b/@commitlint/cz-commitlint/CHANGELOG.md index 1fd893b969..8ad9561df4 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. +## [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..be01f424b1 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.1", "description": "Commitizen adapter using the commitlint.config.js", "main": "./lib/index.js", "files": [ @@ -39,7 +39,7 @@ }, "dependencies": { "@commitlint/ensure": "^19.0.0", - "@commitlint/load": "^19.0.0", + "@commitlint/load": "^19.0.1", "@commitlint/types": "^19.0.0", "chalk": "^5.3.0", "lodash.isplainobject": "^4.0.6", diff --git a/@commitlint/load/CHANGELOG.md b/@commitlint/load/CHANGELOG.md index f3f8190efd..d7d7bc4907 100644 --- a/@commitlint/load/CHANGELOG.md +++ b/@commitlint/load/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.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..63ab25972b 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.1", "description": "Load shared commitlint configuration", "main": "lib/load.js", "types": "lib/load.d.ts", @@ -47,7 +47,7 @@ "dependencies": { "@commitlint/config-validator": "^19.0.0", "@commitlint/execute-rule": "^19.0.0", - "@commitlint/resolve-extends": "^19.0.0", + "@commitlint/resolve-extends": "^19.0.1", "@commitlint/types": "^19.0.0", "chalk": "^5.3.0", "cosmiconfig": "^8.3.6", diff --git a/@commitlint/prompt-cli/CHANGELOG.md b/@commitlint/prompt-cli/CHANGELOG.md index e97290aabd..f5c67e61ce 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. +## [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..6ee4aebc3b 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.1", "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.1", "execa": "^8.0.1", "inquirer": "^9.2.15" }, diff --git a/@commitlint/prompt/CHANGELOG.md b/@commitlint/prompt/CHANGELOG.md index a1659de718..a88ab4c40c 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. +## [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..60786ff676 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.1", "description": "commitizen prompt using commitlint.config.js", "main": "./lib/index.js", "files": [ @@ -46,7 +46,7 @@ }, "dependencies": { "@commitlint/ensure": "^19.0.0", - "@commitlint/load": "^19.0.0", + "@commitlint/load": "^19.0.1", "@commitlint/types": "^19.0.0", "chalk": "^5.3.0", "inquirer": "^9.2.15" diff --git a/@commitlint/resolve-extends/CHANGELOG.md b/@commitlint/resolve-extends/CHANGELOG.md index 6046e9f73a..77b4a9b1fd 100644 --- a/@commitlint/resolve-extends/CHANGELOG.md +++ b/@commitlint/resolve-extends/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.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 6de0a54afd..740268faf9 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.1", "description": "Lint your commit messages", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/@commitlint/travis-cli/CHANGELOG.md b/@commitlint/travis-cli/CHANGELOG.md index 1b9e511250..8bce0dad43 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. +## [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..ae070c952f 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.1", "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.1", "execa": "^8.0.1" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" diff --git a/CHANGELOG.md b/CHANGELOG.md index 818389990c..efa071778f 100644 --- a/CHANGELOG.md +++ b/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.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..357dcbec83 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,5 @@ "lerna": "4", "npmClient": "yarn", "useWorkspaces": true, - "version": "19.0.0" + "version": "19.0.1" } From 1eb9b5f29979d35f5840141523850a7402633378 Mon Sep 17 00:00:00 2001 From: JounQin Date: Wed, 28 Feb 2024 16:59:07 +0800 Subject: [PATCH 3/7] fix: fallback to `resolve-from` for Yarn P'n'P (#3941) * fix: fallback to `require.resolve` for Yarn P'n'P close #3936 * refactor: use `resolve-from` package --- @commitlint/resolve-extends/package.json | 3 ++- @commitlint/resolve-extends/src/index.ts | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index 740268faf9..69994ed0fd 100644 --- a/@commitlint/resolve-extends/package.json +++ b/@commitlint/resolve-extends/package.json @@ -44,7 +44,8 @@ "@commitlint/types": "^19.0.0", "global-directory": "^4.0.1", "import-meta-resolve": "^4.0.0", - "lodash.mergewith": "^4.6.2" + "lodash.mergewith": "^4.6.2", + "resolve-from": "^5.0.0" }, "gitHead": "d829bf6260304ca8d6811f329fcdd1b6c50e9749" } diff --git a/@commitlint/resolve-extends/src/index.ts b/@commitlint/resolve-extends/src/index.ts index 744f357cff..f699e5840f 100644 --- a/@commitlint/resolve-extends/src/index.ts +++ b/@commitlint/resolve-extends/src/index.ts @@ -5,6 +5,7 @@ import {pathToFileURL, fileURLToPath} from 'url'; 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'; @@ -58,7 +59,15 @@ export const resolveFrom = (lookup: 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; + } }; /** From e5389241cbf379040c79efbc73a94c37ace840f0 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Wed, 28 Feb 2024 10:02:41 +0100 Subject: [PATCH 4/7] v19.0.2 --- @alias/commitlint/CHANGELOG.md | 8 ++++++++ @alias/commitlint/package.json | 4 ++-- @commitlint/cli/CHANGELOG.md | 8 ++++++++ @commitlint/cli/package.json | 4 ++-- @commitlint/core/CHANGELOG.md | 8 ++++++++ @commitlint/core/package.json | 4 ++-- @commitlint/cz-commitlint/CHANGELOG.md | 8 ++++++++ @commitlint/cz-commitlint/package.json | 4 ++-- @commitlint/load/CHANGELOG.md | 8 ++++++++ @commitlint/load/package.json | 4 ++-- @commitlint/prompt-cli/CHANGELOG.md | 8 ++++++++ @commitlint/prompt-cli/package.json | 4 ++-- @commitlint/prompt/CHANGELOG.md | 8 ++++++++ @commitlint/prompt/package.json | 4 ++-- @commitlint/resolve-extends/CHANGELOG.md | 11 +++++++++++ @commitlint/resolve-extends/package.json | 2 +- @commitlint/travis-cli/CHANGELOG.md | 8 ++++++++ @commitlint/travis-cli/package.json | 4 ++-- CHANGELOG.md | 11 +++++++++++ lerna.json | 2 +- 20 files changed, 104 insertions(+), 18 deletions(-) diff --git a/@alias/commitlint/CHANGELOG.md b/@alias/commitlint/CHANGELOG.md index c79f99dfb4..dc5448b963 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. +## [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 diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json index 2856734f88..73ddbe8e0a 100644 --- a/@alias/commitlint/package.json +++ b/@alias/commitlint/package.json @@ -1,7 +1,7 @@ { "name": "commitlint", "type": "module", - "version": "19.0.1", + "version": "19.0.2", "description": "Lint your commit messages", "files": [ "cli.js" @@ -36,7 +36,7 @@ }, "license": "MIT", "dependencies": { - "@commitlint/cli": "^19.0.1", + "@commitlint/cli": "^19.0.2", "@commitlint/types": "^19.0.0" }, "devDependencies": { diff --git a/@commitlint/cli/CHANGELOG.md b/@commitlint/cli/CHANGELOG.md index 9b0b526ef2..cc757cd773 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. +## [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) diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index fd03b407d5..e4ecb2ad7d 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/cli", "type": "module", - "version": "19.0.1", + "version": "19.0.2", "description": "Lint your commit messages", "files": [ "index.cjs", @@ -50,7 +50,7 @@ "dependencies": { "@commitlint/format": "^19.0.0", "@commitlint/lint": "^19.0.0", - "@commitlint/load": "^19.0.1", + "@commitlint/load": "^19.0.2", "@commitlint/read": "^19.0.0", "@commitlint/types": "^19.0.0", "execa": "^8.0.1", diff --git a/@commitlint/core/CHANGELOG.md b/@commitlint/core/CHANGELOG.md index b53d55938b..3d754d2cc3 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. +## [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 diff --git a/@commitlint/core/package.json b/@commitlint/core/package.json index b4824e8449..d989324238 100644 --- a/@commitlint/core/package.json +++ b/@commitlint/core/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/core", "type": "module", - "version": "19.0.1", + "version": "19.0.2", "description": "Lint your commit messages", "main": "lib/core.js", "types": "lib/core.d.ts", @@ -38,7 +38,7 @@ "dependencies": { "@commitlint/format": "^19.0.0", "@commitlint/lint": "^19.0.0", - "@commitlint/load": "^19.0.1", + "@commitlint/load": "^19.0.2", "@commitlint/read": "^19.0.0" }, "devDependencies": { diff --git a/@commitlint/cz-commitlint/CHANGELOG.md b/@commitlint/cz-commitlint/CHANGELOG.md index 8ad9561df4..11ed15fd01 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. +## [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 diff --git a/@commitlint/cz-commitlint/package.json b/@commitlint/cz-commitlint/package.json index be01f424b1..7f8e51d4e4 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.1", + "version": "19.0.2", "description": "Commitizen adapter using the commitlint.config.js", "main": "./lib/index.js", "files": [ @@ -39,7 +39,7 @@ }, "dependencies": { "@commitlint/ensure": "^19.0.0", - "@commitlint/load": "^19.0.1", + "@commitlint/load": "^19.0.2", "@commitlint/types": "^19.0.0", "chalk": "^5.3.0", "lodash.isplainobject": "^4.0.6", diff --git a/@commitlint/load/CHANGELOG.md b/@commitlint/load/CHANGELOG.md index d7d7bc4907..9053ae1177 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. +## [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) diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 63ab25972b..895ed3b81e 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/load", "type": "module", - "version": "19.0.1", + "version": "19.0.2", "description": "Load shared commitlint configuration", "main": "lib/load.js", "types": "lib/load.d.ts", @@ -47,7 +47,7 @@ "dependencies": { "@commitlint/config-validator": "^19.0.0", "@commitlint/execute-rule": "^19.0.0", - "@commitlint/resolve-extends": "^19.0.1", + "@commitlint/resolve-extends": "^19.0.2", "@commitlint/types": "^19.0.0", "chalk": "^5.3.0", "cosmiconfig": "^8.3.6", diff --git a/@commitlint/prompt-cli/CHANGELOG.md b/@commitlint/prompt-cli/CHANGELOG.md index f5c67e61ce..4626b6cb0a 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. +## [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 diff --git a/@commitlint/prompt-cli/package.json b/@commitlint/prompt-cli/package.json index 6ee4aebc3b..f80cb54386 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.1", + "version": "19.0.2", "description": "commit prompt using commitlint.config.js", "files": [ "cli.js" @@ -37,7 +37,7 @@ "@commitlint/utils": "^19.0.0" }, "dependencies": { - "@commitlint/prompt": "^19.0.1", + "@commitlint/prompt": "^19.0.2", "execa": "^8.0.1", "inquirer": "^9.2.15" }, diff --git a/@commitlint/prompt/CHANGELOG.md b/@commitlint/prompt/CHANGELOG.md index a88ab4c40c..4757ea02b4 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. +## [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 diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index 60786ff676..35eb6334c9 100644 --- a/@commitlint/prompt/package.json +++ b/@commitlint/prompt/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/prompt", "type": "module", - "version": "19.0.1", + "version": "19.0.2", "description": "commitizen prompt using commitlint.config.js", "main": "./lib/index.js", "files": [ @@ -46,7 +46,7 @@ }, "dependencies": { "@commitlint/ensure": "^19.0.0", - "@commitlint/load": "^19.0.1", + "@commitlint/load": "^19.0.2", "@commitlint/types": "^19.0.0", "chalk": "^5.3.0", "inquirer": "^9.2.15" diff --git a/@commitlint/resolve-extends/CHANGELOG.md b/@commitlint/resolve-extends/CHANGELOG.md index 77b4a9b1fd..f1c123452d 100644 --- a/@commitlint/resolve-extends/CHANGELOG.md +++ b/@commitlint/resolve-extends/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.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) diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index 69994ed0fd..b00348cb78 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.1", + "version": "19.0.2", "description": "Lint your commit messages", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/@commitlint/travis-cli/CHANGELOG.md b/@commitlint/travis-cli/CHANGELOG.md index 8bce0dad43..3ec46a05d6 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. +## [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 diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index ae070c952f..4c8097f950 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.1", + "version": "19.0.2", "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.1", + "@commitlint/cli": "^19.0.2", "execa": "^8.0.1" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" diff --git a/CHANGELOG.md b/CHANGELOG.md index efa071778f..ada0688342 100644 --- a/CHANGELOG.md +++ b/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.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) diff --git a/lerna.json b/lerna.json index 357dcbec83..10f5caa9ed 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,5 @@ "lerna": "4", "npmClient": "yarn", "useWorkspaces": true, - "version": "19.0.1" + "version": "19.0.2" } From 87b1d36d23005b9c1d010ff6a49d1de7f4888cfe Mon Sep 17 00:00:00 2001 From: "Andres G. Aragoneses" Date: Wed, 28 Feb 2024 18:25:28 +0800 Subject: [PATCH 5/7] chore: reorder 2 BUG_REPORT.yml elements (#3943) * Moved 'Steps to reproduce' section before Current/Expected behaviour. * Moved 'Current behaviour' before 'Expected behaviour'. This way it feels more natural. --- .github/ISSUE_TEMPLATE/BUG_REPORT.yml | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) 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: From 5a01f59661f0b908802728389631965eb8b49d47 Mon Sep 17 00:00:00 2001 From: JounQin Date: Wed, 28 Feb 2024 20:01:19 +0800 Subject: [PATCH 6/7] fix: mark `@types/conventional-commits-parser` as dep for `@commitlint/types` (#3944) close #3929, fix #3942 --- @commitlint/parse/package.json | 2 +- @commitlint/types/package.json | 1 + yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/@commitlint/parse/package.json b/@commitlint/parse/package.json index e3f4f92d4f..9237e8c6ab 100644 --- a/@commitlint/parse/package.json +++ b/@commitlint/parse/package.json @@ -38,7 +38,7 @@ "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", diff --git a/@commitlint/types/package.json b/@commitlint/types/package.json index 369904909e..b24752be5f 100644 --- a/@commitlint/types/package.json +++ b/@commitlint/types/package.json @@ -29,6 +29,7 @@ }, "license": "MIT", "dependencies": { + "@types/conventional-commits-parser": "^5.0.0", "chalk": "^5.3.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 0dca252bd3..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" "*" From 9b4ac34069e06cd327760ce37adbde8d537d8e3e Mon Sep 17 00:00:00 2001 From: escapedcat Date: Wed, 28 Feb 2024 13:02:19 +0100 Subject: [PATCH 7/7] v19.0.3 --- @alias/commitlint-config-angular/CHANGELOG.md | 8 ++++++++ @alias/commitlint-config-angular/package.json | 4 ++-- @alias/commitlint-config-nx-scopes/CHANGELOG.md | 8 ++++++++ @alias/commitlint-config-nx-scopes/package.json | 4 ++-- @alias/commitlint-config-patternplate/CHANGELOG.md | 8 ++++++++ @alias/commitlint-config-patternplate/package.json | 4 ++-- @alias/commitlint/CHANGELOG.md | 8 ++++++++ @alias/commitlint/package.json | 6 +++--- @commitlint/cli/CHANGELOG.md | 8 ++++++++ @commitlint/cli/package.json | 12 ++++++------ @commitlint/config-angular/CHANGELOG.md | 8 ++++++++ @commitlint/config-angular/package.json | 4 ++-- @commitlint/config-conventional/CHANGELOG.md | 8 ++++++++ @commitlint/config-conventional/package.json | 6 +++--- @commitlint/config-nx-scopes/CHANGELOG.md | 8 ++++++++ @commitlint/config-nx-scopes/package.json | 4 ++-- @commitlint/config-patternplate/CHANGELOG.md | 8 ++++++++ @commitlint/config-patternplate/package.json | 4 ++-- @commitlint/config-validator/CHANGELOG.md | 8 ++++++++ @commitlint/config-validator/package.json | 4 ++-- @commitlint/core/CHANGELOG.md | 8 ++++++++ @commitlint/core/package.json | 10 +++++----- @commitlint/cz-commitlint/CHANGELOG.md | 8 ++++++++ @commitlint/cz-commitlint/package.json | 8 ++++---- @commitlint/ensure/CHANGELOG.md | 8 ++++++++ @commitlint/ensure/package.json | 4 ++-- @commitlint/format/CHANGELOG.md | 8 ++++++++ @commitlint/format/package.json | 4 ++-- @commitlint/is-ignored/CHANGELOG.md | 8 ++++++++ @commitlint/is-ignored/package.json | 6 +++--- @commitlint/lint/CHANGELOG.md | 8 ++++++++ @commitlint/lint/package.json | 10 +++++----- @commitlint/load/CHANGELOG.md | 8 ++++++++ @commitlint/load/package.json | 8 ++++---- @commitlint/parse/CHANGELOG.md | 11 +++++++++++ @commitlint/parse/package.json | 4 ++-- @commitlint/prompt-cli/CHANGELOG.md | 8 ++++++++ @commitlint/prompt-cli/package.json | 4 ++-- @commitlint/prompt/CHANGELOG.md | 8 ++++++++ @commitlint/prompt/package.json | 10 +++++----- @commitlint/read/CHANGELOG.md | 8 ++++++++ @commitlint/read/package.json | 4 ++-- @commitlint/resolve-extends/CHANGELOG.md | 8 ++++++++ @commitlint/resolve-extends/package.json | 6 +++--- @commitlint/rules/CHANGELOG.md | 8 ++++++++ @commitlint/rules/package.json | 8 ++++---- @commitlint/travis-cli/CHANGELOG.md | 8 ++++++++ @commitlint/travis-cli/package.json | 4 ++-- @commitlint/types/CHANGELOG.md | 11 +++++++++++ @commitlint/types/package.json | 2 +- CHANGELOG.md | 11 +++++++++++ lerna.json | 2 +- 52 files changed, 290 insertions(+), 73 deletions(-) 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 dc5448b963..856abf0821 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. +## [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 diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json index 73ddbe8e0a..402a956c69 100644 --- a/@alias/commitlint/package.json +++ b/@alias/commitlint/package.json @@ -1,7 +1,7 @@ { "name": "commitlint", "type": "module", - "version": "19.0.2", + "version": "19.0.3", "description": "Lint your commit messages", "files": [ "cli.js" @@ -36,8 +36,8 @@ }, "license": "MIT", "dependencies": { - "@commitlint/cli": "^19.0.2", - "@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 cc757cd773..fd33bec5cc 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. +## [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 diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index e4ecb2ad7d..87cad67eab 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/cli", "type": "module", - "version": "19.0.2", + "version": "19.0.3", "description": "Lint your commit messages", "files": [ "index.cjs", @@ -48,11 +48,11 @@ "lodash.merge": "^4.6.2" }, "dependencies": { - "@commitlint/format": "^19.0.0", - "@commitlint/lint": "^19.0.0", - "@commitlint/load": "^19.0.2", - "@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", "yargs": "^17.0.0" }, 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 3d754d2cc3..d17154e5c4 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. +## [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 diff --git a/@commitlint/core/package.json b/@commitlint/core/package.json index d989324238..96a9579935 100644 --- a/@commitlint/core/package.json +++ b/@commitlint/core/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/core", "type": "module", - "version": "19.0.2", + "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.2", - "@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 11ed15fd01..483cee074d 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. +## [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 diff --git a/@commitlint/cz-commitlint/package.json b/@commitlint/cz-commitlint/package.json index 7f8e51d4e4..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.2", + "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.2", - "@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 9053ae1177..59829c7fe1 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. +## [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 diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 895ed3b81e..6bad35e557 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/load", "type": "module", - "version": "19.0.2", + "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.2", - "@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/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 9237e8c6ab..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", @@ -41,7 +41,7 @@ "@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 4626b6cb0a..cab68b0d1f 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. +## [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 diff --git a/@commitlint/prompt-cli/package.json b/@commitlint/prompt-cli/package.json index f80cb54386..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.2", + "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.2", + "@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 4757ea02b4..e35617701a 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. +## [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 diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index 35eb6334c9..4e67d918df 100644 --- a/@commitlint/prompt/package.json +++ b/@commitlint/prompt/package.json @@ -1,7 +1,7 @@ { "name": "@commitlint/prompt", "type": "module", - "version": "19.0.2", + "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.2", - "@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 f1c123452d..4ceab01773 100644 --- a/@commitlint/resolve-extends/CHANGELOG.md +++ b/@commitlint/resolve-extends/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/resolve-extends + + + + + ## [19.0.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index b00348cb78..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.2", + "version": "19.0.3", "description": "Lint your commit messages", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,8 +40,8 @@ "@types/lodash.mergewith": "^4.6.8" }, "dependencies": { - "@commitlint/config-validator": "^19.0.0", - "@commitlint/types": "^19.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", 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 3ec46a05d6..921a3064d1 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. +## [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 diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index 4c8097f950..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.2", + "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.2", + "@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 b24752be5f..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", diff --git a/CHANGELOG.md b/CHANGELOG.md index ada0688342..8afc09854f 100644 --- a/CHANGELOG.md +++ b/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.2](https://github.com/conventional-changelog/commitlint/compare/v19.0.1...v19.0.2) (2024-02-28) diff --git a/lerna.json b/lerna.json index 10f5caa9ed..5e0d6fa08b 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,5 @@ "lerna": "4", "npmClient": "yarn", "useWorkspaces": true, - "version": "19.0.2" + "version": "19.0.3" }