absolute-version / commit-and-tag-version

Fork of the excellent standard-version. Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org :trophy:
ISC License
385 stars 36 forks source link

feat: allows to use semver strictly on versions less than 1.0.0 #87

Closed Y-qwq closed 1 year ago

Y-qwq commented 1 year ago

I re-pulled request this PR to the current repository. standard-version for feat commit bump is a patch version, which is very unfriendly for feature fixes, expect commit-and-tag-version to provide a flag configured to strictly follow the semver specification.

TimothyJones commented 1 year ago

As I understand it, this PR would mean that it would not follow the semver specification, yes?

Y-qwq commented 1 year ago

The explanation of https://semver.org/#spec-item-4 for this is not very clear, and according to my search, two explanations should exist.

One is the lerna, where feat and BREAK CHANGE will bump minor version.

One is the standard-version, where only BREAK CHANGE will bump minor version.

I think both approaches have their application scenarios, so maybe we should support both?

Finally, whatever the conclusion, this PR should be closed because it has the issue that lerna had.