new


JavaScript Node.js Semantic Versioning Semver

JavaScript Node.js has become very popular javascript runtime environment. Let's take a closer look at the steps to take on how we can publish NPM package.

Node JavaScript Semantic Versioning Semver

Semver is an industry standard naming convention for versions of apps.
Given a version number MAJOR.MINOR.PATCH, (ex. 2.4.1):
  1. MAJOR version - breaking changes
  2. MINOR change
  3. PATCH - bug fixes
One way we can increment is to utilize yarn version --strategyKeyWord where the strategyKeyWord is major || minor || patch
Terminal
>
yarn version --minor
> Output:

info Current version: 1.0.0 info New version: 1.1.0