Skip to content

[pull] latest from npm:latest#14

Open
pull[bot] wants to merge 740 commits intoGraybar-codespace:latestfrom
npm:latest
Open

[pull] latest from npm:latest#14
pull[bot] wants to merge 740 commits intoGraybar-codespace:latestfrom
npm:latest

Conversation

@pull
Copy link

@pull pull bot commented Oct 19, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request #14 has too many files changed.

We can only review pull requests with up to 300 changed files, and this pull request has 587.

@pull pull bot added the ⤵️ pull label Oct 19, 2024
@owlstronaut owlstronaut force-pushed the latest branch 2 times, most recently from 85ec0c9 to 26b6454 Compare March 27, 2025 18:03
wraithgar and others added 26 commits October 15, 2025 18:30
- constructor logic was consolidated. It takes place in the main
Arborist constructor when possible, allowing us to see all of the
constructor at once and find any duplications or problems. It's evident
that our approach to options/this.options needs some attention.
- Some small single-use methods were inlined into the code that called
them. In many cases this prevented re-pulling variables from `this`.
- remove unused param from call to `#linkFromSpec`. The function is not
expecting a fourth parameter.
- remove unused private attributes, `#dryRun` and `#savePrefix` are not
used anymore
Fixes [#8684](#8684)

### What / Why
When running `npm token create`, the created authentication token was
being redacted in the output, making it difficult for users to copy and
use the token. This happened because npm's output system automatically
applies redaction to sensitive information like tokens.

### How
- Import `META` from `proc-log` to access output metadata options
- Use `{ [META]: true, redact: false }` option in `output.standard()` to
disable redaction for the token display line
- This follows the established pattern used in other parts of the
codebase (e.g., `lib/utils/open-url.js`) for displaying sensitive
information that users need to see

### Testing
- All existing tests pass
- The fix preserves the existing output format and test expectations
- Token is now displayed in full while maintaining proper formatting and
colors

### Before

Created publish token npm_***

### After

Created publish token npm_1a2b3c4d5e6f7g8h9i0j

The token can now be copied and used directly without being obscured by
npm's redaction system.

Co-authored-by: Max Black <husivm@google.com>
Reordered one of the lines ("Actual:") of output of `EBADENGINE` error
in order to align it with the previous like ("Required"). The output is
now easier to comprehend.

Before the change (note 2 last lines):

```sh
$ npm i
npm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: undefined
npm error notsup Not compatible with your version of node/npm: undefined
npm error notsup Required: {"node":">=22.21.0 <23.0.0","npm":">=10.0.0"}
npm error notsup Actual:   {"npm":"10.8.2","node":"v20.19.5"}
```

After the change:

```sh
[…]
npm error notsup Required: {"node":">=22.21.0 <23.0.0","npm":">=10.0.0"}
npm error notsup Actual:   {"node":"v20.19.5","npm":"10.8.2"}
```

Co-authored-by: Piotr D <piotr.delinowski@baxenergy.com>
peer deps flags, again
wraithgar and others added 30 commits March 9, 2026 11:46
# fix: clear exclusive sibling configs from env when one is set via CLI

## What's the problem?

If you set an exclusive param via CLI (e.g. `--save-prod`) but a sibling
(`npm_config_save_dev=true`) is already in the environment, child
processes
inherit both and crash with a conflict. This was also the root cause of
the
`--min-release-age` + `--before` issue in #9005.

## What changed

When `setEnvs` exports a non-default exclusive config, it now resets
that
param's siblings to their defaults in the env — so child processes never
see a conflict. Works generically for all exclusive pairs, not just this
one.

## Tests

Added a test for the case where `save-prod` is set via CLI while
`save-dev`
is already in env — verifies `save-dev` gets reset to its default.

## References

Fixes #9005
Clarify requirements for relative paths in npm publish.

This adds clarification on relative path support directly to the npm
publish documentation. Currently, this documentation only alludes to
package spec in the "see also" section, leaving it unclear that the
unprefixed relative paths that are supported by most other tools will
fail here. Enhancing this documentation is important since unprefixed
relative paths result in surprising error messages that do not hint at
the appropriate solution.

## References
Related to #2796
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.