From c77ba525b14fc8f161072cc4480f09b2bf6bb0f9 Mon Sep 17 00:00:00 2001 From: npm CLI robot Date: Thu, 19 Nov 2026 22:12:53 +0000 Subject: [PATCH] deps: upgrade npm to 11.21.3 --- deps/npm/docs/content/commands/npm-ci.md | 5 + deps/npm/docs/content/commands/npm-exec.md | 5 + .../content/commands/npm-install-ci-test.md | 5 + .../content/commands/npm-install-scripts.md | 6 + .../docs/content/commands/npm-install-test.md | 5 + deps/npm/docs/content/commands/npm-install.md | 5 + deps/npm/docs/content/commands/npm-ls.md | 2 +- deps/npm/docs/content/commands/npm-rebuild.md | 5 + deps/npm/docs/content/commands/npm-update.md | 5 + deps/npm/docs/content/commands/npm.md | 2 +- deps/npm/docs/content/using-npm/config.md | 5 + deps/npm/docs/output/commands/npm-access.html | 4 +- .../npm/docs/output/commands/npm-adduser.html | 4 +- .../output/commands/npm-approve-scripts.html | 4 +- deps/npm/docs/output/commands/npm-audit.html | 4 +- deps/npm/docs/output/commands/npm-bugs.html | 4 +- deps/npm/docs/output/commands/npm-cache.html | 4 +- deps/npm/docs/output/commands/npm-ci.html | 8 +- .../docs/output/commands/npm-completion.html | 4 +- deps/npm/docs/output/commands/npm-config.html | 4 +- deps/npm/docs/output/commands/npm-dedupe.html | 4 +- .../output/commands/npm-deny-scripts.html | 4 +- .../docs/output/commands/npm-deprecate.html | 4 +- deps/npm/docs/output/commands/npm-diff.html | 4 +- .../docs/output/commands/npm-dist-tag.html | 4 +- deps/npm/docs/output/commands/npm-docs.html | 4 +- deps/npm/docs/output/commands/npm-doctor.html | 4 +- deps/npm/docs/output/commands/npm-edit.html | 4 +- deps/npm/docs/output/commands/npm-exec.html | 8 +- .../npm/docs/output/commands/npm-explain.html | 4 +- .../npm/docs/output/commands/npm-explore.html | 4 +- .../docs/output/commands/npm-find-dupes.html | 4 +- deps/npm/docs/output/commands/npm-fund.html | 4 +- deps/npm/docs/output/commands/npm-get.html | 4 +- .../docs/output/commands/npm-help-search.html | 4 +- deps/npm/docs/output/commands/npm-help.html | 4 +- deps/npm/docs/output/commands/npm-init.html | 4 +- .../output/commands/npm-install-ci-test.html | 8 +- .../output/commands/npm-install-scripts.html | 14 +- .../output/commands/npm-install-test.html | 8 +- .../npm/docs/output/commands/npm-install.html | 8 +- deps/npm/docs/output/commands/npm-link.html | 4 +- deps/npm/docs/output/commands/npm-ll.html | 4 +- deps/npm/docs/output/commands/npm-login.html | 4 +- deps/npm/docs/output/commands/npm-logout.html | 4 +- deps/npm/docs/output/commands/npm-ls.html | 6 +- deps/npm/docs/output/commands/npm-org.html | 4 +- .../docs/output/commands/npm-outdated.html | 4 +- deps/npm/docs/output/commands/npm-owner.html | 4 +- deps/npm/docs/output/commands/npm-pack.html | 4 +- deps/npm/docs/output/commands/npm-ping.html | 4 +- deps/npm/docs/output/commands/npm-pkg.html | 4 +- deps/npm/docs/output/commands/npm-prefix.html | 4 +- .../npm/docs/output/commands/npm-profile.html | 4 +- deps/npm/docs/output/commands/npm-prune.html | 4 +- .../npm/docs/output/commands/npm-publish.html | 4 +- deps/npm/docs/output/commands/npm-query.html | 4 +- .../npm/docs/output/commands/npm-rebuild.html | 8 +- deps/npm/docs/output/commands/npm-repo.html | 4 +- .../npm/docs/output/commands/npm-restart.html | 4 +- deps/npm/docs/output/commands/npm-root.html | 4 +- deps/npm/docs/output/commands/npm-run.html | 4 +- deps/npm/docs/output/commands/npm-sbom.html | 4 +- deps/npm/docs/output/commands/npm-search.html | 4 +- deps/npm/docs/output/commands/npm-set.html | 4 +- .../docs/output/commands/npm-shrinkwrap.html | 4 +- deps/npm/docs/output/commands/npm-stage.html | 4 +- deps/npm/docs/output/commands/npm-star.html | 4 +- deps/npm/docs/output/commands/npm-stars.html | 4 +- deps/npm/docs/output/commands/npm-start.html | 4 +- deps/npm/docs/output/commands/npm-stop.html | 4 +- deps/npm/docs/output/commands/npm-team.html | 4 +- deps/npm/docs/output/commands/npm-test.html | 4 +- deps/npm/docs/output/commands/npm-token.html | 4 +- deps/npm/docs/output/commands/npm-trust.html | 4 +- .../docs/output/commands/npm-undeprecate.html | 4 +- .../docs/output/commands/npm-uninstall.html | 4 +- .../docs/output/commands/npm-unpublish.html | 4 +- deps/npm/docs/output/commands/npm-unstar.html | 4 +- deps/npm/docs/output/commands/npm-update.html | 8 +- .../npm/docs/output/commands/npm-version.html | 4 +- deps/npm/docs/output/commands/npm-view.html | 4 +- deps/npm/docs/output/commands/npm-whoami.html | 4 +- deps/npm/docs/output/commands/npm.html | 6 +- deps/npm/docs/output/commands/npx.html | 4 +- .../docs/output/configuring-npm/folders.html | 4 +- .../docs/output/configuring-npm/install.html | 4 +- .../output/configuring-npm/npm-global.html | 4 +- .../docs/output/configuring-npm/npm-json.html | 4 +- .../configuring-npm/npm-shrinkwrap-json.html | 4 +- .../docs/output/configuring-npm/npmrc.html | 4 +- .../output/configuring-npm/package-json.html | 4 +- .../configuring-npm/package-lock-json.html | 4 +- deps/npm/docs/output/using-npm/config.html | 8 +- .../using-npm/dependency-selectors.html | 4 +- .../npm/docs/output/using-npm/developers.html | 4 +- deps/npm/docs/output/using-npm/logging.html | 4 +- deps/npm/docs/output/using-npm/orgs.html | 4 +- .../docs/output/using-npm/package-spec.html | 4 +- deps/npm/docs/output/using-npm/registry.html | 4 +- deps/npm/docs/output/using-npm/removal.html | 4 +- deps/npm/docs/output/using-npm/scope.html | 4 +- deps/npm/docs/output/using-npm/scripts.html | 4 +- .../npm/docs/output/using-npm/workspaces.html | 4 +- deps/npm/lib/utils/check-allow-scripts.js | 9 +- deps/npm/lib/utils/is-windows.js | 6 +- deps/npm/lib/utils/reify-finish.js | 2 +- .../utils/strict-allow-scripts-preflight.js | 7 +- deps/npm/man/man1/npm-access.1 | 2 +- deps/npm/man/man1/npm-adduser.1 | 2 +- deps/npm/man/man1/npm-approve-scripts.1 | 2 +- deps/npm/man/man1/npm-audit.1 | 2 +- deps/npm/man/man1/npm-bugs.1 | 2 +- deps/npm/man/man1/npm-cache.1 | 2 +- deps/npm/man/man1/npm-ci.1 | 4 +- deps/npm/man/man1/npm-completion.1 | 2 +- deps/npm/man/man1/npm-config.1 | 2 +- deps/npm/man/man1/npm-dedupe.1 | 2 +- deps/npm/man/man1/npm-deny-scripts.1 | 2 +- deps/npm/man/man1/npm-deprecate.1 | 2 +- deps/npm/man/man1/npm-diff.1 | 2 +- deps/npm/man/man1/npm-dist-tag.1 | 2 +- deps/npm/man/man1/npm-docs.1 | 2 +- deps/npm/man/man1/npm-doctor.1 | 2 +- deps/npm/man/man1/npm-edit.1 | 2 +- deps/npm/man/man1/npm-exec.1 | 4 +- deps/npm/man/man1/npm-explain.1 | 2 +- deps/npm/man/man1/npm-explore.1 | 2 +- deps/npm/man/man1/npm-find-dupes.1 | 2 +- deps/npm/man/man1/npm-fund.1 | 2 +- deps/npm/man/man1/npm-get.1 | 2 +- deps/npm/man/man1/npm-help-search.1 | 2 +- deps/npm/man/man1/npm-help.1 | 2 +- deps/npm/man/man1/npm-init.1 | 2 +- deps/npm/man/man1/npm-install-ci-test.1 | 4 +- deps/npm/man/man1/npm-install-scripts.1 | 6 +- deps/npm/man/man1/npm-install-test.1 | 4 +- deps/npm/man/man1/npm-install.1 | 4 +- deps/npm/man/man1/npm-link.1 | 2 +- deps/npm/man/man1/npm-ll.1 | 2 +- deps/npm/man/man1/npm-login.1 | 2 +- deps/npm/man/man1/npm-logout.1 | 2 +- deps/npm/man/man1/npm-ls.1 | 4 +- deps/npm/man/man1/npm-org.1 | 2 +- deps/npm/man/man1/npm-outdated.1 | 2 +- deps/npm/man/man1/npm-owner.1 | 2 +- deps/npm/man/man1/npm-pack.1 | 2 +- deps/npm/man/man1/npm-ping.1 | 2 +- deps/npm/man/man1/npm-pkg.1 | 2 +- deps/npm/man/man1/npm-prefix.1 | 2 +- deps/npm/man/man1/npm-profile.1 | 2 +- deps/npm/man/man1/npm-prune.1 | 2 +- deps/npm/man/man1/npm-publish.1 | 2 +- deps/npm/man/man1/npm-query.1 | 2 +- deps/npm/man/man1/npm-rebuild.1 | 4 +- deps/npm/man/man1/npm-repo.1 | 2 +- deps/npm/man/man1/npm-restart.1 | 2 +- deps/npm/man/man1/npm-root.1 | 2 +- deps/npm/man/man1/npm-run.1 | 2 +- deps/npm/man/man1/npm-sbom.1 | 2 +- deps/npm/man/man1/npm-search.1 | 2 +- deps/npm/man/man1/npm-set.1 | 2 +- deps/npm/man/man1/npm-shrinkwrap.1 | 2 +- deps/npm/man/man1/npm-stage.1 | 2 +- deps/npm/man/man1/npm-star.1 | 2 +- deps/npm/man/man1/npm-stars.1 | 2 +- deps/npm/man/man1/npm-start.1 | 2 +- deps/npm/man/man1/npm-stop.1 | 2 +- deps/npm/man/man1/npm-team.1 | 2 +- deps/npm/man/man1/npm-test.1 | 2 +- deps/npm/man/man1/npm-token.1 | 2 +- deps/npm/man/man1/npm-trust.1 | 2 +- deps/npm/man/man1/npm-undeprecate.1 | 2 +- deps/npm/man/man1/npm-uninstall.1 | 2 +- deps/npm/man/man1/npm-unpublish.1 | 2 +- deps/npm/man/man1/npm-unstar.1 | 2 +- deps/npm/man/man1/npm-update.1 | 4 +- deps/npm/man/man1/npm-version.1 | 2 +- deps/npm/man/man1/npm-view.1 | 2 +- deps/npm/man/man1/npm-whoami.1 | 2 +- deps/npm/man/man1/npm.1 | 4 +- deps/npm/man/man1/npx.1 | 2 +- deps/npm/man/man5/folders.5 | 2 +- deps/npm/man/man5/install.5 | 2 +- deps/npm/man/man5/npm-global.5 | 2 +- deps/npm/man/man5/npm-json.5 | 2 +- deps/npm/man/man5/npm-shrinkwrap-json.5 | 2 +- deps/npm/man/man5/npmrc.5 | 2 +- deps/npm/man/man5/package-json.5 | 2 +- deps/npm/man/man5/package-lock-json.5 | 2 +- deps/npm/man/man7/config.7 | 4 +- deps/npm/man/man7/dependency-selectors.7 | 2 +- deps/npm/man/man7/developers.7 | 2 +- deps/npm/man/man7/logging.7 | 2 +- deps/npm/man/man7/orgs.7 | 2 +- deps/npm/man/man7/package-spec.7 | 2 +- deps/npm/man/man7/registry.7 | 2 +- deps/npm/man/man7/removal.7 | 2 +- deps/npm/man/man7/scope.7 | 2 +- deps/npm/man/man7/scripts.7 | 2 +- deps/npm/man/man7/workspaces.7 | 2 +- .../arborist/lib/arborist/isolated-reifier.js | 12 +- .../arborist/lib/case-insensitive-map.js | 5 +- .../node_modules/@npmcli/arborist/lib/edge.js | 10 +- .../node_modules/@npmcli/arborist/lib/node.js | 20 ++- .../arborist/lib/unreviewed-scripts.js | 5 + .../@npmcli/arborist/package.json | 2 +- .../config/lib/definitions/definitions.js | 5 + .../node_modules/@npmcli/config/package.json | 2 +- deps/npm/node_modules/libnpmdiff/package.json | 4 +- .../lib/strict-allow-scripts-preflight.js | 1 + deps/npm/node_modules/libnpmexec/package.json | 4 +- deps/npm/node_modules/libnpmfund/package.json | 4 +- deps/npm/node_modules/libnpmpack/package.json | 4 +- deps/npm/package.json | 14 +- .../tap-snapshots/test/lib/docs.js.test.cjs | 5 + deps/npm/test/bin/windows-shims.js | 12 +- .../npm/test/fixtures/allow-scripts-orphan.js | 32 +++++ deps/npm/test/lib/commands/ci.js | 65 +++++++++ deps/npm/test/lib/commands/install-scripts.js | 33 ++++- deps/npm/test/lib/commands/install.js | 129 ++++++++++++++++++ deps/npm/test/lib/commands/rebuild.js | 27 ++++ .../npm/test/lib/utils/check-allow-scripts.js | 23 ++++ deps/npm/test/lib/utils/is-windows.js | 65 +++++++++ deps/npm/test/lib/utils/reify-finish.js | 31 ++++- .../utils/strict-allow-scripts-preflight.js | 110 ++++++++++++++- 226 files changed, 992 insertions(+), 334 deletions(-) create mode 100644 deps/npm/test/fixtures/allow-scripts-orphan.js create mode 100644 deps/npm/test/lib/utils/is-windows.js diff --git a/deps/npm/docs/content/commands/npm-ci.md b/deps/npm/docs/content/commands/npm-ci.md index 8cf6a42690b..6251a2204cc 100644 --- a/deps/npm/docs/content/commands/npm-ci.md +++ b/deps/npm/docs/content/commands/npm-ci.md @@ -310,6 +310,11 @@ Optional dependencies that cannot be installed on the current platform or engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because their install scripts never run. +Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. `npm rebuild` and `npm install-scripts ls` still check unused +packages on disk. + #### `dangerously-allow-all-scripts` diff --git a/deps/npm/docs/content/commands/npm-exec.md b/deps/npm/docs/content/commands/npm-exec.md index 87be6dbfd67..bb350961a61 100644 --- a/deps/npm/docs/content/commands/npm-exec.md +++ b/deps/npm/docs/content/commands/npm-exec.md @@ -198,6 +198,11 @@ Optional dependencies that cannot be installed on the current platform or engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because their install scripts never run. +Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. `npm rebuild` and `npm install-scripts ls` still check unused +packages on disk. + #### `dangerously-allow-all-scripts` diff --git a/deps/npm/docs/content/commands/npm-install-ci-test.md b/deps/npm/docs/content/commands/npm-install-ci-test.md index 66774863573..2bfcaaac2d8 100644 --- a/deps/npm/docs/content/commands/npm-install-ci-test.md +++ b/deps/npm/docs/content/commands/npm-install-ci-test.md @@ -263,6 +263,11 @@ Optional dependencies that cannot be installed on the current platform or engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because their install scripts never run. +Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. `npm rebuild` and `npm install-scripts ls` still check unused +packages on disk. + #### `dangerously-allow-all-scripts` diff --git a/deps/npm/docs/content/commands/npm-install-scripts.md b/deps/npm/docs/content/commands/npm-install-scripts.md index 4182392c9a3..1dbfa4ecc4d 100644 --- a/deps/npm/docs/content/commands/npm-install-scripts.md +++ b/deps/npm/docs/content/commands/npm-install-scripts.md @@ -28,6 +28,9 @@ Dependency install scripts are blocked by default. Install commands silently skip lifecycle scripts for any dependency that does not have a matching entry in `allowScripts`, and end with a list of the packages whose scripts were skipped so you can review them here. +These warnings omit disconnected unused entries that installation cannot +build. Local link targets that can still be rebuilt remain subject to the +policy. This command only works inside a project that has a `package.json`. Running it with `--global` (`-g`) fails with an `EGLOBAL` error, since global @@ -62,6 +65,9 @@ unreviewed install scripts. `ls` is read-only: it lists every package whose install scripts are not yet covered by `allowScripts`, without modifying `package.json`. +This includes unreviewed extraneous packages, which are installed but not +required by any dependency. These packages can still cause +`npm rebuild --strict-allow-scripts` to fail. `prune` removes `allowScripts` entries that no longer match an installed package with an install script, either because the package is no longer diff --git a/deps/npm/docs/content/commands/npm-install-test.md b/deps/npm/docs/content/commands/npm-install-test.md index 4311f80279d..d538bfa09d1 100644 --- a/deps/npm/docs/content/commands/npm-install-test.md +++ b/deps/npm/docs/content/commands/npm-install-test.md @@ -340,6 +340,11 @@ Optional dependencies that cannot be installed on the current platform or engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because their install scripts never run. +Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. `npm rebuild` and `npm install-scripts ls` still check unused +packages on disk. + #### `dangerously-allow-all-scripts` diff --git a/deps/npm/docs/content/commands/npm-install.md b/deps/npm/docs/content/commands/npm-install.md index efc07bc7598..d08da1353d2 100644 --- a/deps/npm/docs/content/commands/npm-install.md +++ b/deps/npm/docs/content/commands/npm-install.md @@ -682,6 +682,11 @@ Optional dependencies that cannot be installed on the current platform or engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because their install scripts never run. +Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. `npm rebuild` and `npm install-scripts ls` still check unused +packages on disk. + #### `dangerously-allow-all-scripts` diff --git a/deps/npm/docs/content/commands/npm-ls.md b/deps/npm/docs/content/commands/npm-ls.md index 3e01552722c..e352f37d8d5 100644 --- a/deps/npm/docs/content/commands/npm-ls.md +++ b/deps/npm/docs/content/commands/npm-ls.md @@ -23,7 +23,7 @@ Note that nested packages will *also* show the paths to the specified packages. For example, running `npm ls promzard` in npm's source tree will show: ```bash -npm@11.21.2 /path/to/npm +npm@11.21.3 /path/to/npm └─┬ init-package-json@0.0.4 └── promzard@0.1.5 ``` diff --git a/deps/npm/docs/content/commands/npm-rebuild.md b/deps/npm/docs/content/commands/npm-rebuild.md index 6b3095ff9d1..771b61414be 100644 --- a/deps/npm/docs/content/commands/npm-rebuild.md +++ b/deps/npm/docs/content/commands/npm-rebuild.md @@ -140,6 +140,11 @@ Optional dependencies that cannot be installed on the current platform or engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because their install scripts never run. +Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. `npm rebuild` and `npm install-scripts ls` still check unused +packages on disk. + #### `dangerously-allow-all-scripts` diff --git a/deps/npm/docs/content/commands/npm-update.md b/deps/npm/docs/content/commands/npm-update.md index 6da8ef5ac0e..6eb7b3b12d7 100644 --- a/deps/npm/docs/content/commands/npm-update.md +++ b/deps/npm/docs/content/commands/npm-update.md @@ -350,6 +350,11 @@ Optional dependencies that cannot be installed on the current platform or engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because their install scripts never run. +Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. `npm rebuild` and `npm install-scripts ls` still check unused +packages on disk. + #### `dangerously-allow-all-scripts` diff --git a/deps/npm/docs/content/commands/npm.md b/deps/npm/docs/content/commands/npm.md index 0206d6aa087..58464a66d39 100644 --- a/deps/npm/docs/content/commands/npm.md +++ b/deps/npm/docs/content/commands/npm.md @@ -14,7 +14,7 @@ Note: This command is unaware of workspaces. ### Version -11.21.2 +11.21.3 ### Description diff --git a/deps/npm/docs/content/using-npm/config.md b/deps/npm/docs/content/using-npm/config.md index 71743e7fea3..b7c8e78610d 100644 --- a/deps/npm/docs/content/using-npm/config.md +++ b/deps/npm/docs/content/using-npm/config.md @@ -1915,6 +1915,11 @@ Optional dependencies that cannot be installed on the current platform or engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because their install scripts never run. +Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. `npm rebuild` and `npm install-scripts ls` still check unused +packages on disk. + #### `strict-peer-deps` diff --git a/deps/npm/docs/output/commands/npm-access.html b/deps/npm/docs/output/commands/npm-access.html index 3feec9298ef..ce22d943ee9 100644 --- a/deps/npm/docs/output/commands/npm-access.html +++ b/deps/npm/docs/output/commands/npm-access.html @@ -186,9 +186,9 @@
-

