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.
Loading...
Related Quiz
- How can composite indexing be optimized to enhance query performance in relational databases?
- What is the role of the extends property in an ESLint configuration file?
- How does semantic versioning handle pre-release versions and build metadata?
- What is the role of the error-handling middleware when dealing with unhandled promise rejections in Express?
- In Express.js, which middleware is used to handle errors?