conventional-changelog-preset-loader
Advanced tools
Comparing version 4.1.0 to 5.0.0
{ | ||
"name": "conventional-changelog-preset-loader", | ||
"version": "4.1.0", | ||
"type": "module", | ||
"version": "5.0.0", | ||
"description": "Configuration preset loader for `conventional-changelog`.", | ||
"author": "Hutson Betts", | ||
"license": "MIT", | ||
"homepage": "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-preset-loader#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/conventional-changelog/conventional-changelog.git" | ||
"url": "https://github.com/conventional-changelog/conventional-changelog.git", | ||
"directory": "packages/conventional-changelog-preset-loader" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/conventional-changelog/conventional-changelog/issues" | ||
}, | ||
"keywords": [ | ||
@@ -14,17 +22,12 @@ "conventional-changelog", | ||
], | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=16" | ||
"node": ">=18" | ||
}, | ||
"exports": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/conventional-changelog/conventional-changelog/issues" | ||
}, | ||
"homepage": "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-preset-loader#readme", | ||
"devDependencies": { | ||
"conventional-changelog-angular": "^7.0.0", | ||
"conventional-changelog-conventionalcommits": "^7.0.2" | ||
} | ||
"dist" | ||
] | ||
} |
# conventional-changelog-preset-loader | ||
[![ESM-only package][package]][package-url] | ||
[![NPM version][npm]][npm-url] | ||
[![Node version][node]][node-url] | ||
[![Dependencies status][deps]][deps-url] | ||
[![Install size][size]][size-url] | ||
[![Build status][build]][build-url] | ||
[![Coverage status][coverage]][coverage-url] | ||
[package]: https://img.shields.io/badge/package-ESM--only-ffe536.svg | ||
[package-url]: https://nodejs.org/api/esm.html | ||
[npm]: https://img.shields.io/npm/v/conventional-changelog-preset-loader.svg | ||
@@ -18,3 +23,6 @@ [npm-url]: https://npmjs.com/package/conventional-changelog-preset-loader | ||
[build]: https://img.shields.io/github/actions/workflow/status/conventional-changelog/conventional-changelog/ci.yaml?branch=master | ||
[size]: https://packagephobia.com/badge?p=conventional-changelog-preset-loader | ||
[size-url]: https://packagephobia.com/result?p=conventional-changelog-preset-loader | ||
[build]: https://img.shields.io/github/actions/workflow/status/conventional-changelog/conventional-changelog/tests.yaml?branch=master | ||
[build-url]: https://github.com/conventional-changelog/conventional-changelog/actions | ||
@@ -27,19 +35,32 @@ | ||
## Usage | ||
<hr /> | ||
<a href="#install">Install</a> | ||
<span> • </span> | ||
<a href="#usage">Usage</a> | ||
<span> • </span> | ||
<a href="#preset-package-resolution">Preset package resolution</a> | ||
<span> • </span> | ||
<a href="#preset-exports">Preset exports</a> | ||
<span> • </span> | ||
<a href="#preset-options">Preset options</a> | ||
<br /> | ||
<hr /> | ||
Install: | ||
## Install | ||
```bash | ||
# pnpm | ||
pnpm add conventional-changelog-preset-loader | ||
# yarn | ||
yarn add -D conventional-changelog-preset-loader | ||
# pnpm | ||
pnpm add -D conventional-changelog-preset-loader | ||
yarn add conventional-changelog-preset-loader | ||
# npm | ||
npm i -D conventional-changelog-preset-loader | ||
npm i conventional-changelog-preset-loader | ||
``` | ||
## Usage | ||
Import `loadPreset` function from the package and use it to load the preset: | ||
```js | ||
const { loadPreset } = require('conventional-changelog-preset-loader') | ||
import { loadPreset } from 'conventional-changelog-preset-loader' | ||
@@ -54,4 +75,6 @@ loadPreset('angular').then((config) => { | ||
```js | ||
const { createPresetLoader } = require('conventional-changelog-preset-loader') | ||
import { createRequire } from 'node:module' | ||
import { createPresetLoader } from 'conventional-changelog-preset-loader' | ||
const require = createRequire(import.meta.url) | ||
const loadPreset = createPresetLoader(require) | ||
@@ -89,3 +112,3 @@ ``` | ||
```js | ||
const { loadPreset } = require('conventional-changelog-preset-loader') | ||
import { loadPreset } from 'conventional-changelog-preset-loader' | ||
@@ -92,0 +115,0 @@ loadPreset({ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
16554
0
12
132
0
122
Yes
1