The npm blog has been discontinued.
Updates from the npm team are now published on the GitHub Blog and the GitHub Changelog.
v5.8.0-next.0
Hey again, everyone! While last release was focused largely around PRs from the CLI team, this release is mostly pulling in community PRs in npm itself and its dependencies! We’ve got a good chunk of wonderful contributions for y'all, and even new features and performance improvements! 🎉
We’re hoping to continue our biweekly (as in every-other-week biweekly) release schedule from now on, so you should be seeing more steady npm releases from here on out. And that’s good, ‘cause we’ve got a ton of new stuff on our roadmap for this year. Keep an eye out for exciting news. 👀
FEATURES
2f513fe1c
#19904 Make a best-attempt at preserving line ending style when savingpackage.json
/package-lock.json
/npm-shrinkwrap.json
. This goes hand-in-hand with a previous patch to preserve detected indentation style. (@tuananh)d3cfd41a2
pacote@7.6.1
(@zkat)- Enable
file:
-basedresolved
URIs inpackage-lock.json
. - Retry git-based operations on certain types of failure.
- Enable
ecfbb16dc
#19929 Add support for theNO_COLOR
standard. This gives a cross-application, consistent way of disabling ANSI color code output. Note that npm already supported this through--no-color
ornpm_config_color='false'
configurations, so this is just another way to do it. (@chneukirchen)fc8761daf
#19629 Give more detailed, contextual information when npm fails to parsepackage-lock.json
andnpm-shrinkwrap.json
, instead of sayingJSON parse error
and leaving you out in the cold. (@JoshuaKGoldberg)1d368e1e6
#19157 Add--no-proxy
config option. Previously, you needed to use theNO_PROXY
environment variable to use this feature – now it’s an actual npm option. (@Saturate)f0e998daa
#18426 Do environment variable replacement in config files even for config keys or fragments of keys. (@misak113)9847c82a8
#18384 Better error messaging and suggestions when users getEPERM
/EACCES
errors. (@chrisjpatty)b9d0c0c01
#19448 Holiday celebrations now include all JavaScripters, not just Node developers. (@isaacs)
NPM CI
I hope y'all have been having fun with npm ci
so far! Since this is the first release since that went out, we’ve had a few fixes and improvements now that folks have actually gotten their hands on it! Benchmarks have been super promising so far, and I’ve gotten messages from a lot of you saying you’ve sped up your CI work by 2-5x in some cases! Have a good example? Tell us on Twitter!
npm ci
is, right now, the fastest installer you can use in CI situations, so go check it out if you haven’t already! We’ll continue doing performance improvements on it, and a lot of those will help make npm install
fast as well. 🏎😎
This libcipm
release includes a number of improvements:
- PERFORMANCE Reduce calls to
read-package-json
and separate JSON update phase from man/bin linking phase.npm ci
should be noticeably faster. - FEATURE Progress bar now fills up as packages are installed, instead of sitting there doing nothing.
- BUGFIX Add support for
--only
and--also
options. - BUFGIX Linking binaries and running scripts in parallel was causing packages to sometimes clobber each other when hoisted, as well as potentially running too many run-sripts in parallel. This is now a serial operation, and it turns out to have had relatively little actual performance impact.
- BUGFIX Stop adding
_from
to directory deps (akafile:packages/my-dep
).
BUGFIXES
58d2aa58d
#20027 Use a specific mtime when packing tarballs instead of the beginning of epoch time. This should allownpm pack
to generate tarballs with identical hashes for identical contents, while fixing issues with somezip
implementations that do not support pre-1980 timestamps. (@isaacs)4f319de1d
Don’t fall back to couch adduser if we didn’t try couch login. (@iarna)c8230c9bb
#19608 Fix issue where using the npm-bundlednpx
on Windows was invokingnpx prefix
(and downloading that package). (@laggingreflex)d70c01970
#18953 Avoid using code that depends onnode@>=4
in theunsupported
check, so npm can report the issue normally instead of syntax-crashing. (@deployable)
DOCUMENTATION
4477ca2d9
marked@0.3.17
: Fixes issue preventing correct rendering of backticked strings. man pages should be rendering correctly now instead of having empty spaces wherever backticks were used. (@joshbruce)71076ebda
#19950 Add a note to install –production. (@kyranet)3a33400b8
#19957 nudge around some details in ci docs (@zkat)06038246a
#19893 Add a common open reason to the issue template. (@MrStonedOne)7376dd8af
#19870 Fix typo innpm-config.md
(@joebowbeer)5390ed4fa
#19858 Fix documented default value for config save option. It was still documented asfalse
, even thoughnpm@5.0.0
set it totrue
by default. (@nalinbhardwaj)dc36d850a
#19552 Reworknpm update
docs now that--save
is on by default. (@selbekk)5ec5dffc8
#19726 Clarify thatname
andversion
fields are optional if your package is not supposed to be installable as a dependency. (@ngarnier)046500994
#19676 Fix documented cache location on Windows. (@VladRassokhin)ffa84cd0f
#19475 Added example forhomepage
field frompackage.json
. (@cg-cnu)de72d9a18
#19307 Document therequires
field innpm help package-lock.json
. (@jcrben)35c4abded
#18976 Typo fix in coding style documentation. (@rinfan)0616fd22a
#19216 Addedit
section to description innpm-team.md
. (@WispProxy)c2bbaaa58
#19194 Tiny style fix innpm.md
. (@WispProxy)dcdfdcbb0
#19192 Document--development
flag innpm-ls.md
. (@WispProxy)d7ff07135
#18514 Make it sojavascript
->JavaScript
. This is important. (@masonpawsey)7a8705113
#18407 Clarify the mechanics of thefile
field inpackage.json
a bit. (@bmacnaughton)b2a1cf084
#18382 Document thebrowser
field inpackage.json
. (@mxstbr)
MISC
b8a48a959
#19907 Consolidate code for stringifyingpackage.json
and package locks. Also adds tests have been added to test thatpackage[-lock].json
files are written to disk with their original line endings. (@nwoltman)b4f707d9f
#19879 Remove unused devDependencynock
from.gitignore
. (@watilde)8150dd5f7
#16540 Stop doing anuninstall
when usingmake clean
. (@metux)
OTHER DEPENDENCY BUMPS
ab237a2a5
init-package-json@1.10.3
(@zkat)f6d668941
npm-lifecycle@2.0.1
(@zkat)882bfbdfa
npm-registry-client@8.5.1
(@zkat)6ae38055b
read-package-json@2.0.1
: Support git packed refs--all
mode. (@zkat)89db703ae
readable-stream@2.3.5
(@mcollina)634dfa5f4
worker-farm@1.5.4
(@rvagg)92ad34439
hosted-git-info@2.6.0
(@zkat)75279c488
tar@4.4.0
(@isaacs)228aba276
write-file-atomic@2.3.0
(@iarna)006e9d272
libnpx@10.0.1
(@zkat)9985561e6
mississippi@3.0.0
(@bcomnes)1dc6b3b52
tap@11.1.2
(@isaacs)