v2.0.5 #156
prjctimg
announced in
Announcements
v2.0.5
#156
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
2.0.5 (stable)
Notable changes
.d.ts
files. This is eliminate the need for a build step just to be able to test our code.New features 🧰
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 💊
ArrayLike
objects as well as plain objects andMap
objects. In short its fully generic. If a plain object is passed as the collection it returns aMap
. This is true for infilterBy
functions which will return aMap
with the falsy colors removed. InsortBy
functions, an orderedMap
is returned because this object remembers insertion order and is more effecient if you want to perform frequent actions on the collection.colorspace
parameter for examplenum2rgb
. See the updated converters hereisAchromatic
now checks if a color is achromatic in additional colorspaces as well. This is optional via a second paramcolorspace
. The default colorspace is 'lch'Bug fixes 🐌
... And more!!!
Breaking changes
This discussion was created from the release v2.0.5.
Beta Was this translation helpful? Give feedback.
All reactions