unstale

npm / chalk

chalk

What changed in chalk 2 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

29 breaking8 new APIs and options4 performance5 behavior and defaults2 tooling8 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

chalk 67 changes

Breaking changes 3

New APIs and options 1

Performance 1

Behavior and default changes 1

  • A numeric FORCE_COLOR value is now treated as an exact color level.

    6.0.0release notes

Fixes and other changes 1

chalk 516 changes

Breaking changes 13

  • The .ansi() coloring method was removed; the notes suggest using color-convert to achieve the same result.

    5.0.0release notes

  • The class formerly accessed as chalk.Instance is now a named export, Chalk.

    5.0.0release notes

  • Tagged template literal support moved to the separate chalk-template package.

    5.0.0release notes

  • Chalk no longer has any dependencies.

    5.0.0release notes

  • The stderr instance formerly accessed as chalk.stderr is now a named export.

    5.0.0release notes

  • The .hsl() coloring method was removed; the notes suggest using color-convert to achieve the same result.

    5.0.0release notes

  • The .hsv() coloring method was removed; the notes suggest using color-convert to achieve the same result.

    5.0.0release notes

  • The .hwb() coloring method was removed; the notes suggest using color-convert to achieve the same result.

    5.0.0release notes

  • The .keyword() coloring method was removed; the notes suggest using color-convert to achieve the same result.

    5.0.0release notes

  • Chalk is now pure ESM; bundlers must support ESM and be configured for it.

    5.0.0release notes

  • The value formerly accessed as chalk.supportsColor is now a named export.

    5.0.0release notes

  • The value formerly accessed as chalk.stderr.supportsColor is now a named export.

    5.0.0release notes

  • Using Chalk with TypeScript requires TypeScript 4.7 or later.

    5.0.0release notes

New APIs and options 1

Performance 1

Fixes and other changes 1

chalk 42 changes

Breaking changes 2

  • The TypeScript type changes from an enum to a union; compare chalk.level to a number instead of Level.None.

    4.0.0release notes

  • Node.js 10 is now required.

    4.0.0release notes

chalk 323 changes

Breaking changes 8

  • The Windows-specific blue color workaround was removed because newer Windows 10 builds fixed the issue.

    3.0.0release notes

  • The .enabled property was removed; use .level > 0 to detect color support.

    3.0.0release notes

  • Use chalk.Instance() instead of chalk.constructor() to create an instance.

    3.0.0release notes

  • The Windows-specific dim style workaround was removed because newer Windows 10 builds fixed the issue.

    3.0.0release notes

  • The built-in Flow type definition was dropped; the notes point users to flow-typed for types.

    3.0.0release notes

  • Node.js 8 is now required.

    3.0.0release notes

  • The TypeScript type ChalkOptions was renamed to Options.

    3.0.0release notes

  • The TypeScript definition now uses a CommonJS-compatible export; use import chalk = require('chalk').

    3.0.0release notes

New APIs and options 3

  • Added the blackBright color, which is the same as gray and provides consistency.

    3.0.0release notes

  • TypeScript types for colors and modifiers are now exported.

    3.0.0release notes

  • The environment variable can now force a certain color level.

    3.0.0release notes

Performance 2

  • Performance was massively improved.

    3.0.0release notes

  • Require speed was improved, reducing the time it takes to import Chalk.

    3.0.0release notes

Behavior and default changes 3

Tooling 2

  • Added ansi and bgAnsi to the TypeScript declaration.

    3.0.0release notes

  • Added ansi256 and bgAnsi256 to the TypeScript declaration.

    3.0.0release notes

Fixes and other changes 5

  • Support for bracketed Unicode escapes in template literals was fixed.

    3.0.0release notes

  • Fixed the TypeScript type for chalk.supportsColor.

    3.0.0release notes

  • The TypeScript const enum issue was fixed.

    3.0.0release notes

  • Support for nested styles was fixed.

    3.0.0release notes

  • The TypeScript type now accepts unknown instead of only string for a tagged template literal argument.

    3.0.0release notes

chalk 28 changes

Breaking changes 3

  • Removed chalk.hasColor(); use the has-ansi package directly instead.

    2.0.0release notes

  • Removed chalk.stripColor(); use the strip-ansi package directly instead.

    2.0.0release notes

  • Removed chalk.styles; use the ansi-styles package directly instead.

    2.0.0release notes

New APIs and options 3

  • Chalk now supports 256 colors and Truecolor, and downsamples colors to whatever the terminal supports.

    2.0.0release notes

  • Added bright color variants.

    2.0.0release notes

  • Chalk now ships with a tagged template literal for creating long strings with different styling.

    2.0.0release notes

Behavior and default changes 1

  • Added support for 256 color output on Windows 10 build 10586 or newer.

    2.0.0release notes

Fixes and other changes 1