Skip to content

Commit e37effe

Browse files
committed
Revert "deps: upgrade npm to 5.8.0"
This reverts commit 25a816d. PR-URL: #19837 Reviewed-By: Gus Caplan <[email protected]>
1 parent 026f6b7 commit e37effe

File tree

1,451 files changed

+23889
-43764
lines changed

Some content is hidden

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

1,451 files changed

+23889
-43764
lines changed

deps/npm/.github/issue_template.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
- [ ] npm is crashing.
44
- [ ] npm is producing an incorrect install.
55
- [ ] npm is doing something I don't understand.
6-
- [ ] npm is producing incorrect or undesirable behavior.
76
- [ ] Other (_see below for feature requests_):
87

98
#### What's going wrong?

deps/npm/AUTHORS

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -536,28 +536,3 @@ Jacob Wejendorp <[email protected]>
536536
Alejandro López <[email protected]>
537537
Victor Belozyorov <[email protected]>
538538
Bradley Farias <[email protected]>
539-
Kyle E. Mitchell <[email protected]>
540-
Tuan Anh Tran <[email protected]>
541-
Nathan Woltman <[email protected]>
542-
543-
Leаh Neukirchen <[email protected]>
544-
Kyle Spier-Swenson <[email protected]>
545-
Joe Bowbeer <[email protected]>
546-
Nalin Bhardwaj <[email protected]>
547-
Nicolas Garnier <[email protected]>
548-
Vladislav Rassokhin <[email protected]>
549-
Josh Goldberg <[email protected]>
550-
laggingreflex <[email protected]>
551-
Kristofer Selbekk <[email protected]>
552-
sreenivas alapati <[email protected]>
553-
Ben Creasy <[email protected]>
554-
Allan Kimmer Jensen <[email protected]>
555-
556-
Matt Hoyle <[email protected]>
557-
Mason Pawsey <[email protected]>
558-
Johannes Bader <[email protected]>
559-
Michael Zabka <[email protected]>
560-
Bruce MacNaughton <[email protected]>
561-
Christopher Patty <[email protected]>
562-
Max Stoiber <[email protected]>
563-
Enrico Weigelt <[email protected]>

deps/npm/CHANGELOG.md

Lines changed: 6 additions & 447 deletions
Large diffs are not rendered by default.

deps/npm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ dev: install
6565
link: uninstall
6666
node bin/npm-cli.js link -f
6767

68-
clean: markedclean marked-manclean doc-clean
68+
clean: markedclean marked-manclean doc-clean uninstall
6969
rm -rf npmrc
7070
node bin/npm-cli.js cache clean
7171

deps/npm/bin/npx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,18 @@ if ! [ -x "$NODE_EXE" ]; then
1212
NODE_EXE=node
1313
fi
1414

15-
NPM_CLI_JS="$basedir/node_modules/npm/bin/npm-cli.js"
1615
NPX_CLI_JS="$basedir/node_modules/npm/bin/npx-cli.js"
1716

1817
case `uname` in
1918
*MINGW*)
20-
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
19+
NPM_PREFIX=`"$NODE_EXE" "$NPX_CLI_JS" prefix -g`
2120
NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js"
2221
if [ -f "$NPM_PREFIX_NPX_CLI_JS" ]; then
2322
NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS"
2423
fi
2524
;;
2625
*CYGWIN*)
27-
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
26+
NPM_PREFIX=`"$NODE_EXE" "$NPX_CLI_JS" prefix -g`
2827
NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js"
2928
if [ -f "$NPM_PREFIX_NPX_CLI_JS" ]; then
3029
NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS"

deps/npm/bin/npx.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ IF NOT EXIST "%NODE_EXE%" (
88
SET "NODE_EXE=node"
99
)
1010

11-
SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js"
1211
SET "NPX_CLI_JS=%~dp0\node_modules\npm\bin\npx-cli.js"
13-
FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_CLI_JS%" prefix -g') DO (
12+
FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPX_CLI_JS%" prefix -g') DO (
1413
SET "NPM_PREFIX_NPX_CLI_JS=%%F\node_modules\npm\bin\npx-cli.js"
1514
)
1615
IF EXIST "%NPM_PREFIX_NPX_CLI_JS%" (

deps/npm/doc/cli/npm-ci.md

Lines changed: 0 additions & 58 deletions
This file was deleted.

deps/npm/doc/cli/npm-install.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ after packing it up into a tarball (b).
5555
is set to `production`), npm will not install modules listed in
5656
`devDependencies`.
5757

58-
> NOTE: The `--production` flag has no particular meaning when adding a
59-
dependency to a project.
60-
6158
* `npm install <folder>`:
6259

6360
Install the package in the directory as a symlink in the current project.
@@ -350,8 +347,7 @@ The `--no-shrinkwrap` argument, which will ignore an available
350347
package lock or shrinkwrap file and use the package.json instead.
351348

