All Versions
15
Latest Version
Avg Release Cycle
74 days
Latest Release
504 days ago

Changelog History
Page 1

  • v4.1.0 Changes

    June 09, 2020
    • πŸ‘Œ Support template literals for nested calls (#392) 09ddbad

    v4.0.0...v4.1.0

  • v4.0.0 Changes

    April 02, 2020

    πŸ’₯ Breaking

    • Require Node.js 10 61999a4
    • πŸ”„ Change the Level TypeScript type to be a union instead of enum f0f4638

      -if (chalk.level > Level.None) {}+if (chalk.level > 0) {}

    πŸ‘Œ Improvements

    • Use Object.setPrototypeOf as __proto__ could potentially be disabled (#387) 63469d3

    v3.0.0...v4.0.0

  • v3.0.0 Changes

    November 09, 2019

    πŸš€ 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 .enabled property 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) {}

    • βœ‚ Remove chalk.constructor() in favor of chalk.Instance() (#322) de2f4cd

      • Migrate:

      -new chalk.constructor({level: 1});+new chalk.Instance({level: 1})

    Minor breaking

    • πŸ‘‰ Use CommonJS-compatible export in TypeScript definition (#344) 98628d9

      -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 on flow-typed).
    • πŸ“‡ Rename the ChalkOptions TypeScript type to Options cf66156

    • βœ‚ Remove dim style workaround for Windows (#331) cd5de7a

      • Why: The issue was fixed in newer Windows 10 builds.
    • βœ‚ Remove the blue color 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.stderr for printing to stderr (#359) 2a53389
    • βž• Add blackBright color. It's the same as the gray color, 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 ansi256 and bgAnsi256 to TypeScript declaration (#368) fb8e85a
    • βž• Add ansi and bgAnsi to TypeScript declaration (#369) 18c280d

    Color detection

    πŸ›  Fixes

    • πŸ›  Fix support for nested styles (#335) 87156ce
    • πŸ›  Fix const enum for TypeScript (#364) 4e65299
    • πŸ›  Fix TypeScript type for supportsColor which is top‑level only (#342) b3e9b91
    • πŸ›  Fix TypeScript type for chalk.supportsColor (#347) d82b2a6
    • πŸ›  Fix TypeScript type for tagged template literal argument to accept unknown instead of just string (#316) 7f6e563

    v2.4.1...v3.0.0

  • v3.0.0-beta.2 Changes

    October 08, 2019

    πŸš€ While this is a beta release, the code is well-tested and fairly stable.
    βœ… We encourage you to test it out and report any issues.

    $ npm install [email protected]
    

    πŸš€ See the beta 1 release notes for more.


    • βž• Add ansi256 and bgAnsi256 to TypeScript declarations (#368) fb8e85a

    v3.0.0-beta.1...v3.0.0-beta.2

  • v3.0.0-beta.1 Changes

    September 27, 2019

    πŸš€ 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.


    πŸš€ While this is a beta release, the code is well-tested and fairly stable.
    βœ… We encourage you to test it out and report any issues.

    $ npm install [email protected]
    

    πŸ’₯ Breaking

    • Require Node.js 8 3ef170b
    • βœ‚ Remove the .enabled property in favor of .level (#356) 1f77953

      • Why: It was confusing to users to have two properties for this.
      • Migrate:

      -if (chalk.enabled) {}+if (chalk.level > 0) {}

    • βœ‚ Remove chalk.constructor() in favor of chalk.Instance() (#322) de2f4cd

      • Migrate:

      -new chalk.constructor({level: 1});+new chalk.Instance({level: 1})

    Minor breaking

    • πŸ‘‰ Use CommonJS-compatible export in TypeScript definition (#344) 98628d9

      -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).
    • πŸ“‡ Rename the ChalkOptions TypeScript type to Options cf66156

    • βœ‚ Remove dim style workaround for Windows (#331) cd5de7a

      • Why: The issue was fixed in newer Windows 10 builds.
    • βœ‚ Remove the blue color 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.stderr for printing to stderr (#359) 2a53389
    • βž• Add blackBright color. It's the same as the gray color, 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

    Color detection

    πŸ›  Fixes

    • πŸ›  Fix support for nested styles (#335) 87156ce
    • πŸ›  Fix const enum for TypeScript (#364) 4e65299
    • πŸ›  Fix TypeScript type for supportsColor which is top‑level only (#342) b3e9b91
    • πŸ›  Fix TypeScript type for chalk.supportsColor (#347) d82b2a6
    • πŸ›  Fix TypeScript type for tagged template literal argument to accept unknown instead of just string (#316) 7f6e563

    v2.4.1...v3.0.0-beta.1

  • v2.4.2 Changes

    January 05, 2019

    πŸš€ This release is done from the v2-release branch, as master branch targets the work-in-progress v3 release.

  • v2.4.1 Changes

    April 26, 2018
    • πŸ‘Œ Improved Flow type definition for CommonJS interop.

    v2.4.0...v2.4.1

  • v2.4.0 Changes

    April 17, 2018
    • βž• Added Flow type definitions. 7c6f83f

    v2.3.2...v2.4.0

  • v2.3.2 Changes

    March 02, 2018

    v2.3.1...v2.3.2

  • v2.3.1 Changes

    February 11, 2018

    v2.3.0...v2.3.1