Pin dependency versions
See original GitHub issueCreating this issue for discussion. Happy to not do it—this is just a suggestion.
Pinning versions is generally good practice, in my opinion, because it means that we know exactly what gets installed in development and on our users’ machines. And we’re all touching this project so frequently that it’s unlikely we’ll let something get super stale.
Installation process for a new package becomes
npm install --save-exact some-package
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Should you Pin your JavaScript Dependencies?
You mainly pin versions for certainty, and visibility. When you have a pinned version of each dependency in your package.json , you know...
Read more >How should you pin dependencies and why? – The Guild
Historically the most common way to pin dependencies was to specify an exact version in your package.json , for example using the --save-exact ......
Read more >Pin exact dependency versions - Better Dev
Pinning dependency versions can save a lot of trouble, even when using a lock file. See what happens if you don't and how...
Read more >Dependency Pinning Guide - EasyPost
Guide to pin specific versions or version types of dependencies.
Read more >Pin your npm/yarn dependencies - Max Leiter
A guide on how to pin your dependencies and why you may want to.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Reasonable points. Yeah, let’s pin versions.
I’d like to still discuss renovate/dependabot auto updates separately. I don’t agree that all dependencies have to be constantly updated (especially know how they’re usually built and pushed out there.) Happy to narrow it down to actual security issues and such, but even then I’d prefer a more nuanced approach.
For sure, we should discuss renovate separately - there is no rush for that.