diff --git a/CHANGELOG.md b/CHANGELOG.md index be2664c..034d7ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines. +## [2.1.1](https://github.com/pex-gl/pex-color/compare/v2.1.0...v2.1.1) (2024-07-09) + + + # [2.1.0](https://github.com/pex-gl/pex-color/compare/v2.0.4...v2.1.0) (2024-02-05) diff --git a/README.md b/README.md index 20a5f31..9373a43 100755 --- a/README.md +++ b/README.md @@ -69,126 +69,12 @@ API naming follows the following rules: ## Modules
color
Updates a color based on byte values.
-bytes
Get RGB[A] color components as bytes array.
-color
Creates a new color from linear values.
-color
Returns a copy of a color.
-color
Sets a color to another color.
-color
Updates a color based on r, g, b, [a] values.
-css
Returns a rgb CSS string representation of a given color.
-css
Returns a hsl CSS string representation of a given color.
-css
Returns a lab CSS string representation of a given color.
-css
Returns a lch CSS string representation of a given color.
-css
Returns a hwb CSS string representation of a given color.
-color
Updates a color based on a hexadecimal string.
-hex
Returns a hexadecimal string representation of a given color.
-color
Updates a color based on HPLuv values and alpha.
-hpluv
Returns a HPLuv representation of a given color.
-color
Updates a color based on HSL values and alpha.
-hsl
Returns a HSL representation of a given color.
-color
Updates a color based on HSLuv values and alpha.
-hsluv
Returns a HSLuv representation of a given color.
-color
Updates a color based on HSV values and alpha.
-hsv
Returns a HSV representation of a given color.
-color
Updates a color based on HWB values and alpha.
-hwb
Returns a HWB representation of a given color.
-color
Updates a color based on Lab values and alpha.
-lab
Returns a Lab representation of a given color.
-color
Updates a color based on LCHuv values and alpha.
-lchuv
Returns a LCHuv representation of a given color.
-color
Updates a color based on linear values.
-linear
Returns a linear color representation of a given color.
-color
Updates a color based on Okhsl values and alpha.
-okhsl
Returns an Okhsl representation of a given color.
-color
Updates a color based on Okhsv values and alpha.
-okhsv
Returns an Okhsv representation of a given color.
-color
Updates a color based on Oklab values and alpha.
-oklab
Returns an Oklab representation of a given color.
-color
Updates a color based on XYZ values and alpha.
-xyz
Returns a XYZ representation of a given color.
-number
- - [.srgbToLinear](#module_utils.srgbToLinear) ⇒ number
-
-
-
-### utils.linearToSrgb ⇒ number
-
-Convert component from linear value
-
-**Kind**: static constant of [utils
](#module_utils)
-
-| Param | Type |
-| ----- | ------------------- |
-| c | number
|
-
-
-
-### utils.srgbToLinear ⇒ number
-
-Convert component to linear value
-
-**Kind**: static constant of [utils
](#module_utils)
-
-| Param | Type |
-| ----- | ------------------- |
-| c | number
|
-
-
-
-## fromBytes(color, bytes) ⇒ [color
](#color)
+
+
+## pex-color
+
+- [pex-color](#module_pex-color)
+ - [.fromBytes(color, bytes)](#module_pex-color.fromBytes) ⇒ [color
](#color)
+ - [.toBytes(color, out)](#module_pex-color.toBytes) ⇒ [bytes
](#bytes)
+ - [.create([r], [g], [b], [a])](#module_pex-color.create) ⇒ [color
](#color)
+ - [.copy(color)](#module_pex-color.copy) ⇒ [color
](#color)
+ - [.set(color, color2)](#module_pex-color.set) ⇒ [color
](#color)
+ - [.fromValues(color, r, g, b, [a])](#module_pex-color.fromValues) ⇒ [color
](#color)
+ - [.toCSSRGB(color, [precision])](#module_pex-color.toCSSRGB) ⇒ [css
](#css)
+ - [.toCSSHSL(color, [precision])](#module_pex-color.toCSSHSL) ⇒ [css
](#css)
+ - [.toCSSLab(color, [precision])](#module_pex-color.toCSSLab) ⇒ [css
](#css)
+ - [.toCSSLCH(color, [precision])](#module_pex-color.toCSSLCH) ⇒ [css
](#css)
+ - [.toCSSHWB(color, [precision])](#module_pex-color.toCSSHWB) ⇒ [css
](#css)
+ - [.fromHex(color, hex)](#module_pex-color.fromHex) ⇒ [color
](#color)
+ - [.toHex(color, alpha)](#module_pex-color.toHex) ⇒ [hex
](#hex)
+ - [.fromHPLuv(color, h, s, l, [a])](#module_pex-color.fromHPLuv) ⇒ [color
](#color)
+ - [.toHPLuv(color, out)](#module_pex-color.toHPLuv) ⇒ [hpluv
](#hpluv)
+ - [.fromHSL(color, h, s, l, [a])](#module_pex-color.fromHSL) ⇒ [color
](#color)
+ - [.toHSL(color, out)](#module_pex-color.toHSL) ⇒ [hsl
](#hsl)
+ - [.fromHSLuv(color, h, s, l, [a])](#module_pex-color.fromHSLuv) ⇒ [color
](#color)
+ - [.toHSLuv(color, out)](#module_pex-color.toHSLuv) ⇒ [hsluv
](#hsluv)
+ - [.fromHSV(color, h, s, v, [a])](#module_pex-color.fromHSV) ⇒ [color
](#color)
+ - [.toHSV(color, out)](#module_pex-color.toHSV) ⇒ [hsv
](#hsv)
+ - [.fromHWB(color, h, w, b, [a])](#module_pex-color.fromHWB) ⇒ [color
](#color)
+ - [.toHWB(color, out)](#module_pex-color.toHWB) ⇒ [hwb
](#hwb)
+ - [.fromLab(color, l, a, b, α, illuminant)](#module_pex-color.fromLab) ⇒ [color
](#color)
+ - [.toLab(color, out, illuminant)](#module_pex-color.toLab) ⇒ [lab
](#lab)
+ - [.fromLCHuv(color, l, c, h, [a])](#module_pex-color.fromLCHuv) ⇒ [color
](#color)
+ - [.toLCHuv(color, out)](#module_pex-color.toLCHuv) ⇒ [lchuv
](#lchuv)
+ - [.fromLinear(color, r, g, b, [a])](#module_pex-color.fromLinear) ⇒ [color
](#color)
+ - [.toLinear(color, out)](#module_pex-color.toLinear) ⇒ [linear
](#linear)
+ - [.fromOkhsl(color, h, s, l, [α])](#module_pex-color.fromOkhsl) ⇒ [color
](#color)
+ - [.toOkhsl(color, out)](#module_pex-color.toOkhsl) ⇒ [okhsl
](#okhsl)
+ - [.fromOkhsv(color, h, s, v, [α])](#module_pex-color.fromOkhsv) ⇒ [color
](#color)
+ - [.toOkhsv(color, out)](#module_pex-color.toOkhsv) ⇒ [okhsv
](#okhsv)
+ - [.fromOklab(color, L, a, b, [α])](#module_pex-color.fromOklab) ⇒ [color
](#color)
+ - [.toOklab(color, out)](#module_pex-color.toOklab) ⇒ [oklab
](#oklab)
+ - [.fromXYZ(color, x, y, z, a)](#module_pex-color.fromXYZ) ⇒ [color
](#color)
+ - [.toXYZ(color, out)](#module_pex-color.toXYZ) ⇒ [xyz
](#xyz)
+
+
+
+### pex-color.fromBytes(color, bytes) ⇒ [color
](#color)
Updates a color based on byte values.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| bytes | [bytes
](#bytes) |
-
+
-## toBytes(color, out) ⇒ [bytes
](#bytes)
+### pex-color.toBytes(color, out) ⇒ [bytes
](#bytes)
Get RGB[A] color components as bytes array.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## create([r], [g], [b], [a]) ⇒ [color
](#color)
+### pex-color.create([r], [g], [b], [a]) ⇒ [color
](#color)
Creates a new color from linear values.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type | Default |
| ----- | ------------------- | -------------- |
@@ -328,38 +225,38 @@ Creates a new color from linear values.
| [b] | number
| 0
|
| [a] | number
| |
-
+
-## copy(color) ⇒ [color
](#color)
+### pex-color.copy(color) ⇒ [color
](#color)
Returns a copy of a color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
-
+
-## set(color, color2) ⇒ [color
](#color)
+### pex-color.set(color, color2) ⇒ [color
](#color)
Sets a color to another color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ------ | ---------------------------- |
| color | [color
](#color) |
| color2 | [color
](#color) |
-
+
-## fromValues(color, r, g, b, [a]) ⇒ [color
](#color)
+### pex-color.fromValues(color, r, g, b, [a]) ⇒ [color
](#color)
Updates a color based on r, g, b, [a] values.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -369,104 +266,104 @@ Updates a color based on r, g, b, [a] values.
| b | number
|
| [a] | number
|
-
+
-## toCSSRGB(color, [precision]) ⇒ [css
](#css)
+### pex-color.toCSSRGB(color, [precision]) ⇒ [css
](#css)
Returns a rgb CSS string representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type | Default |
| ----------- | ---------------------------- | -------------- |
| color | [color
](#color) | |
| [precision] | number
| 5
|
-
+
-## toCSSHSL(color, [precision]) ⇒ [css
](#css)
+### pex-color.toCSSHSL(color, [precision]) ⇒ [css
](#css)
Returns a hsl CSS string representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type | Default |
| ----------- | ---------------------------- | -------------- |
| color | [color
](#color) | |
| [precision] | number
| 5
|
-
+
-## toCSSLab(color, [precision]) ⇒ [css
](#css)
+### pex-color.toCSSLab(color, [precision]) ⇒ [css
](#css)
Returns a lab CSS string representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type | Default |
| ----------- | ---------------------------- | -------------- |
| color | [color
](#color) | |
| [precision] | number
| 5
|
-
+
-## toCSSLCH(color, [precision]) ⇒ [css
](#css)
+### pex-color.toCSSLCH(color, [precision]) ⇒ [css
](#css)
Returns a lch CSS string representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type | Default |
| ----------- | ---------------------------- | -------------- |
| color | [color
](#color) | |
| [precision] | number
| 5
|
-
+
-## toCSSHWB(color, [precision]) ⇒ [css
](#css)
+### pex-color.toCSSHWB(color, [precision]) ⇒ [css
](#css)
Returns a hwb CSS string representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type | Default |
| ----------- | ---------------------------- | -------------- |
| color | [color
](#color) | |
| [precision] | number
| 5
|
-
+
-## fromHex(color, hex) ⇒ [color
](#color)
+### pex-color.fromHex(color, hex) ⇒ [color
](#color)
Updates a color based on a hexadecimal string.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type | Description |
| ----- | ---------------------------- | ------------------------ |
| color | [color
](#color) | |
| hex | [hex
](#hex) | Leading '#' is optional. |
-
+
-## toHex(color, alpha) ⇒ [hex
](#hex)
+### pex-color.toHex(color, alpha) ⇒ [hex
](#hex)
Returns a hexadecimal string representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type | Description |
| ----- | ---------------------------- | ------------ |
| color | [color
](#color) | |
| alpha | boolean
| Handle alpha |
-
+
-## fromHPLuv(color, h, s, l, [a]) ⇒ [color
](#color)
+### pex-color.fromHPLuv(color, h, s, l, [a]) ⇒ [color
](#color)
Updates a color based on HPLuv values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -476,26 +373,26 @@ Updates a color based on HPLuv values and alpha.
| l | number
|
| [a] | number
|
-
+
-## toHPLuv(color, out) ⇒ [hpluv
](#hpluv)
+### pex-color.toHPLuv(color, out) ⇒ [hpluv
](#hpluv)
Returns a HPLuv representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## fromHSL(color, h, s, l, [a]) ⇒ [color
](#color)
+### pex-color.fromHSL(color, h, s, l, [a]) ⇒ [color
](#color)
Updates a color based on HSL values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -505,26 +402,26 @@ Updates a color based on HSL values and alpha.
| l | number
|
| [a] | number
|
-
+
-## toHSL(color, out) ⇒ [hsl
](#hsl)
+### pex-color.toHSL(color, out) ⇒ [hsl
](#hsl)
Returns a HSL representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## fromHSLuv(color, h, s, l, [a]) ⇒ [color
](#color)
+### pex-color.fromHSLuv(color, h, s, l, [a]) ⇒ [color
](#color)
Updates a color based on HSLuv values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -534,26 +431,26 @@ Updates a color based on HSLuv values and alpha.
| l | number
|
| [a] | number
|
-
+
-## toHSLuv(color, out) ⇒ [hsluv
](#hsluv)
+### pex-color.toHSLuv(color, out) ⇒ [hsluv
](#hsluv)
Returns a HSLuv representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## fromHSV(color, h, s, v, [a]) ⇒ [color
](#color)
+### pex-color.fromHSV(color, h, s, v, [a]) ⇒ [color
](#color)
Updates a color based on HSV values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -563,26 +460,26 @@ Updates a color based on HSV values and alpha.
| v | number
|
| [a] | number
|
-
+
-## toHSV(color, out) ⇒ [hsv
](#hsv)
+### pex-color.toHSV(color, out) ⇒ [hsv
](#hsv)
Returns a HSV representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## fromHWB(color, h, w, b, [a]) ⇒ [color
](#color)
+### pex-color.fromHWB(color, h, w, b, [a]) ⇒ [color
](#color)
Updates a color based on HWB values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -592,26 +489,26 @@ Updates a color based on HWB values and alpha.
| b | number
|
| [a] | number
|
-
+
-## toHWB(color, out) ⇒ [hwb
](#hwb)
+### pex-color.toHWB(color, out) ⇒ [hwb
](#hwb)
Returns a HWB representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## fromLab(color, l, a, b, α, illuminant) ⇒ [color
](#color)
+### pex-color.fromLab(color, l, a, b, α, illuminant) ⇒ [color
](#color)
Updates a color based on Lab values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ---------- | ---------------------------- |
@@ -622,13 +519,13 @@ Updates a color based on Lab values and alpha.
| α | number
|
| illuminant | Array
|
-
+
-## toLab(color, out, illuminant) ⇒ [lab
](#lab)
+### pex-color.toLab(color, out, illuminant) ⇒ [lab
](#lab)
Returns a Lab representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ---------- | ---------------------------- |
@@ -636,13 +533,13 @@ Returns a Lab representation of a given color.
| out | Array
|
| illuminant | Array
|
-
+
-## fromLCHuv(color, l, c, h, [a]) ⇒ [color
](#color)
+### pex-color.fromLCHuv(color, l, c, h, [a]) ⇒ [color
](#color)
Updates a color based on LCHuv values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -652,26 +549,26 @@ Updates a color based on LCHuv values and alpha.
| h | number
|
| [a] | number
|
-
+
-## toLCHuv(color, out) ⇒ [lchuv
](#lchuv)
+### pex-color.toLCHuv(color, out) ⇒ [lchuv
](#lchuv)
Returns a LCHuv representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## fromLinear(color, r, g, b, [a]) ⇒ [color
](#color)
+### pex-color.fromLinear(color, r, g, b, [a]) ⇒ [color
](#color)
Updates a color based on linear values.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -681,26 +578,26 @@ Updates a color based on linear values.
| b | number
|
| [a] | number
|
-
+
-## toLinear(color, out) ⇒ [linear
](#linear)
+### pex-color.toLinear(color, out) ⇒ [linear
](#linear)
Returns a linear color representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## fromOkhsl(color, h, s, l, [α]) ⇒ [color
](#color)
+### pex-color.fromOkhsl(color, h, s, l, [α]) ⇒ [color
](#color)
Updates a color based on Okhsl values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -710,26 +607,26 @@ Updates a color based on Okhsl values and alpha.
| l | number
|
| [α] | number
|
-
+
-## toOkhsl(color, out) ⇒ [okhsl
](#okhsl)
+### pex-color.toOkhsl(color, out) ⇒ [okhsl
](#okhsl)
Returns an Okhsl representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## fromOkhsv(color, h, s, v, [α]) ⇒ [color
](#color)
+### pex-color.fromOkhsv(color, h, s, v, [α]) ⇒ [color
](#color)
Updates a color based on Okhsv values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -739,26 +636,26 @@ Updates a color based on Okhsv values and alpha.
| v | number
|
| [α] | number
|
-
+
-## toOkhsv(color, out) ⇒ [okhsv
](#okhsv)
+### pex-color.toOkhsv(color, out) ⇒ [okhsv
](#okhsv)
Returns an Okhsv representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## fromOklab(color, L, a, b, [α]) ⇒ [color
](#color)
+### pex-color.fromOklab(color, L, a, b, [α]) ⇒ [color
](#color)
Updates a color based on Oklab values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -768,26 +665,26 @@ Updates a color based on Oklab values and alpha.
| b | number
|
| [α] | number
|
-
+
-## toOklab(color, out) ⇒ [oklab
](#oklab)
+### pex-color.toOklab(color, out) ⇒ [oklab
](#oklab)
Returns an Oklab representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
-
+
-## fromXYZ(color, x, y, z, a) ⇒ [color
](#color)
+### pex-color.fromXYZ(color, x, y, z, a) ⇒ [color
](#color)
Updates a color based on XYZ values and alpha.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
@@ -797,19 +694,51 @@ Updates a color based on XYZ values and alpha.
| z | number
|
| a | number
|
-
+
-## toXYZ(color, out) ⇒ [xyz
](#xyz)
+### pex-color.toXYZ(color, out) ⇒ [xyz
](#xyz)
Returns a XYZ representation of a given color.
-**Kind**: global function
+**Kind**: static method of [pex-color
](#module_pex-color)
| Param | Type |
| ----- | ---------------------------- |
| color | [color
](#color) |
| out | Array
|
+
+
+## utils
+
+- [utils](#module_utils)
+ - [.linearToSrgb](#module_utils.linearToSrgb) ⇒ number
+ - [.srgbToLinear](#module_utils.srgbToLinear) ⇒ number
+
+
+
+### utils.linearToSrgb ⇒ number
+
+Convert component from linear value
+
+**Kind**: static constant of [utils
](#module_utils)
+
+| Param | Type |
+| ----- | ------------------- |
+| c | number
|
+
+
+
+### utils.srgbToLinear ⇒ number
+
+Convert component to linear value
+
+**Kind**: static constant of [utils
](#module_utils)
+
+| Param | Type |
+| ----- | ------------------- |
+| c | number
|
+
## bytes : Array.<number>
diff --git a/package-lock.json b/package-lock.json
index fa3f110..735af27 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "pex-color",
- "version": "2.1.0",
+ "version": "2.1.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "pex-color",
- "version": "2.1.0",
+ "version": "2.1.1",
"license": "MIT",
"engines": {
"node": ">=22.0.0",
diff --git a/package.json b/package.json
index 47b6376..f1543a3 100755
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "pex-color",
- "version": "2.1.0",
+ "version": "2.1.1",
"description": "Color utilities (css, hex, hsl, hsv, hwb, lab, xyz, okhsl, okhsv, oklab, hpluv, hsluv, lchuv, bytes) for PEX.",
"keywords": [
"pex",
@@ -26,7 +26,10 @@
],
"homepage": "https://github.com/pex-gl/pex-color",
"bugs": "https://github.com/pex-gl/pex-color/issues",
- "repository": "pex-gl/pex-color",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/pex-gl/pex-color.git"
+ },
"license": "MIT",
"author": "Marcin Ignac