diff options
author | Gar <gar+gh@danger.computer> | 2022-10-12 22:57:00 +0300 |
---|---|---|
committer | Nathan Fritz <fritzy@github.com> | 2022-10-13 18:45:00 +0300 |
commit | a35c784f8c25dce05b4173edd6c3f8e7913d7b50 (patch) | |
tree | 18efacfce2ea9b0bcb6997499e5e64c3f0afd30f /tap-snapshots/test/lib | |
parent | d01bb922f03ebe0712013c814fff2ef4ccd1ceaa (diff) |
fix(config): remove `node-version` and `npm-version`
BREAKING CHANGE: the `node-version` and `npm-version` configs have been
removed.
These are only used sparingly by arborist to determine if optional
dependencies should be installed, and during engines checks (which
are only warnings unless `engine-strict` is true.
Diffstat (limited to 'tap-snapshots/test/lib')
-rw-r--r-- | tap-snapshots/test/lib/commands/config.js.test.cjs | 4 | ||||
-rw-r--r-- | tap-snapshots/test/lib/docs.js.test.cjs | 20 |
2 files changed, 1 insertions, 23 deletions
diff --git a/tap-snapshots/test/lib/commands/config.js.test.cjs b/tap-snapshots/test/lib/commands/config.js.test.cjs index 116ccea3a..9f7b31d7a 100644 --- a/tap-snapshots/test/lib/commands/config.js.test.cjs +++ b/tap-snapshots/test/lib/commands/config.js.test.cjs @@ -96,11 +96,9 @@ exports[`test/lib/commands/config.js TAP config list --json > output matches sna "maxsockets": 15, "message": "%s", "node-options": null, - "node-version": "{NODE-VERSION}", "noproxy": [ "" ], - "npm-version": "{NPM-VERSION}", "offline": false, "omit": [], "omit-lockfile-registry-resolved": false, @@ -252,9 +250,7 @@ maxsockets = 15 message = "%s" metrics-registry = "https://registry.npmjs.org/" node-options = null -node-version = "{NODE-VERSION}" noproxy = [""] -npm-version = "{NPM-VERSION}" offline = false omit = [] omit-lockfile-registry-resolved = false diff --git a/tap-snapshots/test/lib/docs.js.test.cjs b/tap-snapshots/test/lib/docs.js.test.cjs index 4ce9a30ef..44072441c 100644 --- a/tap-snapshots/test/lib/docs.js.test.cjs +++ b/tap-snapshots/test/lib/docs.js.test.cjs @@ -1361,13 +1361,6 @@ Options to pass through to Node.js via the \`NODE_OPTIONS\` environment variable. This does not impact how npm itself is executed but it does impact how lifecycle scripts are called. -#### \`node-version\` - -* Default: Node.js \`process.version\` value -* Type: SemVer string - -The node version to use when checking a package's \`engines\` setting. - #### \`noproxy\` * Default: The value of the NO_PROXY environment variable @@ -1377,13 +1370,6 @@ Domain extensions that should bypass any proxies. Also accepts a comma-delimited string. -#### \`npm-version\` - -* Default: Output of \`npm --version\` -* Type: SemVer string - -The npm version to use when checking a package's \`engines\` setting. - #### \`offline\` * Default: false @@ -1792,7 +1778,7 @@ tarball that will be compared with the local files by default. * Type: String If set, alters the prefix used when tagging a new version when performing a -version increment using \`npm-version\`. To remove the prefix altogether, set +version increment using \`npm version\`. To remove the prefix altogether, set it to the empty string: \`""\`. Because other tools may rely on the convention that npm version tags look @@ -2190,9 +2176,7 @@ Array [ "maxsockets", "message", "node-options", - "node-version", "noproxy", - "npm-version", "offline", "omit", "omit-lockfile-registry-resolved", @@ -2326,9 +2310,7 @@ Array [ "loglevel", "maxsockets", "message", - "node-version", "noproxy", - "npm-version", "offline", "omit", "omit-lockfile-registry-resolved", |