diff --git a/.changeset/extreme-l-achromatic-guard.md b/.changeset/extreme-l-achromatic-guard.md deleted file mode 100644 index 6aeb5b5..0000000 --- a/.changeset/extreme-l-achromatic-guard.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tenphi/glaze': patch ---- - -Fix `srgbToOkhsl` (and downstream `glaze.color()`) returning a bogus saturated hue/saturation for pure white (`#FFFFFF`) and other colors at the OKHSL lightness extremes. Floating-point residue from `linearSrgbToOklab` slipped past the existing chroma epsilon, sending the chromatic path through a degenerate gamut where saturation divides by ~zero. White now correctly resolves to `okhsl(0 0% 100%)` (light) / `okhsl(0 0% 15%)` (dark) instead of `okhsl(89.88 55.83% 100%)`. diff --git a/CHANGELOG.md b/CHANGELOG.md index c77b6bd..b86e158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @tenphi/glaze +## 0.10.1 + +### Patch Changes + +- [#52](https://github.com/tenphi/glaze/pull/52) [`1988ff8`](https://github.com/tenphi/glaze/commit/1988ff8f973093844e69291590f41c46582dffa9) Thanks [@tenphi](https://github.com/tenphi)! - Fix `srgbToOkhsl` (and downstream `glaze.color()`) returning a bogus saturated hue/saturation for pure white (`#FFFFFF`) and other colors at the OKHSL lightness extremes. Floating-point residue from `linearSrgbToOklab` slipped past the existing chroma epsilon, sending the chromatic path through a degenerate gamut where saturation divides by ~zero. White now correctly resolves to `okhsl(0 0% 100%)` (light) / `okhsl(0 0% 15%)` (dark) instead of `okhsl(89.88 55.83% 100%)`. + ## 0.10.0 ### Minor Changes diff --git a/package.json b/package.json index ba41459..b224e88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tenphi/glaze", - "version": "0.10.0", + "version": "0.10.1", "description": "OKHSL-based color theme generator with WCAG contrast solving for light, dark, and high-contrast schemes", "type": "module", "main": "./dist/index.cjs",