Skip to content

Latest commit

 

History

History
109 lines (61 loc) · 1.76 KB

File metadata and controls

109 lines (61 loc) · 1.76 KB

Changes to Color Helpers

Unreleased (patch)

  • Match latest changes made in csswg-drafts for:
    • gam_2020
    • Lab_to_LCH
    • lin_2020
    • OKLab_to_OKLCH
    • sRGB_to_HSL
    • XYZ_D50_to_HWB

6.0.0

January 14, 2026

  • Updated: Support for Node 20.19.0 or later (major).
  • Removed: commonjs API. In supported Node versions require(esm) will work without needing to make code changes.

5.1.0

August 22, 2025

  • Add lin_P3_to_XYZ_D50
  • Add XYZ_D50_to_lin_P3

5.0.2

February 23, 2025

  • Use Number.isNaN instead of NaN for consistency.

5.0.1

August 14, 2024

  • fix XYZ_D50_to_HWB to not do corrections for out of gamut colors.

5.0.0

August 3, 2024

  • Updated: Support for Node v18+ (major).

4.2.1

June 29, 2024

  • Optimize matrix multiplication

4.2.0

April 21, 2024

  • Add mapGamutRayTrace function

4.1.0

March 31, 2024

  • Add contrast_ratio_wcag_2_1 function

4.0.0

December 15, 2023

  • Remove barrel files
  • Fix type definitions
  • Use higher precision color conversion matrices.

3.0.2

September 2, 2023

  • Undo the changes from 3.0.1.

3.0.1

August 28, 2023

  • Clamp negative saturation in hsl to 0.

3.0.0

July 3, 2023

2.1.0

May 19, 2023

  • Fix gamut mapping
  • Fix XYZ_D50_to_ProPhoto
  • Export sRGB_to_HWB

2.0.0

March 25, 2023

  • Removed certain implementation specific helpers. Keeping this package more focussed on general purpose color transformations.
  • Added xyz specific helpers. These make it easy to transform to and from xyz-d50 and any other color space.

1.0.0

February 2, 2023

  • Initial version