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.