color2k v1.0.0-rc.4 Release Notes

Release Date: 2020-05-14 // almost 4 years ago
  • ๐Ÿ’… 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