diff --git a/CHANGELOG.md b/CHANGELOG.md index 16521765..d58981bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,24 +1,24 @@ # Changelog -## Unreleased +## [3.2.0] ### Added - `hueOr` extension to colors like `HSV` that returns the color's hue or a fallback value if the hue is undefined. ### Changed - Updated Kotlin to 1.6.0 -## [3.1.1] - 2021-09-28 +## [3.1.1] ### Fixed - Fix shared immutability for background threads on Kotlin Native -## [3.1.0] - 2021-09-24 +## [3.1.0] ### Added - Optional modules with extensions for converting between Colormath colors and other platform representations. ### Changed - Unspecified alpha values now default to fully opaque -## [3.0.0] - 2021-09-10 +## [3.0.0] ### Added - New color models: `Oklab`, `Oklch`, `HWB`, `HPLuv`, `HSLuv`, `LCHab`, `LCHuv`, `JzAzBz`, `JzCzHz`, `ICtCp` - New RGB color spaces: `Linear sRGB`, `ACES`, `ACEScc`, `ACEScct`, `ACEScg`, `Adobe RGB`, `BT.2020`, `BT.709`, `DCI P3`, `Display P3`, `ProPhoto` @@ -47,7 +47,7 @@ - Removed `Ansi16` companion object color constants. - Removed `Color.toHex()`. Use `RGB.toHex()` instead. -## [2.1.0] - 2021-05-05 +## [2.1.0] ### Added - Added CIE LUV colorspace support - Added CIE LCH(uv) colorspace support @@ -60,7 +60,7 @@ - `Color.fromCss` now clamps out-of-range values in accordance with the CSS Color Module Level 4 spec -## [2.0.0] - 2020-09-12 +## [2.0.0] ### Added - Added multiplatform support. @@ -70,11 +70,11 @@ ### Deprecated - Renamed `ConvertibleColor` to `Color`. The old name is left as a deprecated type alias. -## [1.4.1] - 2020-05-12 +## [1.4.1] ### Fixed - Fix `RGB(255,255, 255).toLAB()` throwing an exception due to rounding precision. -## [1.4.0] - 2019-12-22 +## [1.4.0] ### Added - `hueAsRad()`, `hueAsGrad()`, and `hueAsTurns()` extensions for `HSL` and `HSV` classes. - `toHex()` now has a `renderAlpha` parameter that lets you render the color's alpha channel in the hex. By default the alpha will be added if it's < 1. @@ -86,7 +86,7 @@ - `ColorMath.parseCssColor()` renamed to `ConvertableColor.fromCss()` and `ColorMath.cssKeywordColors` to `CssColors.colorsByName` -## [1.3.0] - 2019-12-19 +## [1.3.0] ### Added - All colors now have an `alpha` channel, defaulting to 1 (fully opaque). For colorspaces that support transparency, you can pass an alpha value into their constructors. - `ColorMath.parseCssColor()` can parse all valid HTML/CSS colors, including rgb, hsl, and named colors. @@ -96,6 +96,6 @@ - Switch rounding methods to use `kotlin.math` rounding, which can slightly change conversion results in some cases. -## [1.2.0] - 2018-08-19 +## [1.2.0] ### Added - Add ability to construct RGB instances from packed integers or Bytes diff --git a/README.md b/README.md index 7d949446..7fbd1e5e 100644 --- a/README.md +++ b/README.md @@ -50,16 +50,16 @@ Colormath is distributed through [Maven Central](https://search.maven.org/artifa ```groovy dependencies { - implementation("com.github.ajalt.colormath:colormath:3.1.1") + implementation("com.github.ajalt.colormath:colormath:3.2.0") // optional extensions for interop with other platforms // // android.graphics.Color - implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-color:3.1.1") + implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-color:3.2.0") // androidx.annotation.ColorInt - implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-colorint:3.1.1") + implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-colorint:3.2.0") // androidx.compose.ui.graphics.Color - implementation("com.github.ajalt.colormath.extensions:colormath-ext-jetpack-compose:3.1.1") + implementation("com.github.ajalt.colormath.extensions:colormath-ext-jetpack-compose:3.2.0") } ``` diff --git a/gradle.properties b/gradle.properties index 8cbceae4..79e7f604 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=3.1.1 +VERSION_NAME=3.2.0 # work around for compose-web bug KT-48273 kotlin.js.webpack.major.version=4