The npm blog has been discontinued.
Updates from the npm team are now published on the GitHub Blog and the GitHub Changelog.
v5.10.0
NEW FEATURES
32ec2f54b
#20257 Add shasum and integrity to the newnpm view
output. (@zkat)a22153be2
#20126 Addnpm cit
command that’s equivalent ofnpm ci && npm t
that’s equivalent ofnpm it
. (@SimenB)
BUG FIXES
089aeaf44
Fix a bug where OTPs passed in via the commandline would have leading zeros deleted resulted in authentication failures. (@iarna)6eaa860ea
Eliminate direct use ofnew Buffer
innpm
. While the use of it innpm
was safe, there are two other reasons for this change:- Node 10 emits warnings about its use.
- Users who require npm as a library (which they definitely should not do)
can call the functions that call
new Buffer
in unsafe ways, if they try really hard.
(@iarna)
85900a294
Starting with 5.8.0 therequires
section of the lock-file saved version ranges instead of specific versions. Due to a bug, further actions on the same lock-file would result in the range being switched back to a version. This corrects that, keeping ranges when they appear. (@iarna)0dffa9c2a
609d6f6e1
08f81aa94
f8b76e076
6d609822d
59d080a22
Restore the ability to bundle dependencies that are uninstallable from the registry. This also eliminates needless registry lookups for bundled dependencies.Fixed a bug where attempting to install a dependency that is bundled inside another module without reinstalling that module would result in ENOENT errors. (@iarna)
db846c2d5
#20029 Allow packages with non-registry specifiers to follow the fast path that the we use with the lock-file for registry specifiers. This will improve install time especially when operating only on the package-lock (--package-lock-only
). (@zkat)Fixes a bug where
npm i --only=prod
could remove development dependencies from lock-file. (@iarna)3e12d2407
#20122 Improve the update-notifier messaging (borrowing ideas from pnpm) and eliminate false positives. (@zkat)f18be9b39
#20154 Let version succeed whenpackage-lock.json
is gitignored. (@nwoltman)ced29253d
#20212 Ensure that we only create anetc
directory if we are actually going to write files to it. (@buddydvd)8e21b19a8
#20140 Note in documentation thatpackage-lock.json
version gets touched bynpm version
. (@srl295)5d17c87d8
#20032 Fix bug where unauthenticated errors would get reported as both 404s and 401s, i.e.npm ERR! 404 Registry returned 401
. In these cases the error message will now be much more informative. (@iarna)05ff6c9b1
#20082 Allow optional @ prefix on scope withnpm team
commands for parity with other commands. (@bcoe)6bef53891
#19580 Improve messaging when two-factor authentication is required while publishing. (@jdeniau)155dab2bd
Fix a bug where optional status of a dependency was not being saved to the package-lock on the initial install. (@iarna)8d6a4cafc
a0937e9af
Ensure that--no-optional
does not remove optional dependencies from the lock-file. (@iarna)
DEPENDENCY UPDATES
8baa37551
zkat/cipm#46libcipm@1.6.2
: Detect binding.gyp for default install lifecycle. Let’snpm ci
work on projects that have their own C code. (@caleblloyd)323f74242
zkat/json-parse-better-errors#1json-parse-better-errors@1.0.2
(@Hoishin)d0cf1f11e
readable-stream@2.3.6
(@mcollina)9e9fdba5e
update-notifier@2.4.0
(@sindersorhus)57fa33870
marked@0.3.1
(@joshbruce)d2b20d34b
#20276node-gyp@3.6.2
2b5700679
zkat/npx#172libnpx@10.1.1
(@jdalton)