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 viewoutput. (@zkat)a22153be2#20126 Addnpm citcommand that’s equivalent ofnpm ci && npm tthat’s equivalent ofnpm it. (@SimenB)
BUG FIXES
089aeaf44Fix a bug where OTPs passed in via the commandline would have leading zeros deleted resulted in authentication failures. (@iarna)6eaa860eaEliminate direct use ofnew Bufferinnpm. While the use of it innpmwas 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 Bufferin unsafe ways, if they try really hard.
(@iarna)
85900a294Starting with 5.8.0 therequiressection 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)0dffa9c2a609d6f6e108f81aa94f8b76e0766d609822d59d080a22Restore 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=prodcould 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.jsonis gitignored. (@nwoltman)ced29253d#20212 Ensure that we only create anetcdirectory if we are actually going to write files to it. (@buddydvd)8e21b19a8#20140 Note in documentation thatpackage-lock.jsonversion 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 teamcommands for parity with other commands. (@bcoe)6bef53891#19580 Improve messaging when two-factor authentication is required while publishing. (@jdeniau)155dab2bdFix a bug where optional status of a dependency was not being saved to the package-lock on the initial install. (@iarna)8d6a4cafca0937e9afEnsure that--no-optionaldoes not remove optional dependencies from the lock-file. (@iarna)
DEPENDENCY UPDATES
8baa37551zkat/cipm#46libcipm@1.6.2: Detect binding.gyp for default install lifecycle. Let’snpm ciwork on projects that have their own C code. (@caleblloyd)323f74242zkat/json-parse-better-errors#1json-parse-better-errors@1.0.2(@Hoishin)d0cf1f11ereadable-stream@2.3.6(@mcollina)9e9fdba5eupdate-notifier@2.4.0(@sindersorhus)57fa33870marked@0.3.1(@joshbruce)d2b20d34b#20276node-gyp@3.6.22b5700679zkat/npx#172libnpx@10.1.1(@jdalton)