Skip to content

Remove colored_json::enable_ansi_support() calls#1652

Merged
jtran merged 2 commits into
dependabot/cargo/colored_json-5.0.0from
copilot/remove-colored-json-calls
May 24, 2026
Merged

Remove colored_json::enable_ansi_support() calls#1652
jtran merged 2 commits into
dependabot/cargo/colored_json-5.0.0from
copilot/remove-colored-json-calls

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 24, 2026

Completes the migration away from colored_json's ANSI support bootstrapping on Windows. The colored_json::enable_ansi_support() call was redundant alongside nu_ansi_term::enable_ansi_support(), which already handles Windows ANSI terminal initialization.

Changes

  • src/iostreams.rs: Removed #[cfg(windows)] call to colored_json::enable_ansi_support() and its associated comment. The nu_ansi_term::enable_ansi_support() call remains to preserve Windows ANSI color support.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.89%. Comparing base (e66823c) to head (c8f3284).

Additional details and impacted files
@@                           Coverage Diff                           @@
##           dependabot/cargo/colored_json-5.0.0    #1652      +/-   ##
=======================================================================
- Coverage                                64.03%   63.89%   -0.15%     
=======================================================================
  Files                                       44       44              
  Lines                                     8121     8117       -4     
=======================================================================
- Hits                                      5200     5186      -14     
- Misses                                    2921     2931      +10     
Flag Coverage Δ
unittests 63.89% <ø> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jtran jtran marked this pull request as ready for review May 24, 2026 15:36
@jtran jtran merged commit 9b7d581 into dependabot/cargo/colored_json-5.0.0 May 24, 2026
13 checks passed
@jtran jtran deleted the copilot/remove-colored-json-calls branch May 24, 2026 15:37
@jtran
Copy link
Copy Markdown
Contributor

jtran commented May 24, 2026

Stacked on #1598.

jessfraz pushed a commit that referenced this pull request May 24, 2026
* Bump colored_json from 4.1.0 to 5.0.0

Bumps [colored_json](https://github.com/ctron/colored_json) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/ctron/colored_json/releases)
- [Commits](ctron/colored_json@v4.1.0...v5.0.0)

---
updated-dependencies:
- dependency-name: colored_json
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove colored_json::enable_ansi_support() calls (#1652)

* Remove colored_json::enable_ansi_support() call from iostreams.rs

* Remove newline

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Jonathan Tran <jonnytran@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Jonathan Tran <jonnytran@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants