| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,6 +67,13 @@ | |||
| 67 | 67 | "key-spacing": ["error", { "beforeColon": false, "afterColon": true }], | |
| 68 | 68 | "keyword-spacing": ["error", { "before": true, "after": true }], | |
| 69 | 69 | "lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], | |
| 70 | + "max-len": ["error", 80, { | ||
| 71 | + "ignoreUrls": true, | ||
| 72 | + "ignoreComments": false, | ||
| 73 | + "ignoreRegExpLiterals": true, | ||
| 74 | + "ignoreStrings": true, | ||
| 75 | + "ignoreTemplateLiterals": true | ||
| 76 | + }], | ||
| 70 | 77 | "new-cap": ["error", { "newIsCap": true, "capIsNew": false, "properties": true }], | |
| 71 | 78 | "new-parens": "error", | |
| 72 | 79 | "no-array-constructor": "error", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -739,3 +739,5 @@ kai zhu <kaizhu256@gmail.com> | |||
| 739 | 739 | Alex Woollam <alexjhwoollam@gmail.com> | |
| 740 | 740 | Daniel Fischer <daniel@d-fischer.dev> | |
| 741 | 741 | Yash-Singh1 <saiansh2525@gmail.com> | |
| 742 | + Edu93Jer <mailing_93@hotmail.com> | ||
| 743 | + Tieg Zaharia <tieg@tidelift.com> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,75 @@ | |||
| 1 | + ## 7.3.0 (2020-12-18) | ||
| 2 | + | ||
| 3 | + ### FEATURES | ||
| 4 | + | ||
| 5 | + * [`a9b8bf263`](https://github.com/npm/cli/commit/a9b8bf2634c627fbb16ca3a6bb2c2f1058c3e586) | ||
| 6 | + [#2362](https://github.com/npm/cli/issues/2362) | ||
| 7 | + Support multiple set/get/deletes in npm config | ||
| 8 | + ([@isaacs](https://github.com/isaacs)) | ||
| 9 | + | ||
| 10 | + ### BUG FIXES | ||
| 11 | + | ||
| 12 | + * [`9eef63849`](https://github.com/npm/cli/commit/9eef638499c88689acb00d812c10f0407cb95c08) | ||
| 13 | + Pass full set of options to login helper functions. | ||
| 14 | + This fixes `npm login --no-strict-ssl`, as well as a host of other | ||
| 15 | + options that one might want to set while logging in. | ||
| 16 | + Reported by: [@toddself](https://github.com/toddself) | ||
| 17 | + ([@isaacs](https://github.com/isaacs)) | ||
| 18 | + * [`628a554bc`](https://github.com/npm/cli/commit/628a554bc113e4e115d34778bfe8a77cfad1d933) | ||
| 19 | + [#2358](https://github.com/npm/cli/issues/2358) | ||
| 20 | + fix doctor test to work correctly for node pre-release versions | ||
| 21 | + ([@nlf](https://github.com/nlf)) | ||
| 22 | + * [`be4a0900b`](https://github.com/npm/cli/commit/be4a0900b14b2c6315bf62bed8f5affb648215ae) | ||
| 23 | + [#2360](https://github.com/npm/cli/issues/2360) | ||
| 24 | + raise an error early if publishing without login, registry | ||
| 25 | + ([@isaacs](https://github.com/isaacs)) | ||
| 26 | + * [`44d433105`](https://github.com/npm/cli/commit/44d4331058c53909ada62470b23b2185102b2128) | ||
| 27 | + [#2366](https://github.com/npm/cli/issues/2366) | ||
| 28 | + Include prerelease versions when deprecating | ||
| 29 | + ([@tiegz](https://github.com/tiegz)) | ||
| 30 | + * [`cba3341da`](https://github.com/npm/cli/commit/cba3341dae4c92541049dc976e82e2ba19566e95) | ||
| 31 | + [#2373](https://github.com/npm/cli/issues/2373) | ||
| 32 | + npm profile refactor | ||
| 33 | + ([@ruyadorno](https://github.com/ruyadorno)) | ||
| 34 | + * [`7539504e3`](https://github.com/npm/cli/commit/7539504e3abdec28039a7798e5ccb745b536cb6e) | ||
| 35 | + [#2382](https://github.com/npm/cli/issues/2382) | ||
| 36 | + remove the metrics sender | ||
| 37 | + ([@nlf](https://github.com/nlf)) | ||
| 38 | + | ||
| 39 | + ### DOCS | ||
| 40 | + | ||
| 41 | + * [`b98569a8c`](https://github.com/npm/cli/commit/b98569a8ca28dbd611fe84492aee996e2e567b55) | ||
| 42 | + add note about `INIT_CWD` to run-script doc | ||
| 43 | + * [`292929279`](https://github.com/npm/cli/commit/292929279854a06ca60ff737b574cbd6503ec5db) | ||
| 44 | + [#2368](https://github.com/npm/cli/issues/2368) | ||
| 45 | + Revert bug-reporting links to GH. | ||
| 46 | + Re: <https://blog.npmjs.org/post/188841555980/updates-to-community-docs-more> | ||
| 47 | + ([@tiegz](https://github.com/tiegz)) | ||
| 48 | + * [`f4560626f`](https://github.com/npm/cli/commit/f4560626f09dba4889d752f7f739aa5a5f3da741) | ||
| 49 | + update `ISSUE_TEMPLATE` with modern links | ||
| 50 | + ([@isaacs](https://github.com/isaacs)) | ||
| 51 | + * [`bc1c567ed`](https://github.com/npm/cli/commit/bc1c567ed3d853ed4f01d33a800eb453956de6ef) | ||
| 52 | + update npm command doc feature request links | ||
| 53 | + ([@isaacs](https://github.com/isaacs)) | ||
| 54 | + * [`0ad958fe1`](https://github.com/npm/cli/commit/0ad958fe1cb811699caca235f361c8328baac8c4) | ||
| 55 | + [#2381](https://github.com/npm/cli/issues/2381) | ||
| 56 | + (docs,test): assorted typo fixes | ||
| 57 | + ([@XhmikosR](https://github.com/XhmikosR)) | ||
| 58 | + | ||
| 59 | + ### TESTING | ||
| 60 | + | ||
| 61 | + * [`a92d310b7`](https://github.com/npm/cli/commit/a92d310b7e9e4c48b08f52785c2e3a6d52a82ad7) | ||
| 62 | + [#2361](https://github.com/npm/cli/issues/2361) | ||
| 63 | + Add max-len to lint rules | ||
| 64 | + ([@Edu93Jer](https://github.com/Edu93Jer)) | ||
| 65 | + | ||
| 66 | + ### DEPENDENCIES | ||
| 67 | + | ||
| 68 | + * [`4fc2f3e05`](https://github.com/npm/cli/commit/4fc2f3e05b600aa64fe5eb6b8b77bc070e5a9403) | ||
| 69 | + [#2300](https://github.com/npm/cli/issues/2300) | ||
| 70 | + `@npmcli/config@1.2.8`: | ||
| 71 | + * Support setting email without username/password | ||
| 72 | + | ||
| 1 | 73 | ## 7.2.0 (2020-12-15) | |
| 2 | 74 | ||
| 3 | 75 | ### FEATURES | |
@@ -977,7 +1049,7 @@ | |||
| 977 | 1049 | * fix package.json dependencies order | |
| 978 | 1050 | * [`49b2bf5a7`](https://github.com/npm/cli/commit/49b2bf5a798b49d52166744088a80b8a39ccaeb6) | |
| 979 | 1051 | `@npmcli/config@1.1.8` | |
| 980 | - * fix unkown envs to be passed through | ||
| 1052 | + * fix unknown envs to be passed through | ||
| 981 | 1053 | * fix setting correct globalPrefix on load | |
| 982 | 1054 | * [`f9aac351d`](https://github.com/npm/cli/commit/f9aac351dd36a19d14e1f951a2e8e20b41545822) | |
| 983 | 1055 | `libnpmversion@1.0.5` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,13 +88,13 @@ prune: | |||
| 88 | 88 | @[[ "$(shell git status -s)" != "" ]] && echo "ERR: found unpruned files" && exit 1 || echo "git status is clean" | |
| 89 | 89 | ||
| 90 | 90 | ||
| 91 | - publish: gitclean ls-ok link test docs-clean docs prune | ||
| 91 | + publish: gitclean ls-ok link test docs prune | ||
| 92 | 92 | @git push origin :v$(shell node bin/npm-cli.js --no-timing -v) 2>&1 || true | |
| 93 | 93 | git push origin $(BRANCH) &&\ | |
| 94 | 94 | git push origin --tags &&\ | |
| 95 | 95 | node bin/npm-cli.js publish --tag=$(PUBLISHTAG) | |
| 96 | 96 | ||
| 97 | - release: gitclean ls-ok docs-clean docs prune | ||
| 97 | + release: gitclean ls-ok docs prune | ||
| 98 | 98 | @bash scripts/release.sh | |
| 99 | 99 | ||
| 100 | 100 | .PHONY: all latest install dev link docs clean uninstall test man docs-clean docsclean release ls-ok dev-deps prune | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -150,6 +150,8 @@ you should [read this](https://docs.npmjs.com/misc/developers). | |||
| 150 | 150 | When you find issues, please report them: | |
| 151 | 151 | ||
| 152 | 152 | * web: | |
| 153 | + <https://github.com/npm/npm/issues> | ||
| 154 | + * archived web: | ||
| 153 | 155 | <https://npm.community/c/bugs> | |
| 154 | 156 | ||
| 155 | 157 | Be sure to include *all* of the output from the npm command that didn't work | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,15 +7,15 @@ description: Manage the npm configuration files | |||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | 9 | ```bash | |
| 10 | - npm config set <key> <value> [-g|--global] | ||
| 11 | - npm config get <key> | ||
| 12 | - npm config delete <key> | ||
| 13 | - npm config list [-l] [--json] | ||
| 10 | + npm config set <key>=<value> [<key>=<value> ...] | ||
| 11 | + npm config get [<key> [<key> ...]] | ||
| 12 | + npm config delete <key> [<key> ...] | ||
| 13 | + npm config list [--json] | ||
| 14 | 14 | npm config edit | |
| 15 | - npm get <key> | ||
| 16 | - npm set <key> <value> [-g|--global] | ||
| 15 | + npm set <key>=<value> [<key>=<value> ...] | ||
| 16 | + npm get [<key> [<key> ...]] | ||
| 17 | 17 | ||
| 18 | - aliases: c | ||
| 18 | + alias: c | ||
| 19 | 19 | ``` | |
| 20 | 20 | ||
| 21 | 21 | ### Description | |
@@ -39,20 +39,31 @@ Config supports the following sub-commands: | |||
| 39 | 39 | #### set | |
| 40 | 40 | ||
| 41 | 41 | ```bash | |
| 42 | - npm config set key value | ||
| 42 | + npm config set key=value [key=value...] | ||
| 43 | + npm set key=value [key=value...] | ||
| 43 | 44 | ``` | |
| 44 | 45 | ||
| 45 | - Sets the config key to the value. | ||
| 46 | + Sets each of the config keys to the value provided. | ||
| 46 | 47 | ||
| 47 | - If value is omitted, then it sets it to "true". | ||
| 48 | + If value is omitted, then it sets it to an empty string. | ||
| 49 | + | ||
| 50 | + Note: for backwards compatibility, `npm config set key value` is supported | ||
| 51 | + as an alias for `npm config set key=value`. | ||
| 48 | 52 | ||
| 49 | 53 | #### get | |
| 50 | 54 | ||
| 51 | 55 | ```bash | |
| 52 | - npm config get key | ||
| 56 | + npm config get [key ...] | ||
| 57 | + npm get [key ...] | ||
| 53 | 58 | ``` | |
| 54 | 59 | ||
| 55 | - Echo the config value to stdout. | ||
| 60 | + Echo the config value(s) to stdout. | ||
| 61 | + | ||
| 62 | + If multiple keys are provided, then the values will be prefixed with the | ||
| 63 | + key names. | ||
| 64 | + | ||
| 65 | + If no keys are provided, then this command behaves the same as `npm config | ||
| 66 | + list`. | ||
| 56 | 67 | ||
| 57 | 68 | #### list | |
| 58 | 69 | ||
@@ -66,10 +77,10 @@ to show the settings in json format. | |||
| 66 | 77 | #### delete | |
| 67 | 78 | ||
| 68 | 79 | ```bash | |
| 69 | - npm config delete key | ||
| 80 | + npm config delete key [key ...] | ||
| 70 | 81 | ``` | |
| 71 | 82 | ||
| 72 | - Deletes the key from all configuration files. | ||
| 83 | + Deletes the specified keys from all configuration files. | ||
| 73 | 84 | ||
| 74 | 85 | #### edit | |
| 75 | 86 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ description: Deprecate a version of a package | |||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | 9 | ```bash | |
| 10 | - npm deprecate <pkg>[@<version>] <message> | ||
| 10 | + npm deprecate <pkg>[@<version range>] <message> | ||
| 11 | 11 | ``` | |
| 12 | 12 | ||
| 13 | 13 | ### Description | |
@@ -22,8 +22,17 @@ versions, so you can do something like this: | |||
| 22 | 22 | npm deprecate my-thing@"< 0.2.3" "critical bug fixed in v0.2.3" | |
| 23 | 23 | ``` | |
| 24 | 24 | ||
| 25 | - Note that you must be the package owner to deprecate something. See the | ||
| 26 | - `owner` and `adduser` help topics. | ||
| 25 | + SemVer ranges passed to this command are interpreted such that they *do* | ||
| 26 | + include prerelease versions. For example: | ||
| 27 | + | ||
| 28 | + ```bash | ||
| 29 | + npm deprecate my-thing@1.x "1.x is no longer supported" | ||
| 30 | + ``` | ||
| 31 | + | ||
| 32 | + In this case, a version `my-thing@1.0.0-beta.0` will also be deprecated. | ||
| 33 | + | ||
| 34 | + You must be the package owner to deprecate something. See the `owner` and | ||
| 35 | + `adduser` help topics. | ||
| 27 | 36 | ||
| 28 | 37 | To un-deprecate a package, specify an empty string (`""`) for the `message` | |
| 29 | 38 | argument. Note that you must use double quotes with no space between them to | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,18 +60,18 @@ on Unix-like systems it is the `/bin/sh` command, on Windows it is the `cmd.exe` | |||
| 60 | 60 | The actual shell referred to by `/bin/sh` also depends on the system. | |
| 61 | 61 | You can customize the shell with the `script-shell` configuration. | |
| 62 | 62 | ||
| 63 | - Scripts are run from the root of the module, regardless of what the current | ||
| 64 | - working directory is when `npm run` is called. If you want your script to | ||
| 65 | - use different behavior based on what subdirectory you're in, you can use the | ||
| 66 | - `INIT_CWD` environment variable, which holds the full path you were in when | ||
| 67 | - you ran `npm run`. | ||
| 68 | - | ||
| 69 | - `npm run` sets the `NODE` environment variable to the `node` executable with | ||
| 70 | - which `npm` is executed. Also, if the `--scripts-prepend-node-path` is passed, | ||
| 71 | - the directory within which `node` resides is added to the | ||
| 72 | - `PATH`. If `--scripts-prepend-node-path=auto` is passed (which has been the | ||
| 73 | - default in `npm` v3), this is only performed when that `node` executable is | ||
| 74 | - not found in the `PATH`. | ||
| 63 | + Scripts are run from the root of the package folder, regardless of what the | ||
| 64 | + current working directory is when `npm run` is called. If you want your | ||
| 65 | + script to use different behavior based on what subdirectory you're in, you | ||
| 66 | + can use the `INIT_CWD` environment variable, which holds the full path you | ||
| 67 | + were in when you ran `npm run`. | ||
| 68 | + | ||
| 69 | + `npm run` sets the `NODE` environment variable to the `node` executable | ||
| 70 | + with which `npm` is executed. Also, if the `--scripts-prepend-node-path` is | ||
| 71 | + passed, the directory within which `node` resides is added to the `PATH`. | ||
| 72 | + If `--scripts-prepend-node-path=auto` is passed (which has been the default | ||
| 73 | + in `npm` v3), this is only performed when that `node` executable is not | ||
| 74 | + found in the `PATH`. | ||
| 75 | 75 | ||
| 76 | 76 | If you try to run a script without having a `node_modules` directory and it fails, | |
| 77 | 77 | you will be given a warning to run `npm install`, just in case you've forgotten. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -143,12 +143,21 @@ the contributing guidelines and check the issues list. | |||
| 143 | 143 | When you find issues, please report them: | |
| 144 | 144 | ||
| 145 | 145 | * web: | |
| 146 | + <https://github.com/npm/npm/issues> | ||
| 147 | + * archived web: | ||
| 146 | 148 | <https://npm.community/c/bugs> | |
| 147 | 149 | ||
| 148 | - Be sure to follow the template and bug reporting guidelines. You can also ask | ||
| 149 | - for help in the [support forum](https://npm.community/c/support) if you're | ||
| 150 | - unsure if it's actually a bug or are having trouble coming up with a detailed | ||
| 151 | - reproduction to report. | ||
| 150 | + Be sure to follow the template and bug reporting guidelines. | ||
| 151 | + | ||
| 152 | + ### Feature Requests | ||
| 153 | + | ||
| 154 | + Discuss new feature ideas on our discussion forum: | ||
| 155 | + | ||
| 156 | + * <https://github.com/npm/feedback> | ||
| 157 | + | ||
| 158 | + Or suggest formal RFC proposals: | ||
| 159 | + | ||
| 160 | + * <https://github.com/npm/rfcs> | ||
| 152 | 161 | ||
| 153 | 162 | ### Author | |
| 154 | 163 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -744,13 +744,6 @@ Commit message which is used by `npm version` when creating version commit. | |||
| 744 | 744 | ||
| 745 | 745 | Any "%s" in the message will be replaced with the version number. | |
| 746 | 746 | ||
| 747 | - #### metrics-registry | ||
| 748 | - | ||
| 749 | - * Default: The value of `registry` (which defaults to "https://registry.npmjs.org/") | ||
| 750 | - * Type: String | ||
| 751 | - | ||
| 752 | - The registry you want to send cli metrics to if `send-metrics` is true. | ||
| 753 | - | ||
| 754 | 747 | #### node-options | |
| 755 | 748 | ||
| 756 | 749 | * Default: null | |
@@ -1089,16 +1082,6 @@ searches. | |||
| 1089 | 1082 | The age of the cache, in seconds, before another registry request is made if | |
| 1090 | 1083 | using legacy search endpoint. | |
| 1091 | 1084 | ||
| 1092 | - #### send-metrics | ||
| 1093 | - | ||
| 1094 | - * Default: false | ||
| 1095 | - * Type: Boolean | ||
| 1096 | - | ||
| 1097 | - If true, success/failure metrics will be reported to the registry stored in | ||
| 1098 | - `metrics-registry`. These requests contain the number of successful and | ||
| 1099 | - failing runs of the npm CLI and the time period over which those counts were | ||
| 1100 | - gathered. No identifying information is included in these requests. | ||
| 1101 | - | ||
| 1102 | 1085 | #### shell | |
| 1103 | 1086 | ||
| 1104 | 1087 | * Default: SHELL environment variable, or "bash" on Posix, or "cmd" on | |
| Back | FazBrowse Home | New Git URL |
0 commit comments