Node.js · Junior · Question 25 of 75
In semantic versioning MAJOR.MINOR.PATCH, when should MAJOR increase?
- 1When a bug is fixed
- 2Every month
- ✓Correct answer: When there are breaking changes to the public API
Explanation
MINOR is for new backward-compatible features and PATCH is for backward-compatible bug fixes. Version ranges in package.json rely on this agreement.