Skip to content

Releases: xml-wizard/huetiful

v2.3.0

08 Apr 12:26
24f9cf4
Compare
Choose a tag to compare

2.3.0 (2024-04-08)

Features

  • fixed icon not rendering (54c66d6)

v2.2.0

30 Mar 13:28
f970564
Compare
Choose a tag to compare

2.2.0 (2024-03-28)

Features

  • added release-please-npm.yml workflow to publish when a new release is merged (fce329a)

Patch update 2.1.1

22 Mar 16:40
7a56a30
Compare
Choose a tag to compare

Bug fixes 馃悰

  • Fixed type errors
  • Fixed invalid links in docs
  • Fixed failing build step

v2.1.0

22 Mar 15:43
6dba1e8
Compare
Choose a tag to compare

What's Changed 馃敪

  • Added the stats module which has functions for retrieving values like mean hue and mean color difference from collections of color token
  • Utils now preserve the input type for output. For example, if you pass in a color object to a palette generator function it will return a collection of colour objects too
  • Fixed precision loss bug when converting from hex to other modes.
  • ColorArray and Color classes now live in a separate wrappers.js module
  • Refactored the documentation site and added pagination
  • Added a demo page to the documentation site.

More changes in the commits!!!

Happy hacking 馃殌

v2.0.5

01 Mar 07:55
Compare
Choose a tag to compare

2.0.5 (stable)

Notable changes
  • Stylish new look on the docs 馃殌 . See the updated docs 馃摐 here
  • The codebase is now pure JavaScript. Types now live seperately in .d.ts files. This is eliminate the need for a build step just to be able to test our code.
  • More automated workflow. Testing,publishing to NPM and deploying the docs is all automated via GitHub Actions
  • Full test coverage of the public API with Jasmine 馃尶
  • Updated the contributing guidelines. See the CONTRIBUTING 馃憪 file here
  • Wiki with some example use cases and in depth explanations of some the library behaviours.
New features 馃О
  • Added 6 utilities:
  1. getFarthestChromaFrom
  2. getFarthestHueFrom
  3. getFarthestLightnessFrom
  4. getNearestChromaFrom
  5. getNearestHueFrom
  6. getNearestLightnessFrom

Which are similar to i.e getNearestChroma but take an additional against param which takes every color in the collection as a subtrahend and returning the specified extremum of the factor being queried.

Enhancements 馃拪
  • The array methods for example any function that took an array as the first argument now accepts any ArrayLike objects as well as plain objects and Map objects. In short its fully generic. If a plain object is passed as the collection it returns a Map. This is true for in filterBy functions which will return a Map with the falsy colors removed. In sortBy functions, an ordered Map is returned because this object remembers insertion order and is more effecient if you want to perform frequent actions on the collection.
  • Converters have been enhanced to take an additional colorspace parameter for example num2rgb. See the updated converters here
  • isAchromatic now checks if a color is achromatic in additional colorspaces as well. This is optional via a second param colorspace. The default colorspace is 'lch'
Bug fixes 馃悓
  • Fixed precision issue when working with color tokens as plain objects. by first converting all colors to hex.
  • Fixed type collisions
    ... And more!!!

Breaking changes

Download huetiful-js

1.6

15 Sep 01:31
Compare
Choose a tag to compare
1.6

Full Changelog: 1.5.1...1.6