fix(deps): update dependency chalk to v4
This PR contains the following updates:
| Package | Type | Update | New value | References | Sourcegraph |
|---|---|---|---|---|---|
| chalk | dependencies | major | ^4.1.0 | source |
Release Notes
chalk/chalk
v4.1.0
v4.0.0
Breaking
-if (chalk.level > Level.None) {}
+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) {}
-new chalk.constructor({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');
- 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 onflow-typed). - 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
v2.4.2
This release is done from the v2-release branch, as master branch targets the work-in-progress v3 release.
v2.4.1
- Improved Flow type definition for CommonJS interop.
v2.4.0
- Added Flow type definitions.
7c6f83f
v2.3.2
- Fixed detection of color support for VSCode debug console. chalk/supports-color@
b764af9 - Fixed detection of 24M colors in Konsole. chalk/supports-color@
d6e08c8 - Fixed using
chalk.ansi256when in a terminal with 256-color level support. chalk/ansi-styles@1ac7472
v2.3.1
- Calculate proper
levelwhen forcing color. chalk/supports-color@b16e9a4 - Detect 16m color support on Windows >=10.0.14931. chalk/supports-color@
cf7bd05
v2.3.0
- Added a
.visible()method for emitting text only when Chalk is enabled. This can be useful for purely cosmetic content that shouldn't be shown when there are no colors, like when piping the output.dc092b4 - TypeScript type definitions improvements.
7be154c
v2.2.2
Renovate configuration
:date: Schedule: "on the 1st through 7th day of the month" in timezone America/Los_Angeles.
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: 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 WhiteSource Renovate. View repository job log here.