Skip to content

Migrate chalk from 4.1.2 to 5.0.0 - #1708

Closed
enismustafaj wants to merge 2 commits into
TypeStrong:mainfrom
enismustafaj:main
Closed

Migrate chalk from 4.1.2 to 5.0.0#1708
enismustafaj wants to merge 2 commits into
TypeStrong:mainfrom
enismustafaj:main

Conversation

@enismustafaj

Copy link
Copy Markdown

Automated migration for chalk 4.1.2 -> 5.0.0, generated and tested by apiweiser-cli's coding agent.

Changelog summary

Breaking

  • This package is now pure ESM. Please read this before upgrading.
  • If you use TypeScript, you need TypeScript 4.7 or later.
  • Require Node.js 12.20
  • 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
  • The tagged template literal support moved into a separate package: chalk-template

Improvements

  • Bundle dependencies - Chalk no longer has any dependencies
  • Install size is less than half of v4
  • Add overline style
  • Preserve function prototype methods

enismustafaj and others added 2 commits September 6, 2026 20:11
Bumps the chalk dependency itself (was still ^4.1.0) alongside the
call-site migration - the source now uses v5's named exports/types
(Chalk, ChalkInstance, supportsColor), which don't exist in v4.
@enismustafaj enismustafaj changed the title Migrate chalk from 4.1.2 to 5.0.0- #1 Migrate chalk from 4.1.2 to 5.0.0 Sep 6, 2026
@johnnyreilly

Copy link
Copy Markdown
Member

Thanks but this repository does not accept unknown automated PRs. We're also planning to migrate away from Chalk entirely

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