Passer de color-convert 2.x à 3.x
Comparaison de l’API publique de color-convert 2.0.1 et 3.1.3, calculée automatiquement à partir de leurs types TypeScript. Une signature modifiée est un changement incompatible possible, pas une certitude.
Résumé
| Chemins d’importation supprimés | 2 |
|---|---|
| Exports supprimés | 15 |
| Signatures modifiées | 0 |
| Membres de classes ou d’interfaces supprimés | 0 |
| Membres de classes ou d’interfaces modifiés | 0 |
| Nouvelles dépréciations | 0 |
| Changements d’exigences (engines, dépendances peer) | 1 |
| Nouveaux exports | 18 |
Chemins d’importation supprimés
| Chemins d’importation supprimés |
|---|
color-convert/route |
color-convert/conversions |
Exports supprimés
| import | export | kind | Avant |
|---|---|---|---|
color-convert | hcg | variable | typeof 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-convert | hex | variable | typeof 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-convert | hsl | variable | typeof 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-convert | hsv | variable | typeof 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-convert | hwb | variable | typeof 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-convert | lab | variable | typeof 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-convert | lch | variable | typeof 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-convert | rgb | variable | typeof 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-convert | xyz | variable | typeof 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-convert | cmyk | variable | typeof 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-convert | gray | variable | typeof 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-convert | apple | variable | typeof 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-convert | ansi16 | variable | typeof 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-convert | ansi256 | variable | typeof 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-convert | keyword | variable | typeof 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; }; … |
Signatures modifiées
Aucun détecté.
Membres de classes ou d’interfaces supprimés
Aucun détecté.
Membres de classes ou d’interfaces modifiés
Aucun détecté.
Nouvelles dépréciations
Aucun détecté.
Changements d’exigences (engines, dépendances peer)
| Avant | Après | |
|---|---|---|
engines.node | >=7.0.0 | >=14.6 |
Nouveaux exports (18)
| import | export | kind |
|---|---|---|
color-convert | HCG | type |
color-convert | HEX | type |
color-convert | HSL | type |
color-convert | HSV | type |
color-convert | HWB | type |
color-convert | LAB | type |
color-convert | LCH | type |
color-convert | RGB | type |
color-convert | XYZ | type |
color-convert | CMYK | type |
color-convert | Gray | type |
color-convert | Apple | type |
color-convert | ANSI16 | type |
color-convert | ANSI256 | type |
color-convert | Convert | type |
color-convert | Keyword | type |
color-convert | default | variable |
color-convert | Channels | type |
Questions fréquentes
Quels sont les changements incompatibles en passant de color-convert 2 à 3 ?
Entre color-convert 2.0.1 et 3.1.3, Vigia a trouvé 15 exports supprimés, 0 signatures modifiées et 0 membres de classes ou d’interfaces supprimés ou modifiés.
Qu’est-ce qui a été déprécié dans color-convert 3 ?
0 exports ou membres sont désormais marqués comme dépréciés dans color-convert 3.1.3.
Pour les agents
GET https://vigia.coredls.cloud/v1/packages/npm/color-convert/upgrade?from=2.0.1&to=3.1.3