Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-02fix: use an absolute path to notepad.exe by default, correct docsnlf
2022-11-01feat: set --no-audit when installing outside of a project (like --global)Nathan Fritz
2022-10-19feat: separate configs for `--timing` and `--loglevel`Luke Karrys
BREAKING CHANGE: `timing` and `loglevel` changes - `timing` has been removed as a value for `--loglevel` - `--timing` will show timing information regardless of `--loglevel`, except when `--silent` Closes https://github.com/npm/statusboard/issues/455 Closes https://github.com/npm/statusboard/issues/454
2022-10-19feat: deprecated `key`, `cert` config options and updated registry scoped ↵Nathan Fritz
auth docs
2022-10-19fix: account for new npm-package-arg behaviorGar
`npm`, `npm@`, and `npm@*` are all now the same spec
2022-10-19feat: add --install-strategy=hoisted|nested|shallow, deprecate ↵Nathan Fritz
--global-style, --legacy-bundling (#5709) BREAKING CHANGE: deprecate boolean install flags in favor of `--install-strategy` * deprecate --global-style, --global now sets --install-strategy=shallow * deprecate --legacy-bundling, now sets --install-strategy=nested
2022-10-13feat: introduce the `npm config fix` commandnlf
2022-10-13feat: explicitly validate config within the clinlf
BREAKING CHANGE: the presence of auth related settings that are not scoped to a specific registry found in a config file is no longer supported and will throw errors
2022-10-13fix(config): remove `node-version` and `npm-version`Gar
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.
2022-10-12feat: rewrite docs generationLuke Karrys
High level overview of the changes here: - The source for the docs content has moved from `docs/content/` to `docs/lib/content/`. The generated markdown is still written to `docs/content/` but that directory is now ignored from git. - All generated content sections of the docs have been removed and replaced with single placeholder html comments such as `<!-- AUTOGENERATED CONFIG DESCRIPTIONS -->` - Placeholders are replaced with generated content only as part of the `prepack` step, so generated markdown is no longer checked in to source and all docs related `make` commands have been removed - All docs (and docs related) snapshots have been moved to a single test file that outputs command usage and formats it with functions imported from `docs/lib/index.js`. So tests will fail if docs content changes until `npm run snap` is run.
2022-10-05docs: accurately describe install-links effect on relative paths (#5606)Luke Karrys
2022-10-04fix: `npm link` should override `--install-links` (#5633)Nathan Fritz
2022-10-04feat: use v3 lockfiles by default (#5605)Nathan Fritz
2022-10-04docs: remove link to cache command (#5637)Gar
The cache command itself contains this config making it a circular reference
2022-09-30feat: implement new `npm-packlist` behaviorLuke Karrys
This also lands the latest `pacote` which now requires passing in an `Arborist` constructor for use in loading the package tree that gets passed to `npm-packlist`. BREAKING CHANGE: `npm pack` now follows a strict order of operations when applying ignore rules. If a files array is present in the package.json, then rules in .gitignore and .npmignore files from the root will be ignored.
2022-09-29docs: update docs/logging for new --access defaultGar
2022-09-27feat: write eresolve error files to the logs directoryLuke Karrys
Also refactor all files written to the logs directory to use the same code path for file name creation.
2022-09-27feat: timings are now written alongside debug log filesLuke Karrys
BREAKING CHANGE: `--timing` file changes: - When run with the `--timing` flag, `npm` now writes timing data to a file alongside the debug log data, respecting the `logs-dir` option and falling back to `<CACHE>/_logs/` dir, instead of directly inside the cache directory. - The timing file data is no longer newline delimited JSON, and instead each run will create a uniquely named `<ID>-timing.json` file, with the `<ID>` portion being the same as the debug log. - Finally, the data inside the file now has three top level keys, `metadata`, `timers, and `unfinishedTimers` instead of everything being a top level key. Closes https://github.com/npm/statusboard/issues/456
2022-09-21feat: default auth-type to web (#5551)Gar
BREAKING CHANGE: the default `auth-type` config value is now `web`
2022-09-21feat(query): display `queryContext` in resultsnlf
2022-09-21feat: separate login/adduser, remove auth types (#5550)Gar
The difference between `adduser` and `login` depends on the `auth-type`. - `web`: the POST to `/-/v1/login` contains a `{ create: true }` value in its payload for `adduser` - `legacy` the `PUT` request to `/-/user/org.couchdb.user:${username}` contains an `email` value in its payload for `adduser`. BREAKING CHANGE: `login`, `adduser`, and `auth-type` changes - This removes all `auth-type` configs except `web` and `legacy`. - `login` and `adduser` are now separate commands that send different data to the registry. - `auth-type` config values `web` and `legacy` only try their respective methods, npm no longer tries them all and waits to see which one doesn't fail.
2022-09-15fix: add tag to publish log messageGar
2022-09-15feat(rewrite): rewrite `npm access`Gar
BREAKING CHANGE: renames most of the `npm access` subcommands - `edit`, having never been implemented, is removed - `public` is now `set status=public` - `restricted` is now `set status=private` - `ls-packages` is now `list packages` - `ls-collaborators` is now `list collaborators` - `2fa-required` is now `set mfa=publish` - `2fa-not-required` is now `set mfa=none` - `set mfa=automation` is added - output is no longer in json by default Usage: npm access list packages [<user>|<scope>|<scope:team> [<package>] npm access list collaborators [<package> [<user>]] npm access get status [<package>] npm access set status=public|private [<package>] npm access set mfa=false|publish|automation [<package>] npm access grant <read-only|read-write> <scope:team> [<package>] npm access revoke <scope:team> [<package>] Options: [--json] [--otp <otp>] [--registry <registry>]
2022-09-08feat: remove `npm birthday` (#5455)Gar
BREAKING CHANGE: this removes the `npm birthday` command
2022-09-08feat: remove `npm set-script` (#5456)Gar
BREAKING CHANGE: this removes `npm set-script` Folks should use `npm pkg set` to set the `scripts` field in their `package.json` Closes https://github.com/npm/statusboard/issues/449
2022-09-08feat: default `install-links` to true (#5458)Gar
BREAKING CHANGE: this changes the default value of `install-links` to true Closes https://github.com/npm/statusboard/issues/510
2022-09-08feat: remove `npm bin` (#5459)Gar
BREAKING CHANGE: this removes the `npm bin` command The output of this command is misleading and incomplete. The `.bin` resolution of npm is much more nuanced than this command implies, and the output of `npm bin` is not something end users should be dealing with. `npm` itself is responsible for running the `bin` entries of modules, with the exception of global bins, which end up in the same folder as `node` itself, presumably already in a user's path since they can run node. Closes https://github.com/npm/statusboard/issues/537
2022-08-17feat(query): support :overridden pseudo selectornlf
2022-08-17fix(explain): display override informationnlf
2022-08-17fix(ls): display overridden nodesnlf
2022-08-03fix: fix exec tests and clean up workspace-location-msgGar
The workspace-location-msg file was being called improperly by `npm init` and not even tested, and when digging in it probably shouldn't be used at all from there. It's not always a workspace in this context.
2022-08-03fix: properly find locally/globally/npxCache packagesGar
Lots of bugfixes here, we properly parse ranges and versions, and we also now work with git repos and gists, and know when they are already installed.
2022-08-03feat: add --replace-registry-host=<npmjs|always|never> (#4860)Nathan Fritz
feat: add --replace-registry-host=<npmjs|always|never>|<hostname>
2022-08-01feat: add npm query cmd (#5000)Ruy Adorno
Co-authored-by: Gar <gar+gh@danger.computer>
2022-08-01fix(ls): when filtering workspaces, make sure the edge has a to before ↵nlf
checking if its a workspace (#5164)
2022-07-28fix: allow hash character in paths (#5122)Patryk Ludwikowski
* fix: allow link from path with hash character * fix: allow hash character in path in other places * Remove extra semicolon
2022-07-28docs: sync ci params with install (#5207)Gar
2022-07-20feat: accept registry-scoped certfile and keyfile as credentials (#5160)Jon Jensen
Closes #4765 RFC: https://github.com/npm/rfcs/pull/591 While this doesn't directly allow top-level cert/key as credentials (per the original issue), it's a more targeted/secure approach that accomplishes the same end-result; the new options are scoped to a specific registry, and the actual cert/key contents are much less likely to be exposed. See the RFC for more context. Depends on: * https://github.com/npm/npm-registry-fetch/pull/125 * https://github.com/npm/config/pull/69
2022-07-12feat: Add `web` auth type (#5076)Julian Møller Ellehauge
2022-07-12feat: warn on config --auth-type=sso/saml/oauth, undeprecate --auth-typeNathan Fritz
2022-07-11feat: add npm audit signatures (#4827)Philip Harrison
* feat: add npm audit signatures Implements [RFC: Improve signature verification](https://github.com/npm/rfcs/pull/550/) Adds a new sub-command to `audit`: `npm audit signatures` (following [`npm audit licenses`](https://github.com/npm/cli/pull/3452)) This command will verify registry signatures stored in the packument against a public key on the registry. Supporting: - Any registry that implements `host/-/npm/v1/keys` endpoint and provides `signatures` in the packument `dist` object - Validates public keys are not expired - Errors when encountering packages with missing signatures when the registry returns keys at `host/-/npm/v1/keys` - Errors when encountering invalid signatures - Output: json/human formats
2022-06-29docs: add foreground-scripts to run-script page (#5087)Ruy Adorno
2022-06-22feat: prompt before opening web-login URL when performing `login`/`adduser` ↵Julian Møller Ellehauge
(#4960) Prompt before opening web-login URL when performing login/adduser
2022-06-22docs: consolidate docs and help for package spec (#5048)Gar
Many of our commands parse their args via [npm-package-arg](https://npm.im/npm-package-arg), which is a good standard way of parsing a "package" argument. However the docs surrounding these args are not very consistent. This can lead to confusion in commands such as `npm publish` where the behavior is slightly different than in the past due to this. This adds a new help command `npm help package-spec` that describes what this argument is, and can be, and also updates all the commands that interpret their args this with to refer to them as `<package-spec>`. It also adds a link to the new help page on their docs pages.
2022-06-02fix: undeprecate and remove warnings for --global, -g, --local (#4982)Nathan Fritz
2022-06-02feat: Add `--auth-type=webauthn` flag (#4931)Julian Møller Ellehauge
* feat: Add --use-webauth flag * Add docs * Switch from a separate flag to a variation of auth-type * Update snapshot
2022-06-02feat(init): reify on init new workspace (#4892)Ruy Adorno
Adds a minimalistic reify step that updates the installed tree after initializing a new workspace. Moved the shared update logic from `lib/commands/version.js` to a `lib/workspaces/update-workspaces.js` module that is reused between both `npm version` and `npm init`. Relates to: https://github.com/npm/rfcs/issues/556 Relates to: https://github.com/npm/cli/pull/4588
2022-05-19fix: remove dead code from get-identityGar
2022-05-19fix: clean up npm cache tests (#4910)Gar
The tests use real data now, a bare throw that is not a usageError was also found and changed to a usageError
2022-05-19fix(ci): remove node_modules post-validation (#4913)Gar
The removal of node_modules was happening in a race with the loading of the virtualTree, and before the validation of the package-lock against the package.json. This defers the removal till after all that validation has happened. It also makes the errors thrown usage errors, and refactors the tests to be real.