Skip to content

chore: replace picocolors with node:util for styling in CLI#2437

Merged
andrii-bodnar merged 1 commit intolingui:nextfrom
yslpn:chore/replace-picocolors-with-node-utils
Feb 9, 2026
Merged

chore: replace picocolors with node:util for styling in CLI#2437
andrii-bodnar merged 1 commit intolingui:nextfrom
yslpn:chore/replace-picocolors-with-node-utils

Conversation

@yslpn
Copy link
Contributor

@yslpn yslpn commented Feb 7, 2026

Description

Replace picocolors dependency with Node.js built-in util.styleText function.

This reduces external dependencies by using native Node.js styling functionality available since Node.js v20.12.0 (stable in v22.13.0).

Reference: https://nodejs.org/en/blog/migrations/chalk-to-styletext

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Examples update

Checklist

  • I have read the CONTRIBUTING and CODE_OF_CONDUCT docs
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation (if appropriate)

@vercel
Copy link

vercel bot commented Feb 7, 2026

@yslpn is attempting to deploy a commit to the Crowdin Team on Vercel.

A member of the Team first needs to authorize it.

@codecov
Copy link

codecov bot commented Feb 7, 2026

Codecov Report

❌ Patch coverage is 64.28571% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.76%. Comparing base (dd43fb0) to head (457f676).
⚠️ Report is 298 commits behind head on next.

Files with missing lines Patch % Lines
packages/cli/src/lingui-extract.ts 0.00% 3 Missing ⚠️
packages/cli/src/lingui-compile.ts 0.00% 2 Missing ⚠️

❌ Your patch status has failed because the patch coverage (64.28%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##             next    #2437       +/-   ##
===========================================
+ Coverage   76.66%   88.76%   +12.09%     
===========================================
  Files          81      117       +36     
  Lines        2083     3284     +1201     
  Branches      532      970      +438     
===========================================
+ Hits         1597     2915     +1318     
+ Misses        375      331       -44     
+ Partials      111       38       -73     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vercel
Copy link

vercel bot commented Feb 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
js-lingui Ready Ready Preview Feb 9, 2026 9:03am

Request Review

@andrii-bodnar andrii-bodnar added this to the v6 milestone Feb 9, 2026
@andrii-bodnar andrii-bodnar merged commit 4b46b32 into lingui:next Feb 9, 2026
8 of 9 checks passed
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.

3 participants