Vigia

Upgrading ansi-styles from 6.x to 7.x

Comparison of the public API of ansi-styles 6.2.3 and 7.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.

Summary

Removed import paths0
Removed exports0
Changed signatures2
Removed class or interface members0
Changed class or interface members0
Newly deprecated0
Requirement changes (engines, peer dependencies)1
New exports3

Removed exports

None detected.

Changed signatures

exportBeforeAfter
ansi-styles · default{ readonly modifier: Modifier; readonly color: ColorBase & ForegroundColor; readonly bgColor: ColorBase & BackgroundColor; readonly codes: ReadonlyMap<number, number>; } & ForegroundColor & BackgroundColor & Modifier & ConvertColor{ readonly modifier: Modifier; readonly color: ColorBase & ForegroundColor; readonly bgColor: ColorBase & BackgroundColor; readonly underlineColor: ColorBase & UnderlineColor; readonly codes: ReadonlyMap<number, number>; } & ForegroundColor & BackgroundColor & UnderlineColor & Modifier & ConvertColor
ansi-styles · Modifier{ readonly reset: CSPair; readonly bold: CSPair; readonly dim: CSPair; readonly italic: CSPair; readonly underline: CSPair; readonly overline: CSPair; readonly inverse: CSPair; readonly hidden: CSPair; readonly strikethrough: CSPair; }{ readonly reset: CSPair; readonly bold: CSPair; readonly dim: CSPair; readonly italic: CSPair; readonly underline: CSPair; readonly underlineDouble: CSPair; readonly underlineCurly: CSPair; readonly underlineDotted: CSPair; readonly underlineDashed: CSPair; readonly overline: CSPair; readonly inverse: CSPair; readonly hidden: CSPair; readonly strikethrough: CSPair; }

Removed class or interface members

None detected.

Changed class or interface members

None detected.

Newly deprecated

None detected.

Requirement changes (engines, peer dependencies)

BeforeAfter
engines.node>=12>=22
New exports (3)
importexportkind
ansi-stylesUnderlineColortype
ansi-stylesUnderlineColorNametype
ansi-stylesunderlineColorNamesvariable

Frequently asked questions

What are the breaking changes when upgrading ansi-styles from 6 to 7?

Between ansi-styles 6.2.3 and 7.0.0, Vigia found 0 removed exports, 2 changed signatures and 0 removed or changed class or interface members.

What became deprecated in ansi-styles 7?

0 exports or members are newly marked as deprecated in ansi-styles 7.0.0.

For agents

GET https://vigia.coredls.cloud/v1/packages/npm/ansi-styles/upgrade?from=6.2.3&to=7.0.0