deps: upgrade npm to 4.0.5
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
deps
Description of change
Breaking Changes
-
npm search
rewritten to stream results, and no longer supports sorting. -
npm scripts
no longer prepend the path of the node executable used to run npm before running scripts. A--scripts-prepend-node-path
option has been added to configure this behavior. (/cc @addaleax) -
prepublish
has been deprecated, replaced byprepare
. AprepublishOnly
script has been temporarily added, which will only run onnpm publish
. NOTE: This change only affects users publishing new versions of their packages and developers installing through git and local deps. Registry installs should be (mostly) unaffected by this change. -
npm outdated
exits with exit code1
if it finds any outdated packages. (/cc @watilde) -
npm tag
has been removed after a deprecation cycle. Usenpm dist-tag
. - Partial shrinkwraps are no longer supported.
npm-shrinkwrap.json
is considered a complete installation manifest except fordevDependencies
. This will affect certain projects that relied heavily on this feature, most notablyhapi
. -
devDependencies
are now included innpm-shrinkwrap.json
by default. This should make the transition tonpm@5
easier.
Other Notable Changes
- npm will now send
Npm-In-CI
andNpm-Scope
headers to registries when fetching modules. The former will allow registries to more accurately distinguish between CI and user traffic. The latter will allow registries to implement features on the basis of the scope of the project (rather than the module actually being installed). -
d8471a2
npm/npm#12811 Fixes issue wherenpm install
needed to be run twice whendevDependencies
had conflicting subdeps withdependencies
. (@schmod)
Changelogs
r: @Fishrock123 r: @addaleax r: @jasnell