Download Latest Version v3.0.6 source code.tar.gz (1.7 MB)
Email in envelope

Get an email when there's a new version of huetiful-js

Home / v2.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2024-02-29 2.5 kB
Totals: 1 Item   2.5 kB 0

2.0.0 (stable)

Notable changes
  • Stylish new look on the docs :rocket: . See the updated docs :scroll: 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 :herb:
  • Updated the contributing guidelines. See the CONTRIBUTING :open_hands: file here
  • Wiki with some example use cases and in depth explanations of some the library behaviours.
New features :toolbox:
  • Added 6 utilities:

  • getFarthestChromaFrom

  • getFarthestHueFrom
  • getFarthestLightnessFrom
  • getNearestChromaFrom
  • getNearestHueFrom
  • 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 :pill:
  • 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 :snail:
  • Fixed precision issue when working with color tokens as plain objects. by first converting all colors to hex.

... And more!!!

Download huetiful-js

Source: README.md, updated 2024-02-29