-
-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(packages): lock dependencies versions #958
Conversation
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the npm run docs
and npm run format
commands working correctly?
@evenstensberg Let me know if anything else is needed. Let's get this merged. 🚀 |
Why was this change allowed? Now all downstream consumers are going to have duplicates of all their modules since these are fixed versions. |
Mainly because of this event: https://snyk.io/blog/malicious-code-found-in-npm-package-event-stream/ We believe all libs should lock their versions of the dependencies to low down the likelihood of these events. |
Bazel and Angular is doing the same thing, this is ok |
|
@ematipico That's nice and all but that can easily be avoided without having to lock all dependencies. You're now in the scenario where this package will never receive any bug fixes for transitive deps without the package deps being manually updated. So unless you're going to do a dependency audit on a weekly basis, this does more harm than good. |
How? This is the power and the weakness of npm. If we need a fix, we can simply set a bot and that would help. On the other hand an hacked package takes a lot (even a month) to get detected. I believe it's better to be safe and secure. But if you have other solutions, let's evaluate them! |
@evenstensberg Unless it's part of a build process, most of their packages in the GitHub source use @ematipico I could say the same thing about pinned versions... How do you know the version you pinned to is safe and secure? What if it's revealed a month later to also be problematic? This argument goes both ways but is also a personal opinion. So I suppose this discussion is over. Ironically I will now have to pin this to a previous version. |
React and Vue don't have direct dependencies. Anyway feel free to terminate the discussion, although I asked you what's your alternative solution! The event-stream issue was caused because a person took advantage of unpinned dependencies (of dependencies, etc.) and people lost money! What's the less evil? |
I'm hoping with the new GitHub registry, a lot of these problems will go away as the artifacts now sit alongside the source code and are verified and signed before publishing. Bad actors will always be thing but being entirely proactive isn't a perfect solution. |
What kind of change does this PR introduce?
Pin dependencies
Did you add tests for your changes?
N/A
If relevant, did you update the documentation?
N/A
Summary
Locking dependencies as per discussed on #697
Does this PR introduce a breaking change?
No
Other information
Closes #697