Closed cortadocodes closed 2 years ago
The breaking change should be applied at the point of code removal not code deprecation, because that's when the code actually breaks.
Not sure about DPR
and REM
... I quite like the idea that we can pull out an !!!!UPCOMING CHANGES!!!! section if we adopt DPR. But I think I think I'd normally use REF
or CHO
(aka "I'm tidying stuff up") for removal of deprecated code... and you could plausibly deprecate one thing as part of an ENH
or FEA
.
We could treat it a bit like a BREAKING CHANGE in that if you have DEPRECATION in the commit body it knows what it is? Then we can have a deprecation applied orthogonally to the actual purpose of the commit. In essence we're adding multiple attributes to a commit and we want to be careful not to obfucscate that.
Ok I'll update the way I version control deprecations and removals.
I agree about the DEPRECATION
note in the commit body - this gives us greater flexibility as you say. I'll add it as a new feature request.
Superseded by #57
@thclark what do you think about having e.g.
DPR
for deprecation andREM
for removal of previously deprecated code?Additionally, should breaking change alerts be attached to releases that: