Verbosely, this means "any foobar version greater than or equal to 1.1.0 but less than 2". Historically, projects use SemVer ranges in their package.json.įor instance, if you run npm install foobar you will see an entry like "foobar": "^1.1.0" added to your package.json. To ensure we're all talking about the same thing, it's important to define exactly what we mean by dependency "pinning". If you don't want to read the in-depth discussion, you can skip ahead to our recommendations in the "So what's best?" section. The answer is "It's your choice", but we can certainly make some generalisations/recommendations to help you. Once you start using a tool/service like Renovate, probably the biggest decision you need to make is whether to "pin" your dependencies instead of using SemVer ranges. Should you Pin your JavaScript Dependencies? ¶ Reducing the "noise" of dependency updates Should you Pin your Javascript Dependencies?ĭownside of pinned dependencies - upgrade "noise"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |