Skip to content

Releases: chalk/chalk

v2.2.0

18 Oct 03:17
Compare
Choose a tag to compare

Chalk now comes with TypeScript type definitions built-in. f653b06
Note: It's incompatible with @types/chalk if you're currently using that: #215

v2.1.0...v2.2.0

2.0.0

29 Jun 23:52
Compare
Choose a tag to compare

version 2

Chalk is a Node.js module for styling and colorizing terminal output.

Two years ago, @Qix- asked me about adding 256/Truecolor support to Chalk. He soon after joined the Chalk team. And now we’re finally able to ship Truecolor support in Chalk!

Chalk has had an immense growth since the 1.0.0 release in 2015. It's now trusted by more than 17.000 packages, up from 3000, and it's the 5th most depended upon package on npm.

Highlights

Breaking changes

  • Requires Node.js 4 or later.
  • Removed chalk.hasColor(). Use the has-ansi package directly instead. 04cae22
  • Removed chalk.stripColor(). Use the strip-ansi package directly instead. 04cae22
  • Removed chalk.styles. Use the ansi-styles package directly instead. 8702496

256/Truecolor support

chalk rainbow

Chalk now supports 256 colors and Truecolor (16 million colors). Terminal apps like Hyper and iTerm supports Truecolor, enabling you to create really immersive CLI experiences. Chalk is smart enough to downsample the colors to whatever the terminal supports, so you can use any colors without having to think whether it's supported or not.

Read more in the docs.

cb3f230

Tagged template literal

Chalk now ships with a tagged template literal that makes it much nicer to create long strings with lots of different styling.

const name = 'Sindre';
console.log(chalk`{bold Hello ${name}}`);

Read more in the docs.

f66271e

Other

All changes

v1.1.3...v2.0.0


Made with ♥ by Josh, Sindre, and all our wonderful contributors.

1.1.1 - builder-is-not-defined

19 Aug 20:13
Compare
Choose a tag to compare

Fixes a very strange issue with using the same name for a variable and its assigned function. #81

Probably a V8 bug.

1.1.0 - argumentative-pineapple

01 Jul 13:39
Compare
Choose a tag to compare

Introducing chalk 1.1.0!

Chalk is now used by over 4000 npm packages and has become the eight most depended on package in the world!

Update

$ npm install --save chalk

Highlights

Changes

v1.0.0...v1.1.0

Contribute

Help us get npm packages upgraded to chalk 1.1.0 by submitting a Pull Request to any of these repositories upgrading their chalk dependency in package.json.

We're also looking for feedback on the documentation. If you think anything can be improved, let us know by opening an issue ;)

Made with ♥ by Sindre, Joshua, JD, and all our wonderful contributors.

1.0.0 - radiant-luminosity

23 Feb 07:43
Compare
Choose a tag to compare

Introducing chalk 1.0.0!

Chalk is a node module for styling/colorizing terminal output.

Chalk is now used by ~3000 npm packages and even displayed on the npm landing page.

Fun fact: Technically, color doesn’t exist. Color is created only when our brain tries to make sense from light signals it receives from the outer world. In other words, it’s all in your head.

Update

$ npm install --save chalk

Highlights

  • Style application order is now left-to-right as one would expect. Was previously the reverse. 0234fe9
  • Force the blue color to be bright blue on Windows as the normal blue is illegible. fc6a9b2
  • Ability to disable/enable colors on a per instance basis, rather than globally. 72d1c11
  • Add ability to force color by setting the FORCE_COLOR environment variable. 19935d6
  • Disable color when node is launched from Upstart. chalk/supports-color@3371f56

Changes

v0.5.1...v1.0.0

Contribute

Help us get npm packages upgraded to chalk 1.0.0 by submitting a Pull Request to any of these repositories upgrading their chalk dependency in package.json.

We're also looking for feedback on the documentation. If you think anything can be improved, let us know by opening an issue ;)

Made with ♥ by Sindre, Joshua, and all our wonderful contributors.

0.5.1 - High Octane Orange

09 Jul 20:35
Compare
Choose a tag to compare
  • Critical bugfix #33 where cached style functions would be reset by declaring new styles. Thanks @seanmonstar!
  • Further speed improvements #32 in the case of applying only a single style. Again all credit goes to @seanmonstar.

0.5.0 - luminosity-fluorescence

04 Jul 21:32
Compare
Choose a tag to compare