-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update devdependency chalk to v5#68
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
chore(deps): update devdependency chalk to v5#68renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
Contributor
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| chalk | ^2.4.2 - ^5.6.2 |
Release Notes
chalk/chalk (chalk)
v5.6.2
- Fix vulnerability in 5.6.1, see: # 656
v5.6.0
- Make WezTerm terminal use true color
a8f5bf7
v5.5.0
v5.4.1
v5.4.0
- Update
CIRCLECIenvironments to return level 3 color supportf838120
v5.3.0
v5.2.0
- Improve Deno compatibility (# 579)
7443e9f - Detect true-color support for GitHub Actions (# 579)
7443e9f - Detect true-color support for Kitty terminal (# 579)
7443e9f - Fix test for Azure DevOps environment (# 579)
7443e9f
v5.1.2
v5.1.1
- Improved the names of exports introduced in 5.1.0 (# 567)
6e0df05- We of course preserved the old names.
v5.1.0
v5.0.1
- Add
mainfield to package.json for backwards compatibility with some developer tools85f7e96
v5.0.0
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-Chalkchalk.supportsColor-supportsColorchalk.stderr-chalkStderrchalk.stderr.supportsColor-supportsColorStderr
- Remove
.keyword(),.hsl(),.hsv(),.hwb(), and.ansi()coloring methods (# 433)4cf2e40- These were not commonly used and added a lot of bloat to Chalk. You can achieve the same by using the
color-convertpackage. - How to migrate from
.keyword()
- These were not commonly used and added a lot of bloat to Chalk. You can achieve the same by using the
- 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}}`;
+import chalkTemplate from 'chalk-template';
-chalk`2 + 3 = {bold ${2 + 3}}`;
+chalkTemplate`2 + 3 = {bold ${2 + 3}}`;
Improvements
- Bundle dependencies
04fdbd6- This means Chalk no longer has any dependencies
- The install size is less than half of v4.
- Add
overlinestyle (# 433)4cf2e40 - Preserve function prototype methods (# 434)
0fba91b
v4.1.2
- Readme updates
v4.1.1
- Readme updates
89e9e3a
v4.1.0
v4.0.0
Breaking
-if (chalk.level > Level.None) {}
+if (chalk.level > 0) {}
+if (chalk.level > 0) {}
Improvements
v3.0.0
This release has been in development for more than a year and massively improves performance and the time it takes to import Chalk.
Thanks to @ stroncium for his hard work on this.
Breaking
- Require Node.js 8
3ef170b - Remove the
.enabledproperty in favor of.level(# 356)1f77953- Why: It was confusing to users to have two properties for detecting color support.
- Migrate:
-if (chalk.enabled) {}
+if (chalk.level > 0) {}
+if (chalk.level > 0) {}
-new chalk.constructor({level: 1});
+new chalk.Instance({level: 1})
+new chalk.Instance({level: 1})
Minor breaking
- Use CommonJS-compatible export in TypeScript definition (# 344)
98628d9- Why: Faking default export for TypeScript broke IntelliSense for JavaScript.
- Migrate:
-import chalk from 'chalk';
+import chalk = require('chalk');
+import chalk = require('chalk');
- Drop built-in Flow type definition
d3be9c6- Why: None of us use Flow and we were not good at maintaining the type definition. You can get the types at flow-typed (needs to be updated to Chalk v3, open an issue on
flow-typed).
- Why: None of us use Flow and we were not good at maintaining the type definition. You can get the types at flow-typed (needs to be updated to Chalk v3, open an issue on
- Rename the
ChalkOptionsTypeScript type toOptionscf66156 - Remove
dimstyle workaround for Windows (# 331)cd5de7a- Why: The issue was fixed in newer Windows 10 builds.
- Remove the
bluecolor workaround for Windows (# 330)2ca015c- Why: The issue was fixed in newer Windows 10 builds.
Enhancements
- Massively improve performance! (# 337)
c08417e - Improve require speed (# 358)
61aca7c - Add
chalk.stderrfor printing to stderr (# 359)2a53389 - Add
blackBrightcolor. It's the same as thegraycolor, but added for consistency.c25c32a - Fix support for bracketed Unicode escapes in template literals (# 350)
9830948 - Export TypeScript types for colors and modifiers (# 357)
6b4d206 - Add
ansi256andbgAnsi256to TypeScript declaration (# 368)fb8e85a - Add
ansiandbgAnsito TypeScript declaration (# 369)18c280d
Color detection
- The
FORCE_COLORenvironment variable can now be used to force a certain color level (# 315)af4a078 - Add support for GitHub Actions in the color detection chalk/supports-color@
79d1303 - Give
TERM=dumbhigher priority in the color detection chalk/supports-color@8d6a7b5 - Add support for VT220 in the color detection chalk/supports-color@
ed0fe39
Fixes
- Fix support for nested styles (# 335)
87156ce - Fix const enum for TypeScript (# 364)
4e65299 - Fix TypeScript type for
supportsColorwhich is top-level only (# 342)b3e9b91 - Fix TypeScript type for
chalk.supportsColor(# 347)d82b2a6 - Fix TypeScript type for tagged template literal argument to accept
unknowninstead of juststring(# 316)7f6e563
Configuration
Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
Automerge: Disabled by config. Please merge this manually once you are satisfied.
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
bot
force-pushed
the
renovate/chalk-5.x
branch
from
September 25, 2022 16:08
43207d4 to
3bdf1d2
Compare
renovate
bot
force-pushed
the
renovate/chalk-5.x
branch
from
November 20, 2022 09:16
3bdf1d2 to
fc3fc69
Compare
renovate
bot
force-pushed
the
renovate/chalk-5.x
branch
from
March 18, 2023 17:57
fc3fc69 to
8ff58aa
Compare
renovate
bot
force-pushed
the
renovate/chalk-5.x
branch
from
June 29, 2023 12:38
8ff58aa to
d36fc64
Compare
renovate
bot
force-pushed
the
renovate/chalk-5.x
branch
2 times, most recently
from
December 21, 2024 20:04
519b024 to
ad9233e
Compare
renovate
bot
force-pushed
the
renovate/chalk-5.x
branch
from
August 4, 2025 00:43
ad9233e to
3612054
Compare
renovate
bot
force-pushed
the
renovate/chalk-5.x
branch
from
August 17, 2025 08:45
3612054 to
57f18f6
Compare
renovate
bot
force-pushed
the
renovate/chalk-5.x
branch
from
September 8, 2025 17:39
57f18f6 to
3d74493
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.