From 5c83cbe74e8f67ad4235b3878f6e05ab12b3ca35 Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Thu, 15 Apr 2021 21:53:45 -0400 Subject: [PATCH] deps: upgrade npm to 7.10.0 --- deps/npm/CHANGELOG.md | 33 ++ deps/npm/CONTRIBUTING.md | 4 + deps/npm/docs/content/commands/npm-bugs.md | 6 +- deps/npm/docs/content/commands/npm-version.md | 83 +-- deps/npm/docs/output/commands/npm-bugs.html | 6 +- deps/npm/docs/output/commands/npm-ls.html | 2 +- .../npm/docs/output/commands/npm-version.html | 71 ++- deps/npm/docs/output/commands/npm.html | 2 +- deps/npm/lib/base-command.js | 20 +- deps/npm/lib/bugs.js | 3 + deps/npm/lib/utils/config/definitions.js | 1 + deps/npm/lib/version.js | 78 ++- deps/npm/lib/workspaces/get-workspaces.js | 3 + deps/npm/man/man1/npm-bugs.1 | 6 +- deps/npm/man/man1/npm-ls.1 | 2 +- deps/npm/man/man1/npm-version.1 | 111 ++-- deps/npm/man/man1/npm.1 | 2 +- .../npm/node_modules/@npmcli/git/lib/clone.js | 94 ++-- deps/npm/node_modules/@npmcli/git/lib/env.js | 33 -- deps/npm/node_modules/@npmcli/git/lib/find.js | 18 +- .../npm/node_modules/@npmcli/git/lib/index.js | 2 +- .../node_modules/@npmcli/git/lib/is-clean.js | 6 +- .../@npmcli/git/lib/lines-to-revs.js | 52 +- deps/npm/node_modules/@npmcli/git/lib/opts.js | 10 +- deps/npm/node_modules/@npmcli/git/lib/revs.js | 16 +- .../npm/node_modules/@npmcli/git/lib/spawn.js | 28 +- .../npm/node_modules/@npmcli/git/lib/utils.js | 3 + .../npm/node_modules/@npmcli/git/lib/which.js | 13 +- .../npm/node_modules/@npmcli/git/package.json | 25 +- .../node_modules/balanced-match/.npmignore | 5 - .../npm/node_modules/balanced-match/README.md | 6 + deps/npm/node_modules/balanced-match/index.js | 3 + .../node_modules/balanced-match/package.json | 7 +- deps/npm/node_modules/just-diff/package.json | 5 +- .../node_modules/libnpmversion/lib/commit.js | 11 +- .../libnpmversion/lib/enforce-clean.js | 11 +- .../node_modules/libnpmversion/lib/index.js | 4 +- .../libnpmversion/lib/read-json.js | 2 +- .../libnpmversion/lib/retrieve-tag.js | 12 +- .../npm/node_modules/libnpmversion/lib/tag.js | 20 +- .../node_modules/libnpmversion/lib/version.js | 38 +- .../libnpmversion/lib/write-json.js | 4 +- .../node_modules/libnpmversion/package.json | 17 +- deps/npm/node_modules/mime-db/HISTORY.md | 7 + deps/npm/node_modules/mime-db/README.md | 2 - deps/npm/node_modules/mime-db/db.json | 24 +- deps/npm/node_modules/mime-db/package.json | 12 +- deps/npm/node_modules/mime-types/HISTORY.md | 8 + deps/npm/node_modules/mime-types/package.json | 8 +- deps/npm/package.json | 8 +- .../index.js.test.cjs} | 8 +- .../test-lib-link.js-TAP.test.js | 30 - .../test-lib-outdated.js-TAP.test.js | 154 ----- .../test-tap-repo.js-TAP.test.js | 21 - .../lib/config.js.test.cjs} | 40 +- .../lib/dist-tag.js.test.cjs} | 29 +- .../lib/fund.js.test.cjs} | 0 .../lib/init.js.test.cjs} | 0 .../tap-snapshots/test/lib/link.js.test.cjs | 30 + .../lib/ls.js.test.cjs} | 358 ++++++------ .../test/lib/outdated.js.test.cjs | 154 +++++ .../lib/owner.js.test.cjs} | 0 .../lib/profile.js.test.cjs} | 0 .../lib/publish.js.test.cjs} | 0 .../lib/search.js.test.cjs} | 6 +- .../lib/stars.js.test.cjs} | 0 .../lib/team.js.test.cjs} | 0 .../lib/utils/cmd-list.js.test.cjs} | 0 .../lib/utils/config/definition.js.test.cjs} | 0 .../lib/utils/config/definitions.js.test.cjs} | 0 .../utils/config/describe-all.js.test.cjs} | 0 .../lib/utils/config/index.js.test.cjs} | 0 .../lib/utils/error-handler.js.test.cjs} | 0 .../lib/utils/error-message.js.test.cjs} | 349 ++++++++++-- .../lib/utils/explain-dep.js.test.cjs} | 0 .../lib/utils/explain-eresolve.js.test.cjs} | 0 .../lib/utils/npm-usage.js.test.cjs} | 527 +++++++++--------- .../lib/utils/open-url.js.test.cjs} | 0 .../lib/utils/reify-finish.js.test.cjs} | 0 .../lib/utils/reify-output.js.test.cjs} | 0 .../lib/utils/tar.js.test.cjs} | 18 +- .../lib/utils/update-notifier.js.test.cjs} | 0 .../lib/view.js.test.cjs} | 0 deps/npm/test/bin/npm-cli.js | 3 +- deps/npm/test/bin/npx-cli.js | 18 +- deps/npm/test/lib/access.js | 97 ++-- deps/npm/test/lib/adduser.js | 31 +- deps/npm/test/lib/audit.js | 7 +- deps/npm/test/lib/auth/legacy.js | 37 +- deps/npm/test/lib/auth/oauth.js | 7 +- deps/npm/test/lib/auth/saml.js | 7 +- deps/npm/test/lib/auth/sso.js | 25 +- deps/npm/test/lib/bin.js | 23 +- deps/npm/test/lib/bugs.js | 17 +- deps/npm/test/lib/cache.js | 13 +- deps/npm/test/lib/ci.js | 29 +- deps/npm/test/lib/cli.js | 3 +- deps/npm/test/lib/completion.js | 49 +- deps/npm/test/lib/config.js | 47 +- deps/npm/test/lib/dedupe.js | 15 +- deps/npm/test/lib/deprecate.js | 17 +- deps/npm/test/lib/diff.js | 16 +- deps/npm/test/lib/dist-tag.js | 74 ++- deps/npm/test/lib/docs.js | 7 +- deps/npm/test/lib/doctor.js | 15 +- deps/npm/test/lib/edit.js | 17 +- deps/npm/test/lib/exec.js | 14 +- deps/npm/test/lib/explain.js | 10 +- deps/npm/test/lib/explore.js | 30 +- deps/npm/test/lib/fund.js | 103 ++-- deps/npm/test/lib/get.js | 7 +- deps/npm/test/lib/help-search.js | 17 +- deps/npm/test/lib/help.js | 35 +- deps/npm/test/lib/hook.js | 49 +- deps/npm/test/lib/init.js | 44 +- deps/npm/test/lib/install-ci-test.js | 3 +- deps/npm/test/lib/install-test.js | 3 +- deps/npm/test/lib/install.js | 35 +- deps/npm/test/lib/link.js | 13 +- deps/npm/test/lib/ll.js | 5 +- deps/npm/test/lib/load-all-commands.js | 7 +- deps/npm/test/lib/logout.js | 29 +- deps/npm/test/lib/ls.js | 233 ++++---- deps/npm/test/lib/npm.js | 27 +- deps/npm/test/lib/org.js | 53 +- deps/npm/test/lib/outdated.js | 18 +- deps/npm/test/lib/owner.js | 27 +- deps/npm/test/lib/pack.js | 16 +- deps/npm/test/lib/ping.js | 21 +- deps/npm/test/lib/prefix.js | 2 +- deps/npm/test/lib/profile.js | 72 ++- deps/npm/test/lib/prune.js | 7 +- deps/npm/test/lib/publish.js | 38 +- deps/npm/test/lib/rebuild.js | 3 +- deps/npm/test/lib/repo.js | 7 +- deps/npm/test/lib/root.js | 2 +- deps/npm/test/lib/run-script.js | 28 +- deps/npm/test/lib/search.js | 16 +- deps/npm/test/lib/set-script.js | 25 +- deps/npm/test/lib/set.js | 3 +- deps/npm/test/lib/shrinkwrap.js | 28 +- deps/npm/test/lib/star.js | 8 +- deps/npm/test/lib/stars.js | 6 +- deps/npm/test/lib/team.js | 42 +- deps/npm/test/lib/test.js | 3 +- deps/npm/test/lib/token.js | 97 ++-- deps/npm/test/lib/uninstall.js | 8 +- deps/npm/test/lib/unpublish.js | 42 +- deps/npm/test/lib/unstar.js | 5 +- deps/npm/test/lib/update.js | 24 +- deps/npm/test/lib/utils/audit-error.js | 3 +- deps/npm/test/lib/utils/cleanup-log-files.js | 3 +- .../lib/utils/completion/installed-deep.js | 21 +- .../lib/utils/completion/installed-shallow.js | 3 +- deps/npm/test/lib/utils/config/definitions.js | 53 +- deps/npm/test/lib/utils/did-you-mean.js | 3 +- deps/npm/test/lib/utils/error-handler.js | 41 +- deps/npm/test/lib/utils/error-message.js | 42 +- deps/npm/test/lib/utils/explain-dep.js | 3 +- deps/npm/test/lib/utils/explain-eresolve.js | 3 +- deps/npm/test/lib/utils/file-exists.js | 8 +- deps/npm/test/lib/utils/get-identity.js | 23 +- deps/npm/test/lib/utils/npm-usage.js | 3 +- deps/npm/test/lib/utils/open-url.js | 35 +- deps/npm/test/lib/utils/otplease.js | 17 +- deps/npm/test/lib/utils/path.js | 7 +- deps/npm/test/lib/utils/ping.js | 11 +- deps/npm/test/lib/utils/proc-log-listener.js | 3 +- deps/npm/test/lib/utils/pulse-till-done.js | 7 +- deps/npm/test/lib/utils/read-local-package.js | 11 +- deps/npm/test/lib/utils/read-user-info.js | 17 +- deps/npm/test/lib/utils/reify-finish.js | 5 +- deps/npm/test/lib/utils/reify-output.js | 4 +- deps/npm/test/lib/utils/replace-info.js | 4 +- deps/npm/test/lib/utils/setup-log.js | 6 +- .../npm/test/lib/utils/split-package-names.js | 4 +- deps/npm/test/lib/utils/tar.js | 15 +- deps/npm/test/lib/utils/unsupported.js | 14 +- deps/npm/test/lib/utils/update-notifier.js | 7 +- deps/npm/test/lib/version.js | 188 ++++++- deps/npm/test/lib/view.js | 51 +- deps/npm/test/lib/whoami.js | 15 +- .../npm/test/lib/workspaces/get-workspaces.js | 16 +- 183 files changed, 2850 insertions(+), 2306 deletions(-) delete mode 100644 deps/npm/node_modules/@npmcli/git/lib/env.js create mode 100644 deps/npm/node_modules/@npmcli/git/lib/utils.js delete mode 100644 deps/npm/node_modules/balanced-match/.npmignore rename deps/npm/tap-snapshots/{smoke-tests-index.js-TAP.test.js => smoke-tests/index.js.test.cjs} (98%) delete mode 100644 deps/npm/tap-snapshots/test-lib-link.js-TAP.test.js delete mode 100644 deps/npm/tap-snapshots/test-lib-outdated.js-TAP.test.js delete mode 100644 deps/npm/tap-snapshots/test-tap-repo.js-TAP.test.js rename deps/npm/tap-snapshots/{test-lib-config.js-TAP.test.js => test/lib/config.js.test.cjs} (90%) rename deps/npm/tap-snapshots/{test-lib-dist-tag.js-TAP.test.js => test/lib/dist-tag.js.test.cjs} (92%) rename deps/npm/tap-snapshots/{test-lib-fund.js-TAP.test.js => test/lib/fund.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-init.js-TAP.test.js => test/lib/init.js.test.cjs} (100%) create mode 100644 deps/npm/tap-snapshots/test/lib/link.js.test.cjs rename deps/npm/tap-snapshots/{test-lib-ls.js-TAP.test.js => test/lib/ls.js.test.cjs} (51%) create mode 100644 deps/npm/tap-snapshots/test/lib/outdated.js.test.cjs rename deps/npm/tap-snapshots/{test-lib-owner.js-TAP.test.js => test/lib/owner.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-profile.js-TAP.test.js => test/lib/profile.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-publish.js-TAP.test.js => test/lib/publish.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-search.js-TAP.test.js => test/lib/search.js.test.cjs} (95%) rename deps/npm/tap-snapshots/{test-lib-stars.js-TAP.test.js => test/lib/stars.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-team.js-TAP.test.js => test/lib/team.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-cmd-list.js-TAP.test.js => test/lib/utils/cmd-list.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-config-definition.js-TAP.test.js => test/lib/utils/config/definition.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-config-definitions.js-TAP.test.js => test/lib/utils/config/definitions.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-config-describe-all.js-TAP.test.js => test/lib/utils/config/describe-all.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-config-index.js-TAP.test.js => test/lib/utils/config/index.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-error-handler.js-TAP.test.js => test/lib/utils/error-handler.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-error-message.js-TAP.test.js => test/lib/utils/error-message.js.test.cjs} (67%) rename deps/npm/tap-snapshots/{test-lib-utils-explain-dep.js-TAP.test.js => test/lib/utils/explain-dep.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-explain-eresolve.js-TAP.test.js => test/lib/utils/explain-eresolve.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-npm-usage.js-TAP.test.js => test/lib/utils/npm-usage.js.test.cjs} (81%) rename deps/npm/tap-snapshots/{test-lib-utils-open-url.js-TAP.test.js => test/lib/utils/open-url.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-reify-finish.js-TAP.test.js => test/lib/utils/reify-finish.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-reify-output.js-TAP.test.js => test/lib/utils/reify-output.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-tar.js-TAP.test.js => test/lib/utils/tar.js.test.cjs} (55%) rename deps/npm/tap-snapshots/{test-lib-utils-update-notifier.js-TAP.test.js => test/lib/utils/update-notifier.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-view.js-TAP.test.js => test/lib/view.js.test.cjs} (100%) diff --git a/deps/npm/CHANGELOG.md b/deps/npm/CHANGELOG.md index 8155d019159f5b..bbc9785efcd46b 100644 --- a/deps/npm/CHANGELOG.md +++ b/deps/npm/CHANGELOG.md @@ -1,3 +1,36 @@ +## v7.10.0 (2021-04-15) + +### FEATURES + +* [`f9b639eb6`](https://github.com/npm/cli/commit/f9b639eb6c504ded6cdd59e83e26a392bfe81e5d) + [#3052](https://github.com/npm/cli/issues/3052) + feat(bugs): fall back to email if provided + ([@Yash-Singh1](https://github.com/Yash-Singh1)) +* [`8c9e24778`](https://github.com/npm/cli/commit/8c9e24778db867cb3148bc247c7e321639aa9f58) + [#3055](https://github.com/npm/cli/issues/3055) + feat(version): add workspace support + ([@wraithgar](https://github.com/wraithgar)) + +### DEPENDENCIES + +* [`f1e6743a6`](https://github.com/npm/cli/commit/f1e6743a6e8e32ddad6d1964eb05d17e6c50a456) + `libnpmversion@1.2.0` + * feat(retrieve-tag): retrieve unannotated git tags + * fix(retrieve-tag): use semver to look for semver +* [`3b476a24c`](https://github.com/npm/cli/commit/3b476a24cf0b2823fdf92505b84bddde4fcc8b14) + `@npmcl/git@2.0.8` + * fix(git): do not use shell when calling git +* [`dfcd0c1e2`](https://github.com/npm/cli/commit/dfcd0c1e2331c1f4b6573466b50505772eddaf22) + [#3069](https://github.com/npm/cli/issues/3069) + `tap@15.0.2` + +### DOCUMENTATION + +* [`90b61eda9`](https://github.com/npm/cli/commit/90b61eda9b41af108ed69fc0c43a522a92745047) + [#3053](https://github.com/npm/cli/issues/3053) + fix(contributing.md): explicitely outline dep updates + ([@darcyclarke](https://github.com/darcyclarke)) + ## v7.9.0 (2021-04-08) ### FEATURES diff --git a/deps/npm/CONTRIBUTING.md b/deps/npm/CONTRIBUTING.md index 4116f4e71d057c..6821da895b3b51 100644 --- a/deps/npm/CONTRIBUTING.md +++ b/deps/npm/CONTRIBUTING.md @@ -51,6 +51,10 @@ We've set up an automated [benchmark](https://github.com/npm/benchmarks) integra You can learn more about this tool, including how to run & configure it manually, [here](https://github.com/npm/benchmarks) +## Dependency Updates + +It should be noted that our team does not accept third-party dependency updates/PRs. We have a [release process](https://github.com/npm/cli/wiki/Release-Process) that includes checks to ensure dependencies are staying up-to-date & will ship security patches for CVEs as they occur. If you submit a PR trying to update our dependencies we will close it with or without a reference to these contribution guidelines. + ## Reporting Bugs When submitting a new bug report, please first [search](https://github.com/npm/cli/issues) for an existing or similar report & then use one of our existing [issue templates](https://github.com/npm/cli/issues/new/choose) if you believe you've come across a unique problem. Duplicate issues, or issues that don't use one of our templates may get closed without a response. diff --git a/deps/npm/docs/content/commands/npm-bugs.md b/deps/npm/docs/content/commands/npm-bugs.md index dd1ab299f9c550..714db4440cdf25 100644 --- a/deps/npm/docs/content/commands/npm-bugs.md +++ b/deps/npm/docs/content/commands/npm-bugs.md @@ -15,9 +15,9 @@ aliases: issues ### Description This command tries to guess at the likely location of a package's bug -tracker URL, and then tries to open it using the `--browser` config param. -If no package name is provided, it will search for a `package.json` in the -current folder and use the `name` property. +tracker URL or the `mailto` URL of the support email, and then tries to +open it using the `--browser` config param. If no package name is provided, it +will search for a `package.json` in the current folder and use the `name` property. ### Configuration diff --git a/deps/npm/docs/content/commands/npm-version.md b/deps/npm/docs/content/commands/npm-version.md index 0eb814b9899b0f..cdf0f977f503d0 100644 --- a/deps/npm/docs/content/commands/npm-version.md +++ b/deps/npm/docs/content/commands/npm-version.md @@ -14,6 +14,56 @@ npm version [ | major | minor | patch | premajor | preminor | prepat 'npm ls' to inspect current package/dependency versions ``` +### Configuration + +#### `allow-same-version` + +* Default: `false` +* Type: Boolean + +Prevents throwing an error when `npm version` is used to set the new version +to the same value as the current version. + +#### `git-tag-version` + +* Default: `true` +* Type: Boolean + +Commit and tag the version change. + +#### `commit-hooks` + +* Default: `true` +* Type: Boolean + +Run git commit hooks when committing the version change. + +#### `sign-git-tag` + +* Default: `false` +* Type: Boolean + +Pass the `-s` flag to git to sign the tag. + +Note that you must have a default GPG key set up in your git config for this to work properly. + +#### workspaces + +* Default: `false` +* Type: Boolean + +Enables workspaces context and includes workspaces in reported output +when getting versions. When setting a new version *only the workspaces +will be changed*. + +#### workspace + +* Default: [] +* Type: Array + +Enables workspaces context and limits results to only those specified by +this config item. + ### Description Run this in a package directory to bump the version and write the new @@ -87,39 +137,6 @@ This runs all your tests and proceeds only if they pass. Then runs your `build` adds everything in the `dist` directory to the commit. After the commit, it pushes the new commit and tag up to the server, and deletes the `build/temp` directory. -### Configuration - -#### `allow-same-version` - -* Default: `false` -* Type: Boolean - -Prevents throwing an error when `npm version` is used to set the new version -to the same value as the current version. - -#### `git-tag-version` - -* Default: `true` -* Type: Boolean - -Commit and tag the version change. - -#### `commit-hooks` - -* Default: `true` -* Type: Boolean - -Run git commit hooks when committing the version change. - -#### `sign-git-tag` - -* Default: `false` -* Type: Boolean - -Pass the `-s` flag to git to sign the tag. - -Note that you must have a default GPG key set up in your git config for this to work properly. - ### See Also * [npm init](/commands/npm-init) diff --git a/deps/npm/docs/output/commands/npm-bugs.html b/deps/npm/docs/output/commands/npm-bugs.html index 4fdde0a0c6c988..66789ca40b62a3 100644 --- a/deps/npm/docs/output/commands/npm-bugs.html +++ b/deps/npm/docs/output/commands/npm-bugs.html @@ -151,9 +151,9 @@

Table of contents

Description

This command tries to guess at the likely location of a package’s bug -tracker URL, and then tries to open it using the --browser config param. -If no package name is provided, it will search for a package.json in the -current folder and use the name property.

+tracker URL or the mailto URL of the support email, and then tries to +open it using the --browser config param. If no package name is provided, it +will search for a package.json in the current folder and use the name property.

Configuration

browser