Skip to content

Releases: ricokahler/color2k

v1.2.0-alpha.3

30 Jan 05:22
Compare
Choose a tag to compare
v1.2.0-alpha.3 Pre-release
Pre-release

1.2.0-alpha.3 (2021-01-30)

Bug Fixes

  • build: add microbundle to dev deps (0c92637)
  • build: add prepare to package.json; remove private from package.json (bd4b9db)
  • build: remove pre-defined plugins (660e67c)

v1.2.0-alpha.2

30 Jan 05:13
Compare
Choose a tag to compare
v1.2.0-alpha.2 Pre-release
Pre-release

1.2.0-alpha.2 (2021-01-30)

Bug Fixes

  • update releaserc with necessary plugins (0f35292)

v1.2.0-alpha.1

30 Jan 05:05
Compare
Choose a tag to compare
v1.2.0-alpha.1 Pre-release
Pre-release

1.2.0-alpha.1 (2021-01-30)

Bug Fixes

Features

  • build: switch to microbundle and semantic release (#337) (ebd6e23)

v1.1.1

31 Oct 00:32
9ff9846
Compare
Choose a tag to compare

Fixes #235

Display helpers

06 Sep 15:19
809a3e9
Compare
Choose a tag to compare

This release adds 3 new functions to help you display any color as a string.

v1.0.0

20 Jul 05:28
Compare
Choose a tag to compare

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.

Remove `getBrightness` and `darken`

25 May 00:21
Compare
Choose a tag to compare

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.

JSDOM support

14 May 08:19
Compare
Choose a tag to compare

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

Switch to getComputedStyle instead of canvas

13 May 02:16
Compare
Choose a tag to compare

Switches the canvas implementation to getComputedStyle because it's faster.

`getScale`

11 May 20:15
0ff78b4
Compare
Choose a tag to compare

This release adds a new API getScale to mimic chroma-js's scale API.

See here for docs