Vigia

将 color-convert 从 2.x 升级到 3.x

根据 TypeScript 类型自动比较 color-convert 2.0.1 与 3.1.3 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径2
已删除的导出15
已修改的签名0
已删除的类或接口成员0
已修改的类或接口成员0
新增弃用0
要求变化(engines、peer 依赖)1
新增导出18

已删除的导入路径

已删除的导入路径
color-convert/route
color-convert/conversions

已删除的导出

importexportkind之前
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; }; …

已修改的签名

未发现。

已删除的类或接口成员

未发现。

已修改的类或接口成员

未发现。

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
engines.node>=7.0.0>=14.6
新增导出 (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

常见问题

将 color-convert 从 2 升级到 3 有哪些不兼容变更?

在 color-convert 2.0.1 与 3.1.3 之间,Vigia 发现 15 个已删除的导出、0 个已修改的签名,以及 0 个已删除或修改的类或接口成员。

color-convert 3 中弃用了哪些内容?

color-convert 3.1.3 中有 0 个导出或成员新被标记为弃用。

供智能体使用

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