In plain words
Semantic versioning numbers releases MAJOR.MINOR.PATCH: raise PATCH for bug fixes, MINOR for new features that break nothing, and MAJOR when existing users must change something to keep working.
Where you see it
Harbor publishes a JavaScript SDK on npm so customers can upload files from their own apps. Adding a method takes it from 2.3.1 to 2.4.0; renaming uploadFile to upload means 3.0.0. A customer's package.json range of ^2.3.1 accepts any 2.x.x from 2.3.1 up, but never 3.0.0.
What goes wrong
- A breaking change in a minor release
Removing a field or renaming a function in 2.4.0 breaks every customer on a ^2 range the next time they install. If anyone has to change their code, it's a major version.
- Staying on 0.x forever
Under SemVer, anything in 0.x may change at any time, and npm treats ^0.3.1 as patches only. Once people depend on the package, release 1.0.0 and start keeping the promise.
- Forgetting that behaviour is part of the API
Changing a default, an error code or the shape of a response breaks callers as surely as renaming a function. Count those as breaking changes too.
What to tell your agent
Quick check
Sign in to earn +10 XP for itHarbor's SDK is at 2.3.1. The next release fixes a bug and adds an optional parameter to upload(). What version is it?