+

npm-access - @11.21.2 + @11.21.3

Set access level on published packages
diff --git a/deps/npm/docs/output/commands/npm-adduser.html b/deps/npm/docs/output/commands/npm-adduser.html index af06b3609bc..17f9ff260c1 100644 --- a/deps/npm/docs/output/commands/npm-adduser.html +++ b/deps/npm/docs/output/commands/npm-adduser.html @@ -186,9 +186,9 @@
-

+

npm-adduser - @11.21.2 + @11.21.3

Add a registry user account
diff --git a/deps/npm/docs/output/commands/npm-approve-scripts.html b/deps/npm/docs/output/commands/npm-approve-scripts.html index 9324166c7b9..8c291ae02fb 100644 --- a/deps/npm/docs/output/commands/npm-approve-scripts.html +++ b/deps/npm/docs/output/commands/npm-approve-scripts.html @@ -186,9 +186,9 @@
-

+

npm-approve-scripts - @11.21.2 + @11.21.3

Approve install scripts for specific dependencies
diff --git a/deps/npm/docs/output/commands/npm-audit.html b/deps/npm/docs/output/commands/npm-audit.html index fec2c0eeec4..0cc8e97b83e 100644 --- a/deps/npm/docs/output/commands/npm-audit.html +++ b/deps/npm/docs/output/commands/npm-audit.html @@ -186,9 +186,9 @@
-

+

npm-audit - @11.21.2 + @11.21.3

Run a security audit
diff --git a/deps/npm/docs/output/commands/npm-bugs.html b/deps/npm/docs/output/commands/npm-bugs.html index 6bc1b9c4f26..aaed8e8edfb 100644 --- a/deps/npm/docs/output/commands/npm-bugs.html +++ b/deps/npm/docs/output/commands/npm-bugs.html @@ -186,9 +186,9 @@
-

+

npm-bugs - @11.21.2 + @11.21.3

Report bugs for a package in a web browser
diff --git a/deps/npm/docs/output/commands/npm-cache.html b/deps/npm/docs/output/commands/npm-cache.html index 831035e343f..2b7b784a621 100644 --- a/deps/npm/docs/output/commands/npm-cache.html +++ b/deps/npm/docs/output/commands/npm-cache.html @@ -186,9 +186,9 @@
-

+

npm-cache - @11.21.2 + @11.21.3

Manipulates packages cache
diff --git a/deps/npm/docs/output/commands/npm-ci.html b/deps/npm/docs/output/commands/npm-ci.html index 2f2900c3eae..913544f13c4 100644 --- a/deps/npm/docs/output/commands/npm-ci.html +++ b/deps/npm/docs/output/commands/npm-ci.html @@ -186,9 +186,9 @@
-

+

npm-ci - @11.21.2 + @11.21.3

Clean install a project
@@ -430,6 +430,10 @@

strict-allow-scripts

Optional dependencies that cannot be installed on the current platform or engine (a non-matching os, cpu, or libc) are not flagged, because their install scripts never run.

+

Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. npm rebuild and npm install-scripts ls still check unused +packages on disk.

