unstale

npm / colorjs.io

colorjs.io

What changed in colorjs.io 0.6 to 0.7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

2 breaking16 new APIs and options3 behavior and defaults8 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.0 on npm

colorjs.io 0.728 changes

Breaking changes 2

  • Pre-built ESM bundles are removed; ESM exports point directly to files in src/.

    0.7.0release notes

  • Minified files are removed from the package, making minification a consumer concern.

    0.7.0release notes

New APIs and options 16

  • Adds an opt-in displaySpaces override for controlling display fallback.

    0.7.0release notes

  • Adds hueId so code can look up a polar space's hue coordinate from its definition.

    0.7.0release notes

  • Adds hueIndex so code can look up a polar space's hue coordinate from its definition.

    0.7.0release notes

  • Exposes transformation matrices through ColorSpace.M and allows matrices for RGB spaces to be supplied via the generic M option.

    0.7.0release notes

  • Adds a deltaE method based on the Helmlab model.

    0.7.0release notes

  • Adds the DisplayOptions interface.

    0.7.0release notes

  • Adds a general class for generating gamut-relative color spaces for a gamut and color space.

    0.7.0release notes

  • Adds the experimental Helmlab family of perceptual color spaces.

    0.7.0release notes

  • Adds HSL syntax for a wider-gamut space.

    0.7.0release notes

  • Adds matrix inversion to the math utilities.

    0.7.0release notes

  • Adds gamut-relative LCH spaces, where c = 1 is the most colorful in-gamut color at a given lightness and hue.

    0.7.0release notes

  • Adds gamut-relative OKLCH spaces, where c = 1 is the most colorful in-gamut color at a given lightness and hue.

    0.7.0release notes

  • Adds a gamut mapping method that traces a ray to the gamut boundary and determines the RGB gamut and linear space from the space object.

    0.7.0release notes

  • Adds a collapse option to serialize() and Color.toString() to disable collapsing hex colors.

    0.7.0release notes

  • Adds a matrix-solving utility.

    0.7.0release notes

  • The supports() API is now parameterizable.

    0.7.0release notes

Behavior and default changes 3

  • When a color is unsupported by the browser, display now chooses the closest supported ancestor space, preserving the color's gamut.

    0.7.0release notes

  • Updates the gamut surface threshold guidance: 1e-12 for better 64-bit resolution and 1e-6 for 32-bit values.

    0.7.0release notes

  • Avoids implied color space dependencies for procedural usage, so consumers no longer need to manage them manually.

    0.7.0release notes

Fixes and other changes 7

  • Fixed a regression that broke space accessors in bundlers.

    0.7.1release notes

  • Fixed steps using deltaEMethod inconsistently.

    0.7.1release notes

  • Preserves a subclass's own fromBase method when options omit it, instead of overwriting the prototype method with undefined.

    0.7.0release notes

  • Serializes helmgenlch as color(--helmgenlch …), correcting its invalid prior serialization.

    0.7.0release notes

  • Adds the types field back to package.json.

    0.7.0release notes

  • Corrects premultiplied interpolation in polar spaces: hue is not premultiplied, zero alpha is not divided, and missing alpha is carried forward correctly.

    0.7.0release notes

  • Preserves a subclass's own toBase method when options omit it, instead of overwriting the prototype method with undefined.

    0.7.0release notes

colorjs.io 0.61 changes

Fixes and other changes 1

  • Moves DOM lib inclusion to the types definition file to fix a TypeScript issue.

    0.6.1release notes