Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: npm/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.19.1
Choose a base ref
...
head repository: npm/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v9.0.0-pre.0
Choose a head ref
  • 18 commits
  • 92 files changed
  • 6 contributors

Commits on Sep 1, 2022

  1. Configuration menu
    Copy the full SHA
    eb1998a View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2022

  1. feat: update supported node engines in package.json

    This also replaces the previous check for known broken versions of node
    with an exception handler for syntax errors in order to try and give a
    nicer error message when attempting to run npm on older node versions.
    
    BREAKING CHANGE: `npm` is now compatible with the following semver range
    for node: `^14.17.0 || ^16.13.0 || >=18.0.0`
    
    Ref: npm/statusboard#519
    wraithgar committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    457d388 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    41481f8 View commit details
    Browse the repository at this point in the history
  3. chore: fix failing tests in windows + node 18

    Some of our tests were failing in windows after testing on node 18. The
    reason was the inability to clean up the logs dir. This changes forces
    a few tests to run in order and also cleans up any use of multiple
    `t.testdir` calls in a single child test which can cause problems.
    lukekarrys authored and wraithgar committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    c927afe View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    412cbab View commit details
    Browse the repository at this point in the history
  5. feat: remove npm bin (#5459)

    BREAKING CHANGE: this removes the `npm bin` command
    
    The output of this command is misleading and incomplete.  The `.bin`
    resolution of npm is much more nuanced than this command implies, and
    the output of `npm bin` is not something end users should be dealing
    with.  `npm` itself is responsible for running the `bin` entries of
    modules, with the exception of global bins, which end up in the same
    folder as `node` itself, presumably already in a user's path since they
    can run node.
    
    Closes npm/statusboard#537
    wraithgar authored Sep 8, 2022
    Configuration menu
    Copy the full SHA
    2e92800 View commit details
    Browse the repository at this point in the history
  6. feat: default install-links to true (#5458)

    BREAKING CHANGE: this changes the default value of `install-links` to
    true
    
    Closes npm/statusboard#510
    wraithgar authored Sep 8, 2022
    Configuration menu
    Copy the full SHA
    2a8c2fc View commit details
    Browse the repository at this point in the history
  7. feat: remove npm set-script (#5456)

    BREAKING CHANGE: this removes `npm set-script`
    
    Folks should use `npm pkg set` to set the `scripts` field in their
    `package.json`
    
    Closes npm/statusboard#449
    wraithgar authored Sep 8, 2022
    Configuration menu
    Copy the full SHA
    926f0ad View commit details
    Browse the repository at this point in the history
  8. feat(arborist): allow for selectors and function names with :semver p…

    …seudo selector
    nlf authored and wraithgar committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    09c46e8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    285b39f View commit details
    Browse the repository at this point in the history
  10. feat: remove npm birthday (#5455)

    BREAKING CHANGE: this removes the `npm birthday` command
    wraithgar authored Sep 8, 2022
    Configuration menu
    Copy the full SHA
    49bbb2f View commit details
    Browse the repository at this point in the history
  11. fix: loadActual cleanup

    While looking at the target setter for nodes, it seemed odd that we were
    making affordances for sometimes setting a promise as the target.  After
    unraveling the code, it turns out this is impossible outside of tests,
    where we set environment variables to mimic that state.  We were always
    awaiting the generation of links/nodes where appropriate. This commit
    inlines some code and cleans it up to the point where this fact could be
    verified, and then removes the now unneeded logic in loadActual that was
    trying to account for this.  loadActual, an async function, now returns
    a promise that resolves to the tree, as a singleton. This maintains the
    use case commented on where buildIdealTree and reify can happen in
    parallel.
    
    This fixes a potential bug in reify (and likely others) which pass
    around this.idealTree as an object, and NOT a promise, even though
    before this refactor it can sometimes be a promise.
    wraithgar committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    2db6c08 View commit details
    Browse the repository at this point in the history
  12. fix: link.target setter

    There were guards in place to protect when setting a promise as a
    target, which is not something the code actually does, which was
    discovered after unpacking load-actual.
    
    This removes those guards which are dangerous because either an
    attribute is a promise or it's not.  Letting things access attributes as
    non-promises that are sometimes promises is dangerous.
    wraithgar committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    548e70e View commit details
    Browse the repository at this point in the history
  13. docs: remove duplicate description for prepare script (#5468)

    * docs: remove duplicate description for `prepare` script
    
    * Stylistic change to be consistent
    kidonng authored Sep 8, 2022
    Configuration menu
    Copy the full SHA
    7fc2b6f View commit details
    Browse the repository at this point in the history
  14. fix: don't mark workspaces as invalid if installing links (#5484)

    Workspaces are always links, even if we are installing links
    wraithgar authored Sep 8, 2022
    Configuration menu
    Copy the full SHA
    fe926ed View commit details
    Browse the repository at this point in the history
  15. feat(workspaces): update supported node engines in package.json (#5485)

    BREAKING CHANGE: all workspace packages are now compatible with the
    following semver range for node: `^14.17.0 || ^16.13.0 || >=18.0.0`
    lukekarrys authored Sep 8, 2022
    Configuration menu
    Copy the full SHA
    e95017a View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2022

  1. chore: release 9.0.0-pre.0

    github-actions[bot] authored and wraithgar committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    063a23b View commit details
    Browse the repository at this point in the history
  2. chore: post pull request

    npm-cli-bot authored and wraithgar committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    8623a2b View commit details
    Browse the repository at this point in the history
Loading