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

feat: add npm query cmd #5000

Merged
merged 9 commits into from Aug 1, 2022
Merged

feat: add npm query cmd #5000

merged 9 commits into from Aug 1, 2022

Commits on Jul 13, 2022

  1. feat: add npm query cmd

    Implemented Arborist `querySelectorAll` method that enables easier
    retrieval of installed packages using a css-selector-like syntax.
    
    It also includes a new command `npm query` that exposes that same logic
    to users of the npm cli.
    
    Ref: npm/rfcs#564
    ruyadorno authored and wraithgar committed Jul 13, 2022
    Copy the full SHA
    3b89a70 View commit details
    Browse the repository at this point in the history
  2. promisifies API and tree traversal

    This will enable for implementing async pseudo-selectors such as
    :outdate in the future.
    ruyadorno authored and wraithgar committed Jul 13, 2022
    Copy the full SHA
    7389698 View commit details
    Browse the repository at this point in the history
  3. fix: ci

    - lint fix
    - fix snapshot tests
    ruyadorno authored and wraithgar committed Jul 13, 2022
    Copy the full SHA
    3932313 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    4332744 View commit details
    Browse the repository at this point in the history
  5. deps: @npmcli/query@1.1.0

    wraithgar committed Jul 13, 2022
    Copy the full SHA
    4e8a00f View commit details
    Browse the repository at this point in the history
  6. fix: attribute selectors, workspace root, cleanup

    Giant refactor:
      - adds case insensitivity to attribute selectors
      - fixes --include-workspace-root
      - fixes -w results
      - docs updates
      - consolidating state into the `results` object and passing that to
        the functions that the ast walker functions use.
      - optimizing and refactoring other loops
      - code consolidation and consistency between two different attribute
        selectors
      - Un-asyncify functions that don't do async operators.  We leave the
        exported fn async so we can add some in the future.
      - lots of other minor tweaks/cleanups
    wraithgar committed Jul 13, 2022
    Copy the full SHA
    eccf71b View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. Copy the full SHA
    8bba441 View commit details
    Browse the repository at this point in the history
  2. fix: implement deduped

    wraithgar committed Jul 18, 2022
    Copy the full SHA
    a5fed3c View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    9349592 View commit details
    Browse the repository at this point in the history