Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is preMajor=true treating minor updates as patch updates? #76

Open
MikeDabrowski opened this issue Nov 4, 2021 · 0 comments
Open

Comments

@MikeDabrowski
Copy link

Im working on a project still in 0.y.z version. For bugfixes we want to bump patch and for new features or changes - minor. Im following conventional commits and using standard-verstion to cut a release. I noticed it always bumps patch version even if only feat commits have been made. I debugged the code and turns out config.preMajor is set to true. Before I overwrite it I want to know why such behaviour seems to be intended ?

In other words - why in 0.y.z any major or minor change is disregarded and only patch is incremented?

if (config.preMajor && level < 2) {
        level++
      }
      ...
VERSIONS[2] //patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant