You are maintaining a library, and you need to release a new version that fixes a bug but also changes the behavior of an existing feature. How should you update the version number according to semantic versioning?

  • 1.0.0
  • 1.1.0
  • 2.0.0
  • 1.0.1
According to semantic versioning (SemVer), when you make backward-incompatible changes or breaking changes, you should increment the major version. In this scenario, since the behavior change affects existing users, you should update to version 2.0.0.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *