Skip to content

Commit 0346043

Browse files
ruyadornotargos
authored andcommitted
deps: upgrade npm to 7.5.0
PR-URL: #37117 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent 9c831c0 commit 0346043

File tree

133 files changed

+12630
-3491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+12630
-3491
lines changed

deps/npm/AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -747,3 +747,4 @@ marsonya <16393876+marsonya@users.noreply.github.com>
747747
Jeff Griffiths <jeff@eko-recordings.ca>
748748
Michael Garvin <gar+gh@danger.computer>
749749
Gar <gar+gh@danger.computer>
750+
dr-js <dr@dr.run>

deps/npm/CHANGELOG.md

+57
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
## v7.5.0 (2021-01-28)
2+
3+
### FEATURES
4+
5+
* [`d011266b7`](https://github.com/npm/cli/commit/d011266b733367aad283ccbfb9d2b19442c3405f)
6+
[#1319](https://github.com/npm/cli/issues/1319)
7+
add npm diff command
8+
([@ruyadorno](https://github.com/ruyadorno))
9+
10+
### BUG FIXES
11+
12+
* [`d2f8af2da`](https://github.com/npm/cli/commit/d2f8af2da64d510d3d363aec10531bebf840d84e)
13+
[#2445](https://github.com/npm/cli/issues/2445)
14+
publish: don't complain about missing auth until after registry is chosen
15+
([@dr-js](https://github.com/dr-js))
16+
17+
### DOCUMENTATION
18+
19+
* [`8d3fd63aa`](https://github.com/npm/cli/commit/8d3fd63aaa6a5c9b3d2281dd0bd9e1c270b35941)
20+
[#2559](https://github.com/npm/cli/issues/2559)
21+
updates to readme, removal, contributing and several other docs
22+
([@darcyclarke](https://github.com/darcyclarke))
23+
* [`7772d9f9f`](https://github.com/npm/cli/commit/7772d9f9f9f853573a7ff8e7fb60c5e46566f596)
24+
[#2542](https://github.com/npm/cli/issues/2542)
25+
fix grammar on caching docs for search, exec and init
26+
([@wraithgar](https://github.com/wraithgar))
27+
* [`52e8a1aef`](https://github.com/npm/cli/commit/52e8a1aef4aab3f378c20276a9109bb3f00eccd5)
28+
[#2558](https://github.com/npm/cli/issues/2558)
29+
refreshed npm updated docs
30+
([@ruyadorno](https://github.com/ruyadorno))
31+
* [`abae00ca0`](https://github.com/npm/cli/commit/abae00ca05925e521696dd12480853509aab6c0a)
32+
[#2565](https://github.com/npm/cli/issues/2565)
33+
update npm command docs
34+
([@wraithgar](https://github.com/wraithgar))
35+
* [`9351cbf9a`](https://github.com/npm/cli/commit/9351cbf9afd2310c56b9953c005505ea5126a5d4)
36+
[#2566](https://github.com/npm/cli/issues/2566)
37+
refresh npm run-script docs
38+
([@ruyadorno](https://github.com/ruyadorno))
39+
40+
### DEPENDENCIES
41+
42+
* [`56c08863e`](https://github.com/npm/cli/commit/56c08863e15cb9cf8662b99ddc627cfcdff0348d)
43+
`hosted-git-info@3.0.8`
44+
* [`18a93f06b`](https://github.com/npm/cli/commit/18a93f06b632be051b9455e32a85e4e75066f52c)
45+
`ssri@8.0.1`
46+
* [`cb768f671`](https://github.com/npm/cli/commit/cb768f671c4d8d5a09d9a6c5a74227d300e81104)
47+
`@npmcli/move-file@1.1.1`
48+
* [`32cc0a4be`](https://github.com/npm/cli/commit/32cc0a4be76465093e3d0f314215a0ec46dc03c6)
49+
`minipass-fetch@1.3.3`
50+
* fixes ssl settings passthrough
51+
* [`530997968`](https://github.com/npm/cli/commit/530997968fbbd9e8bf016689b1d192daa812b4de)
52+
`@npmcli/arborist@2.1.0`
53+
* added signal handler to rollback when possible
54+
* prevent ERESOLVEs caused by loose root dep specs
55+
* detect conflicts among nested peerOptional deps
56+
* properly buildIdealTree when root is a symlink
57+
158
## v7.4.3 (2021-01-21)
259

360
### DOCUMENTATION

deps/npm/CONTRIBUTING.md

+27-162
Original file line numberDiff line numberDiff line change
@@ -1,191 +1,56 @@
1-
# npm CLI Contributor Roles and Responsibilities
1+
# Contributing
22

3-
## Table of Contents
3+
## Code of Conduct
44

5-
* [Introduction](#introduction)
6-
* [Code Structure](#code-structure)
7-
* [Running Tests](#running-tests)
8-
* [Debugging](#debugging)
9-
* [Coverage](#coverage)
10-
* [Benchmarking](#benchmarking)
11-
* [Types of Contributions](#types-of-contributions)
12-
* [Contributing an Issue?](#contributing-an-issue)
13-
* [Contributing a Question?](#contributing-a-question)
14-
* [Contributing a Bug Fix?](#contributing-a-bug-fix)
15-
* [Contributing a Feature?](#contributing-a-bug-feature)
16-
* [Development Dependencies](#development-dependencies)
17-
* [Dependencies](#dependencies)
5+
All interactions in the **npm** organization on GitHub are considered to be covered by our standard [Code of Conduct](https://www.npmjs.com/policies/conduct).
186

19-
## Introduction
7+
## Development
208

21-
Welcome to the npm CLI Contributor Guide! This document outlines the npm CLI repository's process for community interaction and contribution. This includes the issue tracker, pull requests, wiki pages, and, to a certain extent, outside communication in the context of the npm CLI. This is an entry point for anyone wishing to contribute their time and effort to making npm a better tool for the JavaScript community!
9+
**1. Clone this repository...**
2210

23-
All interactions in the npm repository are covered by the [npm Code of Conduct](https://www.npmjs.com/policies/conduct)
11+
```bash
12+
$ git clone git@github.com:npm/cli.git
13+
```
2414

15+
**2. Navigate into project & install development-specific dependencies...**
2516

26-
## Code Structure
27-
```
28-
/
29-
├── bin/
30-
│ │ # Directory for executable files. It's very rare that you
31-
│ │ # will need to update a file in this directory.
32-
│ │
33-
│ ├── npm # npm-cli entrypoint for bourne shell
34-
│ ├── npm-cli.js # npm-cli entrypoint for node
35-
│ ├── npm.cmd # npm-cli entrypoint for windows
36-
│ ├── npx # npx entrypoint for bourne shell
37-
│ ├── npx-cli.js # npx entrypoint for node
38-
│ └── npx.cmd # npx entrypoint for windows
39-
40-
├── docs/ 📖
41-
│ │ # Directory that contains the documentation website for
42-
│ │ # the npm-cli. You can run this website locally, and have
43-
│ │ # offline docs! 🔥📖🤓
44-
│ │
45-
│ ├── content/ # Markdown files for site content
46-
│ ├── src/ # Source files for the website; gatsby related
47-
│ └── package.json # Site manifest; scripts and dependencies
48-
49-
├── lib/ 📦
50-
│ # All the Good Bits(tm) of the CLI project live here
51-
52-
├── node_modules/ 🔋
53-
│ # Vendored dependencies for the CLI project (See the
54-
│ # dependencies section below for more details).
55-
56-
├── scripts/ 📜
57-
│ # We've created some helper scripts for working with the
58-
│ # CLI project, specifically around managing our vendored
59-
│ # dependencies, merging in pull-requests, and publishing
60-
│ # releases.
61-
62-
├── test/ 🧪
63-
│ # All the tests for the CLI live in this folder. We've
64-
│ # got a lot of tests 🤓🧪🩺
65-
66-
├── CONTRIBUTING.md # This file! 🎉
67-
└── package.json # The projects main manifest file 📃
17+
```bash
18+
$ cd ./npm && npm install
6819
```
6920

70-
## Running Tests
21+
**3. Write some code &/or add some tests...**
7122

23+
```bash
24+
...
7225
```
73-
# Make sure you install the dependencies first before running tests.
74-
$ npm install
7526

76-
# Run tests for the CLI (it could take a while).
77-
$ npm run test
27+
**4. Run tests & ensure they pass...**
7828
```
79-
80-
## Debugging
81-
82-
It can be tricky to track down issues in the CLI. It's a large code base that has been evolving for over a decade. There is a handy `make` command that will connect the **cloned repository** you have on your machine with the global command, so you can add `console.log` statements or debug any other way you feel most comfortable with.
83-
29+
$ npm run test
8430
```
85-
# Clone the repository to start with
86-
$ git clone git@github.com:npm/cli.git
8731

88-
# Change working directories into the repository
89-
$ cd cli
32+
**5. Open a [Pull Request](https://github.com/npm/cli/pulls) for your work & become the newest conributor to `npm`! 🎉**
9033

91-
# Make sure you have the latest code (if that's what you're trying to debug)
92-
$ git fetch origin latest
34+
## Test Coverage
9335

94-
# Connect repository to the global namespace
95-
$ make link
36+
We expect that every new feature or bug fix comes with corresponding tests that validate the solutions. We strive to have as close to, if not exactly, 100% code coverage.
9637

97-
#################
98-
# ALTERNATIVELY
99-
#################
100-
# If you're working on a feature or bug, you can run the same command on your
101-
# working branch and link that code.
38+
**You can find out what the current test coverage percentage is by running...**
10239

103-
# Create new branch to work from (there are many ways)
104-
$ git checkout -b feature/awesome-feature
105-
106-
# Connect repository to global namespace
107-
$ make link
108-
```
109-
110-
## Coverage
111-
112-
We try and make sure that each new feature or bug fix has tests to go along with them in order to keep code coverages consistent and increasing. We are actively striving for 100% code coverage!
113-
114-
```
115-
# You can run the following command to find out coverage
40+
```bash
11641
$ npm run test-coverage
11742
```
11843

119-
## Benchmarking
120-
121-
We often want to know if the bug we've fixed for the feature we've added has any sort of performance impact. We've created a [benchmark suite](https://github.com/npm/benchmarks) to run against the CLI project from pull-requests. If you would like to know if there are any performance impacts to the work you're contributing, simply do the following:
44+
## Performance & Benchmarks
12245

123-
1. Make a pull-request against this repository
124-
2. Add the following comment to the pull-request: "`test this please ✅`"
46+
We've set up an automated [benchmark](https://github.com/npm/benchmarks) integration that will run against all Pull Requests; Posting back a comment with the results of the run.
12547

126-
This will trigger the [benchmark suite](https://github.com/npm/benchmarks) to run against your pull-request, and when it's finished running it will post a comment on your pull-request just like below. You'll be able to see the results from the suite inline in your pull-request.
127-
128-
> You'll notice that the bot-user will also add a 🚀 reaction to your comment to
129-
let you know that it's sent the request to start the benchmark suite.
48+
**Example:**
13049

13150
![image](https://user-images.githubusercontent.com/2818462/72312698-e2e57f80-3656-11ea-9fcf-4a8f6b97b0d1.png)
13251

133-
If you've updated your pull-request and you'd like to run the the benchmark suite again, simple update your original comment, by adding `test this please ✅` again, or simply just adding another emoji to the **end**. _(The trigger is the phrase "test this please ✅" at the beginning of a comment. Updates will trigger as well, so long as the phrase stays at the beginning.)_.
134-
135-
![image](https://user-images.githubusercontent.com/2818462/72313006-ec231c00-3657-11ea-9bd9-227634d67362.png)
136-
137-
## Types of Contributions
138-
139-
### Contributing an Issue?
140-
141-
Great!! Is your [new issue](https://github.com/npm/cli/issues/new/choose) a [bug](https://github.com/npm/cli/issues/new?template=bug.md&title=%5BBUG%5D+%3Ctitle%3E), a [feature](https://github.com/npm/cli/issues/new?template=feature.md&title=%5BFEATURE%5D+%3Ctitle%3E), or a [question](https://github.com/npm/cli/issues/new?template=question.md&title=%5BQUESTION%5D+%3Ctitle%3E)?
142-
143-
### Contributing a Question?
144-
145-
Huh? 🤔 Got a situation you're not sure about?! Perfect! We've got some resources you can use.
146-
147-
* Our [documentation site](https://docs.npmjs.com/)
148-
* The local docs that come with the CLI project
149-
150-
> **Example**: `npm help install --viewer browser`
151-
152-
* The man pages that are built and shipped with the CLI
153-
154-
> **Example**: `man npm-install` (only on linux/macOS)
155-
156-
* Search of the [current issues](https://github.com/npm/cli/issues)
157-
158-
### Contributing a Bug Fix?
159-
160-
We'd be happy to triage and help! Head over to the issues and [create a new one](https://github.com/npm/cli/issues/new?template=bug.md&title=%5BBUG%5D+%3Ctitle%3E)!
161-
162-
> We'll need a little bit of information about what happened, rather than "it broke". Such as:
163-
* When did/does this bug happen?
164-
* Can you reproduce it? _(Can you make it happen more than once.)_
165-
* What version of `node`/`npm` are you running on your computer?
166-
* What did you expect it to do?
167-
* What did it _actually do?
168-
* etc...
169-
170-
### Contributing a Feature?
171-
172-
Snazzy, we're always up for fancy new things! If the feature is fairly minor, the team can triage it and prioritize it into our backlog. However, if the feature is a little more complex, then it's best to create an [RFC](https://en.wikipedia.org/wiki/Request_for_Comments) in our [RFC repository](https://github.com/npm/rfcs). Exactly how to do that is outlined in that repository. If you're not sure _exactly_ how to implement your idea, or don't want to make a document about your idea, then please create an issue on that repository. We consider these RRFC's, or a "Requesting Request For Comment".
173-
174-
## Development Dependencies
175-
176-
You'll need a few things installed in order to update and test the CLI project during development:
177-
178-
* [node](https://nodejs.org/) v8 or greater
179-
180-
> We recommend that you have a [node version manager](https://github.com/nvm-sh/nvm) installed if you plan on fixing bugs that might be present in a specific version of node. With a version manager you can easily switch versions of node and test if your changes to the CLI project are working.
181-
182-
* [git](https://git-scm.com/) v2.11+
183-
184-
185-
## Dependencies
186-
187-
> Package vendoring is commonly referred to as the case where dependent packages are stored in the same place as your project. That usually means you dependencies are checked into your source management system, such as Git.
52+
You can learn more about this tool, including how to run & configure it manually, [here](https://github.com/npm/benchmarks)
18853

189-
The CLI project vendors its dependencies in the `node_modules/` folder. Meaning all the dependencies that the CLI project uses are contained within the project itself. This is represented by the `bundledDependencies` section in the root level `package.json` file. The main reason for this is because the `npm` CLI project is distributed with the NodeJS runtime and needs to work out of the box, which means all dependencies need to be available after the runtime is installed.
54+
## Reporting Bugs
19055

191-
There are a couple scripts created to help manage this process in the `scripts/` folder.
56+
When submitting a new bug report, please first [search](https://github.com/npm/cli/issues) for an existing or similar report & then use one of our existing [issue templates](https://github.com/npm/cli/issues/new/choose) if you believe you've come across a unique problem. Duplicate issues, or issues that don't use one of our templates may get closed without a response.

0 commit comments

Comments
 (0)