@commitlint/load
Advanced tools
Comparing version 16.0.0 to 16.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [16.1.0](https://github.com/conventional-changelog/commitlint/compare/v16.0.3...v16.1.0) (2022-01-20) | ||
### Features | ||
* **load:** accept functions as parser presets ([#2982](https://github.com/conventional-changelog/commitlint/issues/2982)) ([420e8d6](https://github.com/conventional-changelog/commitlint/commit/420e8d6a4d5663ade953272275a9e0fa7c5ddff0)), closes [#2964](https://github.com/conventional-changelog/commitlint/issues/2964) [#2964](https://github.com/conventional-changelog/commitlint/issues/2964) | ||
# [16.0.0](https://github.com/conventional-changelog/commitlint/compare/v15.0.0...v16.0.0) (2021-12-26) | ||
@@ -8,0 +19,0 @@ |
import { ParserPreset } from '@commitlint/types'; | ||
export declare function loadParserOpts(pendingParser: string | ParserPreset | Promise<ParserPreset> | undefined): Promise<ParserPreset | undefined>; | ||
declare type Awaitable<T> = T | PromiseLike<T>; | ||
export declare function loadParserOpts(pendingParser: string | Awaitable<ParserPreset> | (() => Awaitable<ParserPreset>) | undefined): Promise<ParserPreset | undefined>; | ||
export {}; | ||
//# sourceMappingURL=load-parser-opts.d.ts.map |
@@ -11,2 +11,5 @@ "use strict"; | ||
async function loadParserOpts(pendingParser) { | ||
if (typeof pendingParser === 'function') { | ||
return loadParserOpts(pendingParser()); | ||
} | ||
if (!pendingParser || typeof pendingParser !== 'object') { | ||
@@ -13,0 +16,0 @@ return undefined; |
{ | ||
"name": "@commitlint/load", | ||
"version": "16.0.0", | ||
"version": "16.1.0", | ||
"description": "Load shared commitlint configuration", | ||
@@ -45,5 +45,5 @@ "main": "lib/load.js", | ||
"dependencies": { | ||
"@commitlint/config-validator": "^16.0.0", | ||
"@commitlint/config-validator": "^16.1.0", | ||
"@commitlint/execute-rule": "^16.0.0", | ||
"@commitlint/resolve-extends": "^16.0.0", | ||
"@commitlint/resolve-extends": "^16.1.0", | ||
"@commitlint/types": "^16.0.0", | ||
@@ -57,3 +57,3 @@ "chalk": "^4.0.0", | ||
}, | ||
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" | ||
"gitHead": "ddc727aeaa9a2b962abf30311687897596eff177" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47225
403