352349
The `--no-package-lock` argument will prevent npm from creating a
353-
`package-lock.json` file. When running with package-lock's disabled npm
354-
will not automatically prune your node modules when installing.
350+
`package-lock.json` file.
355351

356352
The `--nodedir=/path/to/node/source` argument will allow npm to find the
357353
node source code so that npm can compile native modules.

deps/npm/doc/cli/npm-ls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Max display depth of the dependency tree.
7676

7777
Display only the dependency tree for packages in `dependencies`.
7878

79-
### dev / development
79+
### dev
8080

8181
* Type: Boolean
8282
* Default: false

deps/npm/doc/cli/npm-prune.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ npm-prune(1) -- Remove extraneous packages
33

44
## SYNOPSIS
55

6-
npm prune [[<@scope>/]<pkg>...] [--production] [--dry-run] [--json]
6+
npm prune [[<@scope>/]<pkg>...] [--production]
77

88
## DESCRIPTION
99

@@ -16,21 +16,9 @@ package's dependencies list.
1616

1717
If the `--production` flag is specified or the `NODE_ENV` environment
1818
variable is set to `production`, this command will remove the packages
19-
specified in your `devDependencies`. Setting `--no-production` will
19+
specified in your `devDependencies`. Setting `--production=false` will
2020
negate `NODE_ENV` being set to `production`.
2121

22-
If the `--dry-run` flag is used then no changes will actually be made.
23-
24-
If the `--json` flag is used then the changes `npm prune` made (or would
25-
have made with `--dry-run`) are printed as a JSON object.
26-
27-
In normal operation with package-locks enabled, extraneous modules are
28-
pruned automatically when modules are installed and you'll only need
29-
this command with the `--production` flag.
30-
31-
If you've disabled package-locks then extraneous modules will not be removed
32-
and it's up to you to run `npm prune` from time-to-time to remove them.
33-
3422
## SEE ALSO
3523

3624
* npm-uninstall(1)

deps/npm/doc/cli/npm-team.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ when operating on them, separated by a colon (`:`). That is, if you have a
3434
under that organization. If performed on a team, it will instead return a list
3535
of all users belonging to that particular team.
3636

37-
* edit:
38-
Edit a current team.
39-
4037
## DETAILS
4138

4239
`npm team` always operates directly on the current registry, configurable from

deps/npm/doc/cli/npm-update.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ As of `[email protected]`, the `npm update` will only inspect top-level packages.
2626
Prior versions of `npm` would also recursively inspect all dependencies.
2727
To get the old behavior, use `npm --depth 9999 update`.
2828

29-
As of `[email protected]`, the `npm update` will change `package.json` to save the
30-
new version as the minimum required dependency. To get the old behavior,
31-
use `npm update --no-save`.
32-
3329
## EXAMPLES
3430

3531
IMPORTANT VERSION NOTE: these examples assume `[email protected]` or later. For
@@ -108,6 +104,30 @@ If the dependence were on `^0.4.0`:
108104
Then `npm update` will install `[email protected]`, because that is the highest-sorting
109105
version that satisfies `^0.4.0` (`>= 0.4.0 <0.5.0`)
110106

107+
### Recording Updates with `--save`
108+
109+
When you want to update a package and save the new version as
110+
the minimum required dependency in `package.json`, you can use
111+
`npm update -S` or `npm update --save`. For example if
112+
`package.json` contains:
113+
114+
```
115+
"dependencies": {
116+
"dep1": "^1.1.1"
117+
}
118+
```
119+
120+
Then `npm update --save` will install `[email protected]` (i.e., `latest`),
121+
and `package.json` will be modified:
122+
123+
```
124+
"dependencies": {
125+
"dep1": "^1.2.2"
126+
}
127+
```
128+
129+
Note that `npm` will only write an updated version to `package.json`
130+
if it installs a new package.
111131

112132
### Updating Globally-Installed Packages
113133

deps/npm/doc/cli/npm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ npm is extremely configurable. It reads its configuration options from
9393
* Command line switches:
9494
Set a config with `--key val`. All keys take a value, even if they
9595
are booleans (the config parser doesn't know what the options are at
96-
the time of parsing). If no value is provided, then the option is set
96+
the time of parsing.) If no value is provided, then the option is set
9797
to boolean `true`.
9898
* Environment Variables:
9999
Set any config by prefixing the name in an environment variable with

deps/npm/doc/files/npm-folders.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Man pages are not installed on Windows systems.
6868
### Cache
6969

7070
See `npm-cache(1)`. Cache files are stored in `~/.npm` on Posix, or
71-
`%AppData%/npm-cache` on Windows.
71+
`~/npm-cache` on Windows.
7272

7373
This is controlled by the `cache` configuration param.
7474

