-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Comparing changes
Open a pull request
base repository: npm/cli
base: libnpmorg-v5.0.1
head repository: npm/cli
compare: libnpmorg-v5.0.2
Commits on Dec 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for bb2b23b - Browse repository at this point
Copy the full SHA bb2b23bView commit details -
chore: refactor tests to use mock registry
Co-authored by @bdehamer
Configuration menu - View commit details
-
Copy full SHA for b82c1a6 - Browse repository at this point
Copy the full SHA b82c1a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28ec922 - Browse repository at this point
Copy the full SHA 28ec922View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec09474 - Browse repository at this point
Copy the full SHA ec09474View commit details -
Configuration menu - View commit details
-
Copy full SHA for c52cf6b - Browse repository at this point
Copy the full SHA c52cf6bView commit details
Commits on Jan 1, 2023
-
fix: evaluate configs in command class
### Refactor Config Reading During `exec` This removes the previous workarounds that were required due to tests setting configs that were not available in the constructor of the commands. This also made the fix for nodejs/node#45881 easier since the config checks for workspaces can now all be made in the command. The fix was to move the package.json detection to `@npmcli/config` and use that boolean instead of setting `location=project` which affected all commands such as `config set` saving to the wrong location. Some notable changes from this refactor include: - `execWorkspaces` no longer being passed the raw workspace filters and instead requiring `this.setWorkspaces()` to be called which was already being done in most commands - `static workspaces = [true|false]` on all commands to indicate workspaces support. This is used in docs generation and whether to throw when `execWorkspaces` is called or not. ### Drop `fakeMockNpm` and refactor `mockNpm` This refactor also drops `fakeMockNpm` in favor of `realMockNpm` (now just `mockNpm`), and adds new features to `mockNpm`. Some new features of `mockNpm`: - sets all configs via argv so they are parsed before `npm.load()`. This is the most important change as it more closely resembles real usage. - automatically resets `process.exitCode` - automatically puts global `node_modules` in correct testdir based on platform - more helpful error messages when used in unsupported ways - ability to preload a command for execution - sets `cwd` automatically to `prefix` and sets `globalPrefix` to the specified testdir Note that this commit does not include the actual test changes, which are included in the following commits for readability reasons. ### Linting This also removes some of the one off linting rules that were set in the past to reduce churn and fixes all remaining errors.
Configuration menu - View commit details
-
Copy full SHA for 450e50f - Browse repository at this point
Copy the full SHA 450e50fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72e6d6f - Browse repository at this point
Copy the full SHA 72e6d6fView commit details -
fix(fund): correctly parse and use
which
configPreviously the `which` param in `npm fund` was validated incorrectly leading to `EFUNDNUMBER` errors when used. This fixes that and does a better job detecting when `which` is pointing to an incorrect array bounds in the returned funding array.
Configuration menu - View commit details
-
Copy full SHA for 669ef94 - Browse repository at this point
Copy the full SHA 669ef94View commit details -
fix: refactor
help
to use@npmcli/promise-spawn
This also refactors the test to use `mockNpm`
Configuration menu - View commit details
-
Copy full SHA for 31af1aa - Browse repository at this point
Copy the full SHA 31af1aaView commit details -
fix(init): write package.json workspaces paths with / separators
This also refactors the test to use `mockNpm`
Configuration menu - View commit details
-
Copy full SHA for dc52222 - Browse repository at this point
Copy the full SHA dc52222View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69f5ff8 - Browse repository at this point
Copy the full SHA 69f5ff8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 629d922 - Browse repository at this point
Copy the full SHA 629d922View commit details -
Configuration menu - View commit details
-
Copy full SHA for b54ab92 - Browse repository at this point
Copy the full SHA b54ab92View commit details -
chore: convert all test to
mockNpm
This also uses more consistent snapshot cleaning where possible. Note that this is an iterative step for our tests and does not implement `MockRegistry` for them, so many of them still mock important functionality that should be tested. This refactor to `mockNpm` should make it easier to adopt `MockRegistry` as we see fit.
Configuration menu - View commit details
-
Copy full SHA for f963180 - Browse repository at this point
Copy the full SHA f963180View commit details -
Configuration menu - View commit details
-
Copy full SHA for 122938c - Browse repository at this point
Copy the full SHA 122938cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b965ebf - Browse repository at this point
Copy the full SHA b965ebfView commit details -
In links with fragments like `#checking-your-version-of-npm-and-node-js` the `node-js` portion doesn't work and should be `nodejs`. So for example, the following link currently on the site does NOT work (i.e. it won't scroll to relevant section): > https://docs.npmjs.com/cli/v9/configuring-npm/install#checking-your-version-of-npm-and-node-js ...but this one (as implemented by this fix) DOES work: > https://docs.npmjs.com/cli/v9/configuring-npm/install#checking-your-version-of-npm-and-nodejs
Configuration menu - View commit details
-
Copy full SHA for 054226c - Browse repository at this point
Copy the full SHA 054226cView commit details
Commits on Jan 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 55093e2 - Browse repository at this point
Copy the full SHA 55093e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 753b98e - Browse repository at this point
Copy the full SHA 753b98eView commit details
Commits on Jan 9, 2023
-
This: > ...is has the... Should be: > ...it has the...
Configuration menu - View commit details
-
Copy full SHA for 82f69d9 - Browse repository at this point
Copy the full SHA 82f69d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa27aca - Browse repository at this point
Copy the full SHA fa27acaView commit details -
docs: fix typos in definitions.js (#6038)
* Fix typo in definitions.js * Fix another typo in definitions.js * Fix yet another typo in definitions.js * update snapshots Co-authored-by: Eric Mutta <eric.mutta@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fe9debd - Browse repository at this point
Copy the full SHA fe9debdView commit details
Commits on Jan 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2383deb - Browse repository at this point
Copy the full SHA 2383debView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35c94e0 - Browse repository at this point
Copy the full SHA 35c94e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ba1171 - Browse repository at this point
Copy the full SHA 2ba1171View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for b584af0 - Browse repository at this point
Copy the full SHA b584af0View commit details
Commits on Jan 12, 2023
-
docs: update outdated file path to definitions.js
Looks like npm's default config options were relocated from `lib/utils/config-defs.js` to the current `lib/utils/config/definitions.js` as [can be seen here](https://github.com/npm/cli/blob/latest/lib/utils/config/definitions.js)
Configuration menu - View commit details
-
Copy full SHA for ca8ff00 - Browse repository at this point
Copy the full SHA ca8ff00View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf175fb - Browse repository at this point
Copy the full SHA cf175fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0038e5 - Browse repository at this point
Copy the full SHA f0038e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29f9942 - Browse repository at this point
Copy the full SHA 29f9942View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 4d27592 - Browse repository at this point
Copy the full SHA 4d27592View commit details
Commits on Jan 13, 2023
-
fix: use recursive rm in ci command (#6054)
* fix: use recursive rm in ci command * fix: add test for repeat uses of ci command Co-authored-by: Burke Livingston <burkel24@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1c3612c - Browse repository at this point
Copy the full SHA 1c3612cView commit details -
fix: don't try to deprecate nonexistant versions (#6050)
If you pass npm a version that doesn't exist, it still tries to PUT the packument but with no changes. This is unneccessary and currently results in a 422 error from the npm registry
Configuration menu - View commit details
-
Copy full SHA for 8be672b - Browse repository at this point
Copy the full SHA 8be672bView commit details
Commits on Jan 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b74f834 - Browse repository at this point
Copy the full SHA b74f834View commit details
Commits on Jan 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 53bbc14 - Browse repository at this point
Copy the full SHA 53bbc14View commit details -
Configuration menu - View commit details
-
Copy full SHA for eefd119 - Browse repository at this point
Copy the full SHA eefd119View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6af152b - Browse repository at this point
Copy the full SHA 6af152bView commit details -
feat: added --install-strategy=linked (#6078)
Co-authored-by: Vincent Bailly <vibailly@microsoft.com> Implements the RFC https://github.com/npm/rfcs/blob/main/accepted/0042-isolated-mode.md Packages are installed in node_modules/.store flat, and linked into the node_modules tree in depth, rather than hoisted.
Configuration menu - View commit details
-
Copy full SHA for 8d6d851 - Browse repository at this point
Copy the full SHA 8d6d851View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad8deca - Browse repository at this point
Copy the full SHA ad8decaView commit details
Commits on Feb 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 64b06ed - Browse repository at this point
Copy the full SHA 64b06edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ec35b7 - Browse repository at this point
Copy the full SHA 5ec35b7View commit details -
fix: only save package-lock when truly finished
When we update the trees, the edges are refreshed to correct their specs. If we have written the package-lock before this point, it will be incorrect. No new tests are needed as existing tests were snapshotted w/ the broken behavior, and are fixed now showing this bugfix in action.
Configuration menu - View commit details
-
Copy full SHA for 72a7a59 - Browse repository at this point
Copy the full SHA 72a7a59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9235cfc - Browse repository at this point
Copy the full SHA 9235cfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3526933 - Browse repository at this point
Copy the full SHA 3526933View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff35ed9 - Browse repository at this point
Copy the full SHA ff35ed9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5ecc7f - Browse repository at this point
Copy the full SHA e5ecc7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 328c3d8 - Browse repository at this point
Copy the full SHA 328c3d8View commit details -
fix: unpublish with scoped registry
Unpublish now works if you have a scoped registry config
Configuration menu - View commit details
-
Copy full SHA for 1525a5e - Browse repository at this point
Copy the full SHA 1525a5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a39556f - Browse repository at this point
Copy the full SHA a39556fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d4be7a - Browse repository at this point
Copy the full SHA 1d4be7aView commit details
There are no files selected for viewing