-
Notifications
You must be signed in to change notification settings - Fork 249
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
Pin exact dependency versions #1217
Pin exact dependency versions #1217
Conversation
|
"buffer": "^6.0.3", | ||
"elliptic": "^6.5.4", | ||
"buffer": "6.0.3", | ||
"elliptic": "6.5.4", |
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.
why is elliptic used here in ed25519 context? elliptic's implementation of the curve is buggy and produces invalid outputs, which means in blockchain context "someone will lose money"
From the library usage perspective, it is not great to pin all the dependencies down to a single version as that may block deduplicating the dependencies if two libraries of slightly different versions are used (1.0.1 and 1.0.2). I am wondering if there is some middle ground that we can find here. Also, this PR only resolves the first part of #1200, so it will be too early to close that issue without reviewing and removing buggy dependencies. |
Just walk through every dependency in the lockfile and see which are duplicated, then resolve every one separately - that's what I do. |
Hey guys, thank you for the replies. Based on them these are the next steps that we can take:
|
others:
|
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.
As suggested offline, let's merge this PR with the pinned dependencies, and then work on a separate PR that will slim down the dependencies.
Pre-flight checklist
pnpm changeset
to create achangeset
JSON document appropriate for this change.Motivation
Test Plan
Related issues/PRs
#1200