Standard-version: bug: feat is not bumped correctly

Created on 6 Oct 2019  Â·  2Comments  Â·  Source: conventional-changelog/standard-version

Issue

Discovered a bug in which [email protected] does not bump version correctly for type feat.

Expected

package.json increments by minor version.

Actual

package.json increments by patch version.

Steps to Reproduce

mkdir test
cd test
git init
npm init -y
git add .
git commit -m "feat: test"
npx standard-version

Output:

npx: installed 206 in 9.929s
✔ bumping version in package.json from 0.0.0 to 0.0.1
✔ created CHANGELOG.md
✔ outputting changes to CHANGELOG.md
✔ committing package.json and CHANGELOG.md
✔ tagging release v0.0.1
ℹ Run `git push --follow-tags origin master && npm publish` to publish

CHANGELOG.md:

# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### 0.0.1 (2019-10-06)


### Features

* test 022fa96

Most helpful comment

Quoting @coreyfarrell on this as he nicely explained this on slack.

the current behavior of standard-version is to follow the way npm works. when you're in 0.x minor bumps are for breaking changes, patch is for non-breaking changes.

this functionality was introduced in [email protected]

standard-version -r minor will do a minor bump regardless of commits

All 2 comments

+1

Quoting @coreyfarrell on this as he nicely explained this on slack.

the current behavior of standard-version is to follow the way npm works. when you're in 0.x minor bumps are for breaking changes, patch is for non-breaking changes.

this functionality was introduced in [email protected]

standard-version -r minor will do a minor bump regardless of commits

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vidavidorra picture vidavidorra  Â·  5Comments

jefftienchow picture jefftienchow  Â·  5Comments

eemeli picture eemeli  Â·  4Comments

weaintplastic picture weaintplastic  Â·  5Comments

Hotell picture Hotell  Â·  6Comments