Closed lorenzwalthert closed 3 years ago
It all depends on the severity of the breaking change — it's quite possible for something that is technically breaking change to not affect any user code. So I don't think there are any absolute rules, but if you do expect a change to break a lot of existing code it should be major version.
But generally, I don't think the style guide is quite the right place for this sort of nuanced discussion. Might be better in R packages?
Under 10.2.3, breaking changes in the context of
NEWS.md
are discussed. However, it's not stated explicitly that breaking changes require a bump of the major version (e.g. from1.3.2
to2.0.0
). It's also not explicitly recommended in r-pkgs (maybe this issue should rather go there), although semantic versioning is mentioned there. But I think at least for {dplyr} and some other tidyverse packages, I think the convention is to bump the major for breaking changes. Should this be formalised somewhere? I.e. add a sentence here inof in r-pkgs.org, e.g. here:
Seems to me that how to handle breaking changes in releases is merits more mention than how to increase the dev part of the version when adding new features.