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

Release v7.20.0 #3550

Merged
merged 27 commits into from Jul 15, 2021
Merged

Release v7.20.0 #3550

merged 27 commits into from Jul 15, 2021

Commits on Jul 1, 2021

  1. fix(docs): clarify what install type gets .bins

    "on install" was ambiguous because it wasn't clear if it meant "when npm
    install is ran on this project" or "when this project is installed
    somewhere else"
    
    PR-URL: #3491
    Credit: @wraithgar
    Close: #3491
    Reviewed-by: @ljharb
    wraithgar committed Jul 1, 2021
    Copy the full SHA
    339145f View commit details
    Browse the repository at this point in the history
  2. fix: friendlier errors for ERR_SOCKET_TIMEOUT

    PR-URL: #3498
    Credit: @nlf
    Close: #3498
    Reviewed-by: @wraithgar
    nlf authored and wraithgar committed Jul 1, 2021
    Copy the full SHA
    4755b07 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. fix(docs): add npm update example

    Adds an example of when `npm update` would not install the latest
    version of a package because other subdependencies in your tree have
    tighter restrictions.
    
    PR-URL: #3494
    Credit: @wraithgar
    Close: #3494
    Reviewed-by: @lukekarrys
    wraithgar committed Jul 2, 2021
    Copy the full SHA
    74c9975 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2021

  1. feat: npm pkg

    Implements `npm pkg get|set|delete` support. It enables retrieving and
    modifying values in a `package.json` file of any given project.
    
    Included are the implementation based on npm/rfcs#402
    along with extensive tests and user documentation.
    
    Relates to: npm/rfcs#402
    Fixes: npm/statusboard#368
    
    PR-URL: #3487
    Credit: @ruyadorno
    Close: #3487
    Reviewed-by: @wraithgar
    ruyadorno committed Jul 12, 2021
    Copy the full SHA
    f17aca5 View commit details
    Browse the repository at this point in the history
  2. fix(config): fix noproxy

    The flattener worked for everything except for when you are using
    `npm config set` itself.  Now it works for both.
    
    PR-URL: #3508
    Credit: @wraithgar
    Close: #3508
    Reviewed-by: @nlf
    wraithgar committed Jul 12, 2021
    Copy the full SHA
    3ecf19c View commit details
    Browse the repository at this point in the history
  3. fix(update-notifier): don't force black background

    This looks very wrong on white terminals.
    
    npmlog still makes its `notice` logs do this but that will have to be
    fixed in the npmlog repo.
    
    PR-URL: #3499
    Credit: @wraithgar
    Close: #3499
    Reviewed-by: @nlf
    wraithgar committed Jul 12, 2021
    Copy the full SHA
    c3bd10e View commit details
    Browse the repository at this point in the history
  4. fix(usage): better audit/boolean flag usage output

    This adds the `audit` config item to the usage output of `npm ci`, and
    also tweaks how usage flags are shown for boolean options that do not
    default to false.  Their usage is shown as the `--no-x` form of the flag
    to better communicate that the flag is needed to turn that normally true
    option OFF.
    
    The description of `audit` was also updated to reflect that it runs on
    many different npm commands, not just install.  Because this flag is
    included in the usage of those commands it's best to let the assocation
    happen there instead of trying to be comprehensive in the description
    itself.
    
    A small fix to make `install-ci-test` not try to redefine its own
    usage, but to inherit from `ci` was also included.
    
    PR-URL: #3497
    Credit: @wraithgar
    Close: #3497
    Reviewed-by: @nlf
    wraithgar committed Jul 12, 2021
    Copy the full SHA
    89483e8 View commit details
    Browse the repository at this point in the history
  5. fix(publish): obey --ignore-scripts flag

    PR-URL: #3495
    Credit: @wraithgar
    Close: #3495
    Reviewed-by: @nlf
    wraithgar committed Jul 12, 2021
    Copy the full SHA
    feeb8e4 View commit details
    Browse the repository at this point in the history
  6. chore(exit): log any un-ended timings

    It will be helpful to us when debugging the "exit handler never called"
    bugs to know which timings were started but not ended.
    
    Tests moved to use real npm.
    
    PR-URL: #3479
    Credit: @wraithgar
    Close: #3479
    Reviewed-by: @ruyadorno
    wraithgar committed Jul 12, 2021
    Copy the full SHA
    103c8c3 View commit details
    Browse the repository at this point in the history
  7. chore(refactor): refactor exit handler and tests

     * npm mock logger writes to npm.log.record too now
     * No more extra process.exit from within the process `exit` event handle.
     * No more `exit()` function.  Logic is rolled up into the exit handler.
     * Now there is only an exit handler and an exit event listener.
       `lib/utils/perf.js` was rolled up into npm.js itself.
    
    Unfortunately the tests were written in such a way that any further
    refactoring of the exit handler was going to require also rewriting the
    tests.  Fortunately NOW the tests are interacting with the exit handler
    in a way that shouldn't require them to be rewritten AGAIN if we change
    the internals of the exit handler.
    
    PR-URL: #3482
    Credit: @wraithgar
    Close: #3482
    Reviewed-by: @nlf
    wraithgar committed Jul 12, 2021
    Copy the full SHA
    efc4313 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2021

  1. fix(bundle-and-ignore): case sensitivity cleanup

    Two files got into node_modules in a way that changes if you are on a
    system that is case sensitive. One was a readme that is now properly
    being ignored, the other is a typescript file that is upper case in some
    instances
    
    PR-URL: #3540
    Credit: @wraithgar
    Close: #3540
    Reviewed-by: @ruyadorno
    wraithgar committed Jul 13, 2021
    Copy the full SHA
    d8eb49b View commit details
    Browse the repository at this point in the history
  2. fix(docs): correct Node.js JavaScript stylings

    * nodejs -> Node.js
    * javascript -> JavaScript
    
    PR-URL: #3542
    Credit: @relrelb
    Close: #3542
    Reviewed-by: @wraithgar
    relrelb authored and wraithgar committed Jul 13, 2021
    Copy the full SHA
    801a523 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. feat(config): introduce 'location' parameter

    PR-URL: #3471
    Credit: @nlf
    Close: #3471
    Reviewed-by: @wraithgar
    nlf authored and ruyadorno committed Jul 15, 2021
    Copy the full SHA
    98905ae View commit details
    Browse the repository at this point in the history
  2. feat(pkg): add support to empty bracket syntax

    Adds ability to using empty bracket syntax as a shortcut to appending
    items to the end of an array when using `npm pkg set`, e.g:
    
    npm pkg set keywords[]=foo
    
    Relates to: npm/rfcs#402
    
    PR-URL: #3539
    Credit: @ruyadorno
    Close: #3539
    Reviewed-by: @darcyclarke, @ljharb
    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    8371d7d View commit details
    Browse the repository at this point in the history
  3. chore: use better name on nodejs commits

    Currently, the name: `npm-robot` is being used in nodejs changelogs as
    the atttribution author name for npm-update commits. This makes it so
    that entries in the changelog referring to our updates reads like:
    
    ```
    upgrade npm to 7.18.1 (npm-robot) #39065
    ```
    
    This change makes it so that the name used in commits is `npm team`,
    this way the changelogs entry should read instead as:
    
    ```
    upgrade npm to 7.18.1 (npm team) #39065
    ```
    
    Ref: https://nodejs.org/en/blog/release/v16.4.0/
    
    PR-URL: #3541
    Credit: @ruyadorno
    Close: #3541
    Reviewed-by: @wraithgar, @targos, @BethGriggs
    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    c11aa53 View commit details
    Browse the repository at this point in the history
  4. Instructions for seeing background script output

    PR-URL: #3546
    Credit: @cinderblock
    Close: #3546
    Reviewed-by: @wraithgar
    cinderblock authored and ruyadorno committed Jul 15, 2021
    Copy the full SHA
    7914167 View commit details
    Browse the repository at this point in the history
  5. @npmcli/arborist@2.7.1

    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    691816f View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    ba89b1c View commit details
    Browse the repository at this point in the history
  7. make-fetch-happen@9.0.4

    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    b9597e9 View commit details
    Browse the repository at this point in the history
  8. minipass-fetch@1.3.4

    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    f573e7c View commit details
    Browse the repository at this point in the history
  9. pacote@11.3.5

    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    2d5797e View commit details
    Browse the repository at this point in the history
  10. eslint@7.30.0

    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    5bb1e04 View commit details
    Browse the repository at this point in the history
  11. update gitignore file

    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    8b1a12e View commit details
    Browse the repository at this point in the history
  12. Copy the full SHA
    5a305c7 View commit details
    Browse the repository at this point in the history
  13. docs: changelog for v7.20.0

    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    293a4c7 View commit details
    Browse the repository at this point in the history
  14. update AUTHORS

    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    ecfc9e1 View commit details
    Browse the repository at this point in the history
  15. 7.20.0

    ruyadorno committed Jul 15, 2021
    Copy the full SHA
    1a2159d View commit details
    Browse the repository at this point in the history