deps/npm/doc/files/npm-package-locks.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -136,25 +136,6 @@ on. Additionally, the diffs from these changes are human-readable and will
136136
inform you of any changes npm has made to your `node_modules`, so you can notice
137137
if any transitive dependencies were updated, hoisted, etc.
138138

139-
### Resolving lockfile conflicts
140-
141-
Occasionally, two separate npm install will create package locks that cause
142-
merge conflicts in source control systems. As of `[email protected]`, these conflicts
143-
can be resolved by manually fixing any `package.json` conflicts, and then
144-
running `npm install [--package-lock-only]` again. npm will automatically
145-
resolve any conflicts for you and write a merged package lock that includes all
146-
the dependencies from both branches in a reasonable tree. If
147-
`--package-lock-only` is provided, it will do this without also modifying your
148-
local `node_modules/`.
149-
150-
To make this process seamless on git, consider installing
151-
[`npm-merge-driver`](https://npm.im/npm-merge-driver), which will teach git how
152-
to do this itself without any user interaction. In short: `$ npx
153-
npm-merge-driver install -g` will let you do this, and even works with
154-
pre-`[email protected]` versions of npm 5, albeit a bit more noisily. Note that if
155-
`package.json` itself conflicts, you will have to resolve that by hand and run
156-
`npm install` manually, even with the merge driver.
157-
158139
## SEE ALSO
159140

160141
* https://medium.com/@sdboyer/so-you-want-to-write-a-package-manager-4ae9c17d9527

deps/npm/doc/files/package-lock.json.md

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/npm/doc/files/package.json.md

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ settings described in `npm-config(7)`.
1111

1212
## name
1313

14-
If you plan to publish your package, the *most* important things in your
15-
package.json are the name and version fields as they will be required. The name
16-
and version together form an identifier that is assumed to be completely unique.
17-
Changes to the package should come along with changes to the version. If you don't
18-
plan to publish your package, the name and version fields are optional.
14+
The *most* important things in your package.json are the name and version fields.
15+
Those are actually required, and your package won't install without
16+
them. The name and version together form an identifier that is assumed
17+
to be completely unique. Changes to the package should come along with
18+
changes to the version.
1919

2020
The name is what your thing is called.
2121

@@ -44,11 +44,11 @@ A name can be optionally prefixed by a scope, e.g. `@myorg/mypackage`. See
4444

4545
## version
4646

47-
If you plan to publish your package, the *most* important things in your
48-
package.json are the name and version fields as they will be required. The name
49-
and version together form an identifier that is assumed to be completely unique.
50-
Changes to the package should come along with changes to the version. If you don't
51-
plan to publish your package, the name and version fields are optional.
47+
The *most* important things in your package.json are the name and version fields.
48+
Those are actually required, and your package won't install without
49+
them. The name and version together form an identifier that is assumed
50+
to be completely unique. Changes to the package should come along with
51+
changes to the version.
5252

5353
Version must be parseable by
5454
[node-semver](https://github.com/isaacs/node-semver), which is bundled
@@ -70,10 +70,6 @@ discover your package as it's listed in `npm search`.
7070

7171
The url to the project homepage.
7272

73-
Example:
74-
75-
"homepage": "https://github.com/owner/project#readme"
76-
7773
## bugs
7874

7975
The url to your project's issue tracker and / or the email address to which
@@ -172,15 +168,13 @@ npm also sets a top-level "maintainers" field with your npm user info.
172168

173169
## files
174170

175-
The optional `files` field is an array of file patterns that describes
171+
The optional "files" field is an array of file patterns that describes
176172
the entries to be included when your package is installed as a
177-
dependency. File patterns follow a similar syntax to `.gitignore`, but
178-
reversed: including a file, directory, or glob pattern (`*`, `**/*`, and such)
179-
will make it so that file is included in the tarball when it's packed. Omitting
180-
the field will make it default to `["*"]`, which means it will include all files.
181-
182-
Some special files and directories are also included or excluded regardless of
183-
whether they exist in the `files` array (see below).
173+
dependency. If the files array is omitted, everything except
174+
automatically-excluded files will be included in your publish. If you
175+
name a folder in the array, then it will also include the files inside
176+
that folder (unless they would be ignored by another rule in this
177+
section.).
184178

185179
You can also provide a `.npmignore` file in the root of your package or
186180
in subdirectories, which will keep files from being included. At the
@@ -232,12 +226,6 @@ This should be a module ID relative to the root of your package folder.
232226
For most modules, it makes the most sense to have a main script and often not
233227
much else.
234228

235-
## browser
236-
237-
If your module is meant to be used client-side the browser field should be
238-
used instead of the main field. This is helpful to hint users that it might
239-
rely on primitives that aren't available in Node.js modules. (e.g. `window`)
240-
241229
## bin
242230

243231
A lot of packages have one or more executable files that they'd like to

0 commit comments

Comments
 (0)