Skip to content

Update dependency chalk to v5#133

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/chalk-5.x
Jul 1, 2026
Merged

Update dependency chalk to v5#133
renovate[bot] merged 1 commit into
mainfrom
renovate/chalk-5.x

Conversation

@renovate

@renovate renovate Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
chalk ^4.1.2^5.0.0 age confidence

Release Notes

chalk/chalk (chalk)

v5.6.2

Compare Source

  • Fix vulnerability in 5.6.1, see: #​656

v5.6.0

Compare Source

  • Make WezTerm terminal use true color a8f5bf7

v5.5.0

Compare Source


v5.4.1

Compare Source

v5.4.0

Compare Source

  • Update CIRCLECI environments to return level 3 color support f838120

v5.3.0

Compare Source

v5.2.0

Compare Source

v5.1.2

Compare Source

v5.1.1

Compare Source

  • Improved the names of exports introduced in 5.1.0 (#​567) 6e0df05
    • We of course preserved the old names.

v5.1.0

Compare Source

v5.0.1

Compare Source

  • Add main field to package.json for backwards compatibility with some developer tools 85f7e96

v5.0.0

Compare Source

Breaking
  • This package is now pure ESM. Please read this.
    • If you use TypeScript, you need to use TypeScript 4.7 or later. Why.
    • If you use a bundler, make sure it supports ESM and that you have correctly configured it for ESM.
    • The Chalk issue tracker is not a support channel for your favorite build/bundler tool.
    • It's totally fine to stay on Chalk v4. It's been stable for years.
  • Require Node.js 12.20 fa16f4e
  • Move some properties off the default export to individual named exports:
    • chalk.InstanceChalk
    • chalk.supportsColorsupportsColor
    • chalk.stderrchalkStderr
    • chalk.stderr.supportsColorsupportsColorStderr
  • Remove .keyword(), .hsl(), .hsv(), .hwb(), and .ansi() coloring methods (#​433) 4cf2e40
  • The tagged template literal support moved into a separate package: chalk-template (#​524) c987c61
-import chalk from 'chalk';
+import chalkTemplate from 'chalk-template';

-chalk`2 + 3 = {bold ${2 + 3}}`;
+chalkTemplate`2 + 3 = {bold ${2 + 3}}`;
Improvements

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the 🚚 private-dependencies Private dependency label Jun 30, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

While the automated analysis indicates the PR is 'up to standards', this upgrade to chalk v5 is currently unsafe to merge. Chalk v5 is a pure ESM package, but this project lacks the "type": "module" configuration in package.json, which will cause runtime errors when the package is imported. Additionally, the PR only updates the dependency version and fails to address mandatory source code migrations—such as renaming properties and transitioning template literals—required by the breaking changes in this major release.

About this PR

  • This PR performs a major version bump (v4 to v5) which includes significant breaking changes and API removals. However, only the package.json has been updated. This suggests that necessary migrations (such as replacing deprecated methods or handling renamed properties like chalk.Instance) have been overlooked.

Test suggestions

  • Verify successful import and execution in an ESM-compatible environment
  • Check for usage of removed methods or named exports in the source code
  • Confirm tagged template literals are migrated to 'chalk-template' if used
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify successful import and execution in an ESM-compatible environment
2. Check for usage of removed methods or named exports in the source code
3. Confirm tagged template literals are migrated to 'chalk-template' if used
Low confidence findings
  • There is no evidence of testing or validation included in this PR to ensure the extension remains functional after transitioning to a pure ESM dependency.

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

"@dqbd/tiktoken": "^1.0.22",
"better-sqlite3": "^12.9.0",
"chalk": "^4.1.2",
"chalk": "^5.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 HIGH RISK

Chalk v5 is a pure ESM package. Since this project does not specify "type": "module", it likely uses CommonJS, which is incompatible with Chalk 5. This change will cause runtime errors (ERR_REQUIRE_ESM) if chalk is loaded via require(). To resolve this, either revert the dependency to version 4.1.2 or migrate the entire project to ESM.

@github-actions github-actions Bot added this to the v0.0.3 milestone Jun 30, 2026
@github-actions github-actions Bot added the :shipit: merge Shipit! label Jun 30, 2026
@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit ed87d39. ± Comparison against base commit fa2d09b.

♻️ This comment has been updated with latest results.

@renovate renovate Bot force-pushed the renovate/chalk-5.x branch 11 times, most recently from dccb296 to ed87d39 Compare July 1, 2026 15:00
@renovate renovate Bot added this pull request to the merge queue Jul 1, 2026
@renovate renovate Bot force-pushed the renovate/chalk-5.x branch from ed87d39 to c6d1f1a Compare July 1, 2026 15:54
Merged via the queue into main with commit b5b5844 Jul 1, 2026
5 checks passed
@renovate renovate Bot deleted the renovate/chalk-5.x branch July 1, 2026 16:10
@github-actions github-actions Bot removed the :shipit: merge Shipit! label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚚 private-dependencies Private dependency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants