Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
conventional-recommended-bump-eslint
Advanced tools
Get a recommended version bump based on conventional commits
Get a recommended version bump based on conventional commits
Got the idea from https://github.com/conventional-changelog/conventional-changelog/pull/29
$ npm install --save conventional-recommended-bump
var conventionalRecommendedBump = require('conventional-recommended-bump');
conventionalRecommendedBump({
preset: 'angular'
}, function(err, result) {
console.log(result.releaseType);
//=> 'major'
});
$ npm install --global conventional-recommended-bump
$ conventional-recommended-bump --help
Type: boolean
Default: true
If true
, reverted commits will be ignored.
Type: string
Possible values: 'angular'
It's recommended to use a preset so you don't have to define everything yourself. Presets are names of built-in config
.
Type: object
This should serve as default values for other arguments of conventionalRecommendedBump
so you don't need to rewrite the same or similar config across your projects. Any value in this could be overwritten.
NOTE: options.config
will be overwritten by the values of preset. You should use either preset
or config
, but not both.
Type: function
A function that takes parsed commits as argument.
This should return an object including but not limited to level
and reason
. level
is a number
indicating what bump it should be and reason
is the reason of such release.
For backward compatibility, it could return a number
indicating what bump it should be.
####### commits
Type: array
An array of parsed commits. The commits are from last semver tag to HEAD
and is parsed by conventional-commits-parser.
If it returns with level
0
it will be a major
bump. If 1
, minor
bump. If 2
, patch
.
See the conventional-commits-parser docs.
Type: function
Object includes what's returned by whatBump
and
####### releaseType
Type: string
Possible values: 'major'
, 'minor'
and 'patch'
The value of what it should release as.
MIT © Steve Mao
FAQs
Get a recommended version bump based on conventional commits
The npm package conventional-recommended-bump-eslint receives a total of 2 weekly downloads. As such, conventional-recommended-bump-eslint popularity was classified as not popular.
We found that conventional-recommended-bump-eslint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.