dangerously-allow-all-scripts

  • Default: false
  • diff --git a/deps/npm/docs/output/commands/npm-completion.html b/deps/npm/docs/output/commands/npm-completion.html index a89ad0fa110..53ee1c723a0 100644 --- a/deps/npm/docs/output/commands/npm-completion.html +++ b/deps/npm/docs/output/commands/npm-completion.html @@ -186,9 +186,9 @@
    -

    +

    npm-completion - @11.21.2 + @11.21.3

    Tab Completion for npm
    diff --git a/deps/npm/docs/output/commands/npm-config.html b/deps/npm/docs/output/commands/npm-config.html index c08848fb8e1..683f555ca12 100644 --- a/deps/npm/docs/output/commands/npm-config.html +++ b/deps/npm/docs/output/commands/npm-config.html @@ -186,9 +186,9 @@
    -

    +

    npm-config - @11.21.2 + @11.21.3

    Manage the npm configuration files
    diff --git a/deps/npm/docs/output/commands/npm-dedupe.html b/deps/npm/docs/output/commands/npm-dedupe.html index 6f33135ca9a..06be1de4b4f 100644 --- a/deps/npm/docs/output/commands/npm-dedupe.html +++ b/deps/npm/docs/output/commands/npm-dedupe.html @@ -186,9 +186,9 @@
    -

    +

    npm-dedupe - @11.21.2 + @11.21.3

    Reduce duplication in the package tree
    diff --git a/deps/npm/docs/output/commands/npm-deny-scripts.html b/deps/npm/docs/output/commands/npm-deny-scripts.html index f844e396844..597547b8267 100644 --- a/deps/npm/docs/output/commands/npm-deny-scripts.html +++ b/deps/npm/docs/output/commands/npm-deny-scripts.html @@ -186,9 +186,9 @@
    -

    +

    npm-deny-scripts - @11.21.2 + @11.21.3

    Deny install scripts for specific dependencies
    diff --git a/deps/npm/docs/output/commands/npm-deprecate.html b/deps/npm/docs/output/commands/npm-deprecate.html index 9bc0fc612a5..071aa398c2b 100644 --- a/deps/npm/docs/output/commands/npm-deprecate.html +++ b/deps/npm/docs/output/commands/npm-deprecate.html @@ -186,9 +186,9 @@
    -

    +

    npm-deprecate - @11.21.2 + @11.21.3

    Deprecate a version of a package
    diff --git a/deps/npm/docs/output/commands/npm-diff.html b/deps/npm/docs/output/commands/npm-diff.html index 4b41ca886c2..f7882878ec1 100644 --- a/deps/npm/docs/output/commands/npm-diff.html +++ b/deps/npm/docs/output/commands/npm-diff.html @@ -186,9 +186,9 @@
    -

    +

    npm-diff - @11.21.2 + @11.21.3

    The registry diff command
    diff --git a/deps/npm/docs/output/commands/npm-dist-tag.html b/deps/npm/docs/output/commands/npm-dist-tag.html index 032b78e75f4..a576999ec12 100644 --- a/deps/npm/docs/output/commands/npm-dist-tag.html +++ b/deps/npm/docs/output/commands/npm-dist-tag.html @@ -186,9 +186,9 @@
    -

    +

    npm-dist-tag - @11.21.2 + @11.21.3

    Modify package distribution tags
    diff --git a/deps/npm/docs/output/commands/npm-docs.html b/deps/npm/docs/output/commands/npm-docs.html index e39ea14464d..8b840f95d1c 100644 --- a/deps/npm/docs/output/commands/npm-docs.html +++ b/deps/npm/docs/output/commands/npm-docs.html @@ -186,9 +186,9 @@
    -

    +

    npm-docs - @11.21.2 + @11.21.3

    Open documentation for a package in a web browser
    diff --git a/deps/npm/docs/output/commands/npm-doctor.html b/deps/npm/docs/output/commands/npm-doctor.html index 30492a8f038..0a6fe81bffa 100644 --- a/deps/npm/docs/output/commands/npm-doctor.html +++ b/deps/npm/docs/output/commands/npm-doctor.html @@ -186,9 +186,9 @@
    -

    +

    npm-doctor - @11.21.2 + @11.21.3

    Check the health of your npm environment
    diff --git a/deps/npm/docs/output/commands/npm-edit.html b/deps/npm/docs/output/commands/npm-edit.html index aed37190cef..a7d1aded7bf 100644 --- a/deps/npm/docs/output/commands/npm-edit.html +++ b/deps/npm/docs/output/commands/npm-edit.html @@ -186,9 +186,9 @@
    -

    +

    npm-edit - @11.21.2 + @11.21.3

    Edit an installed package
    diff --git a/deps/npm/docs/output/commands/npm-exec.html b/deps/npm/docs/output/commands/npm-exec.html index 0dd426d8d27..d96eec84adc 100644 --- a/deps/npm/docs/output/commands/npm-exec.html +++ b/deps/npm/docs/output/commands/npm-exec.html @@ -186,9 +186,9 @@
    -

    +

    npm-exec - @11.21.2 + @11.21.3

    Run a command from a local or remote npm package
    @@ -340,6 +340,10 @@

    strict-allow-scripts

    Optional dependencies that cannot be installed on the current platform or engine (a non-matching os, cpu, or libc) are not flagged, because their install scripts never run.

    +

    Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. npm rebuild and npm install-scripts ls still check unused +packages on disk.

    dangerously-allow-all-scripts

    • Default: false
    • diff --git a/deps/npm/docs/output/commands/npm-explain.html b/deps/npm/docs/output/commands/npm-explain.html index fe176731c99..dc2bfa56706 100644 --- a/deps/npm/docs/output/commands/npm-explain.html +++ b/deps/npm/docs/output/commands/npm-explain.html @@ -186,9 +186,9 @@
      -

      +

      npm-explain - @11.21.2 + @11.21.3

      Explain installed packages
      diff --git a/deps/npm/docs/output/commands/npm-explore.html b/deps/npm/docs/output/commands/npm-explore.html index 1e4ff4af713..a228fe09cfe 100644 --- a/deps/npm/docs/output/commands/npm-explore.html +++ b/deps/npm/docs/output/commands/npm-explore.html @@ -186,9 +186,9 @@
      -

      +

      npm-explore - @11.21.2 + @11.21.3

      Browse an installed package
      diff --git a/deps/npm/docs/output/commands/npm-find-dupes.html b/deps/npm/docs/output/commands/npm-find-dupes.html index fd42595f230..42e8bf0fc3b 100644 --- a/deps/npm/docs/output/commands/npm-find-dupes.html +++ b/deps/npm/docs/output/commands/npm-find-dupes.html @@ -186,9 +186,9 @@
      -

      +

      npm-find-dupes - @11.21.2 + @11.21.3

      Find duplication in the package tree
      diff --git a/deps/npm/docs/output/commands/npm-fund.html b/deps/npm/docs/output/commands/npm-fund.html index 180479da8c0..c2646c93700 100644 --- a/deps/npm/docs/output/commands/npm-fund.html +++ b/deps/npm/docs/output/commands/npm-fund.html @@ -186,9 +186,9 @@
      -

      +

      npm-fund - @11.21.2 + @11.21.3

      Retrieve funding information
      diff --git a/deps/npm/docs/output/commands/npm-get.html b/deps/npm/docs/output/commands/npm-get.html index 03cd64c2413..ef1b9e3fd7a 100644 --- a/deps/npm/docs/output/commands/npm-get.html +++ b/deps/npm/docs/output/commands/npm-get.html @@ -186,9 +186,9 @@
      -

      +

      npm-get - @11.21.2 + @11.21.3

      Get a value from the npm configuration
      diff --git a/deps/npm/docs/output/commands/npm-help-search.html b/deps/npm/docs/output/commands/npm-help-search.html index 51925baf1aa..d18396addd4 100644 --- a/deps/npm/docs/output/commands/npm-help-search.html +++ b/deps/npm/docs/output/commands/npm-help-search.html @@ -186,9 +186,9 @@
      -

      +

      npm-help-search - @11.21.2 + @11.21.3

      Search npm help documentation
      diff --git a/deps/npm/docs/output/commands/npm-help.html b/deps/npm/docs/output/commands/npm-help.html index 69383c4ea7a..81f20a0de1e 100644 --- a/deps/npm/docs/output/commands/npm-help.html +++ b/deps/npm/docs/output/commands/npm-help.html @@ -186,9 +186,9 @@
      -

      +

      npm-help - @11.21.2 + @11.21.3

      Get help on npm
      diff --git a/deps/npm/docs/output/commands/npm-init.html b/deps/npm/docs/output/commands/npm-init.html index 6b9f1fb1f30..89c491b9343 100644 --- a/deps/npm/docs/output/commands/npm-init.html +++ b/deps/npm/docs/output/commands/npm-init.html @@ -186,9 +186,9 @@
      -

      +

      npm-init - @11.21.2 + @11.21.3

      Create a package.json file
      diff --git a/deps/npm/docs/output/commands/npm-install-ci-test.html b/deps/npm/docs/output/commands/npm-install-ci-test.html index 506ef87743d..72891927a26 100644 --- a/deps/npm/docs/output/commands/npm-install-ci-test.html +++ b/deps/npm/docs/output/commands/npm-install-ci-test.html @@ -186,9 +186,9 @@
      -

      +

      npm-install-ci-test - @11.21.2 + @11.21.3

      Install a project with a clean slate and run tests
      @@ -394,6 +394,10 @@

      strict-allow-scripts

      Optional dependencies that cannot be installed on the current platform or engine (a non-matching os, cpu, or libc) are not flagged, because their install scripts never run.

      +

      Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. npm rebuild and npm install-scripts ls still check unused +packages on disk.

      dangerously-allow-all-scripts

      • Default: false
      • diff --git a/deps/npm/docs/output/commands/npm-install-scripts.html b/deps/npm/docs/output/commands/npm-install-scripts.html index 494a80c7806..8d58a23d3d6 100644 --- a/deps/npm/docs/output/commands/npm-install-scripts.html +++ b/deps/npm/docs/output/commands/npm-install-scripts.html @@ -186,9 +186,9 @@
        -

        +

        npm-install-scripts - @11.21.2 + @11.21.3

        Manage install-script approvals for dependencies
        @@ -215,7 +215,10 @@

        Description

        Dependency install scripts are blocked by default. Install commands silently skip lifecycle scripts for any dependency that does not have a matching entry in allowScripts, and end with a list of the packages -whose scripts were skipped so you can review them here.

        +whose scripts were skipped so you can review them here. +These warnings omit disconnected unused entries that installation cannot +build. Local link targets that can still be rebuilt remain subject to the +policy.

        This command only works inside a project that has a package.json. Running it with --global (-g) fails with an EGLOBAL error, since global installs (npm install -g) and one-off executions (npm exec / npx) have @@ -242,7 +245,10 @@

        Description

        package from any future blanket approval. --all denies every package with unreviewed install scripts.

        ls is read-only: it lists every package whose install scripts are not yet -covered by allowScripts, without modifying package.json.

        +covered by allowScripts, without modifying package.json. +This includes unreviewed extraneous packages, which are installed but not +required by any dependency. These packages can still cause +npm rebuild --strict-allow-scripts to fail.

        prune removes allowScripts entries that no longer match an installed package with an install script, either because the package is no longer installed (a transitive dependency changed, or a pinned pkg@1.2.3 was diff --git a/deps/npm/docs/output/commands/npm-install-test.html b/deps/npm/docs/output/commands/npm-install-test.html index 9c567c396c9..3b0a0a370a8 100644 --- a/deps/npm/docs/output/commands/npm-install-test.html +++ b/deps/npm/docs/output/commands/npm-install-test.html @@ -186,9 +186,9 @@

        -

        +

        npm-install-test - @11.21.2 + @11.21.3

        Install package(s) and run tests
        @@ -450,6 +450,10 @@

        strict-allow-scripts

        Optional dependencies that cannot be installed on the current platform or engine (a non-matching os, cpu, or libc) are not flagged, because their install scripts never run.

        +

        Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. npm rebuild and npm install-scripts ls still check unused +packages on disk.

        dangerously-allow-all-scripts

        • Default: false
        • diff --git a/deps/npm/docs/output/commands/npm-install.html b/deps/npm/docs/output/commands/npm-install.html index 5954c822193..211f3f6ec69 100644 --- a/deps/npm/docs/output/commands/npm-install.html +++ b/deps/npm/docs/output/commands/npm-install.html @@ -186,9 +186,9 @@
          -

          +

          npm-install - @11.21.2 + @11.21.3

          Install a package
          @@ -725,6 +725,10 @@

          strict-allow-scripts

          Optional dependencies that cannot be installed on the current platform or engine (a non-matching os, cpu, or libc) are not flagged, because their install scripts never run.

          +

          Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. npm rebuild and npm install-scripts ls still check unused +packages on disk.

          dangerously-allow-all-scripts

          • Default: false
          • diff --git a/deps/npm/docs/output/commands/npm-link.html b/deps/npm/docs/output/commands/npm-link.html index 49656649d22..49d80e7985e 100644 --- a/deps/npm/docs/output/commands/npm-link.html +++ b/deps/npm/docs/output/commands/npm-link.html @@ -186,9 +186,9 @@
            -

            +

            npm-link - @11.21.2 + @11.21.3

            Symlink a package folder
            diff --git a/deps/npm/docs/output/commands/npm-ll.html b/deps/npm/docs/output/commands/npm-ll.html index e56f1fcf0f1..f7e026c0e5c 100644 --- a/deps/npm/docs/output/commands/npm-ll.html +++ b/deps/npm/docs/output/commands/npm-ll.html @@ -186,9 +186,9 @@
            -

            +

            npm-ll - @11.21.2 + @11.21.3

            List installed packages
            diff --git a/deps/npm/docs/output/commands/npm-login.html b/deps/npm/docs/output/commands/npm-login.html index efa0880e352..f15b26e222c 100644 --- a/deps/npm/docs/output/commands/npm-login.html +++ b/deps/npm/docs/output/commands/npm-login.html @@ -186,9 +186,9 @@
            -

            +

            npm-login - @11.21.2 + @11.21.3

            Login to a registry user account
            diff --git a/deps/npm/docs/output/commands/npm-logout.html b/deps/npm/docs/output/commands/npm-logout.html index 1d365feb30a..1b5f8f41a3c 100644 --- a/deps/npm/docs/output/commands/npm-logout.html +++ b/deps/npm/docs/output/commands/npm-logout.html @@ -186,9 +186,9 @@
            -

            +

            npm-logout - @11.21.2 + @11.21.3

            Log out of the registry
            diff --git a/deps/npm/docs/output/commands/npm-ls.html b/deps/npm/docs/output/commands/npm-ls.html index b78078a3366..02e77a07e1c 100644 --- a/deps/npm/docs/output/commands/npm-ls.html +++ b/deps/npm/docs/output/commands/npm-ls.html @@ -186,9 +186,9 @@
            -

            +

            npm-ls - @11.21.2 + @11.21.3

            List installed packages
            @@ -209,7 +209,7 @@

            Description

            Positional arguments are name@version-range identifiers, which will limit the results to only the paths to the packages named. Note that nested packages will also show the paths to the specified packages. For example, running npm ls promzard in npm's source tree will show:

            -
            npm@11.21.2 /path/to/npm
            +
            npm@11.21.3 /path/to/npm
             └─┬ init-package-json@0.0.4
               └── promzard@0.1.5
             
            diff --git a/deps/npm/docs/output/commands/npm-org.html b/deps/npm/docs/output/commands/npm-org.html index ec6986644d9..6f3b7a4074a 100644 --- a/deps/npm/docs/output/commands/npm-org.html +++ b/deps/npm/docs/output/commands/npm-org.html @@ -186,9 +186,9 @@
            -

            +

            npm-org - @11.21.2 + @11.21.3

            Manage orgs
            diff --git a/deps/npm/docs/output/commands/npm-outdated.html b/deps/npm/docs/output/commands/npm-outdated.html index a8285b18ce3..970dd74e3ed 100644 --- a/deps/npm/docs/output/commands/npm-outdated.html +++ b/deps/npm/docs/output/commands/npm-outdated.html @@ -186,9 +186,9 @@
            -

            +

            npm-outdated - @11.21.2 + @11.21.3

            Check for outdated packages
            diff --git a/deps/npm/docs/output/commands/npm-owner.html b/deps/npm/docs/output/commands/npm-owner.html index 114fcd7ff58..58154397dbf 100644 --- a/deps/npm/docs/output/commands/npm-owner.html +++ b/deps/npm/docs/output/commands/npm-owner.html @@ -186,9 +186,9 @@
            -

            +

            npm-owner - @11.21.2 + @11.21.3

            Manage package owners
            diff --git a/deps/npm/docs/output/commands/npm-pack.html b/deps/npm/docs/output/commands/npm-pack.html index d5c2bc9ecc3..e654b5cb6d5 100644 --- a/deps/npm/docs/output/commands/npm-pack.html +++ b/deps/npm/docs/output/commands/npm-pack.html @@ -186,9 +186,9 @@
            -

            +

            npm-pack - @11.21.2 + @11.21.3

            Create a tarball from a package
            diff --git a/deps/npm/docs/output/commands/npm-ping.html b/deps/npm/docs/output/commands/npm-ping.html index 0ae2afe0521..430b2672058 100644 --- a/deps/npm/docs/output/commands/npm-ping.html +++ b/deps/npm/docs/output/commands/npm-ping.html @@ -186,9 +186,9 @@
            -

            +

            npm-ping - @11.21.2 + @11.21.3

            Ping npm registry
            diff --git a/deps/npm/docs/output/commands/npm-pkg.html b/deps/npm/docs/output/commands/npm-pkg.html index 5ad85163e90..9a0a1e0b38c 100644 --- a/deps/npm/docs/output/commands/npm-pkg.html +++ b/deps/npm/docs/output/commands/npm-pkg.html @@ -186,9 +186,9 @@
            -

            +

            npm-pkg - @11.21.2 + @11.21.3

            Manages your package.json
            diff --git a/deps/npm/docs/output/commands/npm-prefix.html b/deps/npm/docs/output/commands/npm-prefix.html index 60db61a48dc..829ebd483c9 100644 --- a/deps/npm/docs/output/commands/npm-prefix.html +++ b/deps/npm/docs/output/commands/npm-prefix.html @@ -186,9 +186,9 @@
            -

            +

            npm-prefix - @11.21.2 + @11.21.3

            Display prefix
            diff --git a/deps/npm/docs/output/commands/npm-profile.html b/deps/npm/docs/output/commands/npm-profile.html index 663552d02e7..1dc726acf61 100644 --- a/deps/npm/docs/output/commands/npm-profile.html +++ b/deps/npm/docs/output/commands/npm-profile.html @@ -186,9 +186,9 @@
            -

            +

            npm-profile - @11.21.2 + @11.21.3

            Change settings on your registry profile
            diff --git a/deps/npm/docs/output/commands/npm-prune.html b/deps/npm/docs/output/commands/npm-prune.html index f6a02b96841..bded491e654 100644 --- a/deps/npm/docs/output/commands/npm-prune.html +++ b/deps/npm/docs/output/commands/npm-prune.html @@ -186,9 +186,9 @@
            -

            +

            npm-prune - @11.21.2 + @11.21.3

            Remove extraneous packages
            diff --git a/deps/npm/docs/output/commands/npm-publish.html b/deps/npm/docs/output/commands/npm-publish.html index 8b6334352a9..088cff8ff4a 100644 --- a/deps/npm/docs/output/commands/npm-publish.html +++ b/deps/npm/docs/output/commands/npm-publish.html @@ -186,9 +186,9 @@
            -

            +

            npm-publish - @11.21.2 + @11.21.3

            Publish a package
            diff --git a/deps/npm/docs/output/commands/npm-query.html b/deps/npm/docs/output/commands/npm-query.html index c58709f7c5b..92d236d4444 100644 --- a/deps/npm/docs/output/commands/npm-query.html +++ b/deps/npm/docs/output/commands/npm-query.html @@ -186,9 +186,9 @@
            -

            +

            npm-query - @11.21.2 + @11.21.3

            Dependency selector query
            diff --git a/deps/npm/docs/output/commands/npm-rebuild.html b/deps/npm/docs/output/commands/npm-rebuild.html index 012f165685d..d22481d325f 100644 --- a/deps/npm/docs/output/commands/npm-rebuild.html +++ b/deps/npm/docs/output/commands/npm-rebuild.html @@ -186,9 +186,9 @@
            -

            +

            npm-rebuild - @11.21.2 + @11.21.3

            Rebuild a package
            @@ -302,6 +302,10 @@

            strict-allow-scripts

            Optional dependencies that cannot be installed on the current platform or engine (a non-matching os, cpu, or libc) are not flagged, because their install scripts never run.

            +

            Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. npm rebuild and npm install-scripts ls still check unused +packages on disk.

            dangerously-allow-all-scripts

            • Default: false
            • diff --git a/deps/npm/docs/output/commands/npm-repo.html b/deps/npm/docs/output/commands/npm-repo.html index eb9f27e5bb9..763e61cd92c 100644 --- a/deps/npm/docs/output/commands/npm-repo.html +++ b/deps/npm/docs/output/commands/npm-repo.html @@ -186,9 +186,9 @@
              -

              +

              npm-repo - @11.21.2 + @11.21.3

              Open package repository page in the browser
              diff --git a/deps/npm/docs/output/commands/npm-restart.html b/deps/npm/docs/output/commands/npm-restart.html index f64c839eef1..5765bdce841 100644 --- a/deps/npm/docs/output/commands/npm-restart.html +++ b/deps/npm/docs/output/commands/npm-restart.html @@ -186,9 +186,9 @@
              -

              +

              npm-restart - @11.21.2 + @11.21.3

              Restart a package
              diff --git a/deps/npm/docs/output/commands/npm-root.html b/deps/npm/docs/output/commands/npm-root.html index 1c72502851b..ff10c805c9a 100644 --- a/deps/npm/docs/output/commands/npm-root.html +++ b/deps/npm/docs/output/commands/npm-root.html @@ -186,9 +186,9 @@
              -

              +

              npm-root - @11.21.2 + @11.21.3

              Display npm root
              diff --git a/deps/npm/docs/output/commands/npm-run.html b/deps/npm/docs/output/commands/npm-run.html index f5fc445afc2..8a2708a2570 100644 --- a/deps/npm/docs/output/commands/npm-run.html +++ b/deps/npm/docs/output/commands/npm-run.html @@ -186,9 +186,9 @@
              -

              +

              npm-run - @11.21.2 + @11.21.3

              Run arbitrary package scripts
              diff --git a/deps/npm/docs/output/commands/npm-sbom.html b/deps/npm/docs/output/commands/npm-sbom.html index 16117732078..787ea92d51d 100644 --- a/deps/npm/docs/output/commands/npm-sbom.html +++ b/deps/npm/docs/output/commands/npm-sbom.html @@ -186,9 +186,9 @@
              -

              +

              npm-sbom - @11.21.2 + @11.21.3

              Generate a Software Bill of Materials (SBOM)
              diff --git a/deps/npm/docs/output/commands/npm-search.html b/deps/npm/docs/output/commands/npm-search.html index b81f53e7706..e69a1bb1825 100644 --- a/deps/npm/docs/output/commands/npm-search.html +++ b/deps/npm/docs/output/commands/npm-search.html @@ -186,9 +186,9 @@
              -

              +

              npm-search - @11.21.2 + @11.21.3

              Search for packages
              diff --git a/deps/npm/docs/output/commands/npm-set.html b/deps/npm/docs/output/commands/npm-set.html index 51dbbbeed71..df1211e6bfc 100644 --- a/deps/npm/docs/output/commands/npm-set.html +++ b/deps/npm/docs/output/commands/npm-set.html @@ -186,9 +186,9 @@
              -

              +

              npm-set - @11.21.2 + @11.21.3

              Set a value in the npm configuration
              diff --git a/deps/npm/docs/output/commands/npm-shrinkwrap.html b/deps/npm/docs/output/commands/npm-shrinkwrap.html index 41c7ef2bbf2..68f8a97d0b5 100644 --- a/deps/npm/docs/output/commands/npm-shrinkwrap.html +++ b/deps/npm/docs/output/commands/npm-shrinkwrap.html @@ -186,9 +186,9 @@
              -

              +

              npm-shrinkwrap - @11.21.2 + @11.21.3

              Lock down dependency versions for publication
              diff --git a/deps/npm/docs/output/commands/npm-stage.html b/deps/npm/docs/output/commands/npm-stage.html index 6cf400f9621..f9e945b626c 100644 --- a/deps/npm/docs/output/commands/npm-stage.html +++ b/deps/npm/docs/output/commands/npm-stage.html @@ -186,9 +186,9 @@
              -

              +

              npm-stage - @11.21.2 + @11.21.3

              Stage packages for publishing
              diff --git a/deps/npm/docs/output/commands/npm-star.html b/deps/npm/docs/output/commands/npm-star.html index de2c5e677c2..765af7de992 100644 --- a/deps/npm/docs/output/commands/npm-star.html +++ b/deps/npm/docs/output/commands/npm-star.html @@ -186,9 +186,9 @@
              -

              +

              npm-star - @11.21.2 + @11.21.3

              Mark your favorite packages
              diff --git a/deps/npm/docs/output/commands/npm-stars.html b/deps/npm/docs/output/commands/npm-stars.html index 39cad8e82e7..4785be2711d 100644 --- a/deps/npm/docs/output/commands/npm-stars.html +++ b/deps/npm/docs/output/commands/npm-stars.html @@ -186,9 +186,9 @@
              -

              +

              npm-stars - @11.21.2 + @11.21.3

              View packages marked as favorites
              diff --git a/deps/npm/docs/output/commands/npm-start.html b/deps/npm/docs/output/commands/npm-start.html index 08a76f247d8..64a04d6d74a 100644 --- a/deps/npm/docs/output/commands/npm-start.html +++ b/deps/npm/docs/output/commands/npm-start.html @@ -186,9 +186,9 @@
              -

              +

              npm-start - @11.21.2 + @11.21.3

              Start a package
              diff --git a/deps/npm/docs/output/commands/npm-stop.html b/deps/npm/docs/output/commands/npm-stop.html index ec42d3fe2d1..6a3744eb3b4 100644 --- a/deps/npm/docs/output/commands/npm-stop.html +++ b/deps/npm/docs/output/commands/npm-stop.html @@ -186,9 +186,9 @@
              -

              +

              npm-stop - @11.21.2 + @11.21.3

              Stop a package
              diff --git a/deps/npm/docs/output/commands/npm-team.html b/deps/npm/docs/output/commands/npm-team.html index 61767122694..7835bfbd2ba 100644 --- a/deps/npm/docs/output/commands/npm-team.html +++ b/deps/npm/docs/output/commands/npm-team.html @@ -186,9 +186,9 @@
              -

              +

              npm-team - @11.21.2 + @11.21.3

              Manage organization teams and team memberships
              diff --git a/deps/npm/docs/output/commands/npm-test.html b/deps/npm/docs/output/commands/npm-test.html index 137f2279d0a..abce2776f2b 100644 --- a/deps/npm/docs/output/commands/npm-test.html +++ b/deps/npm/docs/output/commands/npm-test.html @@ -186,9 +186,9 @@
              -

              +

              npm-test - @11.21.2 + @11.21.3

              Test a package
              diff --git a/deps/npm/docs/output/commands/npm-token.html b/deps/npm/docs/output/commands/npm-token.html index b499c363b12..4705c449395 100644 --- a/deps/npm/docs/output/commands/npm-token.html +++ b/deps/npm/docs/output/commands/npm-token.html @@ -186,9 +186,9 @@
              -

              +

              npm-token - @11.21.2 + @11.21.3

              Manage your authentication tokens
              diff --git a/deps/npm/docs/output/commands/npm-trust.html b/deps/npm/docs/output/commands/npm-trust.html index c86b8052fc9..0c0de1c5aaa 100644 --- a/deps/npm/docs/output/commands/npm-trust.html +++ b/deps/npm/docs/output/commands/npm-trust.html @@ -186,9 +186,9 @@
              -

              +

              npm-trust - @11.21.2 + @11.21.3

              Manage trusted publishing relationships between packages and CI/CD providers
              diff --git a/deps/npm/docs/output/commands/npm-undeprecate.html b/deps/npm/docs/output/commands/npm-undeprecate.html index 7d5033e57bb..3261538cd63 100644 --- a/deps/npm/docs/output/commands/npm-undeprecate.html +++ b/deps/npm/docs/output/commands/npm-undeprecate.html @@ -186,9 +186,9 @@
              -

              +

              npm-undeprecate - @11.21.2 + @11.21.3

              Undeprecate a version of a package
              diff --git a/deps/npm/docs/output/commands/npm-uninstall.html b/deps/npm/docs/output/commands/npm-uninstall.html index c01ed879ceb..d15bcedb8f4 100644 --- a/deps/npm/docs/output/commands/npm-uninstall.html +++ b/deps/npm/docs/output/commands/npm-uninstall.html @@ -186,9 +186,9 @@
              -

              +

              npm-uninstall - @11.21.2 + @11.21.3

              Remove a package
              diff --git a/deps/npm/docs/output/commands/npm-unpublish.html b/deps/npm/docs/output/commands/npm-unpublish.html index 35143300873..10e7a2dc7cb 100644 --- a/deps/npm/docs/output/commands/npm-unpublish.html +++ b/deps/npm/docs/output/commands/npm-unpublish.html @@ -186,9 +186,9 @@
              -

              +

              npm-unpublish - @11.21.2 + @11.21.3

              Remove a package from the registry
              diff --git a/deps/npm/docs/output/commands/npm-unstar.html b/deps/npm/docs/output/commands/npm-unstar.html index 7143910a99e..b157b9c86a0 100644 --- a/deps/npm/docs/output/commands/npm-unstar.html +++ b/deps/npm/docs/output/commands/npm-unstar.html @@ -186,9 +186,9 @@
              -

              +

              npm-unstar - @11.21.2 + @11.21.3

              Remove an item from your favorite packages
              diff --git a/deps/npm/docs/output/commands/npm-update.html b/deps/npm/docs/output/commands/npm-update.html index c0ed8d2107c..85e25f86dfa 100644 --- a/deps/npm/docs/output/commands/npm-update.html +++ b/deps/npm/docs/output/commands/npm-update.html @@ -186,9 +186,9 @@
              -

              +

              npm-update - @11.21.2 + @11.21.3

              Update packages
              @@ -446,6 +446,10 @@

              strict-allow-scripts

              Optional dependencies that cannot be installed on the current platform or engine (a non-matching os, cpu, or libc) are not flagged, because their install scripts never run.

              +

              Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. npm rebuild and npm install-scripts ls still check unused +packages on disk.

              dangerously-allow-all-scripts

              • Default: false
              • diff --git a/deps/npm/docs/output/commands/npm-version.html b/deps/npm/docs/output/commands/npm-version.html index 58cfc01644c..350a2f53189 100644 --- a/deps/npm/docs/output/commands/npm-version.html +++ b/deps/npm/docs/output/commands/npm-version.html @@ -186,9 +186,9 @@
                -

                +

                npm-version - @11.21.2 + @11.21.3

                Bump a package version
                diff --git a/deps/npm/docs/output/commands/npm-view.html b/deps/npm/docs/output/commands/npm-view.html index 510ffb92a0e..0fbc9d05e2b 100644 --- a/deps/npm/docs/output/commands/npm-view.html +++ b/deps/npm/docs/output/commands/npm-view.html @@ -186,9 +186,9 @@
                -

                +

                npm-view - @11.21.2 + @11.21.3

                View registry info
                diff --git a/deps/npm/docs/output/commands/npm-whoami.html b/deps/npm/docs/output/commands/npm-whoami.html index 102c605edce..63d00f931a6 100644 --- a/deps/npm/docs/output/commands/npm-whoami.html +++ b/deps/npm/docs/output/commands/npm-whoami.html @@ -186,9 +186,9 @@
                -

                +

                npm-whoami - @11.21.2 + @11.21.3

                Display npm username
                diff --git a/deps/npm/docs/output/commands/npm.html b/deps/npm/docs/output/commands/npm.html index 7f63a2be16d..f2211038663 100644 --- a/deps/npm/docs/output/commands/npm.html +++ b/deps/npm/docs/output/commands/npm.html @@ -186,9 +186,9 @@
                -

                +

                npm - @11.21.2 + @11.21.3

                javascript package manager
                @@ -203,7 +203,7 @@

                Table of contents

            Note: This command is unaware of workspaces.

            Version

            -

            11.21.2

            +

            11.21.3

            Description

            npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently.

            diff --git a/deps/npm/docs/output/commands/npx.html b/deps/npm/docs/output/commands/npx.html index b3b0e89ed19..1ab65e625c2 100644 --- a/deps/npm/docs/output/commands/npx.html +++ b/deps/npm/docs/output/commands/npx.html @@ -186,9 +186,9 @@
            -

            +

            npx - @11.21.2 + @11.21.3

            Run a command from a local or remote npm package
            diff --git a/deps/npm/docs/output/configuring-npm/folders.html b/deps/npm/docs/output/configuring-npm/folders.html index c5a561062e5..f9d792e05ed 100644 --- a/deps/npm/docs/output/configuring-npm/folders.html +++ b/deps/npm/docs/output/configuring-npm/folders.html @@ -186,9 +186,9 @@
            -

            +

            Folders - @11.21.2 + @11.21.3

            Folder structures used by npm
            diff --git a/deps/npm/docs/output/configuring-npm/install.html b/deps/npm/docs/output/configuring-npm/install.html index e3d7cf17d6a..23d3877ad07 100644 --- a/deps/npm/docs/output/configuring-npm/install.html +++ b/deps/npm/docs/output/configuring-npm/install.html @@ -186,9 +186,9 @@
            -

            +

            Install - @11.21.2 + @11.21.3

            Download and install node and npm
            diff --git a/deps/npm/docs/output/configuring-npm/npm-global.html b/deps/npm/docs/output/configuring-npm/npm-global.html index c5a561062e5..f9d792e05ed 100644 --- a/deps/npm/docs/output/configuring-npm/npm-global.html +++ b/deps/npm/docs/output/configuring-npm/npm-global.html @@ -186,9 +186,9 @@
            -

            +

            Folders - @11.21.2 + @11.21.3

            Folder structures used by npm
            diff --git a/deps/npm/docs/output/configuring-npm/npm-json.html b/deps/npm/docs/output/configuring-npm/npm-json.html index 517bbe8a44a..db298818a8b 100644 --- a/deps/npm/docs/output/configuring-npm/npm-json.html +++ b/deps/npm/docs/output/configuring-npm/npm-json.html @@ -186,9 +186,9 @@
            -

            +

            package.json - @11.21.2 + @11.21.3

            Specifics of npm's package.json handling
            diff --git a/deps/npm/docs/output/configuring-npm/npm-shrinkwrap-json.html b/deps/npm/docs/output/configuring-npm/npm-shrinkwrap-json.html index ba197a3ed14..8fc700dd563 100644 --- a/deps/npm/docs/output/configuring-npm/npm-shrinkwrap-json.html +++ b/deps/npm/docs/output/configuring-npm/npm-shrinkwrap-json.html @@ -186,9 +186,9 @@
            -

            +

            npm-shrinkwrap.json - @11.21.2 + @11.21.3

            A publishable lockfile
            diff --git a/deps/npm/docs/output/configuring-npm/npmrc.html b/deps/npm/docs/output/configuring-npm/npmrc.html index ac82e59af63..b9a6e43ba04 100644 --- a/deps/npm/docs/output/configuring-npm/npmrc.html +++ b/deps/npm/docs/output/configuring-npm/npmrc.html @@ -186,9 +186,9 @@
            -

            +

            .npmrc - @11.21.2 + @11.21.3

            The npm config files
            diff --git a/deps/npm/docs/output/configuring-npm/package-json.html b/deps/npm/docs/output/configuring-npm/package-json.html index 517bbe8a44a..db298818a8b 100644 --- a/deps/npm/docs/output/configuring-npm/package-json.html +++ b/deps/npm/docs/output/configuring-npm/package-json.html @@ -186,9 +186,9 @@
            -

            +

            package.json - @11.21.2 + @11.21.3

            Specifics of npm's package.json handling
            diff --git a/deps/npm/docs/output/configuring-npm/package-lock-json.html b/deps/npm/docs/output/configuring-npm/package-lock-json.html index 0cb259d286a..107b9bc9ec6 100644 --- a/deps/npm/docs/output/configuring-npm/package-lock-json.html +++ b/deps/npm/docs/output/configuring-npm/package-lock-json.html @@ -186,9 +186,9 @@
            -

            +

            package-lock.json - @11.21.2 + @11.21.3

            A manifestation of the manifest
            diff --git a/deps/npm/docs/output/using-npm/config.html b/deps/npm/docs/output/using-npm/config.html index 0d6ec849317..35a9eae02a1 100644 --- a/deps/npm/docs/output/using-npm/config.html +++ b/deps/npm/docs/output/using-npm/config.html @@ -186,9 +186,9 @@
            -

            +

            Config - @11.21.2 + @11.21.3

            About npm configuration
            @@ -1582,6 +1582,10 @@

            strict-allow-scripts

            Optional dependencies that cannot be installed on the current platform or engine (a non-matching os, cpu, or libc) are not flagged, because their install scripts never run.

            +

            Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. npm rebuild and npm install-scripts ls still check unused +packages on disk.

            strict-peer-deps

            • Default: false
            • diff --git a/deps/npm/docs/output/using-npm/dependency-selectors.html b/deps/npm/docs/output/using-npm/dependency-selectors.html index 94dbed94836..23b45295cd0 100644 --- a/deps/npm/docs/output/using-npm/dependency-selectors.html +++ b/deps/npm/docs/output/using-npm/dependency-selectors.html @@ -186,9 +186,9 @@
              -

              +

              Dependency Selectors - @11.21.2 + @11.21.3

              Dependency Selector Syntax & Querying
              diff --git a/deps/npm/docs/output/using-npm/developers.html b/deps/npm/docs/output/using-npm/developers.html index d9774e68bff..30197d0ef26 100644 --- a/deps/npm/docs/output/using-npm/developers.html +++ b/deps/npm/docs/output/using-npm/developers.html @@ -186,9 +186,9 @@
              -

              +

              Developers - @11.21.2 + @11.21.3

              Developer guide
              diff --git a/deps/npm/docs/output/using-npm/logging.html b/deps/npm/docs/output/using-npm/logging.html index 0d191c03717..3a9e23095e9 100644 --- a/deps/npm/docs/output/using-npm/logging.html +++ b/deps/npm/docs/output/using-npm/logging.html @@ -186,9 +186,9 @@
              -

              +

              Logging - @11.21.2 + @11.21.3

              Why, What & How we Log
              diff --git a/deps/npm/docs/output/using-npm/orgs.html b/deps/npm/docs/output/using-npm/orgs.html index 20f2cb67cd0..514e7e82b92 100644 --- a/deps/npm/docs/output/using-npm/orgs.html +++ b/deps/npm/docs/output/using-npm/orgs.html @@ -186,9 +186,9 @@
              -

              +

              Organizations - @11.21.2 + @11.21.3

              Working with teams & organizations
              diff --git a/deps/npm/docs/output/using-npm/package-spec.html b/deps/npm/docs/output/using-npm/package-spec.html index 0ba71462d0f..cee3f3627d0 100644 --- a/deps/npm/docs/output/using-npm/package-spec.html +++ b/deps/npm/docs/output/using-npm/package-spec.html @@ -186,9 +186,9 @@
              -

              +

              Package spec - @11.21.2 + @11.21.3

              Package name specifier
              diff --git a/deps/npm/docs/output/using-npm/registry.html b/deps/npm/docs/output/using-npm/registry.html index 54d4f433e72..9eb1e6e14c6 100644 --- a/deps/npm/docs/output/using-npm/registry.html +++ b/deps/npm/docs/output/using-npm/registry.html @@ -186,9 +186,9 @@
              -

              +

              Registry - @11.21.2 + @11.21.3

              The JavaScript Package Registry
              diff --git a/deps/npm/docs/output/using-npm/removal.html b/deps/npm/docs/output/using-npm/removal.html index b058622923a..957e04a6b71 100644 --- a/deps/npm/docs/output/using-npm/removal.html +++ b/deps/npm/docs/output/using-npm/removal.html @@ -186,9 +186,9 @@
              -

              +

              Removal - @11.21.2 + @11.21.3

              Cleaning the slate
              diff --git a/deps/npm/docs/output/using-npm/scope.html b/deps/npm/docs/output/using-npm/scope.html index 81dcafdb276..53302fce17c 100644 --- a/deps/npm/docs/output/using-npm/scope.html +++ b/deps/npm/docs/output/using-npm/scope.html @@ -186,9 +186,9 @@
              -

              +

              Scope - @11.21.2 + @11.21.3

              Scoped packages
              diff --git a/deps/npm/docs/output/using-npm/scripts.html b/deps/npm/docs/output/using-npm/scripts.html index c0d35eceb43..57f8c539900 100644 --- a/deps/npm/docs/output/using-npm/scripts.html +++ b/deps/npm/docs/output/using-npm/scripts.html @@ -186,9 +186,9 @@
              -

              +

              Scripts - @11.21.2 + @11.21.3

              How npm handles the "scripts" field
              diff --git a/deps/npm/docs/output/using-npm/workspaces.html b/deps/npm/docs/output/using-npm/workspaces.html index c5ce10d261a..c0e2b77c622 100644 --- a/deps/npm/docs/output/using-npm/workspaces.html +++ b/deps/npm/docs/output/using-npm/workspaces.html @@ -186,9 +186,9 @@
              -

              +

              Workspaces - @11.21.2 + @11.21.3

              Working with workspaces
              diff --git a/deps/npm/lib/utils/check-allow-scripts.js b/deps/npm/lib/utils/check-allow-scripts.js index 47984803cde..352f8e7cb9b 100644 --- a/deps/npm/lib/utils/check-allow-scripts.js +++ b/deps/npm/lib/utils/check-allow-scripts.js @@ -15,13 +15,20 @@ const { collectUnreviewedScripts } = require('@npmcli/arborist/lib/unreviewed-sc // `includeWhenIgnored` keeps listing unreviewed packages even when // ignore-scripts is set, so approve/deny can show what you'd move from a // blanket ignore-scripts to an allowlist. Execution callers leave it false. -const checkAllowScripts = async ({ arb, npm, tree, includeWhenIgnored = false }) => +const checkAllowScripts = async ({ + arb, + npm, + tree, + includeWhenIgnored = false, + skipExtraneous = false, +}) => collectUnreviewedScripts({ tree: tree || arb.actualTree, policy: arb.options?.allowScripts || null, ignoreScripts: !!arb.options?.ignoreScripts, dangerouslyAllowAllScripts: !!npm?.flatOptions?.dangerouslyAllowAllScripts, includeWhenIgnored, + skipExtraneous, }) module.exports = checkAllowScripts diff --git a/deps/npm/lib/utils/is-windows.js b/deps/npm/lib/utils/is-windows.js index 63c5671d840..d4513e3e98e 100644 --- a/deps/npm/lib/utils/is-windows.js +++ b/deps/npm/lib/utils/is-windows.js @@ -1,4 +1,8 @@ +const isGitBashMsystem = (msystem) => + /^(MINGW(32|64)|UCRT64|CLANG(32|64|ARM64))$/.test(msystem || '') + const isWindowsShell = (process.platform === 'win32') && - !/^MINGW(32|64)$/.test(process.env.MSYSTEM) && process.env.TERM !== 'cygwin' + !isGitBashMsystem(process.env.MSYSTEM) && process.env.TERM !== 'cygwin' exports.isWindowsShell = isWindowsShell +exports.isGitBashMsystem = isGitBashMsystem diff --git a/deps/npm/lib/utils/reify-finish.js b/deps/npm/lib/utils/reify-finish.js index 1041c53fdb9..0278f9b5919 100644 --- a/deps/npm/lib/utils/reify-finish.js +++ b/deps/npm/lib/utils/reify-finish.js @@ -18,7 +18,7 @@ const reifyFinish = async (npm, arb) => { } } warnWorkspaceAllowScripts(arb.actualTree) - const unreviewedScripts = await checkAllowScripts({ arb, npm }) + const unreviewedScripts = await checkAllowScripts({ arb, npm, skipExtraneous: true }) reifyOutput(npm, arb, { unreviewedScripts }) } diff --git a/deps/npm/lib/utils/strict-allow-scripts-preflight.js b/deps/npm/lib/utils/strict-allow-scripts-preflight.js index 0c500018184..2bb5ceb6d9d 100644 --- a/deps/npm/lib/utils/strict-allow-scripts-preflight.js +++ b/deps/npm/lib/utils/strict-allow-scripts-preflight.js @@ -33,7 +33,12 @@ const strictAllowScriptsPreflight = async ({ arb, npm, idealTreeOpts }) => { tree = arb.actualTree } - const unreviewed = await checkAllowScripts({ arb, npm, tree }) + const unreviewed = await checkAllowScripts({ + arb, + npm, + tree, + skipExtraneous: idealTreeOpts !== undefined, + }) if (unreviewed.length === 0) { return } diff --git a/deps/npm/man/man1/npm-access.1 b/deps/npm/man/man1/npm-access.1 index ceb3f6c17fa..34cac3a2225 100644 --- a/deps/npm/man/man1/npm-access.1 +++ b/deps/npm/man/man1/npm-access.1 @@ -1,4 +1,4 @@ -.TH "NPM-ACCESS" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-ACCESS" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-access\fR - Set access level on published packages .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-adduser.1 b/deps/npm/man/man1/npm-adduser.1 index cf798639583..112d3b2cbeb 100644 --- a/deps/npm/man/man1/npm-adduser.1 +++ b/deps/npm/man/man1/npm-adduser.1 @@ -1,4 +1,4 @@ -.TH "NPM-ADDUSER" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-ADDUSER" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-adduser\fR - Add a registry user account .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-approve-scripts.1 b/deps/npm/man/man1/npm-approve-scripts.1 index dedc97ea43f..061f9bc8e44 100644 --- a/deps/npm/man/man1/npm-approve-scripts.1 +++ b/deps/npm/man/man1/npm-approve-scripts.1 @@ -1,4 +1,4 @@ -.TH "NPM-APPROVE-SCRIPTS" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-APPROVE-SCRIPTS" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-approve-scripts\fR - Approve install scripts for specific dependencies .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-audit.1 b/deps/npm/man/man1/npm-audit.1 index f849ab67df2..f54c1395a0f 100644 --- a/deps/npm/man/man1/npm-audit.1 +++ b/deps/npm/man/man1/npm-audit.1 @@ -1,4 +1,4 @@ -.TH "NPM-AUDIT" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-AUDIT" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-audit\fR - Run a security audit .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-bugs.1 b/deps/npm/man/man1/npm-bugs.1 index 666d56f830a..ed3d0ed68d9 100644 --- a/deps/npm/man/man1/npm-bugs.1 +++ b/deps/npm/man/man1/npm-bugs.1 @@ -1,4 +1,4 @@ -.TH "NPM-BUGS" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-BUGS" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-bugs\fR - Report bugs for a package in a web browser .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-cache.1 b/deps/npm/man/man1/npm-cache.1 index e31c02d0197..e0151029882 100644 --- a/deps/npm/man/man1/npm-cache.1 +++ b/deps/npm/man/man1/npm-cache.1 @@ -1,4 +1,4 @@ -.TH "NPM-CACHE" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-CACHE" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-cache\fR - Manipulates packages cache .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-ci.1 b/deps/npm/man/man1/npm-ci.1 index 9c9d0a3fb1a..1a431b75de9 100644 --- a/deps/npm/man/man1/npm-ci.1 +++ b/deps/npm/man/man1/npm-ci.1 @@ -1,4 +1,4 @@ -.TH "NPM-CI" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-CI" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-ci\fR - Clean install a project .SS "Synopsis" @@ -248,6 +248,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error: Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries. \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting. .P Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run. +.P +Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk. .SS "\fBdangerously-allow-all-scripts\fR" .RS 0 .IP \(bu 4 diff --git a/deps/npm/man/man1/npm-completion.1 b/deps/npm/man/man1/npm-completion.1 index efd483b409d..f3e1f52511e 100644 --- a/deps/npm/man/man1/npm-completion.1 +++ b/deps/npm/man/man1/npm-completion.1 @@ -1,4 +1,4 @@ -.TH "NPM-COMPLETION" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-COMPLETION" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-completion\fR - Tab Completion for npm .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-config.1 b/deps/npm/man/man1/npm-config.1 index 976fc2f6d8b..ac70b0574a5 100644 --- a/deps/npm/man/man1/npm-config.1 +++ b/deps/npm/man/man1/npm-config.1 @@ -1,4 +1,4 @@ -.TH "NPM-CONFIG" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-CONFIG" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-config\fR - Manage the npm configuration files .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-dedupe.1 b/deps/npm/man/man1/npm-dedupe.1 index a49b48681de..43bc3be38e2 100644 --- a/deps/npm/man/man1/npm-dedupe.1 +++ b/deps/npm/man/man1/npm-dedupe.1 @@ -1,4 +1,4 @@ -.TH "NPM-DEDUPE" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-DEDUPE" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-dedupe\fR - Reduce duplication in the package tree .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-deny-scripts.1 b/deps/npm/man/man1/npm-deny-scripts.1 index 826b8ca1333..e49b468b6b3 100644 --- a/deps/npm/man/man1/npm-deny-scripts.1 +++ b/deps/npm/man/man1/npm-deny-scripts.1 @@ -1,4 +1,4 @@ -.TH "NPM-DENY-SCRIPTS" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-DENY-SCRIPTS" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-deny-scripts\fR - Deny install scripts for specific dependencies .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-deprecate.1 b/deps/npm/man/man1/npm-deprecate.1 index 0aa94ec5898..028ea812a80 100644 --- a/deps/npm/man/man1/npm-deprecate.1 +++ b/deps/npm/man/man1/npm-deprecate.1 @@ -1,4 +1,4 @@ -.TH "NPM-DEPRECATE" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-DEPRECATE" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-deprecate\fR - Deprecate a version of a package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-diff.1 b/deps/npm/man/man1/npm-diff.1 index 777fe47a026..82cf087543b 100644 --- a/deps/npm/man/man1/npm-diff.1 +++ b/deps/npm/man/man1/npm-diff.1 @@ -1,4 +1,4 @@ -.TH "NPM-DIFF" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-DIFF" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-diff\fR - The registry diff command .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-dist-tag.1 b/deps/npm/man/man1/npm-dist-tag.1 index 37c86f432d9..b3ef496f6d1 100644 --- a/deps/npm/man/man1/npm-dist-tag.1 +++ b/deps/npm/man/man1/npm-dist-tag.1 @@ -1,4 +1,4 @@ -.TH "NPM-DIST-TAG" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-DIST-TAG" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-dist-tag\fR - Modify package distribution tags .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-docs.1 b/deps/npm/man/man1/npm-docs.1 index 50e31e8735a..b086a8860c1 100644 --- a/deps/npm/man/man1/npm-docs.1 +++ b/deps/npm/man/man1/npm-docs.1 @@ -1,4 +1,4 @@ -.TH "NPM-DOCS" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-DOCS" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-docs\fR - Open documentation for a package in a web browser .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-doctor.1 b/deps/npm/man/man1/npm-doctor.1 index 8ef2fa2ad59..b302a7498d5 100644 --- a/deps/npm/man/man1/npm-doctor.1 +++ b/deps/npm/man/man1/npm-doctor.1 @@ -1,4 +1,4 @@ -.TH "NPM-DOCTOR" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-DOCTOR" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-doctor\fR - Check the health of your npm environment .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-edit.1 b/deps/npm/man/man1/npm-edit.1 index 8f1a7dfcb89..87fa7f57cef 100644 --- a/deps/npm/man/man1/npm-edit.1 +++ b/deps/npm/man/man1/npm-edit.1 @@ -1,4 +1,4 @@ -.TH "NPM-EDIT" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-EDIT" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-edit\fR - Edit an installed package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-exec.1 b/deps/npm/man/man1/npm-exec.1 index dc36459b4d5..e424dbf7782 100644 --- a/deps/npm/man/man1/npm-exec.1 +++ b/deps/npm/man/man1/npm-exec.1 @@ -1,4 +1,4 @@ -.TH "NPM-EXEC" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-EXEC" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-exec\fR - Run a command from a local or remote npm package .SS "Synopsis" @@ -197,6 +197,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error: Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries. \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting. .P Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run. +.P +Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk. .SS "\fBdangerously-allow-all-scripts\fR" .RS 0 .IP \(bu 4 diff --git a/deps/npm/man/man1/npm-explain.1 b/deps/npm/man/man1/npm-explain.1 index 069fcd70580..59f47d75022 100644 --- a/deps/npm/man/man1/npm-explain.1 +++ b/deps/npm/man/man1/npm-explain.1 @@ -1,4 +1,4 @@ -.TH "NPM-EXPLAIN" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-EXPLAIN" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-explain\fR - Explain installed packages .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-explore.1 b/deps/npm/man/man1/npm-explore.1 index 341994714fa..c8351dbba46 100644 --- a/deps/npm/man/man1/npm-explore.1 +++ b/deps/npm/man/man1/npm-explore.1 @@ -1,4 +1,4 @@ -.TH "NPM-EXPLORE" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-EXPLORE" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-explore\fR - Browse an installed package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-find-dupes.1 b/deps/npm/man/man1/npm-find-dupes.1 index bafc5d9f549..8302bd62613 100644 --- a/deps/npm/man/man1/npm-find-dupes.1 +++ b/deps/npm/man/man1/npm-find-dupes.1 @@ -1,4 +1,4 @@ -.TH "NPM-FIND-DUPES" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-FIND-DUPES" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-find-dupes\fR - Find duplication in the package tree .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-fund.1 b/deps/npm/man/man1/npm-fund.1 index a3c47fad3b8..bdd805c55c9 100644 --- a/deps/npm/man/man1/npm-fund.1 +++ b/deps/npm/man/man1/npm-fund.1 @@ -1,4 +1,4 @@ -.TH "NPM-FUND" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-FUND" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-fund\fR - Retrieve funding information .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-get.1 b/deps/npm/man/man1/npm-get.1 index 1e3cb0119c9..85db5b5ce84 100644 --- a/deps/npm/man/man1/npm-get.1 +++ b/deps/npm/man/man1/npm-get.1 @@ -1,4 +1,4 @@ -.TH "NPM-GET" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-GET" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-get\fR - Get a value from the npm configuration .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-help-search.1 b/deps/npm/man/man1/npm-help-search.1 index 10eac50e9bb..4120405d386 100644 --- a/deps/npm/man/man1/npm-help-search.1 +++ b/deps/npm/man/man1/npm-help-search.1 @@ -1,4 +1,4 @@ -.TH "NPM-HELP-SEARCH" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-HELP-SEARCH" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-help-search\fR - Search npm help documentation .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-help.1 b/deps/npm/man/man1/npm-help.1 index 221b0526e37..5d96c0a0eb8 100644 --- a/deps/npm/man/man1/npm-help.1 +++ b/deps/npm/man/man1/npm-help.1 @@ -1,4 +1,4 @@ -.TH "NPM-HELP" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-HELP" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-help\fR - Get help on npm .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-init.1 b/deps/npm/man/man1/npm-init.1 index 73ebb727ff5..b8148f84929 100644 --- a/deps/npm/man/man1/npm-init.1 +++ b/deps/npm/man/man1/npm-init.1 @@ -1,4 +1,4 @@ -.TH "NPM-INIT" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-INIT" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-init\fR - Create a package.json file .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-install-ci-test.1 b/deps/npm/man/man1/npm-install-ci-test.1 index 01ea550da99..be5e595cef8 100644 --- a/deps/npm/man/man1/npm-install-ci-test.1 +++ b/deps/npm/man/man1/npm-install-ci-test.1 @@ -1,4 +1,4 @@ -.TH "NPM-INSTALL-CI-TEST" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-INSTALL-CI-TEST" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-install-ci-test\fR - Install a project with a clean slate and run tests .SS "Synopsis" @@ -196,6 +196,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error: Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries. \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting. .P Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run. +.P +Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk. .SS "\fBdangerously-allow-all-scripts\fR" .RS 0 .IP \(bu 4 diff --git a/deps/npm/man/man1/npm-install-scripts.1 b/deps/npm/man/man1/npm-install-scripts.1 index 1de6e2c71ef..48b71d548b2 100644 --- a/deps/npm/man/man1/npm-install-scripts.1 +++ b/deps/npm/man/man1/npm-install-scripts.1 @@ -1,4 +1,4 @@ -.TH "NPM-INSTALL-SCRIPTS" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-INSTALL-SCRIPTS" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-install-scripts\fR - Manage install-script approvals for dependencies .SS "Synopsis" @@ -19,7 +19,7 @@ Note: This command is unaware of workspaces. .P Manages the \fBallowScripts\fR field in your project's \fBpackage.json\fR, which records which of your dependencies are permitted to run install scripts (\fBpreinstall\fR, \fBinstall\fR, \fBpostinstall\fR, and \fBprepare\fR for non-registry sources). This is the recommended way to maintain that field. .P -Dependency install scripts are blocked by default. Install commands silently skip lifecycle scripts for any dependency that does not have a matching entry in \fBallowScripts\fR, and end with a list of the packages whose scripts were skipped so you can review them here. +Dependency install scripts are blocked by default. Install commands silently skip lifecycle scripts for any dependency that does not have a matching entry in \fBallowScripts\fR, and end with a list of the packages whose scripts were skipped so you can review them here. These warnings omit disconnected unused entries that installation cannot build. Local link targets that can still be rebuilt remain subject to the policy. .P This command only works inside a project that has a \fBpackage.json\fR. Running it with \fB--global\fR (\fB-g\fR) fails with an \fBEGLOBAL\fR error, since global installs (\fBnpm install -g\fR) and one-off executions (\fBnpm exec\fR / \fBnpx\fR) have no project \fBpackage.json\fR to write to. To allow install scripts in those contexts, use the \fB--allow-scripts\fR flag at install time (for example \fBnpm install -g --allow-scripts=canvas,sharp\fR) or persist the setting with \fBnpm config set allow-scripts=canvas,sharp --location=user\fR. .P @@ -40,7 +40,7 @@ npm install-scripts prune .P \fBdeny\fR records an explicit denial for the named packages (a name-only \fBfalse\fR entry), which survives \fBnpm install-scripts approve --all\fR and excludes the package from any future blanket approval. \fB--all\fR denies every package with unreviewed install scripts. .P -\fBls\fR is read-only: it lists every package whose install scripts are not yet covered by \fBallowScripts\fR, without modifying \fBpackage.json\fR. +\fBls\fR is read-only: it lists every package whose install scripts are not yet covered by \fBallowScripts\fR, without modifying \fBpackage.json\fR. This includes unreviewed extraneous packages, which are installed but not required by any dependency. These packages can still cause \fBnpm rebuild --strict-allow-scripts\fR to fail. .P \fBprune\fR removes \fBallowScripts\fR entries that no longer match an installed package with an install script, either because the package is no longer installed (a transitive dependency changed, or a pinned \fBpkg@1.2.3\fR was upgraded) or because it no longer has an install script. Both approvals (\fBtrue\fR) and denials (\fBfalse\fR) are removed. It edits only the \fBallowScripts\fR field in \fBpackage.json\fR, never \fB.npmrc\fR or \fB--allow-scripts\fR. Pass \fB--dry-run\fR to preview without writing. Unparseable keys are left alone. .P diff --git a/deps/npm/man/man1/npm-install-test.1 b/deps/npm/man/man1/npm-install-test.1 index fb7f6ad652d..442dcadb4a3 100644 --- a/deps/npm/man/man1/npm-install-test.1 +++ b/deps/npm/man/man1/npm-install-test.1 @@ -1,4 +1,4 @@ -.TH "NPM-INSTALL-TEST" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-INSTALL-TEST" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-install-test\fR - Install package(s) and run tests .SS "Synopsis" @@ -273,6 +273,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error: Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries. \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting. .P Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run. +.P +Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk. .SS "\fBdangerously-allow-all-scripts\fR" .RS 0 .IP \(bu 4 diff --git a/deps/npm/man/man1/npm-install.1 b/deps/npm/man/man1/npm-install.1 index 6e6b595c5bb..5653ca59854 100644 --- a/deps/npm/man/man1/npm-install.1 +++ b/deps/npm/man/man1/npm-install.1 @@ -1,4 +1,4 @@ -.TH "NPM-INSTALL" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-INSTALL" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-install\fR - Install a package .SS "Synopsis" @@ -663,6 +663,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error: Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries. \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting. .P Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run. +.P +Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk. .SS "\fBdangerously-allow-all-scripts\fR" .RS 0 .IP \(bu 4 diff --git a/deps/npm/man/man1/npm-link.1 b/deps/npm/man/man1/npm-link.1 index 9c884b32fbf..69f4d0b23b4 100644 --- a/deps/npm/man/man1/npm-link.1 +++ b/deps/npm/man/man1/npm-link.1 @@ -1,4 +1,4 @@ -.TH "NPM-LINK" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-LINK" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-link\fR - Symlink a package folder .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-ll.1 b/deps/npm/man/man1/npm-ll.1 index a5794eeb02d..aa12f0678b6 100644 --- a/deps/npm/man/man1/npm-ll.1 +++ b/deps/npm/man/man1/npm-ll.1 @@ -1,4 +1,4 @@ -.TH "NPM-LL" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-LL" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-ll\fR - List installed packages .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-login.1 b/deps/npm/man/man1/npm-login.1 index 00f30771b59..ada893d5467 100644 --- a/deps/npm/man/man1/npm-login.1 +++ b/deps/npm/man/man1/npm-login.1 @@ -1,4 +1,4 @@ -.TH "NPM-LOGIN" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-LOGIN" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-login\fR - Login to a registry user account .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-logout.1 b/deps/npm/man/man1/npm-logout.1 index 3e7200cc1e9..621a83f1912 100644 --- a/deps/npm/man/man1/npm-logout.1 +++ b/deps/npm/man/man1/npm-logout.1 @@ -1,4 +1,4 @@ -.TH "NPM-LOGOUT" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-LOGOUT" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-logout\fR - Log out of the registry .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-ls.1 b/deps/npm/man/man1/npm-ls.1 index dc12c29f1a0..885580fea61 100644 --- a/deps/npm/man/man1/npm-ls.1 +++ b/deps/npm/man/man1/npm-ls.1 @@ -1,4 +1,4 @@ -.TH "NPM-LS" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-LS" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-ls\fR - List installed packages .SS "Synopsis" @@ -20,7 +20,7 @@ Positional arguments are \fBname@version-range\fR identifiers, which will limit .P .RS 2 .nf -npm@11.21.2 /path/to/npm +npm@11.21.3 /path/to/npm └─┬ init-package-json@0.0.4 └── promzard@0.1.5 .fi diff --git a/deps/npm/man/man1/npm-org.1 b/deps/npm/man/man1/npm-org.1 index 58bea33b5e2..4d56be5d8fb 100644 --- a/deps/npm/man/man1/npm-org.1 +++ b/deps/npm/man/man1/npm-org.1 @@ -1,4 +1,4 @@ -.TH "NPM-ORG" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-ORG" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-org\fR - Manage orgs .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-outdated.1 b/deps/npm/man/man1/npm-outdated.1 index d34c347088f..ac4df353413 100644 --- a/deps/npm/man/man1/npm-outdated.1 +++ b/deps/npm/man/man1/npm-outdated.1 @@ -1,4 +1,4 @@ -.TH "NPM-OUTDATED" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-OUTDATED" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-outdated\fR - Check for outdated packages .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-owner.1 b/deps/npm/man/man1/npm-owner.1 index d5d234979a8..0324c00f4ae 100644 --- a/deps/npm/man/man1/npm-owner.1 +++ b/deps/npm/man/man1/npm-owner.1 @@ -1,4 +1,4 @@ -.TH "NPM-OWNER" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-OWNER" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-owner\fR - Manage package owners .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-pack.1 b/deps/npm/man/man1/npm-pack.1 index f3a7f77cced..6512293754a 100644 --- a/deps/npm/man/man1/npm-pack.1 +++ b/deps/npm/man/man1/npm-pack.1 @@ -1,4 +1,4 @@ -.TH "NPM-PACK" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-PACK" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-pack\fR - Create a tarball from a package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-ping.1 b/deps/npm/man/man1/npm-ping.1 index c6a347a93bb..55e63df73b2 100644 --- a/deps/npm/man/man1/npm-ping.1 +++ b/deps/npm/man/man1/npm-ping.1 @@ -1,4 +1,4 @@ -.TH "NPM-PING" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-PING" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-ping\fR - Ping npm registry .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-pkg.1 b/deps/npm/man/man1/npm-pkg.1 index 05ca067c19c..3ba546d6e69 100644 --- a/deps/npm/man/man1/npm-pkg.1 +++ b/deps/npm/man/man1/npm-pkg.1 @@ -1,4 +1,4 @@ -.TH "NPM-PKG" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-PKG" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-pkg\fR - Manages your package.json .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-prefix.1 b/deps/npm/man/man1/npm-prefix.1 index d257e9ba0aa..f65ff4dc6c9 100644 --- a/deps/npm/man/man1/npm-prefix.1 +++ b/deps/npm/man/man1/npm-prefix.1 @@ -1,4 +1,4 @@ -.TH "NPM-PREFIX" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-PREFIX" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-prefix\fR - Display prefix .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-profile.1 b/deps/npm/man/man1/npm-profile.1 index e60248cdfe2..652683d0295 100644 --- a/deps/npm/man/man1/npm-profile.1 +++ b/deps/npm/man/man1/npm-profile.1 @@ -1,4 +1,4 @@ -.TH "NPM-PROFILE" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-PROFILE" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-profile\fR - Change settings on your registry profile .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-prune.1 b/deps/npm/man/man1/npm-prune.1 index f7f4bf2d695..df30433ad33 100644 --- a/deps/npm/man/man1/npm-prune.1 +++ b/deps/npm/man/man1/npm-prune.1 @@ -1,4 +1,4 @@ -.TH "NPM-PRUNE" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-PRUNE" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-prune\fR - Remove extraneous packages .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-publish.1 b/deps/npm/man/man1/npm-publish.1 index aad3180fee8..cff3ffabb56 100644 --- a/deps/npm/man/man1/npm-publish.1 +++ b/deps/npm/man/man1/npm-publish.1 @@ -1,4 +1,4 @@ -.TH "NPM-PUBLISH" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-PUBLISH" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-publish\fR - Publish a package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-query.1 b/deps/npm/man/man1/npm-query.1 index 62d17dc5dbf..a53dd0bd87d 100644 --- a/deps/npm/man/man1/npm-query.1 +++ b/deps/npm/man/man1/npm-query.1 @@ -1,4 +1,4 @@ -.TH "NPM-QUERY" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-QUERY" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-query\fR - Dependency selector query .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-rebuild.1 b/deps/npm/man/man1/npm-rebuild.1 index e4c818dcff9..75ecff8fd98 100644 --- a/deps/npm/man/man1/npm-rebuild.1 +++ b/deps/npm/man/man1/npm-rebuild.1 @@ -1,4 +1,4 @@ -.TH "NPM-REBUILD" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-REBUILD" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-rebuild\fR - Rebuild a package .SS "Synopsis" @@ -131,6 +131,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error: Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries. \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting. .P Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run. +.P +Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk. .SS "\fBdangerously-allow-all-scripts\fR" .RS 0 .IP \(bu 4 diff --git a/deps/npm/man/man1/npm-repo.1 b/deps/npm/man/man1/npm-repo.1 index 64fb13ad727..e73d0c8b621 100644 --- a/deps/npm/man/man1/npm-repo.1 +++ b/deps/npm/man/man1/npm-repo.1 @@ -1,4 +1,4 @@ -.TH "NPM-REPO" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-REPO" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-repo\fR - Open package repository page in the browser .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-restart.1 b/deps/npm/man/man1/npm-restart.1 index 6b7333de08e..7048a770622 100644 --- a/deps/npm/man/man1/npm-restart.1 +++ b/deps/npm/man/man1/npm-restart.1 @@ -1,4 +1,4 @@ -.TH "NPM-RESTART" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-RESTART" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-restart\fR - Restart a package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-root.1 b/deps/npm/man/man1/npm-root.1 index e43130a5de0..77f88c86666 100644 --- a/deps/npm/man/man1/npm-root.1 +++ b/deps/npm/man/man1/npm-root.1 @@ -1,4 +1,4 @@ -.TH "NPM-ROOT" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-ROOT" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-root\fR - Display npm root .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-run.1 b/deps/npm/man/man1/npm-run.1 index 44a0a413945..c1f3e43ff1b 100644 --- a/deps/npm/man/man1/npm-run.1 +++ b/deps/npm/man/man1/npm-run.1 @@ -1,4 +1,4 @@ -.TH "NPM-RUN" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-RUN" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-run\fR - Run arbitrary package scripts .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-sbom.1 b/deps/npm/man/man1/npm-sbom.1 index 977e99d3680..278fa508500 100644 --- a/deps/npm/man/man1/npm-sbom.1 +++ b/deps/npm/man/man1/npm-sbom.1 @@ -1,4 +1,4 @@ -.TH "NPM-SBOM" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-SBOM" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-sbom\fR - Generate a Software Bill of Materials (SBOM) .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-search.1 b/deps/npm/man/man1/npm-search.1 index fdf8b0d9d4b..df6e7af559c 100644 --- a/deps/npm/man/man1/npm-search.1 +++ b/deps/npm/man/man1/npm-search.1 @@ -1,4 +1,4 @@ -.TH "NPM-SEARCH" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-SEARCH" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-search\fR - Search for packages .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-set.1 b/deps/npm/man/man1/npm-set.1 index 98aa226928e..3df624a19b8 100644 --- a/deps/npm/man/man1/npm-set.1 +++ b/deps/npm/man/man1/npm-set.1 @@ -1,4 +1,4 @@ -.TH "NPM-SET" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-SET" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-set\fR - Set a value in the npm configuration .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-shrinkwrap.1 b/deps/npm/man/man1/npm-shrinkwrap.1 index 10b329ad53f..cc16d262f34 100644 --- a/deps/npm/man/man1/npm-shrinkwrap.1 +++ b/deps/npm/man/man1/npm-shrinkwrap.1 @@ -1,4 +1,4 @@ -.TH "NPM-SHRINKWRAP" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-SHRINKWRAP" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-shrinkwrap\fR - Lock down dependency versions for publication .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-stage.1 b/deps/npm/man/man1/npm-stage.1 index e7f5ee6dabd..a898f6eca68 100644 --- a/deps/npm/man/man1/npm-stage.1 +++ b/deps/npm/man/man1/npm-stage.1 @@ -1,4 +1,4 @@ -.TH "NPM-STAGE" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-STAGE" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-stage\fR - Stage packages for publishing .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-star.1 b/deps/npm/man/man1/npm-star.1 index cfe66082f5d..5c91e1f9d26 100644 --- a/deps/npm/man/man1/npm-star.1 +++ b/deps/npm/man/man1/npm-star.1 @@ -1,4 +1,4 @@ -.TH "NPM-STAR" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-STAR" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-star\fR - Mark your favorite packages .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-stars.1 b/deps/npm/man/man1/npm-stars.1 index 3edd9394710..23eb0d326c1 100644 --- a/deps/npm/man/man1/npm-stars.1 +++ b/deps/npm/man/man1/npm-stars.1 @@ -1,4 +1,4 @@ -.TH "NPM-STARS" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-STARS" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-stars\fR - View packages marked as favorites .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-start.1 b/deps/npm/man/man1/npm-start.1 index 482e12f920b..e0c230d73c9 100644 --- a/deps/npm/man/man1/npm-start.1 +++ b/deps/npm/man/man1/npm-start.1 @@ -1,4 +1,4 @@ -.TH "NPM-START" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-START" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-start\fR - Start a package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-stop.1 b/deps/npm/man/man1/npm-stop.1 index 28b9dcca489..dc3a4b6cca1 100644 --- a/deps/npm/man/man1/npm-stop.1 +++ b/deps/npm/man/man1/npm-stop.1 @@ -1,4 +1,4 @@ -.TH "NPM-STOP" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-STOP" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-stop\fR - Stop a package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-team.1 b/deps/npm/man/man1/npm-team.1 index 0fbcab4e8cf..90abddd6c66 100644 --- a/deps/npm/man/man1/npm-team.1 +++ b/deps/npm/man/man1/npm-team.1 @@ -1,4 +1,4 @@ -.TH "NPM-TEAM" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-TEAM" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-team\fR - Manage organization teams and team memberships .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-test.1 b/deps/npm/man/man1/npm-test.1 index 5d7fce9ea53..c0ce3827d06 100644 --- a/deps/npm/man/man1/npm-test.1 +++ b/deps/npm/man/man1/npm-test.1 @@ -1,4 +1,4 @@ -.TH "NPM-TEST" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-TEST" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-test\fR - Test a package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-token.1 b/deps/npm/man/man1/npm-token.1 index 6b8b7f1432b..a3a6e5da7c2 100644 --- a/deps/npm/man/man1/npm-token.1 +++ b/deps/npm/man/man1/npm-token.1 @@ -1,4 +1,4 @@ -.TH "NPM-TOKEN" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-TOKEN" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-token\fR - Manage your authentication tokens .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-trust.1 b/deps/npm/man/man1/npm-trust.1 index 49b9493aed9..56ec053e39a 100644 --- a/deps/npm/man/man1/npm-trust.1 +++ b/deps/npm/man/man1/npm-trust.1 @@ -1,4 +1,4 @@ -.TH "NPM-TRUST" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-TRUST" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-trust\fR - Manage trusted publishing relationships between packages and CI/CD providers .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-undeprecate.1 b/deps/npm/man/man1/npm-undeprecate.1 index dcede198e83..d95e13c61a7 100644 --- a/deps/npm/man/man1/npm-undeprecate.1 +++ b/deps/npm/man/man1/npm-undeprecate.1 @@ -1,4 +1,4 @@ -.TH "NPM-UNDEPRECATE" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-UNDEPRECATE" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-undeprecate\fR - Undeprecate a version of a package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-uninstall.1 b/deps/npm/man/man1/npm-uninstall.1 index 5be1016a76e..4e0d712b514 100644 --- a/deps/npm/man/man1/npm-uninstall.1 +++ b/deps/npm/man/man1/npm-uninstall.1 @@ -1,4 +1,4 @@ -.TH "NPM-UNINSTALL" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-UNINSTALL" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-uninstall\fR - Remove a package .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-unpublish.1 b/deps/npm/man/man1/npm-unpublish.1 index f60f2629ebd..355354c6713 100644 --- a/deps/npm/man/man1/npm-unpublish.1 +++ b/deps/npm/man/man1/npm-unpublish.1 @@ -1,4 +1,4 @@ -.TH "NPM-UNPUBLISH" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-UNPUBLISH" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-unpublish\fR - Remove a package from the registry .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-unstar.1 b/deps/npm/man/man1/npm-unstar.1 index 14c130030cf..fd8fc028a72 100644 --- a/deps/npm/man/man1/npm-unstar.1 +++ b/deps/npm/man/man1/npm-unstar.1 @@ -1,4 +1,4 @@ -.TH "NPM-UNSTAR" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-UNSTAR" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-unstar\fR - Remove an item from your favorite packages .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-update.1 b/deps/npm/man/man1/npm-update.1 index 09149b799a3..f40a209c603 100644 --- a/deps/npm/man/man1/npm-update.1 +++ b/deps/npm/man/man1/npm-update.1 @@ -1,4 +1,4 @@ -.TH "NPM-UPDATE" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-UPDATE" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-update\fR - Update packages .SS "Synopsis" @@ -309,6 +309,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error: Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries. \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting. .P Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run. +.P +Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk. .SS "\fBdangerously-allow-all-scripts\fR" .RS 0 .IP \(bu 4 diff --git a/deps/npm/man/man1/npm-version.1 b/deps/npm/man/man1/npm-version.1 index 099e09b920f..fd16a3e9437 100644 --- a/deps/npm/man/man1/npm-version.1 +++ b/deps/npm/man/man1/npm-version.1 @@ -1,4 +1,4 @@ -.TH "NPM-VERSION" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-VERSION" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-version\fR - Bump a package version .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-view.1 b/deps/npm/man/man1/npm-view.1 index d3ae4185cd1..34bf4231663 100644 --- a/deps/npm/man/man1/npm-view.1 +++ b/deps/npm/man/man1/npm-view.1 @@ -1,4 +1,4 @@ -.TH "NPM-VIEW" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-VIEW" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-view\fR - View registry info .SS "Synopsis" diff --git a/deps/npm/man/man1/npm-whoami.1 b/deps/npm/man/man1/npm-whoami.1 index c3ce1bc97b3..eb4c83c92f8 100644 --- a/deps/npm/man/man1/npm-whoami.1 +++ b/deps/npm/man/man1/npm-whoami.1 @@ -1,4 +1,4 @@ -.TH "NPM-WHOAMI" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM-WHOAMI" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-whoami\fR - Display npm username .SS "Synopsis" diff --git a/deps/npm/man/man1/npm.1 b/deps/npm/man/man1/npm.1 index c8ea8a2cc74..1213da9c6f9 100644 --- a/deps/npm/man/man1/npm.1 +++ b/deps/npm/man/man1/npm.1 @@ -1,4 +1,4 @@ -.TH "NPM" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPM" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm\fR - javascript package manager .SS "Synopsis" @@ -12,7 +12,7 @@ npm Note: This command is unaware of workspaces. .SS "Version" .P -11.21.2 +11.21.3 .SS "Description" .P npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently. diff --git a/deps/npm/man/man1/npx.1 b/deps/npm/man/man1/npx.1 index c99e9692469..0ce317b2bee 100644 --- a/deps/npm/man/man1/npx.1 +++ b/deps/npm/man/man1/npx.1 @@ -1,4 +1,4 @@ -.TH "NPX" "1" "November 2026" "NPM@11.21.2" "" +.TH "NPX" "1" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpx\fR - Run a command from a local or remote npm package .SS "Synopsis" diff --git a/deps/npm/man/man5/folders.5 b/deps/npm/man/man5/folders.5 index ecca3409f8d..7ab27ed60a1 100644 --- a/deps/npm/man/man5/folders.5 +++ b/deps/npm/man/man5/folders.5 @@ -1,4 +1,4 @@ -.TH "FOLDERS" "5" "November 2026" "NPM@11.21.2" "" +.TH "FOLDERS" "5" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBFolders\fR - Folder structures used by npm .SS "Description" diff --git a/deps/npm/man/man5/install.5 b/deps/npm/man/man5/install.5 index 9687aa67026..7e7f7262b35 100644 --- a/deps/npm/man/man5/install.5 +++ b/deps/npm/man/man5/install.5 @@ -1,4 +1,4 @@ -.TH "INSTALL" "5" "November 2026" "NPM@11.21.2" "" +.TH "INSTALL" "5" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBInstall\fR - Download and install node and npm .SS "Description" diff --git a/deps/npm/man/man5/npm-global.5 b/deps/npm/man/man5/npm-global.5 index ecca3409f8d..7ab27ed60a1 100644 --- a/deps/npm/man/man5/npm-global.5 +++ b/deps/npm/man/man5/npm-global.5 @@ -1,4 +1,4 @@ -.TH "FOLDERS" "5" "November 2026" "NPM@11.21.2" "" +.TH "FOLDERS" "5" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBFolders\fR - Folder structures used by npm .SS "Description" diff --git a/deps/npm/man/man5/npm-json.5 b/deps/npm/man/man5/npm-json.5 index 639e431c897..68256d7a5a3 100644 --- a/deps/npm/man/man5/npm-json.5 +++ b/deps/npm/man/man5/npm-json.5 @@ -1,4 +1,4 @@ -.TH "PACKAGE.JSON" "5" "November 2026" "NPM@11.21.2" "" +.TH "PACKAGE.JSON" "5" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBpackage.json\fR - Specifics of npm's package.json handling .SS "Description" diff --git a/deps/npm/man/man5/npm-shrinkwrap-json.5 b/deps/npm/man/man5/npm-shrinkwrap-json.5 index d8fae509e4a..9796cfb0a2d 100644 --- a/deps/npm/man/man5/npm-shrinkwrap-json.5 +++ b/deps/npm/man/man5/npm-shrinkwrap-json.5 @@ -1,4 +1,4 @@ -.TH "NPM-SHRINKWRAP.JSON" "5" "November 2026" "NPM@11.21.2" "" +.TH "NPM-SHRINKWRAP.JSON" "5" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBnpm-shrinkwrap.json\fR - A publishable lockfile .SS "Description" diff --git a/deps/npm/man/man5/npmrc.5 b/deps/npm/man/man5/npmrc.5 index 03557880a5e..396c5e23c7f 100644 --- a/deps/npm/man/man5/npmrc.5 +++ b/deps/npm/man/man5/npmrc.5 @@ -1,4 +1,4 @@ -.TH ".NPMRC" "5" "November 2026" "NPM@11.21.2" "" +.TH ".NPMRC" "5" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fB.npmrc\fR - The npm config files .SS "Description" diff --git a/deps/npm/man/man5/package-json.5 b/deps/npm/man/man5/package-json.5 index 639e431c897..68256d7a5a3 100644 --- a/deps/npm/man/man5/package-json.5 +++ b/deps/npm/man/man5/package-json.5 @@ -1,4 +1,4 @@ -.TH "PACKAGE.JSON" "5" "November 2026" "NPM@11.21.2" "" +.TH "PACKAGE.JSON" "5" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBpackage.json\fR - Specifics of npm's package.json handling .SS "Description" diff --git a/deps/npm/man/man5/package-lock-json.5 b/deps/npm/man/man5/package-lock-json.5 index 960fef79eb2..23bf2de201d 100644 --- a/deps/npm/man/man5/package-lock-json.5 +++ b/deps/npm/man/man5/package-lock-json.5 @@ -1,4 +1,4 @@ -.TH "PACKAGE-LOCK.JSON" "5" "November 2026" "NPM@11.21.2" "" +.TH "PACKAGE-LOCK.JSON" "5" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBpackage-lock.json\fR - A manifestation of the manifest .SS "Description" diff --git a/deps/npm/man/man7/config.7 b/deps/npm/man/man7/config.7 index bd5661545e4..154e0bfe349 100644 --- a/deps/npm/man/man7/config.7 +++ b/deps/npm/man/man7/config.7 @@ -1,4 +1,4 @@ -.TH "CONFIG" "7" "November 2026" "NPM@11.21.2" "" +.TH "CONFIG" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBConfig\fR - About npm configuration .SS "Description" @@ -1864,6 +1864,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error: Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries. \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting. .P Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run. +.P +Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk. .SS "\fBstrict-peer-deps\fR" .RS 0 .IP \(bu 4 diff --git a/deps/npm/man/man7/dependency-selectors.7 b/deps/npm/man/man7/dependency-selectors.7 index 5884af196f7..5260f2146dd 100644 --- a/deps/npm/man/man7/dependency-selectors.7 +++ b/deps/npm/man/man7/dependency-selectors.7 @@ -1,4 +1,4 @@ -.TH "SELECTORS" "7" "November 2026" "NPM@11.21.2" "" +.TH "SELECTORS" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBSelectors\fR - Dependency Selector Syntax & Querying .SS "Description" diff --git a/deps/npm/man/man7/developers.7 b/deps/npm/man/man7/developers.7 index 89a7b8e8647..7df710e5d26 100644 --- a/deps/npm/man/man7/developers.7 +++ b/deps/npm/man/man7/developers.7 @@ -1,4 +1,4 @@ -.TH "DEVELOPERS" "7" "November 2026" "NPM@11.21.2" "" +.TH "DEVELOPERS" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBDevelopers\fR - Developer guide .SS "Description" diff --git a/deps/npm/man/man7/logging.7 b/deps/npm/man/man7/logging.7 index a20bb662ed0..e4f095898f6 100644 --- a/deps/npm/man/man7/logging.7 +++ b/deps/npm/man/man7/logging.7 @@ -1,4 +1,4 @@ -.TH "LOGGING" "7" "November 2026" "NPM@11.21.2" "" +.TH "LOGGING" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBLogging\fR - Why, What & How we Log .SS "Description" diff --git a/deps/npm/man/man7/orgs.7 b/deps/npm/man/man7/orgs.7 index 58ad4741081..2ca7cc03d9d 100644 --- a/deps/npm/man/man7/orgs.7 +++ b/deps/npm/man/man7/orgs.7 @@ -1,4 +1,4 @@ -.TH "ORGANIZATIONS" "7" "November 2026" "NPM@11.21.2" "" +.TH "ORGANIZATIONS" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBOrganizations\fR - Working with teams & organizations .SS "Description" diff --git a/deps/npm/man/man7/package-spec.7 b/deps/npm/man/man7/package-spec.7 index 1eda237ed7a..95d275f9973 100644 --- a/deps/npm/man/man7/package-spec.7 +++ b/deps/npm/man/man7/package-spec.7 @@ -1,4 +1,4 @@ -.TH "SPEC" "7" "November 2026" "NPM@11.21.2" "" +.TH "SPEC" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBspec\fR - Package name specifier .SS "Description" diff --git a/deps/npm/man/man7/registry.7 b/deps/npm/man/man7/registry.7 index 1e0ac20aa4a..f19f751e75f 100644 --- a/deps/npm/man/man7/registry.7 +++ b/deps/npm/man/man7/registry.7 @@ -1,4 +1,4 @@ -.TH "REGISTRY" "7" "November 2026" "NPM@11.21.2" "" +.TH "REGISTRY" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBRegistry\fR - The JavaScript Package Registry .SS "Description" diff --git a/deps/npm/man/man7/removal.7 b/deps/npm/man/man7/removal.7 index fa1a46000a0..066ca90db07 100644 --- a/deps/npm/man/man7/removal.7 +++ b/deps/npm/man/man7/removal.7 @@ -1,4 +1,4 @@ -.TH "REMOVAL" "7" "November 2026" "NPM@11.21.2" "" +.TH "REMOVAL" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBRemoval\fR - Cleaning the slate .SS "Synopsis" diff --git a/deps/npm/man/man7/scope.7 b/deps/npm/man/man7/scope.7 index 914ea789118..209b5f0246e 100644 --- a/deps/npm/man/man7/scope.7 +++ b/deps/npm/man/man7/scope.7 @@ -1,4 +1,4 @@ -.TH "SCOPE" "7" "November 2026" "NPM@11.21.2" "" +.TH "SCOPE" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBScope\fR - Scoped packages .SS "Description" diff --git a/deps/npm/man/man7/scripts.7 b/deps/npm/man/man7/scripts.7 index b1b268cc8d1..d69f6decc20 100644 --- a/deps/npm/man/man7/scripts.7 +++ b/deps/npm/man/man7/scripts.7 @@ -1,4 +1,4 @@ -.TH "SCRIPTS" "7" "November 2026" "NPM@11.21.2" "" +.TH "SCRIPTS" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBScripts\fR - How npm handles the "scripts" field .SS "Description" diff --git a/deps/npm/man/man7/workspaces.7 b/deps/npm/man/man7/workspaces.7 index b866bab8d2f..0b138975a32 100644 --- a/deps/npm/man/man7/workspaces.7 +++ b/deps/npm/man/man7/workspaces.7 @@ -1,4 +1,4 @@ -.TH "WORKSPACES" "7" "November 2026" "NPM@11.21.2" "" +.TH "WORKSPACES" "7" "November 2026" "NPM@11.21.3" "" .SH "NAME" \fBWorkspaces\fR - Working with workspaces .SS "Description" diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js b/deps/npm/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js index a07c55e3f28..d919d32bf6d 100644 --- a/deps/npm/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js +++ b/deps/npm/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js @@ -2,6 +2,7 @@ const { mkdirSync } = require('node:fs') const pacote = require('pacote') const { join } = require('node:path') const { depth } = require('treeverse') +const { getPaths: getBinPaths } = require('bin-links') const crypto = require('node:crypto') const { IsolatedNode, IsolatedLink } = require('../isolated-classes.js') const nameFromFolder = require('@npmcli/name-from-folder') @@ -473,11 +474,12 @@ module.exports = cls => class IsolatedReifier extends cls { return } - if (dep.package.bin) { - for (const bn in dep.package.bin) { - target.binPaths.push(join(dep.root.localPath, nmFolder, '.bin', bn)) - } - } + target.binPaths.push(...getBinPaths({ + pkg: dep.package, + path: join(dep.root.localPath, nmFolder, dep.name), + global: false, + top: false, + })) const pkg = { _id: dep.package._id, diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/case-insensitive-map.js b/deps/npm/node_modules/@npmcli/arborist/lib/case-insensitive-map.js index afc6afbe0f9..63badcecd86 100644 --- a/deps/npm/node_modules/@npmcli/arborist/lib/case-insensitive-map.js +++ b/deps/npm/node_modules/@npmcli/arborist/lib/case-insensitive-map.js @@ -2,6 +2,9 @@ // are case-insensitive and unicode-normalizing, so we need to treat // node.children.get('FOO') and node.children.get('foo') as the same thing. +// ASCII keys without uppercase letters are already normalized. +const needsNormalization = /[A-Z\u0080-\uffff]/ + module.exports = class CIMap extends Map { #keys = new Map() @@ -13,7 +16,7 @@ module.exports = class CIMap extends Map { } #normKey (key) { - if (typeof key !== 'string') { + if (typeof key !== 'string' || !needsNormalization.test(key)) { return key } return key.normalize('NFKD').toLowerCase() diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/edge.js b/deps/npm/node_modules/@npmcli/arborist/lib/edge.js index 83a9c18cb6a..5d6e7d2f83c 100644 --- a/deps/npm/node_modules/@npmcli/arborist/lib/edge.js +++ b/deps/npm/node_modules/@npmcli/arborist/lib/edge.js @@ -108,16 +108,16 @@ class Edge { return false } + // If there's no override we just use the spec. + if (!this.overrides?.keySpec) { + return depValid(node, this.spec, this.#accept, this.#from) + } + // NOTE: this condition means we explicitly do not support overriding // bundled or shrinkwrapped dependencies if (node.hasShrinkwrap || node.inShrinkwrap || node.inBundle) { return depValid(node, this.rawSpec, this.#accept, this.#from) } - - // If there's no override we just use the spec. - if (!this.overrides?.keySpec) { - return depValid(node, this.spec, this.#accept, this.#from) - } // There's some override. If the target node satisfies the overriding spec // then it's okay. if (depValid(node, this.spec, this.#accept, this.#from)) { diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/node.js b/deps/npm/node_modules/@npmcli/arborist/lib/node.js index 87b0ac41740..ee0df01cf4b 100644 --- a/deps/npm/node_modules/@npmcli/arborist/lib/node.js +++ b/deps/npm/node_modules/@npmcli/arborist/lib/node.js @@ -514,20 +514,25 @@ class Node { ) } - getBundler (path = []) { + getBundler (seen = new Set()) { + const isArray = Array.isArray(seen) // made a cycle, definitely not bundled! - if (path.includes(this)) { + if (isArray ? seen.includes(this) : seen.has(this)) { return null } - path.push(this) + if (isArray) { + seen.push(this) + } else { + seen.add(this) + } const parent = this[_parent] if (!parent) { return null } - const pBundler = parent.getBundler(path) + const pBundler = parent.getBundler(seen) if (pBundler) { return pBundler } @@ -544,7 +549,7 @@ class Node { // then they are not bundled. Ie, installing a package with // unmet bundled deps will not cause your deps to be bundled. for (const edge of this.edgesIn) { - const eBundler = edge.from.getBundler(path) + const eBundler = edge.from.getBundler(seen) if (!eBundler) { continue } @@ -1501,6 +1506,11 @@ class Node { } [_reloadNamedEdges] (name, rootLoc = this.location) { + if (!this.edgesOut.size && !this.children.size && !this.fsChildren.size) { + // With no outgoing edges or descendants, there is nothing to refresh or traverse. + return + } + const edge = this.edgesOut.get(name) // if we don't have an edge, do nothing, but keep descending const rootLocResolved = edge && edge.to && diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/unreviewed-scripts.js b/deps/npm/node_modules/@npmcli/arborist/lib/unreviewed-scripts.js index f7bed387845..e30a4540834 100644 --- a/deps/npm/node_modules/@npmcli/arborist/lib/unreviewed-scripts.js +++ b/deps/npm/node_modules/@npmcli/arborist/lib/unreviewed-scripts.js @@ -18,6 +18,7 @@ const collectUnreviewedScripts = async ({ ignoreScripts = false, dangerouslyAllowAllScripts = false, includeWhenIgnored = false, + skipExtraneous = false, } = {}) => { // With ignore-scripts set, no scripts run, so execution callers bail out // here. approve/deny pass includeWhenIgnored so they keep listing @@ -57,6 +58,10 @@ const collectUnreviewedScripts = async ({ // must not be flagged (npm/cli#9562). continue } + if (skipExtraneous && node.extraneous && !node.parent && node.linksIn?.size === 0) { + // Reify never installs disconnected extraneous nodes, so their scripts cannot run. + continue + } const verdict = isScriptAllowed(node, resolvedPolicy) if (verdict === true || verdict === false) { diff --git a/deps/npm/node_modules/@npmcli/arborist/package.json b/deps/npm/node_modules/@npmcli/arborist/package.json index feb07ad86ff..52fcde67069 100644 --- a/deps/npm/node_modules/@npmcli/arborist/package.json +++ b/deps/npm/node_modules/@npmcli/arborist/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/arborist", - "version": "9.9.3", + "version": "9.9.4", "description": "Manage node_modules trees", "dependencies": { "@gar/promise-retry": "^1.0.0", diff --git a/deps/npm/node_modules/@npmcli/config/lib/definitions/definitions.js b/deps/npm/node_modules/@npmcli/config/lib/definitions/definitions.js index 28be4cbd587..eb20294073a 100644 --- a/deps/npm/node_modules/@npmcli/config/lib/definitions/definitions.js +++ b/deps/npm/node_modules/@npmcli/config/lib/definitions/definitions.js @@ -2399,6 +2399,11 @@ const definitions = { Optional dependencies that cannot be installed on the current platform or engine (a non-matching \`os\`, \`cpu\`, or \`libc\`) are not flagged, because their install scripts never run. + + Installation checks skip unused entries with no package parent or + incoming links. Local link targets that installation can still rebuild + remain subject to this check. \`npm rebuild\` and \`npm install-scripts ls\` + still check unused packages on disk. `, flatten, }), diff --git a/deps/npm/node_modules/@npmcli/config/package.json b/deps/npm/node_modules/@npmcli/config/package.json index 546f7696afa..eaf731c9087 100644 --- a/deps/npm/node_modules/@npmcli/config/package.json +++ b/deps/npm/node_modules/@npmcli/config/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/config", - "version": "10.14.0", + "version": "10.14.1", "files": [ "bin/", "lib/" diff --git a/deps/npm/node_modules/libnpmdiff/package.json b/deps/npm/node_modules/libnpmdiff/package.json index c94bf2cfd54..b2bf371d4ee 100644 --- a/deps/npm/node_modules/libnpmdiff/package.json +++ b/deps/npm/node_modules/libnpmdiff/package.json @@ -1,6 +1,6 @@ { "name": "libnpmdiff", - "version": "8.1.14", + "version": "8.1.15", "description": "The registry diff", "repository": { "type": "git", @@ -47,7 +47,7 @@ "tap": "^16.3.8" }, "dependencies": { - "@npmcli/arborist": "^9.9.3", + "@npmcli/arborist": "^9.9.4", "@npmcli/installed-package-contents": "^4.0.0", "binary-extensions": "^3.0.0", "diff": "^8.0.2", diff --git a/deps/npm/node_modules/libnpmexec/lib/strict-allow-scripts-preflight.js b/deps/npm/node_modules/libnpmexec/lib/strict-allow-scripts-preflight.js index 579fd0c0fdd..383521fab8f 100644 --- a/deps/npm/node_modules/libnpmexec/lib/strict-allow-scripts-preflight.js +++ b/deps/npm/node_modules/libnpmexec/lib/strict-allow-scripts-preflight.js @@ -24,6 +24,7 @@ const strictAllowScriptsPreflight = async (arb, opts) => { policy: opts.allowScripts || null, ignoreScripts: opts.ignoreScripts, dangerouslyAllowAllScripts: opts.dangerouslyAllowAllScripts, + skipExtraneous: true, }) if (unreviewed.length === 0) { diff --git a/deps/npm/node_modules/libnpmexec/package.json b/deps/npm/node_modules/libnpmexec/package.json index 4a050f2e609..129044a6d92 100644 --- a/deps/npm/node_modules/libnpmexec/package.json +++ b/deps/npm/node_modules/libnpmexec/package.json @@ -1,6 +1,6 @@ { "name": "libnpmexec", - "version": "10.3.5", + "version": "10.3.6", "files": [ "bin/", "lib/" @@ -61,7 +61,7 @@ }, "dependencies": { "@gar/promise-retry": "^1.0.0", - "@npmcli/arborist": "^9.9.3", + "@npmcli/arborist": "^9.9.4", "@npmcli/package-json": "^7.0.0", "@npmcli/run-script": "^10.0.0", "ci-info": "^4.0.0", diff --git a/deps/npm/node_modules/libnpmfund/package.json b/deps/npm/node_modules/libnpmfund/package.json index a11ee6d5b98..b1fadf96153 100644 --- a/deps/npm/node_modules/libnpmfund/package.json +++ b/deps/npm/node_modules/libnpmfund/package.json @@ -1,6 +1,6 @@ { "name": "libnpmfund", - "version": "7.0.28", + "version": "7.0.29", "main": "lib/index.js", "files": [ "bin/", @@ -46,7 +46,7 @@ "tap": "^16.3.8" }, "dependencies": { - "@npmcli/arborist": "^9.9.3" + "@npmcli/arborist": "^9.9.4" }, "engines": { "node": "^20.17.0 || >=22.9.0" diff --git a/deps/npm/node_modules/libnpmpack/package.json b/deps/npm/node_modules/libnpmpack/package.json index e77a05ef6a1..571f1c1a776 100644 --- a/deps/npm/node_modules/libnpmpack/package.json +++ b/deps/npm/node_modules/libnpmpack/package.json @@ -1,6 +1,6 @@ { "name": "libnpmpack", - "version": "9.1.15", + "version": "9.1.16", "description": "Programmatic API for the bits behind npm pack", "author": "GitHub Inc.", "main": "lib/index.js", @@ -37,7 +37,7 @@ "bugs": "https://github.com/npm/libnpmpack/issues", "homepage": "https://npmjs.com/package/libnpmpack", "dependencies": { - "@npmcli/arborist": "^9.9.3", + "@npmcli/arborist": "^9.9.4", "@npmcli/run-script": "^10.0.0", "npm-package-arg": "^13.0.0", "pacote": "^21.0.2" diff --git a/deps/npm/package.json b/deps/npm/package.json index 49b1151d17d..be2e81b600a 100644 --- a/deps/npm/package.json +++ b/deps/npm/package.json @@ -1,5 +1,5 @@ { - "version": "11.21.2", + "version": "11.21.3", "name": "npm", "description": "a package manager for JavaScript", "workspaces": [ @@ -52,8 +52,8 @@ }, "dependencies": { "@isaacs/string-locale-compare": "^1.1.0", - "@npmcli/arborist": "^9.9.3", - "@npmcli/config": "^10.14.0", + "@npmcli/arborist": "^9.9.4", + "@npmcli/config": "^10.14.1", "@npmcli/fs": "^5.0.0", "@npmcli/map-workspaces": "^5.0.3", "@npmcli/metavuln-calculator": "^9.0.3", @@ -77,11 +77,11 @@ "is-cidr": "^6.0.4", "json-parse-even-better-errors": "^5.0.0", "libnpmaccess": "^10.0.3", - "libnpmdiff": "^8.1.14", - "libnpmexec": "^10.3.5", - "libnpmfund": "^7.0.28", + "libnpmdiff": "^8.1.15", + "libnpmexec": "^10.3.6", + "libnpmfund": "^7.0.29", "libnpmorg": "^8.0.1", - "libnpmpack": "^9.1.15", + "libnpmpack": "^9.1.16", "libnpmpublish": "^11.2.1", "libnpmsearch": "^9.0.1", "libnpmteam": "^8.0.2", diff --git a/deps/npm/tap-snapshots/test/lib/docs.js.test.cjs b/deps/npm/tap-snapshots/test/lib/docs.js.test.cjs index 25c42722d94..755f1307325 100644 --- a/deps/npm/tap-snapshots/test/lib/docs.js.test.cjs +++ b/deps/npm/tap-snapshots/test/lib/docs.js.test.cjs @@ -1971,6 +1971,11 @@ Optional dependencies that cannot be installed on the current platform or engine (a non-matching \`os\`, \`cpu\`, or \`libc\`) are not flagged, because their install scripts never run. +Installation checks skip unused entries with no package parent or incoming +links. Local link targets that installation can still rebuild remain subject +to this check. \`npm rebuild\` and \`npm install-scripts ls\` still check unused +packages on disk. + #### \`strict-peer-deps\` diff --git a/deps/npm/test/bin/windows-shims.js b/deps/npm/test/bin/windows-shims.js index a97caf7a7c8..5f9d224955d 100644 --- a/deps/npm/test/bin/windows-shims.js +++ b/deps/npm/test/bin/windows-shims.js @@ -177,7 +177,9 @@ t.test('run shims', t => { chmodSync(join(path, shim), 0o755) } - const { ProgramFiles = '/', SystemRoot = '/', NYC_CONFIG, WINDOWS_SHIMS_TEST } = process.env + const { + ProgramFiles = '/', SystemRoot = '/', NYC_CONFIG, WINDOWS_SHIMS_TEST, CYGWIN_ROOT, + } = process.env const skipDefault = WINDOWS_SHIMS_TEST || process.platform === 'win32' ? null : 'test not relevant on platform' @@ -188,13 +190,17 @@ t.test('run shims', t => { git: join(ProgramFiles, 'Git', 'bin', 'bash.exe'), 'user git': join(ProgramFiles, 'Git', 'usr', 'bin', 'bash.exe'), wsl: join(SystemRoot, 'System32', 'bash.exe'), - cygwin: resolve(SystemRoot, '/', 'cygwin64', 'bin', 'bash.exe'), + cygwin: CYGWIN_ROOT && join(CYGWIN_ROOT, 'bin', 'bash.exe'), }).map(([name, cmd]) => { let match = {} const skip = { reason: skipDefault, fail: WINDOWS_SHIMS_TEST } - const isBash = cmd.endsWith('bash.exe') + const isBash = name === 'cygwin' || cmd.endsWith('bash.exe') const testName = `${name} ${isBash ? 'bash' : ''}`.trim() + if (!skip.reason && name === 'cygwin' && !CYGWIN_ROOT) { + skip.reason = 'CYGWIN_ROOT is not set' + } + if (!skip.reason) { if (isBash) { try { diff --git a/deps/npm/test/fixtures/allow-scripts-orphan.js b/deps/npm/test/fixtures/allow-scripts-orphan.js new file mode 100644 index 00000000000..9276c573f4e --- /dev/null +++ b/deps/npm/test/fixtures/allow-scripts-orphan.js @@ -0,0 +1,32 @@ +const { workspaceMock } = require('./mock-npm.js') + +module.exports = (t, { workspace = true, allowScripts, requiredScripts = false } = {}) => { + const fixture = workspaceMock(t, { + workspaces: { app: { 'abbrev@1.0.0': {} } }, + }) + const pkg = JSON.parse(fixture['package.json']) + const lock = JSON.parse(fixture['package-lock.json']) + + if (!workspace) { + delete pkg.workspaces + pkg.dependencies = { app: 'file:app' } + lock.packages[''] = { ...pkg } + } + pkg.allowScripts = allowScripts + + // The missing intermediate directory leaves this orphan in the ideal-tree inventory. + lock.packages['app/node_modules/abbrev/node_modules/orphan'] = { + version: '1.0.0', + resolved: 'https://registry.npmjs.org/orphan/-/orphan-1.0.0.tgz', + hasInstallScript: true, + extraneous: true, + } + if (requiredScripts) { + lock.packages['node_modules/abbrev'].hasInstallScript = true + } + + delete fixture.node_modules + fixture['package.json'] = JSON.stringify(pkg) + fixture['package-lock.json'] = JSON.stringify(lock) + return fixture +} diff --git a/deps/npm/test/lib/commands/ci.js b/deps/npm/test/lib/commands/ci.js index bc645c5cc40..6f93a49bdda 100644 --- a/deps/npm/test/lib/commands/ci.js +++ b/deps/npm/test/lib/commands/ci.js @@ -6,6 +6,8 @@ const { loadNpmWithRegistry: loadMockNpm, workspaceMock, } = require('../../fixtures/mock-npm') +const orphanFixture = require('../../fixtures/allow-scripts-orphan.js') +const tspawk = require('../../fixtures/tspawk.js') // t.cleanSnapshot = str => str.replace(/ in [0-9ms]+/g, ' in {TIME}') @@ -258,6 +260,69 @@ t.test('should throw error when ideal inventory mismatches virtual', async t => t.equal(fs.existsSync(nmTestFile), true, 'does not remove node_modules') }) +t.test('ci with lockfile-only orphans', async t => { + tspawk(t) + const testOrphan = async (t, { + workspace = true, + allowScripts, + strict = true, + json = false, + } = {}) => { + const prefixDir = orphanFixture(t, { workspace, allowScripts }) + const { npm, registry, assert, logs, clearOutput, joinedOutput } = await loadMockNpm(t, { + config: { audit: false, fund: false, 'strict-allow-scripts': strict, json }, + prefixDir, + }) + const manifest = registry.manifest({ name: 'abbrev' }) + await registry.tarball({ + manifest: manifest.versions['1.0.0'], + tarball: path.join(npm.prefix, 'tarballs/abbrev@1.0.0'), + }) + + await npm.exec('ci', []) + + assert.packageInstalled('node_modules/abbrev@1.0.0') + assert.fileShouldNotExist('app/node_modules/abbrev/node_modules/orphan') + t.equal( + fs.readFileSync(path.join(npm.prefix, 'package-lock.json'), 'utf8'), + prefixDir['package-lock.json'], + 'does not change the lockfile' + ) + t.strictSame(logs.warn.byTitle('install-scripts'), [], 'no orphan warning') + if (json) { + t.notOk(Object.hasOwn(JSON.parse(joinedOutput()), 'unreviewedScripts'), 'no orphan entry') + } else { + clearOutput() + await npm.exec('install-scripts', ['ls']) + t.match(joinedOutput(), /No packages with unreviewed install scripts/) + } + } + + for (const workspace of [true, false]) { + for (const allowScripts of [undefined, { orphan: false }]) { + const source = workspace ? 'workspace' : 'file link' + const policy = allowScripts ? 'denied' : 'unreviewed' + for (const strict of [false, true]) { + await t.test(`${source}, ${policy} orphan, strict=${strict}`, + t => testOrphan(t, { workspace, allowScripts, strict })) + } + } + } + + await t.test('JSON excludes the orphan', t => testOrphan(t, { json: true })) + + await t.test('still rejects a required unreviewed package', async t => { + const { npm } = await loadMockNpm(t, { + config: { audit: false, 'strict-allow-scripts': true }, + prefixDir: orphanFixture(t, { requiredScripts: true }), + }) + await t.rejects(npm.exec('ci', []), { + code: 'ESTRICTALLOWSCRIPTS', + message: /1 package\(s\) have install scripts not covered by allowScripts:\n {2}abbrev@1\.0\.0/, + }) + }) +}) + t.test('should remove dirty node_modules with unhoisted workspace module', async t => { const { npm, registry, assert } = await loadMockNpm(t, { prefixDir: workspaceMock(t, { diff --git a/deps/npm/test/lib/commands/install-scripts.js b/deps/npm/test/lib/commands/install-scripts.js index e3c42ac2485..65e893c49bc 100644 --- a/deps/npm/test/lib/commands/install-scripts.js +++ b/deps/npm/test/lib/commands/install-scripts.js @@ -8,11 +8,17 @@ const mockNpm = async (t, opts = {}) => { return _mockNpm(t, opts) } -const setupProject = ({ allowScripts, withScripts = ['canvas'], noScripts = [] } = {}) => { +const setupProject = ({ + allowScripts, + withScripts = ['canvas'], + noScripts = [], + extraneous = false, +} = {}) => { const pkg = { name: 'host', version: '1.0.0', - dependencies: Object.fromEntries([...withScripts, ...noScripts].map((n) => [n, '*'])), + dependencies: extraneous ? {} + : Object.fromEntries([...withScripts, ...noScripts].map((n) => [n, '*'])), } if (allowScripts !== undefined) { pkg.allowScripts = allowScripts @@ -140,6 +146,29 @@ t.test('install-scripts ls lists unreviewed packages', async t => { t.match(out, /sharp@1\.0\.0/) }) +t.test('install-scripts ls lists extraneous packages on disk', async t => { + for (const json of [false, true]) { + await t.test(json ? 'json' : 'text', async t => { + const { npm, joinedOutput } = await mockNpm(t, { + prefixDir: setupProject({ extraneous: true }), + config: { json }, + }) + await npm.exec('install-scripts', ['ls']) + if (json) { + t.strictSame(JSON.parse(joinedOutput()), { + allowScripts: [{ + name: 'canvas', + changes: [{ key: 'canvas@1.0.0', change: 'pending' }], + }], + }) + } else { + t.match(joinedOutput(), /1 package has install scripts not yet covered by allowScripts/) + t.match(joinedOutput(), /canvas@1\.0\.0/) + } + }) + } +}) + t.test('install-scripts ls with no unreviewed says so', async t => { const { npm, joinedOutput } = await mockNpm(t, { prefixDir: setupProject({ allowScripts: { canvas: true }, withScripts: ['canvas'] }), diff --git a/deps/npm/test/lib/commands/install.js b/deps/npm/test/lib/commands/install.js index 2aa56a3dcd1..8d3f84fa440 100644 --- a/deps/npm/test/lib/commands/install.js +++ b/deps/npm/test/lib/commands/install.js @@ -16,6 +16,7 @@ const { loadNpmWithRegistry: loadMockNpm, workspaceMock, } = require('../../fixtures/mock-npm') +const orphanFixture = require('../../fixtures/allow-scripts-orphan.js') // tspawk calls preventUnmatched which assures that no scripts run if we don't mock any const spawk = tspawk(t) @@ -453,6 +454,134 @@ t.test('completion', async t => { }) }) +t.test('install with an extraneous local link', async t => { + const setup = (t, config = {}) => loadMockNpm(t, { + config: { audit: false, fund: false, 'package-lock': false, ...config }, + prefixDir: { + 'package.json': JSON.stringify({ name: 'host', version: '1.0.0' }), + foo: { + 'package.json': JSON.stringify({ + name: 'foo', + version: '1.0.0', + scripts: { install: 'echo linked-install' }, + }), + }, + node_modules: { foo: t.fixture('symlink', '../foo') }, + }, + }) + + await t.test('strict mode rejects a retained link target', async t => { + const { npm, assert } = await setup(t, { 'strict-allow-scripts': true }) + await t.rejects(npm.exec('install', []), { + code: 'ESTRICTALLOWSCRIPTS', + message: /foo@1\.0\.0/, + }) + assert.fileShouldExist('node_modules/foo/package.json') + }) + + await t.test('normal mode keeps the unreviewed-script warning', async t => { + const { npm, logs } = await setup(t) + spawk.spawn(/.*/, args => args.includes('echo linked-install')) + await npm.exec('install', []) + const warnings = logs.warn.byTitle('install-scripts').join('\n') + t.match(warnings, /1 package has install scripts not yet covered by allowScripts/) + t.match(warnings, /foo@1\.0\.0/) + }) + + await t.test('JSON keeps the unreviewed-script entry', async t => { + const { npm, joinedOutput } = await setup(t, { json: true }) + spawk.spawn(/.*/, args => args.includes('echo linked-install')) + await npm.exec('install', []) + t.strictSame(JSON.parse(joinedOutput()).unreviewedScripts, [{ + name: 'foo', + version: '1.0.0', + path: path.join(npm.prefix, 'foo'), + scripts: { install: 'echo linked-install' }, + }]) + }) + + await t.test('the bypass still rebuilds the retained link', async t => { + const { npm } = await setup(t, { + 'strict-allow-scripts': true, + 'dangerously-allow-all-scripts': true, + }) + let calls = 0 + spawk.spawn(/.*/, args => { + calls++ + return args.includes('echo linked-install') + }) + await npm.exec('install', []) + t.equal(calls, 1, 'ran the linked package install script') + }) + + await t.test('pruning the link does not reject or warn about its detached target', async t => { + const { npm, logs, assert } = await setup(t, { + 'strict-allow-scripts': true, + 'package-lock': true, + }) + await npm.exec('install', []) + assert.fileShouldNotExist('node_modules/foo') + assert.fileShouldExist('foo/package.json') + t.strictSame(logs.warn.byTitle('install-scripts'), []) + }) +}) + +t.test('install with lockfile-only orphans', async t => { + const testOrphan = async (t, { + workspace = true, + allowScripts, + strict = true, + json = false, + } = {}) => { + const { npm, registry, assert, logs, clearOutput, joinedOutput } = await loadMockNpm(t, { + config: { audit: false, fund: false, 'strict-allow-scripts': strict, json }, + prefixDir: orphanFixture(t, { workspace, allowScripts }), + }) + const manifest = registry.manifest({ name: 'abbrev' }) + await registry.tarball({ + manifest: manifest.versions['1.0.0'], + tarball: path.join(npm.prefix, 'tarballs/abbrev@1.0.0'), + }) + + await npm.exec('install', []) + + assert.packageInstalled('node_modules/abbrev@1.0.0') + assert.fileShouldNotExist('app/node_modules/abbrev/node_modules/orphan') + t.strictSame(logs.warn.byTitle('install-scripts'), [], 'no orphan warning') + if (json) { + t.notOk(Object.hasOwn(JSON.parse(joinedOutput()), 'unreviewedScripts'), 'no orphan entry') + } else { + clearOutput() + await npm.exec('install-scripts', ['ls']) + t.match(joinedOutput(), /No packages with unreviewed install scripts/) + } + } + + for (const workspace of [true, false]) { + for (const allowScripts of [undefined, { orphan: false }]) { + const source = workspace ? 'workspace' : 'file link' + const policy = allowScripts ? 'denied' : 'unreviewed' + for (const strict of [false, true]) { + await t.test(`${source}, ${policy} orphan, strict=${strict}`, + t => testOrphan(t, { workspace, allowScripts, strict })) + } + } + } + + await t.test('JSON excludes the orphan', t => testOrphan(t, { json: true })) + + await t.test('still rejects a required unreviewed package', async t => { + const { npm } = await loadMockNpm(t, { + config: { audit: false, 'strict-allow-scripts': true }, + prefixDir: orphanFixture(t, { requiredScripts: true }), + }) + await t.rejects(npm.exec('install', []), { + code: 'ESTRICTALLOWSCRIPTS', + message: /1 package\(s\) have install scripts not covered by allowScripts:\n {2}abbrev@1\.0\.0/, + }) + }) +}) + t.test('should install in workspace with unhoisted module', async t => { const { npm, registry, assert } = await loadMockNpm(t, { prefixDir: workspaceMock(t, { diff --git a/deps/npm/test/lib/commands/rebuild.js b/deps/npm/test/lib/commands/rebuild.js index 1336fa1e7f2..5f3037db4fd 100644 --- a/deps/npm/test/lib/commands/rebuild.js +++ b/deps/npm/test/lib/commands/rebuild.js @@ -244,6 +244,33 @@ t.test('emits Phase 1 advisory warning for unreviewed install scripts', async t ) }) +t.test('strict rebuild rejects extraneous packages on disk', async t => { + for (const args of [[], ['canvas']]) { + await t.test(args.length ? 'named package' : 'all packages', async t => { + const { npm, prefix } = await setupMockNpm(t, { + config: { 'strict-allow-scripts': true }, + prefixDir: { + 'package.json': JSON.stringify({ name: 'host', version: '1.0.0' }), + node_modules: { + canvas: { + 'package.json': JSON.stringify({ + name: 'canvas', + version: '1.0.0', + scripts: { install: "node -e \"require('fs').writeFileSync('ran', '')\"" }, + }), + }, + }, + }, + }) + await t.rejects(npm.exec('rebuild', args), { + code: 'ESTRICTALLOWSCRIPTS', + message: /canvas@1\.0\.0/, + }) + t.notOk(fs.existsSync(resolve(prefix, 'node_modules/canvas/ran')), 'script did not run') + }) + } +}) + t.test('global advisory warning points at npm config set, not approve-scripts', async t => { const { npm, logs } = await setupMockNpm(t, { config: { diff --git a/deps/npm/test/lib/utils/check-allow-scripts.js b/deps/npm/test/lib/utils/check-allow-scripts.js index c67ec2a7cd7..f7fe9c6367c 100644 --- a/deps/npm/test/lib/utils/check-allow-scripts.js +++ b/deps/npm/test/lib/utils/check-allow-scripts.js @@ -95,6 +95,29 @@ t.test('skips project root, workspace, and linked nodes', async t => { t.strictSame(result, []) }) +t.test('only skips extraneous nodes when requested', async t => { + const checkAllowScripts = mockCheck(t) + const orphan = { + ...node({ name: 'orphan', scripts: { install: 'x' }, isRegistryDependency: false }), + extraneous: true, + edgesIn: new Set(), + parent: null, + linksIn: new Set(), + } + for (const skipExtraneous of [undefined, false, true]) { + const result = await checkAllowScripts({ + arb: arb({ nodes: [orphan], allowScripts: { orphan: false } }), + npm: { flatOptions: {} }, + skipExtraneous, + }) + t.strictSame( + result.map(({ node: entry }) => entry), + skipExtraneous ? [] : [orphan], + `skipExtraneous=${skipExtraneous}` + ) + } +}) + t.test('skips nodes with no install-relevant scripts', async t => { const checkAllowScripts = mockCheck(t) const result = await checkAllowScripts({ diff --git a/deps/npm/test/lib/utils/is-windows.js b/deps/npm/test/lib/utils/is-windows.js new file mode 100644 index 00000000000..a8606da3a78 --- /dev/null +++ b/deps/npm/test/lib/utils/is-windows.js @@ -0,0 +1,65 @@ +const t = require('tap') +const { isGitBashMsystem } = require('../../../lib/utils/is-windows.js') + +t.test('isGitBashMsystem recognizes Git Bash / MSYS2 shells', t => { + t.equal(isGitBashMsystem('MINGW64'), true) + t.equal(isGitBashMsystem('MINGW32'), true) + t.equal(isGitBashMsystem('UCRT64'), true, 'Git for Windows 2.56+ default') + t.equal(isGitBashMsystem('CLANG64'), true) + t.equal(isGitBashMsystem('CLANG32'), true) + t.equal(isGitBashMsystem('CLANGARM64'), true) + t.equal(isGitBashMsystem('MSYS'), false) + t.equal(isGitBashMsystem('nogmingw'), false) + t.equal(isGitBashMsystem(undefined), false) + t.equal(isGitBashMsystem(''), false) + t.end() +}) + +t.test('isWindowsShell respects UCRT64 via fresh require', t => { + const path = require.resolve('../../../lib/utils/is-windows.js') + const origPlatform = Object.getOwnPropertyDescriptor(process, 'platform') + const origMsystem = process.env.MSYSTEM + const origTerm = process.env.TERM + + const load = (platform, msystem, term) => { + delete require.cache[path] + Object.defineProperty(process, 'platform', { value: platform, configurable: true }) + if (msystem === undefined) { + delete process.env.MSYSTEM + } else { + process.env.MSYSTEM = msystem + } + if (term === undefined) { + delete process.env.TERM + } else { + process.env.TERM = term + } + return require(path).isWindowsShell + } + + t.teardown(() => { + delete require.cache[path] + if (origPlatform) { + Object.defineProperty(process, 'platform', origPlatform) + } + if (origMsystem === undefined) { + delete process.env.MSYSTEM + } else { + process.env.MSYSTEM = origMsystem + } + if (origTerm === undefined) { + delete process.env.TERM + } else { + process.env.TERM = origTerm + } + }) + + t.equal(load('linux', undefined, undefined), false) + t.equal(load('win32', undefined, undefined), true) + t.equal(load('win32', 'MINGW64', undefined), false) + t.equal(load('win32', 'UCRT64', undefined), false, 'UCRT64 Git Bash is not cmd.exe') + t.equal(load('win32', 'CLANG64', undefined), false) + t.equal(load('win32', undefined, 'cygwin'), false) + t.equal(load('win32', 'nogmingw', undefined), true) + t.end() +}) diff --git a/deps/npm/test/lib/utils/reify-finish.js b/deps/npm/test/lib/utils/reify-finish.js index a1dd165034a..56ef51d75ab 100644 --- a/deps/npm/test/lib/utils/reify-finish.js +++ b/deps/npm/test/lib/utils/reify-finish.js @@ -23,8 +23,11 @@ const mockReififyFinish = async (t, { actualTree = {}, otherDirs = {}, ...config config, }) + let reportedScripts const reifyFinish = tmock(t, '{LIB}/utils/reify-finish.js', { - '{LIB}/utils/reify-output.js': () => {}, + '{LIB}/utils/reify-output.js': (_npm, _arb, { unreviewedScripts }) => { + reportedScripts = unreviewedScripts + }, }) await reifyFinish(mock.npm, { @@ -39,6 +42,7 @@ const mockReififyFinish = async (t, { actualTree = {}, otherDirs = {}, ...config return { builtinRc, + reportedScripts, ...mock, } } @@ -51,6 +55,31 @@ t.test('ok by default', async t => { t.strictSame(mock.builtinRc.data, { key: 'value' }) }) +t.test('only omits disconnected orphans from post-install reporting', async t => { + for (const strict of [false, true]) { + await t.test(`strict=${strict}`, async t => { + const candidate = (name, properties = {}) => ({ + name, + package: { name, version: '1.0.0', scripts: { install: `echo ${name}` } }, + extraneous: true, + parent: null, + linksIn: new Set(), + ...properties, + }) + const orphan = candidate('orphan') + const attached = candidate('attached', { parent: {} }) + const linked = candidate('linked', { linksIn: new Set([{}]) }) + const { reportedScripts } = await mockReififyFinish(t, { + 'strict-allow-scripts': strict, + actualTree: { + inventory: new Map([orphan, attached, linked].map(n => [n.name, n])), + }, + }) + t.strictSame(reportedScripts.map(({ node }) => node), [attached, linked]) + }) + } +}) + t.test('should not write if no global npm module', async t => { const mock = await mockReififyFinish(t, { global: true, diff --git a/deps/npm/test/lib/utils/strict-allow-scripts-preflight.js b/deps/npm/test/lib/utils/strict-allow-scripts-preflight.js index c67a6e4853a..d8115857b64 100644 --- a/deps/npm/test/lib/utils/strict-allow-scripts-preflight.js +++ b/deps/npm/test/lib/utils/strict-allow-scripts-preflight.js @@ -1,4 +1,8 @@ const t = require('tap') +const { join } = require('node:path') +const Arborist = require('@npmcli/arborist') +const { loadNpmWithRegistry } = require('../../fixtures/mock-npm.js') +const orphanFixture = require('../../fixtures/allow-scripts-orphan.js') const preflight = require('../../../lib/utils/strict-allow-scripts-preflight.js') @@ -24,9 +28,18 @@ const tree = (nodes) => ({ inventory: new Map(nodes.map((n, i) => [`node_modules/${n.name}-${i}`, n])), }) -const makeArb = ({ ideal, actual, allowScripts = null } = {}) => { +const orphan = () => ({ + ...node({ name: 'orphan' }), + extraneous: true, + isRegistryDependency: false, + edgesIn: new Set(), + parent: null, + linksIn: new Set(), +}) + +const makeArb = ({ ideal, actual, allowScripts = null, options = {} } = {}) => { const arb = { - options: { allowScripts, ignoreScripts: false }, + options: { allowScripts, ignoreScripts: false, ...options }, idealTree: ideal ?? null, actualTree: actual ?? null, } @@ -89,6 +102,99 @@ t.test('passes when the only unreviewed node is inert (platform-incompatible opt t.pass('no error thrown for inert node') }) +t.test('skips disconnected orphans when pruning is disabled', async t => { + for (const installStrategy of ['hoisted', 'linked']) { + await t.test(installStrategy, async t => { + const { npm, prefix, registry, assert } = await loadNpmWithRegistry(t, { + config: { + audit: false, + 'strict-allow-scripts': true, + 'install-strategy': installStrategy, + }, + prefixDir: orphanFixture(t, { allowScripts: { orphan: false } }), + }) + const opts = { + ...npm.flatOptions, + path: prefix, + prune: false, + allowScripts: { orphan: false }, + } + const arb = new Arborist(opts) + await arb.buildIdealTree(opts) + const location = 'app/node_modules/abbrev/node_modules/orphan' + const unused = arb.idealTree.inventory.get(location) + t.match(unused, { extraneous: true, parent: null }) + t.equal(unused.linksIn.size, 0, 'the orphan has no incoming links') + + await preflight({ arb, npm, idealTreeOpts: opts }) + + const manifest = registry.manifest({ name: 'abbrev' }) + await registry.tarball({ + manifest: manifest.versions['1.0.0'], + tarball: join(prefix, 'tarballs/abbrev@1.0.0'), + }) + await arb.reify(opts) + const installedPath = installStrategy === 'linked' ? 'app/node_modules' : 'node_modules' + assert.packageInstalled(`${installedPath}/abbrev@1.0.0`) + assert.fileShouldNotExist(location) + t.equal(arb.scriptsRun.size, 0, 'no install scripts ran') + const actual = await new Arborist(opts).loadActual() + t.notOk([...actual.inventory.values()].some(n => n.name === 'orphan'), + 'the installed tree has no orphan') + }) + } +}) + +t.test('skips orphans in a newly built ideal tree', async t => { + const arb = makeArb() + arb.buildIdealTree = async () => { + arb.idealTree = tree([orphan()]) + } + await t.resolves(preflight({ + arb, + npm: { flatOptions: { strictAllowScripts: true } }, + idealTreeOpts: {}, + })) + t.ok(arb.idealTree, 'built the ideal tree') +}) + +t.test('does not skip an extraneous target with an incoming link', async t => { + const target = { ...orphan(), linksIn: new Set([{}]) } + const arb = makeArb({ + ideal: tree([target]), + allowScripts: { orphan: false }, + options: { prune: false }, + }) + await t.rejects(preflight({ + arb, + npm: { flatOptions: { strictAllowScripts: true } }, + idealTreeOpts: { prune: false }, + }), { code: 'ESTRICTALLOWSCRIPTS', message: /orphan@1\.0\.0/ }) +}) + +t.test('skipping an orphan does not skip a required unreviewed package', async t => { + const arb = makeArb({ ideal: tree([orphan(), node({ name: 'required' })]) }) + await t.rejects(preflight({ + arb, + npm: { flatOptions: { strictAllowScripts: true } }, + idealTreeOpts: {}, + }), { + code: 'ESTRICTALLOWSCRIPTS', + message: /1 package\(s\) have install scripts not covered by allowScripts:\n {2}required@1\.0\.0/, + }) +}) + +t.test('does not skip actual-tree orphans even with an ideal tree', async t => { + const arb = makeArb({ + ideal: tree([]), + actual: tree([orphan()]), + }) + await t.rejects(preflight({ + arb, + npm: { flatOptions: { strictAllowScripts: true } }, + }), { code: 'ESTRICTALLOWSCRIPTS', message: /orphan@1\.0\.0/ }) +}) + t.test('passes when all install-script nodes are explicitly approved', async t => { const arb = makeArb({ ideal: tree([node({ name: 'canvas' })]),