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(npm): better node version and version requirement compatibility #15714
Conversation
@@ -78,7 +78,8 @@ indexmap = "1.8.1" | |||
jsonc-parser = { version = "=0.21.0", features = ["serde"] } | |||
libc = "=0.2.126" | |||
log = { version = "=0.4.17", features = ["serde"] } | |||
mitata = '=0.0.7' | |||
mitata = "=0.0.7" | |||
monch = "=0.2.0" |
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.
Already a dependency of deno_task_shell.
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!
assert!(!tester.matches("0.1.0")); | ||
assert!(!tester.matches("1.0.0")); | ||
} | ||
} |
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.
Nice tests!
We initially used the
semver
crate as a first pass solution, but this PR adds way better node semver support.Wrote an in-house solution so we can move fast fixing bugs and re-use some of the code for our npm specifiers. The npm specifiers use a stricter parser than the version requirements allowed in package.json files.
Closes #15600