Breakage Policy #1115
Replies: 2 comments
-
I think we should be doing a major version increase a change that causes code to no longer compile is done. This is exactly what semver is for, this might mean more regular major releases but i do not see any downsides to doing this. while i only see downsides to sidestepping semver like this. It will make people paranoid and annoyed because yet again twilight pushed a minor update and now your code doesn't compile, yet again. |
Beta Was this translation helpful? Give feedback.
-
(My understanding): Discord bumps its API version on major changes but not on some tricky (in Rust) changes like new
When a field becomes optional is more tricky. We can either add a new field with the option and deprecate the old field or treat default values ( Twilight could be forced to produce incorrect requests until users fix their code (with deprecation warning hints) which is fine as it would not break semver. We'd of course try to avoid this, but it would be better than breaking semver. |
Beta Was this translation helpful? Give feedback.
-
Copied from PR #1106, which wants to add a semantic versioning policy:
This was written for both the
http
andmodel
crates. I will be posting my own thoughts in a separate reply tonight.Beta Was this translation helpful? Give feedback.
All reactions