deps: upgrade npm to 2.7.0 #1080
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This was actually a pretty significant release for a number of reasons, because I tried to merge or otherwise resolve as many of npm's outstanding pull requests as I could. The CHANGELOG.md has the full details, but here are the bits most pertinent to io.js:
145af65#4887 Replace calls to the
node-gypscript bundled with npm by passing the--node-gyp=/path/to/node-gypoption to npm. Swap inpangypor a versionof
node-gypmodified to work better with io.js without having to touchnpm's code! (@ackalker)
2f6a1df#1999 Only run
stopandstartscripts (plus their pre- and post- scripts) when there's no
restartscriptdefined. This makes it easier to support graceful restarts of services
managed by npm. (@watilde /
@scien)
448efd0#2853 Add support for
--devand--prodtonpm ls, so that you can list only the trees of production ordevelopment dependencies, as desired.
(@watilde)
a0a8777#7463 Split the list printed by
npm run-scriptinto lifecycle scripts and scripts directly invoked vianpm run-script. (@watilde)a5edc17#6749
init-package-json@1.3.1:Support for passing scopes to
npm initso packages are initialized as partof that scope / organization / team. (@watilde)
Includes a cherry-picked version of @cjihrig's combined
node-gyppatch. It would be really great to get rid of the need for that patch sooooon.The 3 features at the end are what caused the semver-minor bump, but do read the full CHANGELOG for a lengthy discussion of why the second change might be considered a breaking change, but isn't in fact. Semver can be pretty nuanced.