Skip to content

Conversation

addaleax
Copy link
Member

@addaleax addaleax commented Oct 1, 2025

We (correctly) allow different streams to be specified for stdout and stderr, so we should also allow different inspect options for these streams.

@addaleax addaleax added semver-minor PRs that contain new features and should be released in the next minor version. console Issues and PRs related to the console subsystem. labels Oct 1, 2025
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Oct 1, 2025
We (correctly) allow different streams to be specified for `stdout`
and `stderr`, so we should also allow different inspect options for
these streams.
@addaleax addaleax force-pushed the console-inspect-options-map branch from 24ddc86 to dc89673 Compare October 1, 2025 12:31
Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.43%. Comparing base (b217051) to head (dc89673).
⚠️ Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #60082      +/-   ##
==========================================
- Coverage   88.45%   88.43%   -0.03%     
==========================================
  Files         703      703              
  Lines      207797   207808      +11     
  Branches    40021    40022       +1     
==========================================
- Hits       183807   183767      -40     
- Misses      15969    16019      +50     
- Partials     8021     8022       +1     
Files with missing lines Coverage Δ
lib/internal/console/constructor.js 98.14% <100.00%> (+0.02%) ⬆️

... and 30 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@addaleax addaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Oct 2, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 2, 2025
@nodejs-github-bot
Copy link
Collaborator

addaleax added a commit that referenced this pull request Oct 3, 2025
We (correctly) allow different streams to be specified for `stdout`
and `stderr`, so we should also allow different inspect options for
these streams.

PR-URL: #60082
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jordan Harband <[email protected]>
@addaleax
Copy link
Member Author

addaleax commented Oct 3, 2025

Landed in 79f1999

@addaleax addaleax closed this Oct 3, 2025
targos pushed a commit that referenced this pull request Oct 6, 2025
We (correctly) allow different streams to be specified for `stdout`
and `stderr`, so we should also allow different inspect options for
these streams.

PR-URL: #60082
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jordan Harband <[email protected]>
nodejs-github-bot added a commit that referenced this pull request Oct 7, 2025
Notable changes:

console:
  * (SEMVER-MINOR) allow per-stream `inspectOptions` option (Anna Henningsen) #60082
lib:
  * (SEMVER-MINOR) remove util.getCallSite (Rafael Gonzaga) #59980
sqlite:
  * (SEMVER-MINOR) create authorization api (Guilherme Araújo) #59928

PR-URL: #60136
RafaelGSS pushed a commit that referenced this pull request Oct 8, 2025
Notable changes:

console:
  * (SEMVER-MINOR) allow per-stream `inspectOptions` option (Anna Henningsen) #60082
lib:
  * (SEMVER-MINOR) remove util.getCallSite (Rafael Gonzaga) #59980
sqlite:
  * (SEMVER-MINOR) create authorization api (Guilherme Araújo) #59928

PR-URL: #60136
Signed-off-by: RafaelGSS <[email protected]>
RafaelGSS pushed a commit that referenced this pull request Oct 8, 2025
Notable changes:

console:
  * (SEMVER-MINOR) allow per-stream `inspectOptions` option (Anna Henningsen) #60082
lib:
  * (SEMVER-MINOR) remove util.getCallSite (Rafael Gonzaga) #59980
sqlite:
  * (SEMVER-MINOR) create authorization api (Guilherme Araújo) #59928

PR-URL: #60136
Signed-off-by: RafaelGSS <[email protected]>
Comment on lines -134 to -135
* `inspectOptions` {Object} Specifies options that are passed along to
[`util.inspect()`][].

Choose a reason for hiding this comment

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

-1

Choose a reason for hiding this comment

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

0000

Comment on lines -142 to -145
if (inspectOptions.colors !== undefined &&
options.colorMode !== undefined) {
throw new ERR_INCOMPATIBLE_OPTION_PAIR(
'options.inspectOptions.color', 'colorMode');

Choose a reason for hiding this comment

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

-1

Copy link

@admodius1991 admodius1991 left a comment

Choose a reason for hiding this comment

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

Leave a Review

Copy link

@admodius1991 admodius1991 left a comment

Choose a reason for hiding this comment

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

0000

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

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. console Issues and PRs related to the console subsystem. needs-ci PRs that need a full CI run. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants