-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: improve lockfile v4 and use deno_semver to fix duplicate entry issue #37
Conversation
"jsr:@std/[email protected]": "jsr:@std/[email protected]", | ||
"jsr:@std/assert@^0.210.0": "jsr:@std/[email protected]", |
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.
You'll notice here that we got smarter and can tell these are actually the same version requirement now.
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.
LGTM
#[serde(skip_serializing_if = "BTreeSet::is_empty")] | ||
#[serde(default)] | ||
pub dependencies: BTreeSet<String>, | ||
pub dependencies: HashSet<JsrDepPackageReq>, |
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.
No longer need to keep ordering?
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.
It's handled in the printer only now.
I'm going to merge this one, but will follow up with a new PR that normalizes the versions. |
Fixes the issue found here: denoland/deno_graph#517 (comment)
Also, makes the "specifiers" area less verbose for lockfile v4.