Skip to content

Releases: ajalt/colormath

3.6.0

30 Jun 23:21
Compare
Choose a tag to compare

Added

Changed

  • Update Kotlin to 2.0.0

3.5.0

17 Apr 19:18
Compare
Choose a tag to compare

Added

  • Publish artifacts for the JS and wasmJs targets for the jetpack-compose extensions.
  • Added support to formatCssString and Color.parse for color spaces added in recent updates to the CSS color spec: oklab, oklch, srgb-linear, xyz-d50 and xyz-d65.
  • Added customColorSpaces for Color.parse and Color.formatCssString to allow non-standard color spaces to be used in color strings.
  • Added min and max properties to ColorComponentInfo to get the reference range for the component.
  • Support percentage format for all values in Color.parse with reference range scaling from the new drafts of CSS Color Module 4.
  • Added clamp() function to all color models to clamp the color components to their valid range.

Changed

  • Color.parse now parses lch() and lab() functions with the with D50 white points instead of D65 in order to comply with the latest draft of CSS Color Module 4.
  • Color.parse no longer clamps out-of-gamut values by default. Use the new clamp method on the returned color if desired.

Fixed

  • ColorSpace.equals will now properly return true when comparing color companions with the space they represent e.g. XYZ == XYZ65
  • Support the CSS "none" keyword for NaN values in Color.parse and Color.formatCssString

3.4.0

25 Jan 22:18
Compare
Choose a tag to compare
  • Publish artifacts for the wasmJs target. This target is experimental and not tested on CI. If

3.3.3

13 Oct 19:00
Compare
Choose a tag to compare

Changed

  • Use unique namespace for all android extensions and disable BuildConfig generation. Thanks to @frett for the contribution (#45)

3.3.2

25 Aug 17:46
Compare
Choose a tag to compare

Added

  • Publish linuxArm64 target. This target is not tested on CI.

Changed

  • Updated Kotlin to 1.9.0

3.3.1

22 Jun 21:19
Compare
Choose a tag to compare

Changed

  • Publish JVM artifacts with Java 8 bytecode

3.3.0

05 Jun 18:37
Compare
Choose a tag to compare

Added

  • The core module now publishes multiplatform targets for iosSimulatorArm64, tvosSimulatorArm64, and watchosSimulatorArm64.
  • The Jetpack Compose extensions module colormath-ext-jetpack-compose now publishes multiplatform targets for JVM and iOS in addition to the existing android target.

Changed

  • Updated Kotlin to 1.8

3.2.1

17 Sep 20:02
Compare
Choose a tag to compare

Changed

  • Updated Kotlin to 1.7.10

3.2.0

11 Dec 22:49
Compare
Choose a tag to compare

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

28 Sep 19:48
Compare
Choose a tag to compare

Fixed

  • Fix shared immutability for background threads on Kotlin Native