LBRY Block Explorer

LBRY Claims • 09-use-the-caret-to-get-latest-minor

b4303960fc9b1b6ffb3262f3382c8c919db77983

Published By
Anonymous
Created On
25 Jun 2021 17:21:27 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
09 - Use the Caret to get Latest Minor Version - Managing Packages with npm - freeCodeCamp Tutorial
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.<br /><br />Link to challenge : <a href="https://www.freecodecamp.org/learn/apis-and-microservices/managing-packages-with-npm/use-the-caret-character-to-use-the-latest-minor-version-of-a-dependency" target="_blank" rel="nofollow">https://www.freecodecamp.org/learn/apis-and-microservices/managing-packages-with-npm/use-the-caret-character-to-use-the-latest-minor-version-of-a-dependency</a><br />Written Guide : <a href="https://www.notion.so/ganeshh123/Use-the-Caret-Character-to-Use-the-Latest-Minor-Version-of-a-Dependency-b654b36ba1ae44d9bb373f879d40b5d8" target="_blank" rel="nofollow">https://www.notion.so/ganeshh123/Use-the-Caret-Character-to-Use-the-Latest-Minor-Version-of-a-Dependency-b654b36ba1ae44d9bb373f879d40b5d8</a><br /><br />Full Playlist for this course : <a href="https://www.youtube.com/playlist?list=PLhGp6N0DI_1RO7qDtCW9Cn9FyRJ1Dk6xk" target="_blank" rel="nofollow">https://www.youtube.com/playlist?list=PLhGp6N0DI_1RO7qDtCW9Cn9FyRJ1Dk6xk</a><br />All Writen Guides for this course : <a href="https://www.notion.so/ganeshh123/4d5e59dbe72940aeb68fe6f38ebf28e1" target="_blank" rel="nofollow">https://www.notion.so/ganeshh123/4d5e59dbe72940aeb68fe6f38ebf28e1</a><br />All My Tutorials can be found at : <a href="https://www.notion.so/Tutorials-Ganesh-H-293ea420d34a464f9a1907e0405b5f26" target="_blank" rel="nofollow">https://www.notion.so/Tutorials-Ganesh-H-293ea420d34a464f9a1907e0405b5f26</a><br /><br />Concepts:<br />Caret Ranges<br />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.<br /><a href="https://docs.npmjs.com/misc/semver#caret-ranges-123-025-004" target="_blank" rel="nofollow">https://docs.npmjs.com/misc/semver#caret-ranges-123-025-004</a><br /><br />Semantic Versioning<br />Given a version number MAJOR.MINOR.PATCH, increment the:<br />- MAJOR version when you make incompatible API changes,<br />- MINOR version when you add functionality in a backwards compatible manner, and<br />- PATCH version when you make backwards compatible bug fixes.<br /><a href="https://semver.org/" target="_blank" rel="nofollow">https://semver.org/</a><br /><br />package.json<br />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.<br /><a href="https://nodejs.org/en/knowledge/getting-started/npm/what-is-the-file-package-json/" target="_blank" rel="nofollow">https://nodejs.org/en/knowledge/getting-started/npm/what-is-the-file-package-json/</a><br />-————————————————————————————————————-<br />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.<br /><br />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 acce<br />...<br /><a href="https://www.youtube.com/watch?v=UiJF0LeVg90" target="_blank" rel="nofollow">https://www.youtube.com/watch?v=UiJF0LeVg90</a>
Author
Content Type
Unspecified
video/mp4
Language
English
Open in LBRY