Be the first user to complete this post
|
Add to List |
Understanding semver versioning for your nodejs packages
When creating a package
PATCH Version Number- Starts from 1
- Increments by 1 when you fix bugs but dont introduce new features.
- Starts from 0.
- Indicates a backward compatible new feature.
- An increment resets the patch number to 0 on each increment.
- Starts from 0
- Incremented only when a backwards incompatible feature is introduced.
- An increments resets both - Minor and Patch version numbers to 0.
When consuming a package
The diagram below shows the three most important ways in which you consume a package that is versioned using semver.Also Read:
- Testing promise sequence using mocha, chai, chai-as-promised, sinon
- What does npm start do in nodejs
- Access the request body of a post request in your nodejs - expressjs app.
- Debugging nodejs applications using node-inspector and Chrome Dev Tools