Skip to content

1.5.0 - #13

Merged
erikyo merged 10 commits into
mainfrom
1.5.0
Nov 27, 2025
Merged

erikyo merged 10 commits into
mainfrom
1.5.0

Conversation

@erikyo

@erikyo erikyo commented Nov 27, 2025

Copy link
Copy Markdown
Collaborator

Fixed

  • HSL Conversion: Fixed critical bug in hslToRgb where hue was incorrectly calculated using 0-360 range instead of 0-6, resulting in wrong colors.
  • Black Definition: Corrected BLACKANDWHITE definition of black from [1, 1, 1] to [0, 0, 0].
  • Comment Stripping: Fixed regex to correctly strip single-line comments (//).
  • HSL Parsing: Fixed fallback logic in getHslValues to correctly handle 0 values.

Performance

  • getColors: Optimized to O(n) complexity by removing nested linear searches.
  • closest: Added caching for repeated color lookups and optimized distance calculation.

Changed

  • Black Definition: The definition of black in BLACKANDWHITE constant is now [0, 0, 0] (was [1, 1, 1]). This is a breaking change for consumers relying on the old value.

Updated

  • Dependencies: Updated dependencies to their latest versions.

@erikyo
erikyo merged commit 4ab101e into main Nov 27, 2025
2 checks passed
@erikyo
erikyo deleted the 1.5.0 branch November 27, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant