From c0ef0d5a66e079349803fb8890f98745919d4803 Mon Sep 17 00:00:00 2001 From: npm team Date: Thu, 20 Jan 2022 22:08:53 +0000 Subject: deps: upgrade npm to 8.3.2 PR-URL: https://github.com/nodejs/node/pull/41621 Reviewed-By: Ruy Adorno Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Richard Lau --- deps/npm/docs/content/commands/npm-dedupe.md | 6 ++++++ deps/npm/docs/content/commands/npm-update.md | 6 ++++++ deps/npm/docs/content/using-npm/config.md | 9 ++++++--- deps/npm/docs/output/commands/npm-dedupe.html | 5 +++++ deps/npm/docs/output/commands/npm-ls.html | 2 +- deps/npm/docs/output/commands/npm-update.html | 5 +++++ deps/npm/docs/output/commands/npm.html | 2 +- deps/npm/docs/output/using-npm/config.html | 8 +++++--- 8 files changed, 35 insertions(+), 8 deletions(-) (limited to 'deps/npm/docs') diff --git a/deps/npm/docs/content/commands/npm-dedupe.md b/deps/npm/docs/content/commands/npm-dedupe.md index 377e17d814a..53d2e64272a 100644 --- a/deps/npm/docs/content/commands/npm-dedupe.md +++ b/deps/npm/docs/content/commands/npm-dedupe.md @@ -72,6 +72,12 @@ result in new modules being installed. Using `npm find-dupes` will run the command in `--dry-run` mode. +Note that by default `npm dedupe` will not update the semver values of direct +dependencies in your project `package.json`, if you want to also update +values in `package.json` you can run: `npm dedupe --save` (or add the +`save=true` option to a [configuration file](/configuring-npm/npmrc) +to make that the default behavior). + ### Configuration diff --git a/deps/npm/docs/content/commands/npm-update.md b/deps/npm/docs/content/commands/npm-update.md index ad02118e468..1889d60569f 100644 --- a/deps/npm/docs/content/commands/npm-update.md +++ b/deps/npm/docs/content/commands/npm-update.md @@ -27,6 +27,12 @@ packages. If no package name is specified, all packages in the specified location (global or local) will be updated. +Note that by default `npm update` will not update the semver values of direct +dependencies in your project `package.json`, if you want to also update +values in `package.json` you can run: `npm update --save` (or add the +`save=true` option to a [configuration file](/configuring-npm/npmrc) +to make that the default behavior). + ### Example For the examples below, assume that the current package is `app` and it depends diff --git a/deps/npm/docs/content/using-npm/config.md b/deps/npm/docs/content/using-npm/config.md index fe197e344db..83a385e0834 100644 --- a/deps/npm/docs/content/using-npm/config.md +++ b/deps/npm/docs/content/using-npm/config.md @@ -1326,13 +1326,16 @@ The base URL of the npm registry. #### `save` -* Default: true +* Default: `true` unless when using `npm update` or `npm dedupe` where it + defaults to `false` * Type: Boolean -Save installed packages to a package.json file as dependencies. +Save installed packages to a `package.json` file as dependencies. When used with the `npm rm` command, removes the dependency from -package.json. +`package.json`. + +Will also prevent writing to `package-lock.json` if set to `false`. diff --git a/deps/npm/docs/output/commands/npm-dedupe.html b/deps/npm/docs/output/commands/npm-dedupe.html index ea811c28e94..a31af824b20 100644 --- a/deps/npm/docs/output/commands/npm-dedupe.html +++ b/deps/npm/docs/output/commands/npm-dedupe.html @@ -192,6 +192,11 @@ sufficient.

Note that this operation transforms the dependency tree, but will never result in new modules being installed.

Using npm find-dupes will run the command in --dry-run mode.

+

Note that by default npm dedupe will not update the semver values of direct +dependencies in your project package.json, if you want to also update +values in package.json you can run: npm dedupe --save (or add the +save=true option to a configuration file +to make that the default behavior).

Configuration

diff --git a/deps/npm/docs/output/commands/npm-ls.html b/deps/npm/docs/output/commands/npm-ls.html index 3ad752bcac4..341a3fee9da 100644 --- a/deps/npm/docs/output/commands/npm-ls.html +++ b/deps/npm/docs/output/commands/npm-ls.html @@ -160,7 +160,7 @@ tree at all, use npm explain 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@8.3.1 /path/to/npm
+
npm@8.3.2 /path/to/npm
 └─┬ init-package-json@0.0.4
   └── promzard@0.1.5
 
diff --git a/deps/npm/docs/output/commands/npm-update.html b/deps/npm/docs/output/commands/npm-update.html index 065feee3eb3..6185df91e8d 100644 --- a/deps/npm/docs/output/commands/npm-update.html +++ b/deps/npm/docs/output/commands/npm-update.html @@ -160,6 +160,11 @@ package).

packages.

If no package name is specified, all packages in the specified location (global or local) will be updated.

+

Note that by default npm update will not update the semver values of direct +dependencies in your project package.json, if you want to also update +values in package.json you can run: npm update --save (or add the +save=true option to a configuration file +to make that the default behavior).

Example

For the examples below, assume that the current package is app and it depends on dependencies, dep1 (dep2, .. etc.). The published versions of dep1 diff --git a/deps/npm/docs/output/commands/npm.html b/deps/npm/docs/output/commands/npm.html index 044d90faec6..ab49c472ab6 100644 --- a/deps/npm/docs/output/commands/npm.html +++ b/deps/npm/docs/output/commands/npm.html @@ -149,7 +149,7 @@ npm command-line interface

npm <command> [args]
 

Version

-

8.3.1

+

8.3.2

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 diff --git a/deps/npm/docs/output/using-npm/config.html b/deps/npm/docs/output/using-npm/config.html index f3db847b48a..b96eecd3902 100644 --- a/deps/npm/docs/output/using-npm/config.html +++ b/deps/npm/docs/output/using-npm/config.html @@ -1210,12 +1210,14 @@ access tokens with the npm token create command.

save

    -
  • Default: true
  • +
  • Default: true unless when using npm update or npm dedupe where it +defaults to false
  • Type: Boolean
-

Save installed packages to a package.json file as dependencies.

+

Save installed packages to a package.json file as dependencies.

When used with the npm rm command, removes the dependency from -package.json.

+package.json.

+

Will also prevent writing to package-lock.json if set to false.

save-bundle

-- cgit v1.2.3