Changelog History
Page 1
-
v6.2.0 Changes
July 05, 2018 -
v6.2.0-next.1 Changes
July 05, 2018 -
v6.2.0-next.0 Changes
June 29, 2018๐ NEW FEATURES
- โก๏ธ
ce0793358
#20750 You can now disable the update notifier entirely by using--no-update-notifier
or setting it in your config withnpm config set update-notifier false
. (@travi) d2ad776f6
#20879 Whennpm run-script <script>
fails due to a typo or missing script, npm will now do a "did you mean?..." for scripts that do exist. (@watilde)
๐ BUGFIXES
8f033d72d
#20948 Fix the regular expression matching inxcode_emulation
innode-gyp
to also handle version numbers with multiple-digit major versions which would otherwise break under use of XCode 10. (@Trott)c8ba7573a
Stop trying to hoist/dedupe bundles dependencies. (@iarna)cd698f068
#20762 Add synopsis to brief help fornpm audit
and suppress trailing newline. (@wyardley)6808ee3bd
#20881 Exclude /.github directory from npm tarball. (@styfle)177cbb476
#21105 Add suggestion to use a temporary cache instead ofnpm cache clear --force
. (@karanjthakkar)
๐ DOCS
7ba3fca00
#20855 Direct people to npm.community instead of the GitHub issue tracker on error. (@zkat)- ๐
88efbf6b0
#20859 Fix typo in registry docs. (@strugee) - ๐
61bf827ae
#20947 Fixed a small grammar error in the README. (@bitsol) f5230c90a
#21018 Small typo fix in CONTRIBUTING.md. (@reggi)- ๐ฆ
833efe4b2
#20986 Document current structure/expectations around package tarballs. (@Maximaximum) 9fc0dc4f5
#21019 Clarify behavior ofnpm link ../path
shorthand. (@davidgilbertson)3924c72d0
#21064 Add missing "if" (@roblourens)
DEPENDENCY SHUFFLE!
๐ We did some reshuffling and moving around of npm's own dependencies. This significantly reduces the total bundle size of the npm pack, from 8MB to 4.8MB for the distributed tarball! We also moved around what we actually commit to the repo as far as devDeps go.
0483f5c5d
Flatten and dedupe our dependencies! (@iarna)- ๐
ef9fa1ceb
Remove unused direct dependencyansi-regex
. (@iarna) - ๐
0d14b0bc5
Reshuffle ansi-regex for better deduping. (@iarna) - ๐
68a101859
Reshuffle strip-ansi for better deduping. (@iarna) - ๐
0d5251f97
Reshuffle is-fullwidth-code-point for better deduping. (@iarna) - ๐คก
2d0886632
Add fake-registry, npm-registry-mock replacement. (@iarna)
DEPENDENCIES
8cff8eea7
[email protected]
(@zkat)bfc4f873b
[email protected]
(@zkat)532096163
[email protected]
(@zkat)4a512771b
[email protected]
(@iarna)b7cc48dee
[email protected]
(@iarna)bae657c28
[email protected]
(@iarna)3d46e5c4e
[email protected]
(@iarna)d0a905daf
[email protected]
(@iarna)4fc1f815f
[email protected]
(@iarna)f72202944
[email protected]
(@iarna)bdce96eb3
[email protected]
(@iarna)fe4240e85
[email protected]
(@zkat)
- โก๏ธ
-
v6.1.0 Changes
May 24, 2018๐ Look at that! A feature bump!
npm@6
was super-exciting not just because it used a bigger number than ever before, but also because it included a super shiny new command:npm audit
. Well, we've kept working on it since then and have some really nice improvements for it. You can expect more of them, and the occasional fix, in the next few releases as more users start playing with it and we get more feedback about what y'all would like to see from something like this.I, for one, have started running it (and the new subcommand...) in all my projects, and it's one of those things that I don't know how I ever functioned -without- it! This will make a world of difference to so many people as far as making the npm ecosystem a higher-quality, safer commons for all of us.
This is also a good time to remind y'all that we have a new RFCs repository, along with a new process for them. This repo is open to anyone's RFCs, and has already received some great ideas about where we can take the CLI (and, to a certain extent, the registry). It's a great place to get feedback, and completely replaces feature requests in the main repo, so we won't be accepting feature requests there at all anymore. Check it out if you have something you'd like to suggest, or if you want to keep track of what the future might look like!
๐ NEW FEATURE:
npm audit fix
๐ This is the biggie with this release!
npm audit fix
does exactly what it says on the tin. It takes all the actionable reports from yournpm audit
and runs the installs automatically for you, so you don't have to try to do all that mechanical work yourself!๐ Note that by default,
npm audit fix
will stick to semver-compatible changes, so you should be able to safely run it on most projects and carry on with your day without having to track down what breaking changes were included. If you want your (toplevel) dependencies to accept semver-major bumps as well, you can usenpm audit fix --force
and it'll toss those in, as well. Since it's running the npm installer under the hood, it also supports--production
and--only=dev
flags, as well as things like--dry-run
,--json
, and--package-lock-only
, if you want more control over what it does.๐ Give it a whirl and tell us what you think! See
npm help audit
for full docs!OTHER NEW
audit
FEATURES- ๐จ
1854b1c7f
#20568 Add support fornpm audit --json
to print the report in JSON format. (@finnp) - ๐ฆ
85b86169d
#20570 Include number of audited packages innpm install
summary output. (@zkat) - ๐
957cbe275
[email protected]
: Overhaul audit install and detail output format. The new format is terser and fits more closely into the visual style of the CLI, while still providing you with the important bits of information you need. They also include a bit more detail on the footer about what actions you can take! (@zkat)
๐ NEW FEATURE: GIT DEPS AND
npm init <pkg>
!Another exciting change that came with
npm@6
was the newnpm init
command that allows for community-authored generators. That means you can, for example, donpm init react-app
and it'll one-off download, install, and runcreate-react-app
for you, without requiring or keeping around any global installs. That is, it basically just calls out tonpx
.๐ The first version of this command only really supported registry dependencies, but now, @jdalton went ahead and extended this feature so you can use hosted git dependencies, and their shorthands.
๐ฆ So go ahead and do
npm init facebook/create-react-app
and it'll grab the package from the github repo now! Or you can use it with a private github repository to maintain your organizational scaffolding tools or whatnot. โจ๐ FIX WRITE AFTER END ERROR
๐ First introduced in 5.8.0, this finally puts to bed errors where you would occasionally see
Error: write after end at MiniPass.write
.- ๐ฆ
171f3182f
node-tar#180 npm.community#35[email protected]
: Fix write-after-end errors. (@zkat)
DETECT CHANGES IN GIT SPECIFIERS
- โก๏ธ
0e1726c03
We can now determine if the commitid of a git dependency in the lockfile is derived from the specifier in the package.json and if it isn't we now trigger an update for it. (@iarna)
๐ OTHER BUGFIXES
- โก๏ธ
442d2484f
2f0c88351
631d30a34
When requesting the update of a direct dependency that was also a transitive dependency to a version incompatible with the transitive requirement and you had a lock-file but did not have anode_modules
folder then npm would fail to provide a new copy of the transitive dependency, resulting in an invalid lock-file that could not self heal. (@iarna) be5dd0f49
#20715 Cleanup output ofnpm ci
summary report. (@legodude17)- โ
98ffe4adb
Node.js now has a test that scans for things that look like conflict markers in source code. This was triggering false positives on a fixture in a test of npm's ability to heal lockfiles with conflicts in them. (@iarna) a41c0393c
#20538 Make the newnpm view
work when the license field is an object instead of a string. (@zkat)- ๐ณ
eb7522073
#20582 Add support for environments (like Docker) where the expected binary for opening external URLs is not available. (@bcoe) - โก๏ธ
212266529
#20536 Fix a spurious colon in the new update notifier message and add support for the npm canary. (@zkat) - ๐ฆ
5ee1384d0
#20597 Infer a version range when apackage.json
has a dist-tag instead of a version range in one of its dependency specs. Previously, this would cause dependencies to be flagged as invalid. (@zkat) 4fa68ae41
#20585 Make sure scoped bundled deps are shown in the new publish preview, too. (@zkat)- ๐
1f3ee6b7e
[email protected]
: Stop droppingsize
from metadata onnpm cache verify
. (@jfmartinez) 91ef93691
#20513 Fix nested command aliases. (@mmermerkaya)- ๐
18b2b3cf7
[email protected]
: Make sure different versions of thePath
env var on Windows all getnode_modules/.bin
prepended when running lifecycle scripts. (@laggingreflex)
๐ DOCUMENTATION
- โก๏ธ
a91d87072
#20550 Update required node versions in README. (@legodude17) - ๐
bf3cfa7b8
Pull in changelogs from the lastnpm@5
release. (@iarna) - ๐
b2f14b14c
#20629 Make tone inpublishConfig
docs more neutral. (@jeremyckahn)
DEPENDENCY BUMPS
5fca4eae8
[email protected]
(@75lb)d9ef3fba7
[email protected]
(@isaacs)f1baf011a
[email protected]
(@simonv)005fa5420
[email protected]
(@iarna)1becdf09a
[email protected]
(@isaacs)- ๐
3f2e306b8
Usingnpm audit fix
, replace some transitive dependencies with security issues with versions that don't have any. (@iarna) 1d07134e0
[email protected]
: Dropping to 4.4.1 from 4.4.2 due to npm/node-tar#183 (@zkat)
- ๐จ
-
v6.1.0-next.0 Changes
May 17, 2018๐ This release became 6.1.0
-
v6.0.1 Changes
May 10, 2018๐ฆ CTRL-C OUT DURING PACKAGE EXTRACTION AS MUCH AS YOU WANT!
- ๐ฆ
b267bbbb9
npm/lockfile#29[email protected]
: Switches tosignal-exit
to detect abnormal exits and remove locks. (@Redsandro)
SHRONKWRAPS AND LACKFILES
๐ If a published modules had legacy
npm-shrinkwrap.json
we were saving ordinary registry dependencies (name@version
) to yourpackage-lock.json
ashttps://
URLs instead of versions.- ๐
89102c0d9
When saving the lock-file compute how the dependency is being required instead of using_resolved
in thepackage.json
. This fixes the bug that was converting registry dependencies intohttps://
dependencies. (@iarna) - ๐
676f1239a
When encountering ahttps://
URL in our lockfiles that point at our default registry, extract the version and use them as registry dependencies. This lets us healpackage-lock.json
files produced by 6.0.0 (@iarna)
AUDIT AUDIT EVERYWHERE
You can't use it quite yet, but we do have a few last moment patches to
npm audit
to make it even better when it is turned on!b2e4f48f5
Make sure we hide stream errors on background audit submissions. Previously some classes of error could end up being displayed (harmlessly) during installs. (@iarna)1fe0c7fea
Include session and scope in requests (as we do in other requests to the registry). (@iarna)- โ
d04656461
Exit with non-zero status when vulnerabilities are found. So you can havenpm audit
as a test or prepublish step! (@iarna) fcdbcbacc
Verify lockfile integrity before running. You'd get an error either way, but this way it's faster and can give you more concrete instructions on how to fix it. (@iarna)2ac8edd42
Refuse to run in global mode. Audits require a lockfile and globals don't have one. Yet. (@iarna)- โฑ
3dcc240db
Timeout audit requests eventually. (@iarna)
Looking forward
We're still a way from having node@11, so now's a good time to ensure we don't warn about being used with it.
๐ DOCUMENTATION IMPROVEMENTS
- โก๏ธ
b7fca1084
#20407 Update the lock-file spec doc to mention that we now generate the from field forgit
-type dependencies. (@watilde) 7a6555e61
#20408 Describe what the colors in outdated mean. (@teameh)
โก๏ธ DEPENDENCY UPDATES
5e56b3209
[email protected]
(@evilpacket)- ๐
58a0b31b4
[email protected]
(@iarna) e7a8c364f
zkat/pacote#148[email protected]
(@redonkulus)46c0090a5
[email protected]
(@isaacs)- โก๏ธ
8a16db3e3
[email protected]
(@alexccl) 696375903
[email protected]
(@feross)c949eb26a
[email protected]
(@sindresorhus)
- ๐ฆ
-
v6.0.1-next.0 Changes
May 04, 2018๐ฆ CTRL-C OUT DURING PACKAGE EXTRACTION AS MUCH AS YOU WANT!
- ๐ฆ
b267bbbb9
npm/lockfile#29[email protected]
: Switches tosignal-exit
to detect abnormal exits and remove locks. (@Redsandro)
SHRONKWRAPS AND LACKFILES
๐ If a published modules had legacy
npm-shrinkwrap.json
we were saving ordinary registry dependencies (name@version
) to yourpackage-lock.json
ashttps://
URLs instead of versions.- ๐
89102c0d9
When saving the lock-file compute how the dependency is being required instead of using_resolved
in thepackage.json
. This fixes the bug that was converting registry dependencies intohttps://
dependencies. (@iarna) - ๐
676f1239a
When encountering ahttps://
URL in our lockfiles that point at our default registry, extract the version and use them as registry dependencies. This lets us healpackage-lock.json
files produced by 6.0.0 (@iarna)
AUDIT AUDIT EVERYWHERE
You can't use it quite yet, but we do have a few last moment patches to
npm audit
to make it even better when it is turned on!b2e4f48f5
Make sure we hide stream errors on background audit submissions. Previously some classes of error could end up being displayed (harmlessly) during installs. (@iarna)1fe0c7fea
Include session and scope in requests (as we do in other requests to the registry). (@iarna)- โ
d04656461
Exit with non-zero status when vulnerabilities are found. So you can havenpm audit
as a test or prepublish step! (@iarna) fcdbcbacc
Verify lockfile integrity before running. You'd get an error either way, but this way it's faster and can give you more concrete instructions on how to fix it. (@iarna)2ac8edd42
Refuse to run in global mode. Audits require a lockfile and globals don't have one. Yet. (@iarna)
๐ DOCUMENTATION IMPROVEMENTS
- โก๏ธ
b7fca1084
#20407 Update the lock-file spec doc to mention that we now generate the from field forgit
-type dependencies. (@watilde) 7a6555e61
#20408 Describe what the colors in outdated mean. (@teameh)
โก๏ธ DEPENDENCY UPDATES
5e56b3209
[email protected]
(@evilpacket)- ๐
58a0b31b4
[email protected]
(@iarna) e7a8c364f
zkat/pacote#148[email protected]
(@redonkulus)46c0090a5
[email protected]
(@isaacs)- โก๏ธ
8a16db3e3
[email protected]
(@alexccl) 696375903
[email protected]
(@feross)c949eb26a
[email protected]
(@sindresorhus)
- ๐ฆ
-
v6.0.0 Changes
May 04, 2018๐ This release contains:
v6.0.0.next-1
๐ There's two major features included with this release, along with a few miscellaneous fixes and changes.
EXTENDED
npm init
SCAFFOLDINGThanks to the wonderful efforts of @jdalton of lodash fame,
npm init
can now be used to invoke custom scaffolding tools!๐ฆ You can now do things like
npm init react-app
ornpm init esm
to scaffold an npm package by runningcreate-react-app
andcreate-esm
, respectively. This also adds annpm create
alias, to correspond to Yarn'syarn create
feature, which
inspired this.008a83642
ed81d1426
833046e45
#20303 Add annpm init
feature that calls out tonpx
when invoked with positional arguments. (@jdalton)
DEPENDENCY AUDITING
๐ This version of npm adds a new command,
npm audit
, which will run a security audit of your project's dependency tree and notify you about any actions you may need to take.The registry-side services required for this command to work will be available on the main npm registry in the coming weeks. Until then, you won't get much out of trying to use this on the CLI.
๐ As part of this change, the npm CLI now sends scrubbed and cryptographically anonymized metadata about your dependency tree to your configured registry, to allow notifying you about the existence of critical security flaws. For details about how the CLI protects your privacy when it shares this metadata, see
npm help audit
, or read the docs fornpm audit
online. You can disable this altogether by doingnpm config set audit false
, but will no longer benefit from the service.f4bc648ea
#20389[email protected]
(@iarna)594d16987
#20389[email protected]
(@iarna)8c77dde74
1d8ac2492
552ff6d64
09c734803
#20389 Add newnpm audit
command. (@iarna)- ๐
be393a290
#20389 Temporarily suppress git metadata till there's an opt-in. (@iarna) 8e713344f
#20389 Document the new command. (@iarna)
๐ MORE
package-lock.json
FORMAT CHANGES?!- ๐
820f74ae2
#20384 Addfrom
field back into package-lock for git dependencies. This will give npm the information it needs to figure out whether git deps are valid, specially when running with legacy install metadata or in--package-lock-only
mode when there's nonode_modules
. This should help remove a significant amount of git-related churn on the lock-file. (@zkat)
๐ BUGFIXES
- ๐
9d5d0a18a
#20358npm install-test
(akanpm it
) will no longer generatepackage-lock.json
when running with--no-package-lock
orpackage-lock=false
. (@raymondfeng) - ๐
e4ed976e2
2facb35fb
9c1eb945b
#20390 Fix a scenario where a git dependency had a comittish associated with it that was not a complete commitid.npm
would never consider that entry in thepackage.json
as matching the entry in thepackage-lock.json
and this resulted in inappropriate pruning or reinstallation of git dependencies. This has been addressed in two ways, first, the addition of thefrom
field as described in #20384 means we can exactly match thepackage.json
. Second, when that's missing (when working with olderpackage-lock.json
files), we assume that the match is ok. (If it's not, we'll fix it up when a real installation is done.) (@iarna)
DEPENDENCIES
๐ DOCS
- ๐
a1c77d614
#20331 Fix broken link to 'private-modules' page. The redirect went away when the new npm website went up, but the new URL is better anyway. (@vipranarayan14) ad7a5962d
#20279 Document the--if-present
option fornpm run-script
. (@aleclarson)
v6.0.0-next.0
๐ NEW FEATURES
- ๐ฆ
a9e722118
#20256 Add support for managing npm webhooks. This brings over functionality previously provided by thewombat
CLI. (@zkat) 8a1a64203
#20126 Addnpm cit
command that's equivalent ofnpm ci && npm t
that's equivalent ofnpm it
. (@SimenB)- ๐
fe867aaf1
49d18b4d8
ff6b31f77
78eab3cda
Therequires
field in your lock-file will be upgraded to use ranges from versions on your first use of npm. (@iarna) cf4d7b4de
#20257 Add shasum and integrity to the newnpm view
output. (@zkat)
๐ BUG FIXES
685764308
Fix a bug where OTPs passed in via the commandline would have leading zeros deleted resulted in authentication failures. (@iarna)โช
8f3faa323
6800f76ff
ec90c06c7
825b5d2c6
4785f13fb
bd16485f5
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)
๐
429498a8c
#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)๐ Fix the a bug where
npm i --only=prod
could remove development dependencies from lock-file. (@iarna)โก๏ธ
834b46ff4
#20122 Improve the update-notifier messaging (borrowing ideas from pnpm) and eliminate false positives. (@zkat)๐
f9de7ef3a
#20154 Let version succeed whenpackage-lock.json
is gitignored. (@nwoltman)f8ec52073
#20212 Ensure that we only create anetc
directory if we are actually going to write files to it. (@buddydvd)๐
ab489b753
#20140 Note in documentation thatpackage-lock.json
version gets touched bynpm version
. (@srl295)857c2138d
#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)d2d290bca
#20082 Allow optional @ prefix on scope withnpm team
commands for parity with other commands. (@bcoe)b5babf0a9
#19580 Improve messaging when two-factor authentication is required while publishing. (@jdeniau)๐
471ee1c5b
0da38b7b4
Fix a bug where optional status of a dependency was not being saved to the package-lock on the initial install. (@iarna)๐
b3f98d8ba
9dea95e31
Ensure that--no-optional
does not remove optional dependencies from the lock-file. (@iarna)MISCELLANEOUS
โก๏ธ DEPENDENCY UPDATES
- 0๏ธโฃ
73dc97455
zkat/cipm#46[email protected]
: Detect binding.gyp for default install lifecycle. Let'snpm ci
work on projects that have their own C code. (@caleblloyd) 77c3f7a00
[email protected]
- ๐
dce733e37
zkat/json-parse-better-errors#1[email protected]
(@Hoishin) c52765ff3
[email protected]
(@mcollina)- โก๏ธ
e160adf9f
[email protected]
(@sindersorhus) 9a9d7809e
[email protected]
(@joshbruce)f2fbd8577
#20256[email protected]
(@zkat)44972d53d
#20256[email protected]
(@zkat)cfe562c58
#20276[email protected]
3c0bbcb8e
zkat/npx#172[email protected]
(@jdalton)0573d91e5
zkat/cacache#128[email protected]
(@zkat)396afa99f
[email protected]
(@zkat)e7f869c36
[email protected]
(@zkat)77dac72df
[email protected]
(@zkat)0b802f2a0
[email protected]
(@iarna)4781b64bc
[email protected]
(@zkat)- ๐ฆ
7bdbaeea6
[email protected]
(@zkat) - ๐ฆ
5f2bf4222
[email protected]
(@zkat)
-
v6.0.0-next.2 Changes
April 21, 2018๐ This release became 6.0.0
-
v5.10.0 Changes
May 11, 2018With this, likely the last release of the [email protected] series, we backport a number of features from 6.0.0. Contrary to Github at publication time, this is not the latest release. That honor belongs to 6.0.1, just below this. If you're using 6.0.1 there's nothing here you haven't seen before.
EXTENDED
npm init
SCAFFOLDINGThanks to the wonderful efforts of @jdalton of lodash fame,
npm init
can now be used to invoke custom scaffolding tools!๐ฆ You can now do things like
npm init react-app
ornpm init esm
to scaffold an npm package by runningcreate-react-app
andcreate-esm
, respectively. This also adds annpm create
alias, to correspond to Yarn'syarn create
feature, which inspired this.adc009ed4
f363edd04
f03b45fb2
13adcbb52
#20303 #20372 Add annpm init
feature that calls out tonpx
when invoked with positional arguments. (@jdalton)
DEPENDENCY AUDITING
๐ This version of npm adds a new command,
npm audit
, which will run a security audit of your project's dependency tree and notify you about any actions you may need to take.The registry-side services required for this command to work will be available on the main npm registry in the coming weeks. Until then, you won't get much out of trying to use this on the CLI.
๐ As part of this change, the npm CLI now sends scrubbed and cryptographically anonymized metadata about your dependency tree to your configured registry, to allow notifying you about the existence of critical security flaws. For details about how the CLI protects your privacy when it shares this metadata, see
npm help audit
, or read the docs fornpm audit
online. You can disable this altogether by doingnpm config set audit false
, but will no longer benefit from the service.c81dfb91b
[email protected]
(@iarna)b096f44a9
[email protected]
(@iarna)43b20b204
#20389 Add newnpm audit
command. (@iarna)- ๐
49ddb3f56
#20389 Temporarily suppress git metadata till there's an opt-in. (@iarna) 5f1129c4b
#20389 Document the new command. (@iarna)- โ
9a07b379d
#20389 Default audit to off when running the npm test suite itself. (@iarna) a6e2f1284
Make sure we hide stream errors on background audit submissions. Previously some classes of error could end up being displayed (harmlessly) during installs. (@iarna)aadbf3f46
Include session and scope in requests (as we do in other requests to the registry). (@iarna)- โ
7d43ddf63
Exit with non-zero status when vulnerabilities are found. So you can havenpm audit
as a test or prepublish step! (@iarna) bc3fc55fa
Verify lockfile integrity before running. You'd get an error either way, but this way it's faster and can give you more concrete instructions on how to fix it. (@iarna)2ac8edd42
Refuse to run in global mode. Audits require a lockfile and globals don't have one. Yet. (@iarna)- โฑ
3dcc240db
Timeout audit requests eventually. (@iarna)
๐ฆ CTRL-C OUT DURING PACKAGE EXTRACTION AS MUCH AS YOU WANT!
- ๐ฆ
663d8b5e5
npm/lockfile#29[email protected]
: Switches tosignal-exit
to detect abnormal exits and remove locks. (@Redsandro)
SHRONKWRAPS AND LACKFILES
๐ If a published modules had legacy
npm-shrinkwrap.json
we were saving ordinary registry dependencies (name@version
) to yourpackage-lock.json
ashttps://
URLs instead of versions.- ๐
36f998411
When saving the lock-file compute how the dependency is being required instead of using_resolved
in thepackage.json
. This fixes the bug that was converting registry dependencies intohttps://
dependencies. (@iarna) - ๐
113e1a3af
When encountering ahttps://
URL in our lockfiles that point at our default registry, extract the version and use them as registry dependencies. This lets us healpackage-lock.json
files produced by 6.0.0 (@iarna)
๐ MORE
package-lock.json
FORMAT CHANGES?!- ๐
074502916
#20384 Addfrom
field back into package-lock for git dependencies. This will give npm the information it needs to figure out whether git deps are valid, specially when running with legacy install metadata or in--package-lock-only
mode when there's nonode_modules
. This should help remove a significant amount of git-related churn on the lock-file. (@zkat)
๐ DOCUMENTATION IMPROVEMENTS
- โก๏ธ
e0235ebb6
#20384 Update the lock-file spec doc to mention that we now generate the from field forgit
-type dependencies. (@watilde) 35de04676
#20408 Describe what the colors in outdated mean. (@teameh)
๐ BUGFIXES
- ๐
1b535cb9d
#20358npm install-test
(akanpm it
) will no longer generatepackage-lock.json
when running with--no-package-lock
orpackage-lock=false
. (@raymondfeng) - ๐
268f7ac50
5f84ebdb6
c12e61431
#20390 Fix a scenario where a git dependency had a comittish associated with it that was not a complete commitid.npm
would never consider that entry in thepackage.json
as matching the entry in thepackage-lock.json
and this resulted in inappropriate pruning or reinstallation of git dependencies. This has been addressed in two ways, first, the addition of thefrom
field as described in #20384 means we can exactly match thepackage.json
. Second, when that's missing (when working with olderpackage-lock.json
files), we assume that the match is ok. (If it's not, we'll fix it up when a real installation is done.) (@iarna)
๐ DOCS
- ๐
7b13bf5e3
#20331 Fix broken link to 'private-modules' page. The redirect went away when the new npm website went up, but the new URL is better anyway. (@vipranarayan14) 1c4ffddce
#20279 Document the--if-present
option fornpm run-script
. (@aleclarson)
โก๏ธ DEPENDENCY UPDATES
815d91ce0
[email protected]
(@zkat)- โก๏ธ
02715f19f
[email protected]
(@alexccl) 08c4ddd9e
[email protected]
(@isaacs)53718cb12
[email protected]
(@isaacs)0a20cf546
[email protected]
(@feross)e8c8e844c
[email protected]
(@tim-kos)- ๐ฆ
76c7f21bd
[email protected]
(@zkat) c8b0aa07b
[email protected]
(@sindresorhus)- ๐ฆ
abfd366b4
[email protected]
(@zkat) - ๐
bd29baf83
[email protected]
(@iarna)