question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pin dependency versions

See original GitHub issue

Creating 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:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
threepointonecommented, Jan 11, 2022

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.

1reaction
petebacondarwincommented, Jan 11, 2022

For sure, we should discuss renovate separately - there is no rush for that.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found