From cbf892f948a4e7483994831c83c48f39a0abdce4 Mon Sep 17 00:00:00 2001 From: Abhinav Bansal Date: Fri, 17 Nov 2023 10:27:47 +0530 Subject: [PATCH] Update Session 2 Theory.md Added the difference between caret and tilde in package lock json --- Chapter 02 - Igniting our App/Theory/Session 2 Theory.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Chapter 02 - Igniting our App/Theory/Session 2 Theory.md b/Chapter 02 - Igniting our App/Theory/Session 2 Theory.md index 3da586a..7596f63 100644 --- a/Chapter 02 - Igniting our App/Theory/Session 2 Theory.md +++ b/Chapter 02 - Igniting our App/Theory/Session 2 Theory.md @@ -12,6 +12,10 @@ npm init ``` `npm init -y` can be used to skip the setup step, `npm` takes care of it and creates the `package.json` json file automatically , but without configurations. +### Difference between caret(^) and tilde(~) in package.json ? +- ~version “Approximately equivalent to version”, will update you to all future patch versions, without incrementing the minor version. ~1.2.3 will use releases from 1.2.3 to <1.3.0. +- ^version “Compatible with version”, will update you to all future minor/patch versions, without incrementing the major version. ^1.2.3 will use releases from 1.2.3 to <2.0.0. + ## Q: What is `Parcel/Webpack`? Why do we need it? A: `Parcel/Webpack` is type of a web application bundler used for development and productions purposes or power our application with different type functionalities and features.