Repository navigation
Pin dependencies to exact versions only - #4615
Merged
Merged
Conversation
mejiaj
reviewed
Apr 4, 2022
Contributor
There was a problem hiding this comment.
No breaking changes with this approach.
The only concern would be an increase in size to node_modules if users have the same package, but different versions in their projects.
Alternatively, we could try:
- Pinning
dependenciesonly and keeping the caret for devDependencies - Rely on the
~to only use patch versions
Contributor
Author
|
Thanks James. Let's leave the exact pin for now, knowing that it could cause some ballooning and possible dependency conflicts. I agree that the regular dependencies are the best candidate for the exact pin, but let's be more conservative here and apply the exact pin across the board — then we can re-evaluate after some additional development time. |
mejiaj
approved these changes
Apr 5, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pin dependencies to exact versions only to give the project and team more control about which dependencies load on an
npm install.