All Versions
Latest Version
Avg Release Cycle
25 days
Latest Release
1259 days ago

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.

  • v1.0.0 Changes

    July 20, 2020

    Welcome 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 and getBrightness did not output what I had hoped for so this release removes getBrightness and makes lightnessDarken the new darken.

    โฑ 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.

    ๐Ÿ‘€ See here for docs

  • v1.0.0-rc.1 Changes

    May 11, 2020

    ๐Ÿš€ This is the first release of color2k ๐ŸŽ‰
    ๐Ÿ‘€ It's labeled as an rc to simply give it some time to prove to be stable but I don't foresee any API changes.