10.0.0 • Published 8 months ago

conventional-recommended-bump v10.0.0

Weekly downloads
1,473,906
License
MIT
Repository
github
Last release
8 months ago

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

# 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(process.cwd()).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 & Params | string): this

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

bumper.commits(params: GetCommitsParams & Params, 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.

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

lerna@lerna/conventional-commits@lerna/create@megasaur/conventional-commits@essent/lernaeasy-select-rnreact-native-bluetooth2conventional-toolsairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112@ntt_app/react-native-custom-notification@jaccomeijer/make@wheelroom/makereact-native-covid-sdkreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutils@oiti/documentoscopy-react-nativequoc-test@infinitebrahmanuniverse/nolb-conv@lvjiaxuan/testluminos-ui-core@everything-registry/sub-chunk-1377jawwy-sdkjawwy_gamification_releasemock-changelogreact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplegriffin-ui-librarytailwind-vector-effectterbittest-library-123test-haptik-libwinx-form-winxwereleasewzt-plugin-release-itwifi_configuration_packagern-tm-notifyrn-currency-formatterrn-counter-demorn-session-multiplier-demorn_unique_device_idrnttlockshould-releasereactnativelyrn-check-btnrn-circular-chartrelease-documentation-clirelease-commitrelease-it-httprelease-it-pnpmrelease-it-testrelease-merelease-pluginrn-adyen-dropinstandard-versionstandard-version-commonjsstandard-version-esdocstandard-version-finottastandard-version2react-native-wtfreact-native-version-appreact-native-withframework-checksemantic-release-gitflowsemantic-release-githubsemantic-release-gitlabsemantic-release-gitlab-lqtest-zeo-collectvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvcloudcam-playkit-js-hlsvantiq-reactjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativesushi-sdk-ftmrn-agora-ios-mzzzxxxyyy321123miracle-webpack-tree-shakingmisciblelerna-markmarijnissenlerna-spotimlerna-wodgit-flowjesh-calculationjamuskalimjrennsoh88-react-native-scroll-indicatorlerna-customkrtool
10.0.0

8 months ago

8.0.0

1 year ago

9.0.0

1 year ago

7.0.0

2 years ago

7.0.1

2 years ago

6.1.0

4 years ago

6.0.12

4 years ago

6.0.11

4 years ago

6.0.10

4 years ago

6.0.9

5 years ago

6.0.5

5 years ago

6.0.4

5 years ago

6.0.3

5 years ago

6.0.2

5 years ago

6.0.0

5 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.1.1

6 years ago

4.0.4

6 years ago

4.0.3

6 years ago

4.0.1

6 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

8 years ago

0.3.0

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

10 years ago

0.0.0

10 years ago