This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
v2.11.0
For the first time in a very long time, we've added new events to the life cycle used by npm run-script
. Since running npm version (major|minor|patch)
is typically the last thing many developers do before publishing their updated packages, it makes sense to add life cycle hooks to run tests or otherwise preflight the package before doing a full publish. Thanks, as always, to the indefatigable @watilde for yet another great usability improvement for npm!
FEATURELETS
b07f7c7
#7906 Add newscripts
to allow you to run scripts before and after thenpm version
command has run. This makes it easy to, for instance, require that your test suite passes before bumping the version by just adding"preversion": "npm test"
to the scripts section of yourpackage.json
. (@watilde)8a46136
#8185 When we get a "not found" error from the registry, we'll now check to see if the package name you specified is invalid and if so, give you a better error message. (@thefourtheye)
BUG FIXES
9bcf573
#8324 On Windows, when you've configured a customnode-gyp
, run it with node itself instead of using the default open action (which is almost never what you want). (@bangbang93)1da9b04
#7195 #7260npm-registry-client@6.4.0
: (Re-)allow publication of existing mixed-case packages (part 1). (@smikes)e926783
#7195 #7260normalize-package-data@2.2.0
: (Re-)allow publication of existing mixed-case packages (part 2). (@smikes)
DOCUMENTATION IMPROVEMENTS
f62ee05
#8314 Update the README to warn folks away from using the CLI's internal API. For the love of glob, just use a child process to run the CLI! (@claycarpenter)1093921
#8279 Update the documentation to note that, yes, you can publish scoped packages to the public registry now! (@mantoni)f87cde5
#8292 Fix typo in an example and grammar in the description in the shrinkwrap documentation. (@vshih)d3526ce
Improve the formatting in the shrinkwrap documentation. (@othiym23)19fe6d2
#8311 Update README.md to use syntax highlighting in its code samples and bits of shell scripts. (@SimenB)
DEPENDENCY UPDATES! ALWAYS AND FOREVER!
fc52160
#4700 #5044init-package-json@1.6.0
: Make entering an invalid version while runningnpm init
give you an immediate error and prompt you to correct it. (@watilde)738853e
#7763fs-write-stream-atomic@1.0.3
: Fix a bug where errors would not propagate, making error messages unhelpful. (@iarna)6d74a2d
npm-package-arg@4.0.1
: Fix tests on windows (@Bacra) and with more recenthosted-git-info
. (@iarna)50f7178
hosted-git-info@2.1.4
: Correct spelling in its documentation. (@iarna)d7956ca
glob@5.0.7
: Fix a bug where unusual error conditions could make further use of the module fail. (@isaacs)44f7d74
tap@1.1.0
: Update to the most recent tap to get a whole host of bug fixes and integration with coveralls.
(@isaacs)c21e8a8
nock@2.2.0
(@othiym23)
LICENSE FILES FOR THE LICENSE GOD
- Add missing ISC license file to package (@kasicka):