conventional-changelog-jshint
Advanced tools
Comparing version 3.0.0 to 4.0.0
33
index.js
'use strict' | ||
const conventionalChangelog = require('./conventional-changelog') | ||
const parserOpts = require('./parser-opts') | ||
const recommendedBumpOpts = require('./conventional-recommended-bump') | ||
const writerOpts = require('./writer-opts') | ||
module.exports = presetOpts | ||
const { createParserOpts } = require('./parserOpts') | ||
const { createWriterOpts } = require('./writerOpts') | ||
const { createConventionalChangelogOpts } = require('./conventionalChangelog') | ||
const { createConventionalRecommendedBumpOpts } = require('./conventionalRecommendedBump') | ||
function presetOpts (cb) { | ||
Promise.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) | ||
.then(([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) => { | ||
cb(null, { | ||
conventionalChangelog, | ||
parserOpts, | ||
recommendedBumpOpts, | ||
writerOpts | ||
}) | ||
}) | ||
async function createPreset () { | ||
const parserOpts = createParserOpts() | ||
const writerOpts = await createWriterOpts() | ||
const recommendedBumpOpts = createConventionalRecommendedBumpOpts(parserOpts) | ||
const conventionalChangelog = createConventionalChangelogOpts(parserOpts, writerOpts) | ||
return { | ||
parserOpts, | ||
writerOpts, | ||
recommendedBumpOpts, | ||
conventionalChangelog | ||
} | ||
} | ||
module.exports = createPreset |
{ | ||
"name": "conventional-changelog-jshint", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "conventional-changelog jshint preset", | ||
@@ -17,11 +17,11 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=16" | ||
}, | ||
"license": "ISC", | ||
"files": [ | ||
"conventional-changelog.js", | ||
"conventional-recommended-bump.js", | ||
"conventionalChangelog.js", | ||
"conventionalRecommendedBump.js", | ||
"index.js", | ||
"parser-opts.js", | ||
"writer-opts.js", | ||
"parserOpts.js", | ||
"writerOpts.js", | ||
"templates" | ||
@@ -35,6 +35,3 @@ ], | ||
"compare-func": "^2.0.0" | ||
}, | ||
"scripts": { | ||
"test-windows": "echo 'make work on windows'" | ||
} | ||
} |
@@ -1,7 +0,39 @@ | ||
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coverage-image]][coverage-url] | ||
# conventional-changelog-jshint | ||
> [conventional-changelog](https://github.com/ajoslin/conventional-changelog) [jshint](https://github.com/jshint/jshint) preset | ||
[![NPM version][npm]][npm-url] | ||
[![Node version][node]][node-url] | ||
[![Dependencies status][deps]][deps-url] | ||
[![Build status][build]][build-url] | ||
[![Coverage status][coverage]][coverage-url] | ||
[npm]: https://img.shields.io/npm/v/conventional-changelog-jshint.svg | ||
[npm-url]: https://npmjs.com/package/conventional-changelog-jshint | ||
[node]: https://img.shields.io/node/v/conventional-changelog-jshint.svg | ||
[node-url]: https://nodejs.org | ||
[deps]: https://img.shields.io/librariesio/release/npm/conventional-changelog-jshint | ||
[deps-url]: https://libraries.io/npm/conventional-changelog-jshint/tree | ||
[build]: https://img.shields.io/github/actions/workflow/status/conventional-changelog/conventional-changelog/ci.yaml?branch=master | ||
[build-url]: https://github.com/conventional-changelog/conventional-changelog/actions | ||
[coverage]: https://coveralls.io/repos/github/conventional-changelog/conventional-changelog/badge.svg?branch=master | ||
[coverage-url]: https://coveralls.io/github/conventional-changelog/conventional-changelog?branch=master | ||
[conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) [jshint](https://github.com/jshint/jshint) preset. | ||
**Issues with the convention itself should be reported on the JSHint issue tracker.** | ||
## Install | ||
```bash | ||
# yarn | ||
yarn add -D conventional-changelog-jshint | ||
# pnpm | ||
pnpm add -D conventional-changelog-jshint | ||
# npm | ||
npm i -D conventional-changelog-jshint | ||
``` | ||
## JSHint Convention | ||
@@ -82,10 +114,1 @@ | ||
Based on https://github.com/jshint/jshint/blob/master/CONTRIBUTING.md#commit-message-guidelines | ||
[npm-image]: https://badge.fury.io/js/conventional-changelog-jshint.svg | ||
[npm-url]: https://npmjs.org/package/conventional-changelog-jshint | ||
[travis-image]: https://travis-ci.org/stevemao/conventional-changelog-jshint.svg?branch=master | ||
[travis-url]: https://travis-ci.org/stevemao/conventional-changelog-jshint | ||
[daviddm-image]: https://david-dm.org/stevemao/conventional-changelog-jshint.svg?theme=shields.io | ||
[daviddm-url]: https://david-dm.org/stevemao/conventional-changelog-jshint | ||
[coverage-image]: https://coveralls.io/repos/github/conventional-changelog/conventional-changelog/badge.svg?branch=master | ||
[coverage-url]: https://coveralls.io/github/conventional-changelog/conventional-changelog?branch=master |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10444
112
114