Changelog History
-
v1.1.1 Changes
October 31, 2020🛠 Fixes #235
-
v1.1.0 Changes
September 06, 2020🚀 This release adds 3 new functions to help you display any color as a string.
toHex
: https://color2k.com/#to-hextoHsla
: https://color2k.com/#to-hslatoRgba
: https://color2k.com/#to-rgba
-
v1.0.0 Changes
July 20, 2020Welcome to stable
💅 Unfortunately due to the difficulties of SSR compatibility (i.e. the lack of conditional import support in sandboxed SSR environments) this lib has dropped
getComputedStyle
support in favor of a pure JS implementation. This unfortunately increases bundle size but we've ensured this package is still the smallest of its kind (2.7kB now).📜 However, the benefit of parsing colors in JS is stability, so…
🍱 Here's 1.0 🎉
💻 No dependencies and no browser limitations. Use anywhere.
-
v1.0.0-rc.5 Changes
May 25, 2020🚀 After some more testing and real usage, brightness
darken
andgetBrightness
did not output what I had hoped for so this release removesgetBrightness
and makeslightnessDarken
the newdarken
.⏱ This should be the final API set before 1.0 scheduled for June 11th.
-
v1.0.0-rc.4 Changes
May 14, 2020💅
getComputedStyle
in JSDOM does not behave the same way as the browser. In order add support for JSDOM (and in turn, add support for JSDOM within Jest), an explicit check for JSDOM was added.📦 Small breaking change: the
@color2k/node
package was renamed to@color2k/compat
and instead of being bundled as a commonjs (cjs
) module, it's now bundled as a UMD module. This makes it so that this module can be evaluated and used inside of JSDOM via eval w/{ runScripts: 'outside-only' }
.👀 See the tests for more details.
Note: if you'd like to run color2k inside of Jest with the environment
jest-environment-jsdom
, all you need to do is install@color2k/compat
-
v1.0.0-rc.3 Changes
May 13, 2020💅 Switches the canvas implementation to
getComputedStyle
because it's faster. -
v1.0.0-rc.2 Changes
May 11, 2020🚀 This release adds a new API
getScale
to mimic chroma-js's scale API. -
v1.0.0-rc.1 Changes
May 11, 2020🚀 This is the first release of color2k 🎉
👀 It's labeled as anrc
to simply give it some time to prove to be stable but I don't foresee any API changes.