Vigia

Nâng cấp ansi-styles từ 6.x lên 7.x

So sánh API công khai của ansi-styles 6.2.3 và 7.0.0, được tính tự động từ kiểu TypeScript. Chữ ký thay đổi là thay đổi có thể không tương thích, không phải điều chắc chắn.

Tóm tắt

Đường dẫn import bị xóa0
Export bị xóa0
Chữ ký thay đổi2
Thành viên lớp hoặc interface bị xóa0
Thành viên lớp hoặc interface thay đổi0
Mới bị ngừng hỗ trợ0
Thay đổi yêu cầu (engines, phụ thuộc peer)1
Export mới3

Export bị xóa

Không phát hiện.

Chữ ký thay đổi

exportTrướcSau
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; }

Thành viên lớp hoặc interface bị xóa

Không phát hiện.

Thành viên lớp hoặc interface thay đổi

Không phát hiện.

Mới bị ngừng hỗ trợ

Không phát hiện.

Thay đổi yêu cầu (engines, phụ thuộc peer)

TrướcSau
engines.node>=12>=22
Export mới (3)
importexportkind
ansi-stylesUnderlineColortype
ansi-stylesUnderlineColorNametype
ansi-stylesunderlineColorNamesvariable

Câu hỏi thường gặp

Nâng cấp ansi-styles từ 6 lên 7 có những thay đổi không tương thích nào?

Giữa ansi-styles 6.2.3 và 7.0.0, Vigia tìm thấy 0 export bị xóa, 2 chữ ký thay đổi và 0 thành viên lớp hoặc interface bị xóa hay thay đổi.

Những gì bị ngừng hỗ trợ trong ansi-styles 7?

0 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong ansi-styles 7.0.0.

Dành cho tác tử

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