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 lib npm.js #1509

Closed
wants to merge 56 commits into from
Closed

Commits on Jul 23, 2020

  1. unit test for unsupported version checker

    Also, modernize the code in the unsupported version checking module.
    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    447bdb8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5cdfb2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d675d69 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a12d702 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a2368c2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9ecaddd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3535fca View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f937a1c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c7c0447 View commit details
    Browse the repository at this point in the history
  10. remove onload-script config

    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    67d7ffd View commit details
    Browse the repository at this point in the history
  11. Update open-url and help to fix browser help docs

    Allows openUrl to open `file://` urls, and passes that instead of the
    raw path.
    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    6799f25 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8e1e68c View commit details
    Browse the repository at this point in the history
  13. remove reference to npm.rollbacks list

    We don't use that any more, Arborist handles it all for us.
    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    5edb3b5 View commit details
    Browse the repository at this point in the history
  14. First pass refactoring npm.js and npm-cli.js

    - Several sections of code moved out into separate modules.
    - npm is an instance of an inline class.
    - uses a Proxy for npm.commands object instead of the old hand-rolled
      Proxy-esque thing.
    - organized code path for outputting usage/help information.
    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    5075e82 View commit details
    Browse the repository at this point in the history
  15. update dependencies, refactor config loading to async

    This removes a lot of very outdated dependencies, updates many to
    their modern (usually promisified) versions, and updates (or removes)
    code to account for the change.
    
    Several dependencies have been completely removed, and others a bit
    shuffled around, so that the node_modules folder can be bundled somewhat
    more optimally than it would have otherwise.
    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    b5bcaf4 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    d12fbe0 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    6c3d221 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    99b4bd5 View commit details
    Browse the repository at this point in the history
  19. use set-user-agent util

    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    9e5874c View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    a3e89ee View commit details
    Browse the repository at this point in the history
  21. update chalk, remove is-ci

    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    ec1337b View commit details
    Browse the repository at this point in the history
  22. update parse-conflict-json

    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    b8be88a View commit details
    Browse the repository at this point in the history
  23. remove direct dep on npm-install-checks

    This module is only used via arborist and npm-pick-manifest
    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    6630581 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    58c69e9 View commit details
    Browse the repository at this point in the history
  25. tests for error-message util

    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    7a6e16b View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    0451572 View commit details
    Browse the repository at this point in the history
  27. refactor and test perf.js util

    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    c6f0616 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    bc27fcb View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    b1c16f6 View commit details
    Browse the repository at this point in the history
  30. add test for output util

    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    75ac93d View commit details
    Browse the repository at this point in the history
  31. make ll a first-class command to make the cmd implementation easier

    It was a mistake to have a command alias that sets a config.
    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    ed5c98b View commit details
    Browse the repository at this point in the history
  32. tests for main npm module

    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    7dcbb5d View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    8af672f View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    8857fb3 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    c4a4857 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    3437399 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    3e4a2c5 View commit details
    Browse the repository at this point in the history
  38. Full dependency reboot

    Reinstall everything from a clean node_modules and package-lock.json
    state.
    
    Re-generate list of bundleDependencies and node_modules/.gitignore with
    a script that does the right thing based on actual dependency state.
    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    2eeb21a View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    977bcf7 View commit details
    Browse the repository at this point in the history
  40. Make ll completion test pass by comparing toString() values

    The functions are different actual things because only one of them is
    loaded in the NYC transpiled coverage environment.
    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    63ac2a4 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    cce81d5 View commit details
    Browse the repository at this point in the history
  42. Use eslint directly instead of standard

    Way too opinionated and hard to configure.  Copied out standard's config
    as a starting point, and tweaked a few things that don't make sense for
    the npm cli project.
    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    11ef4de View commit details
    Browse the repository at this point in the history
  43. lint the lib folder

    isaacs committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    c97a878 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    9a12a7e View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2020

  1. @npmcli/arborist@0.0.5

    isaacs committed Jul 24, 2020
    Configuration menu
    Copy the full SHA
    7ffd198 View commit details
    Browse the repository at this point in the history
  2. reset and update all deps

    isaacs committed Jul 24, 2020
    Configuration menu
    Copy the full SHA
    d69aa6b View commit details
    Browse the repository at this point in the history
  3. reset deps using npm v7

    First self-install!
    isaacs committed Jul 24, 2020
    Configuration menu
    Copy the full SHA
    96d0f25 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2020

  1. Configuration menu
    Copy the full SHA
    021db3a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9481645 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    26f1e52 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cd4f487 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2020

  1. Configuration menu
    Copy the full SHA
    17969d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4905fa8 View commit details
    Browse the repository at this point in the history
  3. Reset deps (again)

    This resets the node_modules tree state after fixing the bug in
    minipass-pipeline that caused some tarballs to be incompletely unpacked.
    isaacs committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    d6755f0 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2020

  1. @npmcli/arborist@0.0.10

    isaacs committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    5f08b61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed5c7dc View commit details
    Browse the repository at this point in the history