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

yarn: Universal utility for Yarn version detection #701

Merged
merged 6 commits into from
Oct 24, 2024

Commits on Oct 24, 2024

  1. yarn: Splitting out version extraction to separate function

    The function will be made into a shared utility and used to
    refactor yarn_classic in future commits.
    
    Signed-off-by: Alexey Ovchinnikov <[email protected]>
    a-ovchinnikov committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    f4f968e View commit details
    Browse the repository at this point in the history
  2. yarn: Making version extraction a separate utility function

    And making Yarn PM use it.
    
    Signed-off-by: Alexey Ovchinnikov <[email protected]>
    a-ovchinnikov committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    a21f143 View commit details
    Browse the repository at this point in the history
  3. yarn-classic: Switching to unified version extraction

    This change makes yarn-classic reuse version extraction code
    from yarn.
    
    Signed-off-by: Alexey Ovchinnikov <[email protected]>
    a-ovchinnikov committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    fd9104a View commit details
    Browse the repository at this point in the history
  4. yarn: Introduce new VersionRange handler class

    This change introduces VersionRange class to simplify
    checks for version belonging to a range of versions.
    
    Signed-off-by: Alexey Ovchinnikov <[email protected]>
    a-ovchinnikov committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    5cf3439 View commit details
    Browse the repository at this point in the history
  5. yarn, yarn-classic: Switching to VersionsRange object

    Now Version is checked against VersionsRange object.
    
    Signed-off-by: Alexey Ovchinnikov <[email protected]>
    a-ovchinnikov committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    6d12bfe View commit details
    Browse the repository at this point in the history
  6. yarn: Minor PEP8 compliance refactoring

    This commit makes Yarn PM a bit more PEP8 compliant by
    replacing two implied None checks with explicit ones.
    
    Signed-off-by: Alexey Ovchinnikov <[email protected]>
    a-ovchinnikov committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    509eedf View commit details
    Browse the repository at this point in the history