09 - Use the Caret to get Latest Minor Version - Managing Packages with npm - freeCodeCamp Tutorial

Published: 03 July 2020
on channel: Ganesh H
363
3

Similar to how the tilde we learned about in the last challenge allows npm to install the latest PATCH for a dependency, the caret (^) allows npm to install future updates as well. The difference is that the caret will allow both MINOR updates and PATCHes.

Link to challenge : https://www.freecodecamp.org/learn/ap...
Written Guide : https://www.notion.so/ganeshh123/Use-...

Full Playlist for this course :    • Managing Packages with npm - freeCode...  
All Writen Guides for this course : https://www.notion.so/ganeshh123/4d5e...
All My Tutorials can be found at : https://www.notion.so/Tutorials-Ganes...

Concepts:
Caret Ranges
Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple. In other words, this allows patch and minor updates for versions 1.0.0 and above, patch updates for versions 0.X more than 0.1.0, and no updates for versions 0.0.X.
https://docs.npmjs.com/misc/semver#ca...

Semantic Versioning
Given a version number MAJOR.MINOR.PATCH, increment the:
- MAJOR version when you make incompatible API changes,
- MINOR version when you add functionality in a backwards compatible manner, and
- PATCH version when you make backwards compatible bug fixes.
https://semver.org/

package.json
All npm packages contain a file, usually in the project root, called package.json - this file holds various metadata relevant to the project. This file is used to give information to npm that allows it to identify the project as well as handle the project's dependencies. It can also contain other metadata such as a project description, the version of the project in a particular distribution, license information, even configuration data - all of which can be vital to both npm and to the end users of the package. The package.json file is normally located at the root directory of a Node.js project.
https://nodejs.org/en/knowledge/getti...
————————————————————————————————————
The Node Package Manager (npm) is a command-line tool used by developers to share and control modules (or packages) of JavaScript code written for use with Node.js.

freeCodeCamp (also referred to as “Free Code Camp”) is a non-profit organization that consists of an interactive learning web platform, an online community forum, chat rooms, online publications and local organizations that intend to make learning web development accessible to anyone. Beginning with tutorials that introduce students to HTML, CSS and JavaScript, students progress to project assignments that they complete either alone or in pairs. Upon completion of all project tasks, students are partnered with other nonprofits to build web applications, giving the students practical development experience.

Thanks for Watching!


Watch video 09 - Use the Caret to get Latest Minor Version - Managing Packages with npm - freeCodeCamp Tutorial online without registration, duration hours minute second in high quality. This video was added by user Ganesh H 03 July 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 363 once and liked it 3 people.