The npm blog has been discontinued.
Coming to you this week are a fancy new package view, pack/publish previews and a handful of bug fixes! Let’s get right in!
NEW PACKAGE VIEW
There’s a new
npm view in town. You might it as
npm info or
npm show. The new output gives you a nicely summarized view that for most packages fits on one screen. If you ask it for
--json you’ll still get the same results, so your scripts should still work fine.
143cdbf13#19910 Add humanized default view. (@zkat)
PACK AND PUBLISH PREVIEWS
npm pack and
npm publish commands print out a summary of the files included in the package. They also both now take the
--dry-run flag, so you can double check your
.npmignore settings before doing a publish.
116e9d827#19908 Add package previews to pack and publish. Also add –dry-run and –json flags. (@zkat)
MERGE CONFLICT, SMERGE CONFLICT
If you resolve a
package-lock.json merge conflict with
npm install we now suggest you setup a merge driver to handle these automatically for you. If you’re reading this and you’d like to set it up now, run:
npx npm-merge-driver install -g
a05e27b71Going forward, record requested ranges not versions in the package-lock. (@iarna)
f721eec59Add 10 to Node.js supported version list. It’s not out yet, but soon my pretties… (@iarna)
email@example.com: Fix bugs on docker and with some
npm ci. Fix a bug where script hooks wouldn’t be called with
npm ci. Fix a bug where
--prefixweren’t compatible. (@isaacseymour) (@umarov) (@mikeshirov) (@billjanitsch)
firstname.lastname@example.org: Switch to safe-buffer and Buffer.from. (@isaacs) (@ChALkeR)