Skip to content

fix(deps): update dependency chalk to v6 - #35

Open
renovate-appwrite[bot] wants to merge 1 commit into
masterfrom
renovate/chalk-6.x
Open

renovate-appwrite[bot] wants to merge 1 commit into
masterfrom
renovate/chalk-6.x

Conversation

@renovate-appwrite

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
chalk ^4.1.0 → ^6.0.0 age confidence

Release Notes

chalk/chalk (chalk)

v6.0.1

Compare Source

  • Fix inconsistent coercion of two arguments 9c93a04

v6.0.0

Compare Source

Breaking
Improvements
Fixes
  • Treat a numeric FORCE_COLOR as an exact level (#​688) e912931
  • Downsample ansi256() and bgAnsi256() to 16 colors at level 1 (#​687) ff549c5

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.Instance → Chalk
    • chalk.supportsColor → supportsColor
    • chalk.stderr → chalkStderr
    • chalk.stderr.supportsColor → supportsColorStderr
  • 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
    • Only on Monday (* * * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, 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 has been generated by Mend Renovate CLI.

@appwrite

appwrite Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🟡 Tier B · Needs changes before merging

The locked Chalk release breaks the existing CommonJS usage and also exceeds the Node version pinned by the Docker image.

Updates the npm dependency range and lockfile from Chalk 4.1.2 to 6.0.1, removing Chalk's former transitive color packages. The application source and the Bun lockfile are unchanged.

Verdict New comments Fixed Still open
🛑 Changes requested 2 0 0
Finding Where
🟠 Chalk 6 breaks the existing CommonJS API usage package-lock.json:17
🟠 Chalk 6 requires Node 22 but the Docker image uses Node 16 package-lock.json:22
Fix with agent prompt
### Issue 1
package-lock.json:17
**Chalk 6 breaks the existing CommonJS API usage**

With the locked package, `require('chalk').greenBright` is undefined (confirmed with Node 26.13.0); `src/app.js:2` still assigns `require('chalk')` directly, and the first task calls `chalk.greenBright`, so `runAllTasks()` stops before the playground can make any API calls. Chalk 6's default export needs to be consumed differently, or this project needs a compatible Chalk version.

### Issue 2
package-lock.json:22
**Chalk 6 requires Node 22 but the Docker image uses Node 16**

The locked dependency declares Node >=22, while `Dockerfile:1` pins `node:16.0-alpine` and Docker is documented as a supported way to run this playground. On that runtime Chalk 6 is unsupported and its ESM package cannot be loaded by the existing CommonJS entrypoint, so the application cannot run; retain a Node-16-compatible Chalk release or raise the runtime version.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
📂 Walkthrough · 2
File Change
package.json Raises the declared Chalk dependency range to v6.
package-lock.json Locks Chalk 6.0.1 and removes the transitive dependencies used by Chalk 4.

Reviewed cfe5402 · Details · Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite 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.

🟡 Tier B · 2 blocking findings to address. Summary

Comment thread package-lock.json
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
},
"version": "6.0.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Chalk 6 breaks the existing CommonJS API usage

With the locked package, require('chalk').greenBright is undefined (confirmed with Node 26.13.0); src/app.js:2 still assigns require('chalk') directly, and the first task calls chalk.greenBright, so runAllTasks() stops before the playground can make any API calls. Chalk 6's default export needs to be consumed differently, or this project needs a compatible Chalk version.

Prompt To Fix With AI
This is a comment left during a code review.
Path: package-lock.json
Line: 17

Comment:
**Chalk 6 breaks the existing CommonJS API usage**

With the locked package, `require('chalk').greenBright` is undefined (confirmed with Node 26.13.0); `src/app.js:2` still assigns `require('chalk')` directly, and the first task calls `chalk.greenBright`, so `runAllTasks()` stops before the playground can make any API calls. Chalk 6's default export needs to be consumed differently, or this project needs a compatible Chalk version.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

🟠 Major · bug · Reply if this doesn't apply.

Comment thread package-lock.json
"license": "MIT",
"engines": {
"node": ">=10"
"node": ">=22"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Chalk 6 requires Node 22 but the Docker image uses Node 16

The locked dependency declares Node >=22, while Dockerfile:1 pins node:16.0-alpine and Docker is documented as a supported way to run this playground. On that runtime Chalk 6 is unsupported and its ESM package cannot be loaded by the existing CommonJS entrypoint, so the application cannot run; retain a Node-16-compatible Chalk release or raise the runtime version.

Prompt To Fix With AI
This is a comment left during a code review.
Path: package-lock.json
Line: 22

Comment:
**Chalk 6 requires Node 22 but the Docker image uses Node 16**

The locked dependency declares Node >=22, while `Dockerfile:1` pins `node:16.0-alpine` and Docker is documented as a supported way to run this playground. On that runtime Chalk 6 is unsupported and its ESM package cannot be loaded by the existing CommonJS entrypoint, so the application cannot run; retain a Node-16-compatible Chalk release or raise the runtime version.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

🟠 Major · bug · Reply if this doesn't apply.

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.

0 participants