Logo

dev-resources.site

for different kinds of informations.

Letz Understand NPM Versioning: A Beginner's Guide

Published at
6/22/2024
Categories
webdev
javascript
version
node
Author
darshanraval
Categories
4 categories in total
webdev
open
javascript
open
version
open
node
open
Author
12 person written this
darshanraval
open
Letz Understand NPM Versioning: A Beginner's Guide

Introduction

In This Blog, We will understand more about the versioning of npm packages or any application.

yes image

[ Hello Buddies ]

Let's get started...

Now, Let's take an example of one npm package called "express".

versioning of npm

We have an npm called "express" and its version is "^4.19.2".
Now, let's break down that version with the use of dot(.) and understand each part individually.

"^4.19.2"
Enter fullscreen mode Exit fullscreen mode
  1. First Part = 4
  2. Second Part = 19
  3. Third Part = 2

The first part we can call a major part of the version.

1 - First Part > [ MAJOR ] = [ 4 ]

If in the future, "4" will become "5" it means that a major update will be there which might break the backward compatibility.

2 - Second Part > [ MINOR ] = [ 19 ]

It means that, if the current version is "19" and it will be 20 or more then it will have some minor fixes and it's recommended to update to the new version.

3 - Third Part > [ PATCH ] = [ 2 ]

It means that, if the current version is "2" and it will be 3 or more then it means that some small bug fixed will be there which will not affect any functionality and it's optional also so if we need to update then update it or it'll not affect anything.

Now, Let's understand the what is the meaning of "^" symbol in the version.

The caret (^) symbol means that it will accept only minor and patch updates. If there is a change in the MAJOR version, it will not accept it.

thanks minions

Thanks!!

version Article's
30 articles in total
Favicon
What is Actually GitLab?
Favicon
The Ultimate Guide: How to Check Laravel Version
Favicon
Bitbucket vs GitHub: What’s the Difference Between Both?
Favicon
Letz Understand NPM Versioning: A Beginner's Guide
Favicon
Crossing the Bridge: Migrating and Working Across Version Control Systems
Favicon
Puro — Uma forma eficiente de gerenciar as versões flutter
Favicon
Version Control Systems and Their Importance
Favicon
Check PyTorch version, CPU and GPU(CUDA) in PyTorch
Favicon
How To Use Versioning On AWS S3 Buckets To Enable Overwrite Protection Of Your Data
Favicon
What is semantic version and why knowing semantic versioning matters!
Favicon
GreptimeDB v0.6 Released - Support Migrating Table's Regions between Datanodes
Favicon
What is Semantic Versioning and why you should use it for your software ?
Favicon
Contaktlab Full Version VST Plug-ins – Elevate Your Music Production Experience Download.
Favicon
Alpha 1.0.3 Upcoming Changes (wip)
Favicon
Alpha v1.0.2 - Upcoming Changes
Favicon
Difference between tilde(~) and caret(^) in package.json?
Favicon
How to Add a Build Number to the Web Build in Angular
Favicon
Versions Are For Humans
Favicon
How to Install Any Laravel Version
Favicon
Why Your Cloud Assets Need A Time Machine
Favicon
Angular version upgrade v4 to v12 - part1
Favicon
Rust Revolution - `r` the rust version manager
Favicon
VS Code Extension - Git Graph
Favicon
React Versiyon Düşürme
Favicon
Flutter Versiyon Düşürme
Favicon
What is the differences between GIT and SVN
Favicon
Notify users when a new version of your site is available and prompt them to refresh the page.
Favicon
🔔 version-rocket 🚀
Favicon
Understanding version control and mastering git - Branches and more...!!
Favicon
Choose your preferred major version on all open-source managed software!

Featured ones: