Skip to content

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

@MikeDabrowski

Description

@MikeDabrowski

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions