Skip to content

Commit 3f2ea53

Browse files
targosMylesBorins
authored andcommitted
deps: update npm to 5.4.2
This includes three npm releases, one of which is pretty big (5.4.0). Changes of Note * Significant performance boost for installations from cache (~10%+) * A number of bugfixes for important and severe bugs affecting installation on all supported platforms, but particularly noticeable on Windows. * More Windows-related fixes for `npx`. * [#17844](npm/npm#17844) Make package-lock.json sorting locale-agnostic. This will cause some users to see seemingly spurious diffs on their pkglocks if they were using previous versions of npm5, because, for example, `JSONStream` is sorted into a different location. This is fine and will go away as people upgrade. Changelogs * [`v5.4.0`](https://github.com/npm/npm/releases/tag/v5.4.0) * [`v5.4.1`](https://github.com/npm/npm/releases/tag/v5.4.1) * [`v5.4.2`](https://github.com/npm/npm/releases/tag/v5.4.2)
1 parent 9c247c5 commit 3f2ea53

File tree

635 files changed

+16067
-14343
lines changed

Some content is hidden

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

635 files changed

+16067
-14343
lines changed

deps/npm/.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Jake Verbaten <[email protected]>
3232
James Sanders <[email protected]>
3333
James Treworgy <[email protected]>
3434
Jason Smith <[email protected]>
35+
Joshua Bennett <[email protected]>
3536
Jonas Weber <[email protected]>
3637
Julien Meddah <[email protected]>
3738
Kevin Lorenz <[email protected]>

deps/npm/.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ matrix:
2525
script:
2626
- "standard"
2727
- "node . run tap -- \"test/tap/*.js\" \"test/broken-under-nyc/*.js\""
28-
before_install:
29-
# required by test/tap/registry.js
30-
- "mkdir -p /var/run/couchdb"
3128
notifications:
3229
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
3330
cache:

deps/npm/AUTHORS

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ Daniel Paz-Soldan <[email protected]>
424424
Sakthipriyan Vairamani <[email protected]>
425425
Zach Renner <[email protected]>
426426
Christopher Hiller <[email protected]>
427-
legodude17 <[email protected]>
427+
Joshua Bennett <[email protected]>
428428
Andrew Meyer <[email protected]>
429429
Michael Jasper <[email protected]>
430430
@@ -503,3 +503,26 @@ Sanketh Katta <[email protected]>
503503
Tim Needham <[email protected]>
504504
leonardo rojas <[email protected]>
505505
Mark Peter Fejes <[email protected]>
506+
Ryan Florence <[email protected]>
507+
MichaelQQ <[email protected]>
508+
Anders D. Johnson <[email protected]>
509+
Benjamin Fernandes <[email protected]>
510+
Simon Kurtz <[email protected]>
511+
David Goss <[email protected]>
512+
Luis Gustavo Pereira <[email protected]>
513+
Amos Wenger <[email protected]>
514+
Samuel Marks <[email protected]>
515+
Victor Travieso <[email protected]>
516+
legodude17 <[email protected]>
517+
Joshua Chaitin-Pollak <[email protected]>
518+
Brendan Warkentin <[email protected]>
519+
Scott Santucci <[email protected]>
520+
Xavier Cambar <[email protected]>
521+
522+
Igor Nadj <[email protected]>
523+
524+
525+
Carsten Brandt <[email protected]>
526+
Marcin Szczepanski <[email protected]>
527+
Josh Clow <[email protected]>
528+
Jakub Holy <[email protected]>

deps/npm/CHANGELOG.md

Lines changed: 284 additions & 0 deletions
Large diffs are not rendered by default.

deps/npm/Makefile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,16 @@ doc-clean:
8888
html/doc \
8989
man
9090

91+
## build-time tools for the documentation
92+
build-doc-tools := node_modules/.bin/marked \
93+
node_modules/.bin/marked-man
94+
9195
# use `npm install marked-man` for this to work.
92-
man/man1/npm-README.1: README.md scripts/doc-build.sh package.json
96+
man/man1/npm-README.1: README.md scripts/doc-build.sh package.json $(build-doc-tools)
9397
@[ -d man/man1 ] || mkdir -p man/man1
9498
scripts/doc-build.sh $< $@
9599

96-
man/man1/%.1: doc/cli/%.md scripts/doc-build.sh package.json
100+
man/man1/%.1: doc/cli/%.md scripts/doc-build.sh package.json $(build-doc-tools)
97101
@[ -d man/man1 ] || mkdir -p man/man1
98102
scripts/doc-build.sh $< $@
99103

@@ -106,26 +110,26 @@ man/man5/npm-json.5: man/man5/package.json.5
106110
man/man5/npm-global.5: man/man5/npm-folders.5
107111
cp $< $@
108112

109-
man/man5/%.5: doc/files/%.md scripts/doc-build.sh package.json
113+
man/man5/%.5: doc/files/%.md scripts/doc-build.sh package.json $(build-doc-tools)
110114
@[ -d man/man5 ] || mkdir -p man/man5
111115
scripts/doc-build.sh $< $@
112116

113-
doc/misc/npm-index.md: scripts/index-build.js package.json
117+
doc/misc/npm-index.md: scripts/index-build.js package.json $(build-doc-tools)
114118
node scripts/index-build.js > $@
115119

116-
html/doc/index.html: doc/misc/npm-index.md $(html_docdeps)
120+
html/doc/index.html: doc/misc/npm-index.md $(html_docdeps) $(build-doc-tools)
117121
@[ -d html/doc ] || mkdir -p html/doc
118122
scripts/doc-build.sh $< $@
119123

120-
man/man7/%.7: doc/misc/%.md scripts/doc-build.sh package.json
124+
man/man7/%.7: doc/misc/%.md scripts/doc-build.sh package.json $(build-doc-tools)
121125
@[ -d man/man7 ] || mkdir -p man/man7
122126
scripts/doc-build.sh $< $@
123127

124-
html/doc/README.html: README.md $(html_docdeps)
128+
html/doc/README.html: README.md $(html_docdeps) $(build-doc-tools)
125129
@[ -d html/doc ] || mkdir -p html/doc
126130
scripts/doc-build.sh $< $@
127131

128-
html/doc/cli/%.html: doc/cli/%.md $(html_docdeps)
132+
html/doc/cli/%.html: doc/cli/%.md $(html_docdeps) $(build-doc-tools)
129133
@[ -d html/doc/cli ] || mkdir -p html/doc/cli
130134
scripts/doc-build.sh $< $@
131135

@@ -135,11 +139,11 @@ html/doc/files/npm-json.html: html/doc/files/package.json.html
135139
html/doc/files/npm-global.html: html/doc/files/npm-folders.html
136140
cp $< $@
137141

138-
html/doc/files/%.html: doc/files/%.md $(html_docdeps)
142+
html/doc/files/%.html: doc/files/%.md $(html_docdeps) $(build-doc-tools)
139143
@[ -d html/doc/files ] || mkdir -p html/doc/files
140144
scripts/doc-build.sh $< $@
141145

142-
html/doc/misc/%.html: doc/misc/%.md $(html_docdeps)
146+
html/doc/misc/%.html: doc/misc/%.md $(html_docdeps) $(build-doc-tools)
143147
@[ -d html/doc/misc ] || mkdir -p html/doc/misc
144148
scripts/doc-build.sh $< $@
145149

deps/npm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ you have chosen.
141141

142142
## More Docs
143143

144-
Check out the [docs](https://docs.npmjs.com/),
144+
Check out the [docs](https://docs.npmjs.com/).
145145

146146
You can use the `npm help` command to read any of them.
147147

148148
If you're a developer, and you want to use npm to publish your program,
149-
you should [read this](https://docs.npmjs.com/misc/developers)
149+
you should [read this](https://docs.npmjs.com/misc/developers).
150150

151151
## BUGS
152152

deps/npm/bin/read-package-json.js

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

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ npm-config(1) -- Manage the npm configuration files
66
npm config set <key> <value> [-g|--global]
77
npm config get <key>
88
npm config delete <key>
9-
npm config list [-l]
9+
npm config list [-l] [--json]
1010
npm config edit
1111
npm get <key>
1212
npm set <key> <value> [-g|--global]
@@ -48,7 +48,8 @@ Echo the config value to stdout.
4848

4949
npm config list
5050

51-
Show all the config settings. Use `-l` to also show defaults.
51+
Show all the config settings. Use `-l` to also show defaults. Use `--json`
52+
to show the settings in json format.
5253

5354
### delete
5455

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ npm-ping(1) -- Ping npm registry
88
## DESCRIPTION
99

1010
Ping the configured or given npm registry and verify authentication.
11+
If it works it will output something like:
12+
```
13+
Ping success: {*Details about registry*}
14+
```
15+
otherwise you will get:
16+
```
17+
Ping error: {*Detail about error}
18+
```
1119

1220
## SEE ALSO
1321

deps/npm/doc/cli/npm-run-script.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ and not to any pre or post script.
2727

2828
The `env` script is a special built-in command that can be used to list
2929
environment variables that will be available to the script at runtime. If an
30-
"env" command is defined in your package it will take precedence over the
30+
"env" command is defined in your package, it will take precedence over the
3131
built-in.
3232

3333
In addition to the shell's pre-existing `PATH`, `npm run` adds
@@ -38,7 +38,17 @@ you should write:
3838

3939
"scripts": {"test": "tap test/\*.js"}
4040

41-
instead of `"scripts": {"test": "node_modules/.bin/tap test/\*.js"}` to run your tests.
41+
instead of
42+
43+
"scripts": {"test": "node_modules/.bin/tap test/\*.js"}
44+
45+
to run your tests.
46+
47+
Scripts are run from the root of the module, regardless of what your current
48+
working directory is when you call `npm run`. If you want your script to
49+
use different behavior based on what subdirectory you're in, you can use the
50+
`INIT_CWD` environment variable, which holds the full path you were in when
51+
you ran `npm run`.
4252

4353
`npm run` sets the `NODE` environment variable to the `node` executable with
4454
which `npm` is executed. Also, if the `--scripts-prepend-node-path` is passed,

0 commit comments

Comments
 (0)