Rich-Harris / magic-string

Manipulate strings like a wizard
MIT License
2.34k stars 113 forks source link

Consider bumping the minor version only for breaking changes #244

Closed dummdidumm closed 1 year ago

dummdidumm commented 1 year ago

I've seen a few minor version bumps now that only seem to contain bug fixes or feature releases. Pre 1.0, minor version bumps are considered as major version bumps by npm, so if you do ^0.3.0 you won't get 0.4.x or higher. Therefore consider bumping the minor version only for breaking changes. Source: https://docs.npmjs.com/cli/v6/using-npm/semver#caret-ranges-123-025-004

antfu commented 1 year ago

We are aware of the convention, and we do that on purpose. The main reason is that a lot of projects are using magic-string right now. The changes we have made might break the existing usage, thus we consider them as breaking changes.