chalk/chalk
### [`v3.0.0`](https://togithub.com/chalk/chalk/releases/v3.0.0)
[Compare Source](https://togithub.com/chalk/chalk/compare/v2.4.2...v3.0.0)
**This release has been in development for more than a year and [massively improves performance](https://togithub.com/chalk/chalk/pull/337) and [the time it takes to import Chalk](https://togithub.com/chalk/chalk/pull/358).**
Thanks to [@stroncium](https://togithub.com/stroncium) for his hard work on this. 🙌
##### Breaking
- Require Node.js 8 [`3ef170b`](https://togithub.com/chalk/chalk/commit/3ef170b)
- Remove the `.enabled` property in favor of [`.level`](https://togithub.com/chalk/chalk#chalklevel) ([#356](https://togithub.com/chalk/chalk/issues/356)) [`1f77953`](https://togithub.com/chalk/chalk/commit/1f77953)
\- Why: It was confusing to users to have two properties for detecting color support.
\- Migrate:
```diff
-if (chalk.enabled) {}
+if (chalk.level > 0) {}
```
- Remove `chalk.constructor()` in favor of `chalk.Instance()` ([#322](https://togithub.com/chalk/chalk/issues/322)) [`de2f4cd`](https://togithub.com/chalk/chalk/commit/de2f4cd)
\- Migrate:
```diff
-new chalk.constructor({level: 1});
+new chalk.Instance({level: 1})
```
##### Minor breaking
- Use CommonJS-compatible export in TypeScript definition ([#344](https://togithub.com/chalk/chalk/issues/344)) [`98628d9`](https://togithub.com/chalk/chalk/commit/98628d9)
\- Why: Faking default export for TypeScript [broke IntelliSense for JavaScript](https://togithub.com/sindresorhus/mem/issues/31).
\- Migrate:
```diff
-import chalk from 'chalk';
+import chalk = require('chalk');
```
Or if you have `esModuleInterop` enabled:
```diff
-import chalk from 'chalk';
+import * as chalk from 'chalk';
```
- Drop built-in Flow type definition [`d3be9c6`](https://togithub.com/chalk/chalk/commit/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](https://togithub.com/flow-typed/flow-typed) _(needs to be updated to Chalk v3, open an issue on `flow-typed`)_.
- Rename the `ChalkOptions` TypeScript type to `Options` [`cf66156`](https://togithub.com/chalk/chalk/commit/cf66156)
- Remove `dim` style workaround for Windows ([#331](https://togithub.com/chalk/chalk/issues/331)) [`cd5de7a`](https://togithub.com/chalk/chalk/commit/cd5de7a)
\- Why: The issue was fixed in newer Windows 10 builds.
- Remove the `blue` color workaround for Windows ([#330](https://togithub.com/chalk/chalk/issues/330)) [`2ca015c`](https://togithub.com/chalk/chalk/commit/2ca015c)
\- Why: The issue was fixed in newer Windows 10 builds.
##### Enhancements
- Massively improve performance! ([#337](https://togithub.com/chalk/chalk/issues/337)) [`c08417e`](https://togithub.com/chalk/chalk/commit/c08417e)
- Improve require speed ([#358](https://togithub.com/chalk/chalk/issues/358)) [`61aca7c`](https://togithub.com/chalk/chalk/commit/61aca7c)
- Add [`chalk.stderr`](https://togithub.com/chalk/chalk#chalkstderr-and-chalkstderrsupportscolor) for printing to stderr ([#359](https://togithub.com/chalk/chalk/issues/359)) [`2a53389`](https://togithub.com/chalk/chalk/commit/2a53389)
- Add `blackBright` color. It's the same as the `gray` color, but added for consistency. [`c25c32a`](https://togithub.com/chalk/chalk/commit/c25c32a)
- Fix support for bracketed Unicode escapes in template literals ([#350](https://togithub.com/chalk/chalk/issues/350)) [`9830948`](https://togithub.com/chalk/chalk/commit/9830948)
- Export TypeScript types for colors and modifiers ([#357](https://togithub.com/chalk/chalk/issues/357)) [`6b4d206`](https://togithub.com/chalk/chalk/commit/6b4d206)
- Add `ansi256` and `bgAnsi256` to TypeScript declaration ([#368](https://togithub.com/chalk/chalk/issues/368)) [`fb8e85a`](https://togithub.com/chalk/chalk/commit/fb8e85a)
- Add `ansi` and `bgAnsi` to TypeScript declaration ([#369](https://togithub.com/chalk/chalk/issues/369)) [`18c280d`](https://togithub.com/chalk/chalk/commit/18c280d)
##### Color detection
- The `FORCE_COLOR` environment variable can now be used to force a certain color level ([#315](https://togithub.com/chalk/chalk/issues/315)) [`af4a078`](https://togithub.com/chalk/chalk/commit/af4a078)
- Add support for GitHub Actions in the color detection [chalk/supports-color@`79d1303`](https://togithub.com/chalk/supports-color/commit/79d13032e2aa7a011f1c8badc866bcf4bc500f7a)
- Give `TERM=dumb` higher priority in the color detection [chalk/supports-color@`8d6a7b5`](https://togithub.com/chalk/supports-color/commit/8d6a7b5830a96858a95ce9cfee1840dc30a3e837)
- Add support for VT220 in the color detection [chalk/supports-color@`ed0fe39`](https://togithub.com/chalk/supports-color/commit/ed0fe39d600ff1c286b3948abbef88eaef4f8f27)
##### Fixes
- Fix support for nested styles ([#335](https://togithub.com/chalk/chalk/issues/335)) [`87156ce`](https://togithub.com/chalk/chalk/commit/87156ce)
- Fix const enum for TypeScript ([#364](https://togithub.com/chalk/chalk/issues/364)) [`4e65299`](https://togithub.com/chalk/chalk/commit/4e65299)
- Fix TypeScript type for `supportsColor` which is top‑level only ([#342](https://togithub.com/chalk/chalk/issues/342)) [`b3e9b91`](https://togithub.com/chalk/chalk/commit/b3e9b91)
- Fix TypeScript type for `chalk.supportsColor` ([#347](https://togithub.com/chalk/chalk/issues/347)) [`d82b2a6`](https://togithub.com/chalk/chalk/commit/d82b2a6)
- Fix TypeScript type for tagged template literal argument to accept `unknown` instead of just `string` ([#316](https://togithub.com/chalk/chalk/issues/316)) [`7f6e563`](https://togithub.com/chalk/chalk/commit/7f6e563)
### [`v2.4.2`](https://togithub.com/chalk/chalk/releases/v2.4.2)
[Compare Source](https://togithub.com/chalk/chalk/compare/v2.4.1...v2.4.2)
- Strict mode in Flow definition ([#309](https://togithub.com/chalk/chalk/issues/309)) [`f95d9ec`](https://togithub.com/chalk/chalk/commit/f95d9ec8c92329fd087fbd3ecb7a87d0e8345b59)
* * *
_This release is done from the [`v2-release`](https://togithub.com/chalk/chalk/commits/v2-release) branch, as `master` branch targets the work-in-progress v3 release._
### [`v2.4.1`](https://togithub.com/chalk/chalk/releases/v2.4.1)
[Compare Source](https://togithub.com/chalk/chalk/compare/v2.4.0...v2.4.1)
- Improved Flow type definition for CommonJS interop.
### [`v2.4.0`](https://togithub.com/chalk/chalk/releases/v2.4.0)
[Compare Source](https://togithub.com/chalk/chalk/compare/v2.3.2...v2.4.0)
- Added Flow type definitions. [`7c6f83f`](https://togithub.com/chalk/chalk/commit/7c6f83f719b241b7a1a1cd54b256d123e53eab4a)
### [`v2.3.2`](https://togithub.com/chalk/chalk/releases/v2.3.2)
[Compare Source](https://togithub.com/chalk/chalk/compare/v2.3.1...v2.3.2)
- Fixed detection of color support for VSCode debug console. [chalk/supports-color@`b764af9`](https://togithub.com/chalk/supports-color/commit/b764af94766fd44e8a2ebf690c1c1b2e86d61328)
- Fixed detection of 24M colors in Konsole. [chalk/supports-color@`d6e08c8`](https://togithub.com/chalk/supports-color/commit/d6e08c83d0e24241cb7d24206ef8753e839103eb)
- Fixed using `chalk.ansi256` when in a terminal with 256-color level support. [chalk/ansi-styles@`1ac7472`](https://togithub.com/chalk/ansi-styles/commit/1ac7472f8bb4f583299b6d5ef87a383f7b564b4b)
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
: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 contains the following updates:
2.3.1
->3.0.0
Release Notes
chalk/chalk
### [`v3.0.0`](https://togithub.com/chalk/chalk/releases/v3.0.0) [Compare Source](https://togithub.com/chalk/chalk/compare/v2.4.2...v3.0.0) **This release has been in development for more than a year and [massively improves performance](https://togithub.com/chalk/chalk/pull/337) and [the time it takes to import Chalk](https://togithub.com/chalk/chalk/pull/358).** Thanks to [@stroncium](https://togithub.com/stroncium) for his hard work on this. 🙌 ##### Breaking - Require Node.js 8 [`3ef170b`](https://togithub.com/chalk/chalk/commit/3ef170b) - Remove the `.enabled` property in favor of [`.level`](https://togithub.com/chalk/chalk#chalklevel) ([#356](https://togithub.com/chalk/chalk/issues/356)) [`1f77953`](https://togithub.com/chalk/chalk/commit/1f77953) \- Why: It was confusing to users to have two properties for detecting color support. \- Migrate: ```diff -if (chalk.enabled) {} +if (chalk.level > 0) {} ``` - Remove `chalk.constructor()` in favor of `chalk.Instance()` ([#322](https://togithub.com/chalk/chalk/issues/322)) [`de2f4cd`](https://togithub.com/chalk/chalk/commit/de2f4cd) \- Migrate: ```diff -new chalk.constructor({level: 1}); +new chalk.Instance({level: 1}) ``` ##### Minor breaking - Use CommonJS-compatible export in TypeScript definition ([#344](https://togithub.com/chalk/chalk/issues/344)) [`98628d9`](https://togithub.com/chalk/chalk/commit/98628d9) \- Why: Faking default export for TypeScript [broke IntelliSense for JavaScript](https://togithub.com/sindresorhus/mem/issues/31). \- Migrate: ```diff -import chalk from 'chalk'; +import chalk = require('chalk'); ``` Or if you have `esModuleInterop` enabled: ```diff -import chalk from 'chalk'; +import * as chalk from 'chalk'; ``` - Drop built-in Flow type definition [`d3be9c6`](https://togithub.com/chalk/chalk/commit/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](https://togithub.com/flow-typed/flow-typed) _(needs to be updated to Chalk v3, open an issue on `flow-typed`)_. - Rename the `ChalkOptions` TypeScript type to `Options` [`cf66156`](https://togithub.com/chalk/chalk/commit/cf66156) - Remove `dim` style workaround for Windows ([#331](https://togithub.com/chalk/chalk/issues/331)) [`cd5de7a`](https://togithub.com/chalk/chalk/commit/cd5de7a) \- Why: The issue was fixed in newer Windows 10 builds. - Remove the `blue` color workaround for Windows ([#330](https://togithub.com/chalk/chalk/issues/330)) [`2ca015c`](https://togithub.com/chalk/chalk/commit/2ca015c) \- Why: The issue was fixed in newer Windows 10 builds. ##### Enhancements - Massively improve performance! ([#337](https://togithub.com/chalk/chalk/issues/337)) [`c08417e`](https://togithub.com/chalk/chalk/commit/c08417e) - Improve require speed ([#358](https://togithub.com/chalk/chalk/issues/358)) [`61aca7c`](https://togithub.com/chalk/chalk/commit/61aca7c) - Add [`chalk.stderr`](https://togithub.com/chalk/chalk#chalkstderr-and-chalkstderrsupportscolor) for printing to stderr ([#359](https://togithub.com/chalk/chalk/issues/359)) [`2a53389`](https://togithub.com/chalk/chalk/commit/2a53389) - Add `blackBright` color. It's the same as the `gray` color, but added for consistency. [`c25c32a`](https://togithub.com/chalk/chalk/commit/c25c32a) - Fix support for bracketed Unicode escapes in template literals ([#350](https://togithub.com/chalk/chalk/issues/350)) [`9830948`](https://togithub.com/chalk/chalk/commit/9830948) - Export TypeScript types for colors and modifiers ([#357](https://togithub.com/chalk/chalk/issues/357)) [`6b4d206`](https://togithub.com/chalk/chalk/commit/6b4d206) - Add `ansi256` and `bgAnsi256` to TypeScript declaration ([#368](https://togithub.com/chalk/chalk/issues/368)) [`fb8e85a`](https://togithub.com/chalk/chalk/commit/fb8e85a) - Add `ansi` and `bgAnsi` to TypeScript declaration ([#369](https://togithub.com/chalk/chalk/issues/369)) [`18c280d`](https://togithub.com/chalk/chalk/commit/18c280d) ##### Color detection - The `FORCE_COLOR` environment variable can now be used to force a certain color level ([#315](https://togithub.com/chalk/chalk/issues/315)) [`af4a078`](https://togithub.com/chalk/chalk/commit/af4a078) - Add support for GitHub Actions in the color detection [chalk/supports-color@`79d1303`](https://togithub.com/chalk/supports-color/commit/79d13032e2aa7a011f1c8badc866bcf4bc500f7a) - Give `TERM=dumb` higher priority in the color detection [chalk/supports-color@`8d6a7b5`](https://togithub.com/chalk/supports-color/commit/8d6a7b5830a96858a95ce9cfee1840dc30a3e837) - Add support for VT220 in the color detection [chalk/supports-color@`ed0fe39`](https://togithub.com/chalk/supports-color/commit/ed0fe39d600ff1c286b3948abbef88eaef4f8f27) ##### Fixes - Fix support for nested styles ([#335](https://togithub.com/chalk/chalk/issues/335)) [`87156ce`](https://togithub.com/chalk/chalk/commit/87156ce) - Fix const enum for TypeScript ([#364](https://togithub.com/chalk/chalk/issues/364)) [`4e65299`](https://togithub.com/chalk/chalk/commit/4e65299) - Fix TypeScript type for `supportsColor` which is top‑level only ([#342](https://togithub.com/chalk/chalk/issues/342)) [`b3e9b91`](https://togithub.com/chalk/chalk/commit/b3e9b91) - Fix TypeScript type for `chalk.supportsColor` ([#347](https://togithub.com/chalk/chalk/issues/347)) [`d82b2a6`](https://togithub.com/chalk/chalk/commit/d82b2a6) - Fix TypeScript type for tagged template literal argument to accept `unknown` instead of just `string` ([#316](https://togithub.com/chalk/chalk/issues/316)) [`7f6e563`](https://togithub.com/chalk/chalk/commit/7f6e563) ### [`v2.4.2`](https://togithub.com/chalk/chalk/releases/v2.4.2) [Compare Source](https://togithub.com/chalk/chalk/compare/v2.4.1...v2.4.2) - Strict mode in Flow definition ([#309](https://togithub.com/chalk/chalk/issues/309)) [`f95d9ec`](https://togithub.com/chalk/chalk/commit/f95d9ec8c92329fd087fbd3ecb7a87d0e8345b59) * * * _This release is done from the [`v2-release`](https://togithub.com/chalk/chalk/commits/v2-release) branch, as `master` branch targets the work-in-progress v3 release._ ### [`v2.4.1`](https://togithub.com/chalk/chalk/releases/v2.4.1) [Compare Source](https://togithub.com/chalk/chalk/compare/v2.4.0...v2.4.1) - Improved Flow type definition for CommonJS interop. ### [`v2.4.0`](https://togithub.com/chalk/chalk/releases/v2.4.0) [Compare Source](https://togithub.com/chalk/chalk/compare/v2.3.2...v2.4.0) - Added Flow type definitions. [`7c6f83f`](https://togithub.com/chalk/chalk/commit/7c6f83f719b241b7a1a1cd54b256d123e53eab4a) ### [`v2.3.2`](https://togithub.com/chalk/chalk/releases/v2.3.2) [Compare Source](https://togithub.com/chalk/chalk/compare/v2.3.1...v2.3.2) - Fixed detection of color support for VSCode debug console. [chalk/supports-color@`b764af9`](https://togithub.com/chalk/supports-color/commit/b764af94766fd44e8a2ebf690c1c1b2e86d61328) - Fixed detection of 24M colors in Konsole. [chalk/supports-color@`d6e08c8`](https://togithub.com/chalk/supports-color/commit/d6e08c83d0e24241cb7d24206ef8753e839103eb) - Fixed using `chalk.ansi256` when in a terminal with 256-color level support. [chalk/ansi-styles@`1ac7472`](https://togithub.com/chalk/ansi-styles/commit/1ac7472f8bb4f583299b6d5ef87a383f7b564b4b)Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
: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.
This PR has been generated by WhiteSource Renovate. View repository job log here.