From bc531d1860e822db4e12ef424073ce438234fbe5 Mon Sep 17 00:00:00 2001 From: Darcy Clarke Date: Thu, 1 Apr 2021 17:27:18 -0400 Subject: [PATCH] deps: upgrade npm to 7.8.0 PR-URL: https://github.com/nodejs/node/pull/38030 Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Ruy Adorno --- deps/npm/CHANGELOG.md | 49 + deps/npm/docs/content/commands/npm-docs.md | 13 + deps/npm/docs/content/commands/npm-repo.md | 13 + .../docs/content/commands/npm-set-script.md | 15 +- deps/npm/docs/content/commands/npm-view.md | 3 +- deps/npm/docs/content/using-npm/config.md | 6 +- deps/npm/docs/output/commands/npm-docs.html | 10 +- deps/npm/docs/output/commands/npm-ls.html | 2 +- deps/npm/docs/output/commands/npm-repo.html | 10 +- .../docs/output/commands/npm-set-script.html | 11 +- deps/npm/docs/output/commands/npm-view.html | 3 +- deps/npm/docs/output/commands/npm.html | 2 +- deps/npm/docs/output/using-npm/config.html | 4 +- deps/npm/lib/base-command.js | 1 + deps/npm/lib/docs.js | 16 + deps/npm/lib/exec.js | 12 +- deps/npm/lib/repo.js | 16 + deps/npm/lib/run-script.js | 15 +- deps/npm/lib/set-script.js | 81 +- deps/npm/lib/utils/config/definition.js | 57 +- deps/npm/lib/utils/config/definitions.js | 5 +- deps/npm/lib/utils/explain-eresolve.js | 11 +- deps/npm/lib/view.js | 186 +- deps/npm/man/man1/npm-access.1 | 2 +- deps/npm/man/man1/npm-adduser.1 | 2 +- deps/npm/man/man1/npm-audit.1 | 2 +- deps/npm/man/man1/npm-bin.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 | 2 +- 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-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 | 12 +- deps/npm/man/man1/npm-doctor.1 | 2 +- deps/npm/man/man1/npm-edit.1 | 2 +- deps/npm/man/man1/npm-exec.1 | 2 +- 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-help-search.1 | 2 +- deps/npm/man/man1/npm-help.1 | 2 +- deps/npm/man/man1/npm-hook.1 | 2 +- deps/npm/man/man1/npm-init.1 | 2 +- deps/npm/man/man1/npm-install-ci-test.1 | 2 +- deps/npm/man/man1/npm-install-test.1 | 2 +- deps/npm/man/man1/npm-install.1 | 2 +- deps/npm/man/man1/npm-link.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-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-rebuild.1 | 2 +- deps/npm/man/man1/npm-repo.1 | 12 +- deps/npm/man/man1/npm-restart.1 | 2 +- deps/npm/man/man1/npm-root.1 | 2 +- deps/npm/man/man1/npm-run-script.1 | 2 +- deps/npm/man/man1/npm-search.1 | 2 +- deps/npm/man/man1/npm-set-script.1 | 13 +- deps/npm/man/man1/npm-shrinkwrap.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-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 | 2 +- deps/npm/man/man1/npm-version.1 | 2 +- deps/npm/man/man1/npm-view.1 | 5 +- 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-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 | 8 +- deps/npm/man/man7/developers.7 | 2 +- deps/npm/man/man7/orgs.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 +- .../@npmcli/arborist/bin/lib/options.js | 8 +- .../arborist/lib/arborist/build-ideal-tree.js | 123 +- .../arborist/lib/arborist/load-actual.js | 30 +- .../@npmcli/arborist/lib/arborist/reify.js | 143 +- .../node_modules/@npmcli/arborist/lib/diff.js | 69 +- .../node_modules/@npmcli/arborist/lib/link.js | 20 +- .../node_modules/@npmcli/arborist/lib/node.js | 7 +- .../@npmcli/arborist/lib/printable.js | 9 + .../@npmcli/arborist/lib/tree-check.js | 47 +- .../@npmcli/arborist/package.json | 4 +- .../@npmcli/config/lib/set-envs.js | 4 +- .../node_modules/@npmcli/config/package.json | 2 +- .../json-stringify-nice/.github/FUNDING.yml | 3 - .../json-stringify-nice/.npmignore | 23 - .../node_modules/json-stringify-nice/index.js | 2 +- .../json-stringify-nice/package-lock.json | 3447 ----------------- .../json-stringify-nice/package.json | 7 +- .../tap-snapshots/test-basic.js-TAP.test.js | 127 - .../json-stringify-nice/test/basic.js | 68 - deps/npm/package.json | 6 +- ...b-utils-config-describe-all.js-TAP.test.js | 6 +- ...-lib-utils-explain-eresolve.js-TAP.test.js | 182 + .../test-lib-utils-npm-usage.js-TAP.test.js | 18 + .../test-lib-view.js-TAP.test.js | 257 ++ .../test/fixtures/eresolve-explanations.js | 209 +- deps/npm/test/lib/docs.js | 148 +- deps/npm/test/lib/load-all-commands.js | 9 +- deps/npm/test/lib/repo.js | 345 +- deps/npm/test/lib/set-script.js | 236 +- deps/npm/test/lib/utils/config/definition.js | 28 +- deps/npm/test/lib/view.js | 126 + 132 files changed, 2164 insertions(+), 4290 deletions(-) delete mode 100644 deps/npm/node_modules/json-stringify-nice/.github/FUNDING.yml delete mode 100644 deps/npm/node_modules/json-stringify-nice/.npmignore delete mode 100644 deps/npm/node_modules/json-stringify-nice/package-lock.json delete mode 100644 deps/npm/node_modules/json-stringify-nice/tap-snapshots/test-basic.js-TAP.test.js delete mode 100644 deps/npm/node_modules/json-stringify-nice/test/basic.js diff --git a/deps/npm/CHANGELOG.md b/deps/npm/CHANGELOG.md index b4fbc426b7811b..9e696a7c3e942c 100644 --- a/deps/npm/CHANGELOG.md +++ b/deps/npm/CHANGELOG.md @@ -1,3 +1,52 @@ +## v7.8.0 (2021-04-01) +### FEATURES + + +* [`8bcc5d73f`](https://github.com/npm/cli/commit/8bcc5d73f35434e781ff56419dd7f0c380efd072) + [#2972](https://github.com/npm/cli/issues/2972) + feat(workspaces): add repo and docs + ([@wraithgar](https://github.com/wraithgar)) +* [`ec520ce32`](https://github.com/npm/cli/commit/ec520ce32d5e834a32ebd58491df4200e01ce690) + [#2998](https://github.com/npm/cli/issues/2998) + feat(set-script): implement workspaces +* [`32717a60e`](https://github.com/npm/cli/commit/32717a60eb55fcf8c7e5016223bfee78a6daba0e) + [#3001](https://github.com/npm/cli/issues/3001) + feat(view): add workspace support + ([@wraithgar](https://github.com/wraithgar)) +* [`7b177e43f`](https://github.com/npm/cli/commit/7b177e43f3bfb558bcd8723cdb2166a3df19647a) + [#3014](https://github.com/npm/cli/issues/3014) + feat(config): add 'envExport' flag + ([@isaacs](https://github.com/isaacs)) + +### BUG FIXES + +* [`4c4252348`](https://github.com/npm/cli/commit/4c4252348c538246e1072421d65f4558dc948080) + [#3016](https://github.com/npm/cli/issues/3016) + fix(usage): specify the key each time for multiples + ([@isaacs](https://github.com/isaacs)) +* [`9237d375b`](https://github.com/npm/cli/commit/9237d375b0b7d34c7dc5ba70aec7f616f4133732) + [#3013](https://github.com/npm/cli/issues/3013) + fix(docs): add workspaces configuration + ([@wraithgar](https://github.com/wraithgar)) +* [`cb6eb0d20`](https://github.com/npm/cli/commit/cb6eb0d206b7e2f63d5c7a7a17bea4aed1b9f2bf) + [#3015](https://github.com/npm/cli/issues/3015) + fix(ERESOLVE): better errors when current is missing + ([@isaacs](https://github.com/isaacs)) + +### DEPENDENCIES + +* [`61da39beb`](https://github.com/npm/cli/commit/61da39beb5373320e2b591b61ecd6596eeaba6ed) + `@npmcli/config@2.1.0` + * feat(config): add support for envExport:false +* [`fb095a708`](https://github.com/npm/cli/commit/fb095a708a1f930bbd0195446ac611b82bfeff14) + `@npmcli/arborist@2.3.0`: + * [#2896](https://github.com/npm/cli/issues/2896) Provide currentEdge in + ERESOLVE if known, and address self-linking edge case. + * Add/remove dependencies to/from workspaces when set, not root project + * Only reify the portions of the dependency graph identified by the + `workspace` configuration value. + * Do not recursively `chown` the project root path. + ## v7.7.6 (2021-03-29) ### BUG FIXES diff --git a/deps/npm/docs/content/commands/npm-docs.md b/deps/npm/docs/content/commands/npm-docs.md index c66e5fc627d66c..d0971efa2e762b 100644 --- a/deps/npm/docs/content/commands/npm-docs.md +++ b/deps/npm/docs/content/commands/npm-docs.md @@ -41,6 +41,19 @@ Set to `true` to use default system URL opener. The base URL of the npm package registry. +#### workspaces + +Enables workspaces context while searching the `package.json` in the +current folder. Documentation urls for the packages named in each +workspace will be opened. + +#### workspace + +Enables workspaces context and limits results to only those specified by +this config item. Only the documentation urls for the packages named in +the workspaces given here will be opened. + + ### See Also * [npm view](/commands/npm-view) diff --git a/deps/npm/docs/content/commands/npm-repo.md b/deps/npm/docs/content/commands/npm-repo.md index 670345bece5c59..c3d0da3fdcf150 100644 --- a/deps/npm/docs/content/commands/npm-repo.md +++ b/deps/npm/docs/content/commands/npm-repo.md @@ -31,6 +31,19 @@ terminal. Set to `true` to use default system URL opener. +#### workspaces + +Enables workspaces context while searching the `package.json` in the +current folder. Repo urls for the packages named in each workspace will +be opened. + +#### workspace + +Enables workspaces context and limits results to only those specified by +this config item. Only the repo urls for the packages named in the +workspaces given here will be opened. + + ### See Also * [npm docs](/commands/npm-docs) diff --git a/deps/npm/docs/content/commands/npm-set-script.md b/deps/npm/docs/content/commands/npm-set-script.md index 7bc8f75d236537..73e61883c505b8 100644 --- a/deps/npm/docs/content/commands/npm-set-script.md +++ b/deps/npm/docs/content/commands/npm-set-script.md @@ -5,7 +5,7 @@ description: Set tasks in the scripts section of package.json --- ### Synopsis -An npm command that lets you create a task in the scripts section of the package.json. +An npm command that lets you create a task in the `scripts` section of the `package.json`. ```bash npm set-script [