conventional-recommended-bump
Get a recommended version bump based on conventional commits.
Last updated 10 months ago by dangreen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install conventional-recommended-bump 
SYNC missed versions from official npm registry.

conventional-recommended-bump

ESM-only package NPM version Node version Dependencies status Install size Build status Coverage status

Get a recommended version bump based on conventional commits.

Got the idea from https://github.com/conventional-changelog/conventional-changelog/pull/29


Install   •   Usage   •   API   •   CLI

Install

# pnpm
pnpm add conventional-recommended-bump
# yarn
yarn add conventional-recommended-bump
# npm
npm i conventional-recommended-bump

Usage

import { Bumper } from 'conventional-recommended-bump'

const bumper = new Bumper().loadPreset('angular')
const recommendation = await bumper.bump()

console.log(recommendation.releaseType) // 'major'

API

new Bumper(cwdOrGitClient: string | ConventionalGitClient = process.cwd())

Create a new Bumper instance. cwdOrGitClient is the current working directory or a ConventionalGitClient instance.

bumper.tag(paramsOrTag: GetSemverTagsParams | string): this

Set params to get the last semver tag or set the tag directly.

bumper.commits(params: GetCommitsParams, parserOptions?: ParserStreamOptions): this

Set params to get the commits.

bumper.commits(commits: Iterable<Commit> | AsyncIterable<Commit>): this

Set the commits directly.

bumper.loadPreset(preset: PresetParams): this

Load and set necessary params from a preset.

generator.config(config: Preset | Promise<Preset>): this

Set the config directly.

bumper.bump(whatBump?: (commits: Commit[]) => Promise<BumperRecommendation | null | undefined>): Promise<BumperRecommendation>

Get a recommended version bump based on conventional commits. whatBump function is required if preset is not loaded.

CLI

conventional-recommended-bump --help

License

MIT © Steve Mao

Current Tags

  • 11.2.0                                ...           latest (10 months ago)
  • 6.0.11                                ...           next (5 years ago)

52 Versions

  • 11.2.0                                ...           10 months ago
  • 11.1.0                                ...           a year ago
  • 11.0.0                                ...           a year ago
  • 10.0.0                                ...           2 years ago
  • 9.0.0                                ...           3 years ago
  • 8.0.0                                ...           3 years ago
  • 7.0.1                                ...           3 years ago
  • 7.0.0                                ...           3 years ago
  • 6.1.0                                ...           5 years ago
  • 6.0.12                                ...           5 years ago
  • 6.0.11                                ...           5 years ago
  • 6.0.10                                ...           6 years ago
  • 6.0.9                                ...           6 years ago
  • 6.0.5                                ...           6 years ago
  • 6.0.4                                ...           6 years ago
  • 6.0.3                                ...           6 years ago
  • 6.0.2                                ...           7 years ago
  • 6.0.0                                ...           7 years ago
  • 5.0.1                                ...           7 years ago
  • 5.0.0                                ...           7 years ago
  • 4.1.1                                ...           7 years ago
  • 4.0.4                                ...           7 years ago
  • 4.0.3                                ...           7 years ago
  • 4.0.1                                ...           8 years ago
  • 4.0.0                                ...           8 years ago
  • 3.0.0                                ...           8 years ago
  • 2.0.9                                ...           8 years ago
  • 2.0.8                                ...           8 years ago
  • 2.0.7                                ...           8 years ago
  • 2.0.6                                ...           8 years ago
  • 2.0.5                                ...           8 years ago
  • 2.0.4                                ...           8 years ago
  • 2.0.3                                ...           8 years ago
  • 2.0.1                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.2.1                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.3                                ...           8 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.3.0                                ...           10 years ago
  • 0.2.1                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.2                                ...           10 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
  • 0.0.3                                ...           11 years ago
  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
  • 0.0.0                                ...           11 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 43
Last Month 101
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |