-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Comparing changes
Open a pull request
base repository: npm/cli
base: v11.5.2
head repository: npm/cli
compare: v11.6.0
- 11 commits
- 47 files changed
- 11 contributors
Commits on Aug 4, 2025
-
fix: ps1 scripts in powershell 5.1 (#8469)
Fixes issue #8468: npm.ps1 and npx.ps1 fail on Windows PowerShell 5.1 when run in strict mode.
Configuration menu - View commit details
-
Copy full SHA for 5d82d0b - Browse repository at this point
Copy the full SHA 5d82d0bView commit details
Commits on Aug 19, 2025
-
fix(arborist): #8472 Keeps the registry protocol when modifying resol…
Configuration menu - View commit details
-
Copy full SHA for ed71acb - Browse repository at this point
Copy the full SHA ed71acbView commit details
Commits on Aug 22, 2025
-
fix: revert handle signal exits gracefully (#8524)
This reverts commit c8d8397.
Configuration menu - View commit details
-
Copy full SHA for 75ce64a - Browse repository at this point
Copy the full SHA 75ce64aView commit details
Commits on Aug 27, 2025
-
fix: installLinks works with transitive external file dependencies (#…
…8534) fixes #8342 What This PR fixes an issue where npm fails to properly handle transitive file dependencies when using the --install-links flag. Previously, when a file dependency had its own file dependencies, npm would fail to resolve them correctly, resulting in `ERR_MODULE_NOT_FOUND` errors. Why When using `npm install --install-links` to install a local package that has its own file dependencies, npm would attempt to resolve the transitive dependencies relative to the installed location in `node_modules` rather than the original source location. This caused the installation to fail because the transitive dependencies couldn't be found at the incorrect path. For example, given this structure: Running `npm install --install-links ../b` from `mainpkg` would fail because npm tried to find a relative to `b` instead of relative to the original `b` source location. How The fix introduces logic to detect transitive file dependencies when `--install-links` is used and ensures they are resolved relative to their parent's original source location: Detect transitive file dependencies: When a parent package was installed (not linked) due to `--install-links` and has file dependencies of its own, those are identified as transitive file dependencies. Preserve original paths: The parent's resolved` field (e.g., file:../b) is used to determine the original source location. Correct path resolution: Transitive file dependencies are resolved relative to the parent's original location rather than its installed location in `node_modules`
Configuration menu - View commit details
-
Copy full SHA for 3b54e9c - Browse repository at this point
Copy the full SHA 3b54e9cView commit details
Commits on Aug 28, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 9e5abf1 - Browse repository at this point
Copy the full SHA 9e5abf1View commit details -
fix: peer edge crash due to no parent or detached node (#8448)
`node.parent` is resulting in `null` value somewhere in recursive/looped calls to `#loadPeerSet` method in building ideal tree. When circular peer ref of a top level dependency replaced/resolved with different compatible version, it makes top level dependency to be removed from it's parent ( node.parent = null ) since it's been replaced, so no longer need to proceed with further peer set exploration. fixes: #8261
Configuration menu - View commit details
-
Copy full SHA for 208c06e - Browse repository at this point
Copy the full SHA 208c06eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f18557 - Browse repository at this point
Copy the full SHA 5f18557View commit details
Commits on Sep 2, 2025
-
fix(powershell): improve argument parsing (#8539)
improve the argument parsing PS1 logic - support `& npm args` and `. npm args` properly - support syntax such as `C:\"Program Files"\nodejs\npm.ps1 args` **of course ^ for both npm and npx version of the script** Code Explanation: instead of getting the `CommandElements.Extent.Text` array and joining it with spaces right away, now it's getting the same array and only capturing everything after the first element
Configuration menu - View commit details
-
Copy full SHA for dd4cee9 - Browse repository at this point
Copy the full SHA dd4cee9View commit details
Commits on Sep 3, 2025
-
feat: add support for optional env var replacements in .npmrc (#8359)
<!-- What / Why --> This solves problem described in #8335 in a backwards-compatible way. <!-- Describe the request in detail. What it does and why it's being changed. --> This PR adds possibility to have env var replacements in .npmrc configs written as `${VAR?}` which will cause them to get replaced with an empty string if the variable is not defined. Old behavior where undefined variables are left unreplaced is not changed. ## References <!-- Examples: Related to #0 Depends on #0 Blocked by #0 Fixes #0 Closes #0 --> Fixes #8335 --------- Co-authored-by: Michael Smith <owlstronaut@github.com>
Configuration menu - View commit details
-
Copy full SHA for bdcc10d - Browse repository at this point
Copy the full SHA bdcc10dView commit details -
chore: fix pruner and reify tests for optional peer deps (#8540)
While investigating CI failure in #8537, I found unrelated test failures when running locally on windows. `prune with lockfile with implicit optional peer dependencies` fixed by adding files to fixture `node_modules`, avoiding network, also reduced package lock to minimum and removed unhelpful snapshots `move aside symlink clutter` fixed by creating problematic symlink in `t.testdir()` instead of in `reifyPackages` hook --------- Co-authored-by: Liam Mitchell <liam.mitchell@mendix.com>
Configuration menu - View commit details
-
Copy full SHA for 619d43e - Browse repository at this point
Copy the full SHA 619d43eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b30e0b - Browse repository at this point
Copy the full SHA 3b30e0bView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v11.5.2...v11.6.0