Releases: iamlite/color-core
Releases · iamlite/color-core
Release 1.4.0
[1.4.0] - 2024-07-25
Added
- New accessibility features:
getRelativeLuminance: Calculate the relative luminance of a colorgetContrastRatio: Calculate the contrast ratio between two colorsgetWCAGCompliance: Determine WCAG compliance level for color contrast
- New methods in Color class:
getRelativeLuminance(),getContrastRatio(),getWCAGCompliance() - Partial implementation of parsers for CSS color strings. More coming soon.
Changed
- Clarified behavior of
rgbToHexfunction for alpha values:- Alpha values of 0.995 and above now consistently produce 'ff'
- Other alpha values are rounded to the nearest integer
- Updated documentation with new accessibility features and examples.
- Improved test coverage for new accessibility features.
Attention
- Deprecated the color picker component in favor of a new color picker package to be released soon.
- Removed dependencies for React & React DOM since those are no longer needed.
Fixed
Release 1.3.4
v1.3.4 chore: Bump color-core to version 1.3.4
Release 1.3.3
[1.3.3] - 2024-07-21
Added
- New color scale functions:
- Sequential Scale
- Diverging Scale
- Multi-Hue Sequential Scale
- Perceptually Uniform Scale
- Qualitative Scale
Changed
- New git structure using a monorepo setup with yarn workspaces
- New documentation site built with Docusaurus v3 + typedoc
- Updated demo site to showcase new color scale functions
Release 1.3.2
[1.3.2] - 2024-07-21
Added
- New color scale functions:
- Sequential Scale
- Diverging Scale
- Multi-Hue Sequential Scale
- Perceptually Uniform Scale
- Qualitative Scale
Changed
- New git structure using a monorepo setup with yarn workspaces
- New documentation site built with Docusaurus v3 + typedoc
- Updated demo site to showcase new color scale functions
Release 1.3.1
[1.3.1] - 2024-07-17
Changed
- Updated SRGB type definitions to include prefix to avoid conflicts with other color spaces
Release 1.3.0
[1.3.0] - 2024-07-12
BIG UPDATE 🎉
Added
- Support for AdobeRGB, Oklab, Oklch, HSLuv, HPLuv, CIExyY, CIELuv, HWB, sRGB, and HSI color spaces
- Support for converting between D50 and D65 white points for XYZ and Lab color spaces
- New conversion functions:
rgbToOklab(),oklabToRgb()rgbToOklch(),oklchToRgb()rgbToHSLuv(),hsluvToRgb()rgbToHPLuv(),hpluvToRgb()rgbToCIExyY(),ciexyYToRgb()rgbToCIELuv(),cieLuvToRgb()rgbToHwb(),hwbToRgb()rgbToHsi(),hsiToRgb()rgbToSrgb(),srgbToRgb()adobeRGBToRGB(),rgbToAdobeRGB()xyzD50ToD65(),xyzD65ToD50()xyzD50ToRgb(),rgbToXyzD50()labD50ToRgb(),rgbToLabD50()
- New methods in Color class:
toOklab(),toOklch(),toHSLuv(),toHPLuv(),toCIExyY(),toCIELuv(),toHWB(),toHSI(),toSrgb(),toAdobeRGB() - Updated demo site to showcase new color spaces and conversions
Changed
- NAME CHANGE! 'next-color' is now 'color-core'
- New Demo Site! Built with next-ui 🧑🎨
- Updated type definitions to include Oklab, Oklch, HSLuv, HPLuv, CIExyY, and CIELUV
- Expanded test coverage for new color spaces, refactored tests to be less dumb.
- New calculations for LCH color space to improve accuracy
- New calculations for XYZ and LAB color spaces to account for white point differences
v1.2.0
[1.2.0] - 2024-07-07
Added
- Color naming functionality:
getColorName()method to get the closest named color from api.color.pizza based on the provided color - Brightness calculation:
getBrightness()method to calculate perceived brightnessisLight()method to determine if a color is light or dark
Changed
- Improved performance of color conversion functions
- Refactored color manipulation methods for better readability and maintainability
- Updated demo site with new features and examples
- Improved error handling and type safety
- Improved documentation with more examples and explanations
- Enhanced test coverage
- Added CI/CD pipeline for automated testing and deployment
Fixed
- Edge case in
mix()function where alpha values were not being considered correctly - Precision loss in successive color space conversions
- Addressed potential "Maximum update depth exceeded" error during rapid color picker interactions
- Improved performance of ColorPicker component for better performance during rapid color changes