Aktualizacja ansi-styles z 6.x do 7.x
Porównanie publicznego API ansi-styles 6.2.3 i 7.0.0, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.
Podsumowanie
| Usunięte ścieżki importu | 0 |
|---|---|
| Usunięte eksporty | 0 |
| Zmienione sygnatury | 2 |
| Usunięte składowe klas lub interfejsów | 0 |
| Zmienione składowe klas lub interfejsów | 0 |
| Nowo wycofane | 0 |
| Zmiany wymagań (engines, zależności peer) | 1 |
| Nowe eksporty | 3 |
Usunięte eksporty
Nie wykryto.
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
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; } |
Usunięte składowe klas lub interfejsów
Nie wykryto.
Zmienione składowe klas lub interfejsów
Nie wykryto.
Nowo wycofane
Nie wykryto.
Zmiany wymagań (engines, zależności peer)
| Przed | Po | |
|---|---|---|
engines.node | >=12 | >=22 |
Nowe eksporty (3)
| import | export | kind |
|---|---|---|
ansi-styles | UnderlineColor | type |
ansi-styles | UnderlineColorName | type |
ansi-styles | underlineColorNames | variable |
Najczęściej zadawane pytania
Jakie są zmiany niekompatybilne przy aktualizacji ansi-styles z 6 do 7?
Między ansi-styles 6.2.3 a 7.0.0 Vigia znalazła 0 usuniętych eksportów, 2 zmienionych sygnatur i 0 usuniętych lub zmienionych składowych klas lub interfejsów.
Co zostało wycofane w ansi-styles 7?
0 eksportów lub składowych oznaczono w ansi-styles 7.0.0 jako wycofane.
Dla agentów
GET https://vigia.coredls.cloud/v1/packages/npm/ansi-styles/upgrade?from=6.2.3&to=7.0.0