Skip to content
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

refactor(semver): generalize semver related structs #17605

Merged
merged 8 commits into from
Feb 1, 2023

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jan 31, 2023

  • Generalizes the npm version code (ex. NpmVersion -> Version, NpmVersionReq -> VersionReq). This is a slow refactor towards extracting out this code for deno specifiers and better usage in deno_graph.
  • Removes SpecifierVersionReq. Consolidates NpmVersionReq and SpecifierVersionReq to just VersionReq
  • Removes NpmVersionMatcher. This now just looks at VersionReq.
  • Paves the way to allow us to create NpmPackageReference's from a package.json's dependencies/dev dependencies (VersionReq::parse_from_npm).

@dsherret dsherret requested a review from bartlomieju January 31, 2023 22:04
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, very nice cleanup. Just a few requests for some more documentation

@dsherret dsherret merged commit 600fff7 into denoland:main Feb 1, 2023
@dsherret dsherret deleted the refactor_semver_stuff branch February 1, 2023 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants