v0.6.0 Beta 1 #687
LeaVerou
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We hear you, it’s been a while, and v0.6.0 is long overdue. Assuming any significant issues come up in this beta, we plan to release a stable v0.6.0 in 1-2 weeks or so.
⬇️ 84 million downloads!
Color.js is quickly becoming the de facto color handling library for JS:
it has now been downloaded over 84 million times on npm,
a number that is rapidly increasing, at the rate of nearly 3 million downloads per week!
As a reminder, we recently started an Open Collective so you can fund Color.js's development.
If your company depends on Color.js in any way, it is in your best interest to ensure its future is sustainable.
Changes
Note
This only includes the changes after v0.6.0 Alpha 1.
Check out the v0.6.0 Alpha 1 release notes for changes since 0.5.2
API changes for DX
tryColor()/Color.try()(by @LeaVerou in AddtryColor()/Color.try()for graceful parsing and complex colors #664)spacesexport of/fnand the new/spacestop-level export. (by @LeaVerou in Improve procedural API for all color spaces use case, rel #661 #663, with types by @MysteryBlokHed in [types] Add types forspacesandsrcexports #668)/srcexport to import Color.js's source code directly (by @LeaVerou in Improve procedural API for all color spaces use case, rel #661 #663, with types by @MysteryBlokHed in [types] Add types forspacesandsrcexports #668)API changes for spec compliance
color(ictcp ...)toictcp(...)per CSS Color HDR (by @svgeesus in [spaces/ictcp] Change color(ictcp ...) to ictcp(...) per CSS Color HDR #646)color(jzazbz ...)tojzazbz(...), andcolor(jzczhz ...)tojzczhz(...)per CSS Color HDR (by @svgeesus in [spaces/jzazbz] Changecolor(jzazbz ...)tojzazbz(...), same for jzczhz #647)display-p3-linearsince it is now in CSS Color 4 (i.e.color(--display-p3-linear ...)→color(display-p3-linear ...)(by @svgeesus in c90fe38). Not a breaking change, as both are still supported.rec2020; rename previous implementation as scene-referred--rec2020-oetf(by @svgeesus in Deploying changes tocolor(rec2020 ...)#669)Bug fixes
nullwhen chroma is near zero (by @facelessuser in Set CAM16 and HCT hues to null when chroma is near zero #644)toGamut(), better handle the case when JND equals 0 (by @facelessuser in Handle JND == 0 case better #659)Improvements to types
multiplyMatricestypes and update implementation to pass all tests (by @epsilonError in [types] overload multiplyMatrices types #580 [multiplyMatrices] Update implementation to pass all tests #631)null(by @lloydk)darken()/lighten()functions on theColorclass (by @lloydk in Fix return types of the darken/lighten functions on the Color class #654)For contributors
Full Changelog: v0.6.0-alpha.1...v0.6.0-beta.1
New Contributors
This discussion was created from the release v0.6.0 Beta 1.
Beta Was this translation helpful? Give feedback.
All reactions