From 0ed279fa73c4c5e1e5f6bb68bc1b5f9899cf3653 Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Mon, 23 Oct 2023 08:28:33 +0200 Subject: [PATCH 1/2] docs: add v10 for lockfile version 3 --- docs/lib/content/configuring-npm/package-lock-json.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/lib/content/configuring-npm/package-lock-json.md b/docs/lib/content/configuring-npm/package-lock-json.md index 37dc59f3260aa..7d54cca18c29d 100644 --- a/docs/lib/content/configuring-npm/package-lock-json.md +++ b/docs/lib/content/configuring-npm/package-lock-json.md @@ -36,7 +36,7 @@ various purposes: Both of these files have the same format, and perform similar functions in the root of a project. -The difference is that `package-lock.json` cannot be published, and it will +The difference is that `package-lock.json` cannot be published, and it will be ignored if found in any place other than the root project. In contrast, [npm-shrinkwrap.json](/configuring-npm/npm-shrinkwrap-json) allows @@ -114,7 +114,7 @@ the npm registry. Lockfiles generated by npm v7 will contain * `1`: The lockfile version used by npm v5 and v6. * `2`: The lockfile version used by npm v7 and v8. Backwards compatible to v1 lockfiles. -* `3`: The lockfile version used by npm v9. Backwards compatible to npm v7. +* `3`: The lockfile version used by npm v9 and v10. Backwards compatible to npm v7. npm will always attempt to get whatever data it can out of a lockfile, even if it is not a version that it was designed to support. From 6ec99f37c64cc244091bfc86a3c6eded0cce7df6 Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:16:16 +0200 Subject: [PATCH 2/2] replace v10 by above --- docs/lib/content/configuring-npm/package-lock-json.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/lib/content/configuring-npm/package-lock-json.md b/docs/lib/content/configuring-npm/package-lock-json.md index 7d54cca18c29d..d540dd0e7228b 100644 --- a/docs/lib/content/configuring-npm/package-lock-json.md +++ b/docs/lib/content/configuring-npm/package-lock-json.md @@ -114,7 +114,7 @@ the npm registry. Lockfiles generated by npm v7 will contain * `1`: The lockfile version used by npm v5 and v6. * `2`: The lockfile version used by npm v7 and v8. Backwards compatible to v1 lockfiles. -* `3`: The lockfile version used by npm v9 and v10. Backwards compatible to npm v7. +* `3`: The lockfile version used by npm v9 and above. Backwards compatible to npm v7. npm will always attempt to get whatever data it can out of a lockfile, even if it is not a version that it was designed to support.