Vigia

Nâng cấp color-convert từ 2.x lên 3.x

So sánh API công khai của color-convert 2.0.1 và 3.1.3, đượ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óa2
Export bị xóa15
Chữ ký thay đổi0
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ới18

Đường dẫn import bị xóa

Đường dẫn import bị xóa
color-convert/route
color-convert/conversions

Export bị xóa

importexportkindTrước
color-converthcgvariabletypeof hcg & hcg & { rgb: { raw: (from: HCG) => RGB; }; hsl: { raw: (from: HCG) => HSL; }; hsv: { raw: (from: HCG) => HSV; }; hwb: { raw: (from: HCG) => HWB; }; cmyk: { raw: (from: HCG) => CMYK; }; xyz: { raw: (from: HCG) => XYZ; }; lab: { raw: (from: HCG) => LAB; }; lch: { raw: (from: HCG) => LCH; }; hex: { raw: (from: HCG) => string; }; keyword: { raw: (from: HCG) => string | number | symbol; }; ansi16: { raw: (from: HCG) => number; }; ansi256: { raw: (from: HCG) => number; }; apple: { raw: (from: HCG) => APPLE; }; gray: { raw: (from: HCG) => GRAY; }; }
color-converthexvariabletypeof hex & hex & { rgb: { raw: (from: string) => RGB; }; hsl: { raw: (from: string) => HSL; }; hsv: { raw: (from: string) => HSV; }; hwb: { raw: (from: string) => HWB; }; cmyk: { raw: (from: string) => CMYK; }; xyz: { raw: (from: string) => XYZ; }; lab: { raw: (from: string) => LAB; }; lch: { raw: (from: string) => LCH; }; keyword: { raw: (from: string) => string | number | symbol; }; ansi16: { raw: (from: string) => number; }; ansi256: { raw: (from: string) => number; }; hcg: { raw: (from: string) => HCG; }; apple: { raw: (from: string) => APPLE; }; gray: { raw: (from: string) => GRAY; }; }
color-converthslvariabletypeof hsl & hsl & { rgb: { raw: (from: HSL) => RGB; }; hsv: { raw: (from: HSL) => HSV; }; hwb: { raw: (from: HSL) => HWB; }; cmyk: { raw: (from: HSL) => CMYK; }; xyz: { raw: (from: HSL) => XYZ; }; lab: { raw: (from: HSL) => LAB; }; lch: { raw: (from: HSL) => LCH; }; hex: { raw: (from: HSL) => string; }; keyword: { raw: (from: HSL) => string | number | symbol; }; ansi16: { raw: (from: HSL) => number; }; ansi256: { raw: (from: HSL) => number; }; hcg: { raw: (from: HSL) => HCG; }; apple: { raw: (from: HSL) => APPLE; }; gray: { raw: (from: HSL) => GRAY; }; }
color-converthsvvariabletypeof hsv & hsv & { rgb: { raw: (from: HSV) => RGB; }; hsl: { raw: (from: HSV) => HSL; }; hwb: { raw: (from: HSV) => HWB; }; cmyk: { raw: (from: HSV) => CMYK; }; xyz: { raw: (from: HSV) => XYZ; }; lab: { raw: (from: HSV) => LAB; }; lch: { raw: (from: HSV) => LCH; }; hex: { raw: (from: HSV) => string; }; keyword: { raw: (from: HSV) => string | number | symbol; }; ansi16: { raw: (from: HSV) => number; }; ansi256: { raw: (from: HSV) => number; }; hcg: { raw: (from: HSV) => HCG; }; apple: { raw: (from: HSV) => APPLE; }; gray: { raw: (from: HSV) => GRAY; }; }
color-converthwbvariabletypeof hwb & hwb & { rgb: { raw: (from: HWB) => RGB; }; hsl: { raw: (from: HWB) => HSL; }; hsv: { raw: (from: HWB) => HSV; }; cmyk: { raw: (from: HWB) => CMYK; }; xyz: { raw: (from: HWB) => XYZ; }; lab: { raw: (from: HWB) => LAB; }; lch: { raw: (from: HWB) => LCH; }; hex: { raw: (from: HWB) => string; }; keyword: { raw: (from: HWB) => string | number | symbol; }; ansi16: { raw: (from: HWB) => number; }; ansi256: { raw: (from: HWB) => number; }; hcg: { raw: (from: HWB) => HCG; }; apple: { raw: (from: HWB) => APPLE; }; gray: { raw: (from: HWB) => GRAY; }; }
color-convertlabvariabletypeof lab & lab & { rgb: { raw: (from: LAB) => RGB; }; hsl: { raw: (from: LAB) => HSL; }; hsv: { raw: (from: LAB) => HSV; }; hwb: { raw: (from: LAB) => HWB; }; cmyk: { raw: (from: LAB) => CMYK; }; xyz: { raw: (from: LAB) => XYZ; }; lch: { raw: (from: LAB) => LCH; }; hex: { raw: (from: LAB) => string; }; keyword: { raw: (from: LAB) => string | number | symbol; }; ansi16: { raw: (from: LAB) => number; }; ansi256: { raw: (from: LAB) => number; }; hcg: { raw: (from: LAB) => HCG; }; apple: { raw: (from: LAB) => APPLE; }; gray: { raw: (from: LAB) => GRAY; }; }
color-convertlchvariabletypeof lch & lch & { rgb: { raw: (from: LCH) => RGB; }; hsl: { raw: (from: LCH) => HSL; }; hsv: { raw: (from: LCH) => HSV; }; hwb: { raw: (from: LCH) => HWB; }; cmyk: { raw: (from: LCH) => CMYK; }; xyz: { raw: (from: LCH) => XYZ; }; lab: { raw: (from: LCH) => LAB; }; hex: { raw: (from: LCH) => string; }; keyword: { raw: (from: LCH) => string | number | symbol; }; ansi16: { raw: (from: LCH) => number; }; ansi256: { raw: (from: LCH) => number; }; hcg: { raw: (from: LCH) => HCG; }; apple: { raw: (from: LCH) => APPLE; }; gray: { raw: (from: LCH) => GRAY; }; }
color-convertrgbvariabletypeof rgb & rgb & { hsl: { raw: { (from: RGB): HSL; (from_0: number, from_1: number, from_2: number): HSL; (from: RGB): HSL; (from_0: number, from_1: number, from_2: number): HSL; }; }; hsv: { raw: { (from: RGB): HSV; (from_0: number, from_1: number, from_2: number): HSV; }; }; hwb: { raw: { (from: RGB): HWB; (from_0: number, from_1: number, from_2: number): HWB; }; }; cmyk: { raw: { (from: RGB): CMYK; (from_0: number, from_1: number, from_2: number): CMYK; }; }; xyz: { raw: { (from: RGB): XYZ; (from_0: number, from_1: number, from_2: number): XYZ; }; }; lab: { raw: { (from: RGB): LAB; (from_…
color-convertxyzvariabletypeof xyz & xyz & { rgb: { raw: (from: XYZ) => RGB; }; hsl: { raw: (from: XYZ) => HSL; }; hsv: { raw: (from: XYZ) => HSV; }; hwb: { raw: (from: XYZ) => HWB; }; cmyk: { raw: (from: XYZ) => CMYK; }; lab: { raw: (from: XYZ) => LAB; }; lch: { raw: (from: XYZ) => LCH; }; hex: { raw: (from: XYZ) => string; }; keyword: { raw: (from: XYZ) => string | number | symbol; }; ansi16: { raw: (from: XYZ) => number; }; ansi256: { raw: (from: XYZ) => number; }; hcg: { raw: (from: XYZ) => HCG; }; apple: { raw: (from: XYZ) => APPLE; }; gray: { raw: (from: XYZ) => GRAY; }; }
color-convertcmykvariabletypeof cmyk & cmyk & { rgb: { raw: (from: CMYK) => RGB; }; hsl: { raw: (from: CMYK) => HSL; }; hsv: { raw: (from: CMYK) => HSV; }; hwb: { raw: (from: CMYK) => HWB; }; xyz: { raw: (from: CMYK) => XYZ; }; lab: { raw: (from: CMYK) => LAB; }; lch: { raw: (from: CMYK) => LCH; }; hex: { raw: (from: CMYK) => string; }; keyword: { raw: (from: CMYK) => string | number | symbol; }; ansi16: { raw: (from: CMYK) => number; }; ansi256: { raw: (from: CMYK) => number; }; hcg: { raw: (from: CMYK) => HCG; }; apple: { raw: (from: CMYK) => APPLE; }; gray: { raw: (from: CMYK) => GRAY; }; }
color-convertgrayvariabletypeof gray & gray & { rgb: { raw: (from: GRAY) => RGB; }; hsl: { raw: (from: GRAY) => HSL; }; hsv: { raw: (from: GRAY) => HSV; }; hwb: { raw: (from: GRAY) => HWB; }; cmyk: { raw: (from: GRAY) => CMYK; }; xyz: { raw: (from: GRAY) => XYZ; }; lab: { raw: (from: GRAY) => LAB; }; lch: { raw: (from: GRAY) => LCH; }; hex: { raw: (from: GRAY) => string; }; keyword: { raw: (from: GRAY) => string | number | symbol; }; ansi16: { raw: (from: GRAY) => number; }; ansi256: { raw: (from: GRAY) => number; }; hcg: { raw: (from: GRAY) => HCG; }; apple: { raw: (from: GRAY) => APPLE; }; }
color-convertapplevariabletypeof apple & apple & { rgb: { raw: (from: APPLE) => RGB; }; hsl: { raw: (from: APPLE) => HSL; }; hsv: { raw: (from: APPLE) => HSV; }; hwb: { raw: (from: APPLE) => HWB; }; cmyk: { raw: (from: APPLE) => CMYK; }; xyz: { raw: (from: APPLE) => XYZ; }; lab: { raw: (from: APPLE) => LAB; }; lch: { raw: (from: APPLE) => LCH; }; hex: { raw: (from: APPLE) => string; }; keyword: { raw: (from: APPLE) => string | number | symbol; }; ansi16: { raw: (from: APPLE) => number; }; ansi256: { raw: (from: APPLE) => number; }; hcg: { raw: (from: APPLE) => HCG; }; gray: { raw: (from: APPLE) => GRAY; }; }
color-convertansi16variabletypeof ansi16 & ansi16 & { rgb: { raw: (from: number) => RGB; }; hsl: { raw: (from: number) => HSL; }; hsv: { raw: (from: number) => HSV; }; hwb: { raw: (from: number) => HWB; }; cmyk: { raw: (from: number) => CMYK; }; xyz: { raw: (from: number) => XYZ; }; lab: { raw: (from: number) => LAB; }; lch: { raw: (from: number) => LCH; }; hex: { raw: (from: number) => string; }; keyword: { raw: (from: number) => string | number | symbol; }; ansi256: { raw: (from: number) => number; }; hcg: { raw: (from: number) => HCG; }; apple: { raw: (from: number) => APPLE; }; gray: { raw: (from: number) => GRAY; }…
color-convertansi256variabletypeof ansi256 & ansi256 & { rgb: { raw: (from: number) => RGB; }; hsl: { raw: (from: number) => HSL; }; hsv: { raw: (from: number) => HSV; }; hwb: { raw: (from: number) => HWB; }; cmyk: { raw: (from: number) => CMYK; }; xyz: { raw: (from: number) => XYZ; }; lab: { raw: (from: number) => LAB; }; lch: { raw: (from: number) => LCH; }; hex: { raw: (from: number) => string; }; keyword: { raw: (from: number) => string | number | symbol; }; ansi16: { raw: (from: number) => number; }; hcg: { raw: (from: number) => HCG; }; apple: { raw: (from: number) => APPLE; }; gray: { raw: (from: number) => GRAY; …
color-convertkeywordvariabletypeof keyword & keyword & { rgb: { raw: (from: string | number | symbol) => RGB; }; hsl: { raw: (from: string | number | symbol) => HSL; }; hsv: { raw: (from: string | number | symbol) => HSV; }; hwb: { raw: (from: string | number | symbol) => HWB; }; cmyk: { raw: (from: string | number | symbol) => CMYK; }; xyz: { raw: (from: string | number | symbol) => XYZ; }; lab: { raw: (from: string | number | symbol) => LAB; }; lch: { raw: (from: string | number | symbol) => LCH; }; hex: { raw: (from: string | number | symbol) => string; }; ansi16: { raw: (from: string | number | symbol) => number; }; …

Chữ ký thay đổi

Không phát hiện.

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>=7.0.0>=14.6
Export mới (18)
importexportkind
color-convertHCGtype
color-convertHEXtype
color-convertHSLtype
color-convertHSVtype
color-convertHWBtype
color-convertLABtype
color-convertLCHtype
color-convertRGBtype
color-convertXYZtype
color-convertCMYKtype
color-convertGraytype
color-convertAppletype
color-convertANSI16type
color-convertANSI256type
color-convertConverttype
color-convertKeywordtype
color-convertdefaultvariable
color-convertChannelstype

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

Nâng cấp color-convert từ 2 lên 3 có những thay đổi không tương thích nào?

Giữa color-convert 2.0.1 và 3.1.3, Vigia tìm thấy 15 export bị xóa, 0 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 color-convert 3?

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

Dành cho tác tử

GET https://vigia.coredls.cloud/v1/packages/npm/color-convert/upgrade?from=2.0.1&to=3.1.3