fix(deps): update dependency colorjs.io to ^0.7.0 - #5108
Merged
Conversation
renovate
Bot
requested review from
Barsnes,
eirikbacker and
mimarz
as code owners
July 23, 2026 01:03
🦋 Changeset detectedLatest commit: 7c4bfaa The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
Preview deployments for this pull request: storybook - |
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Barsnes
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.6.1→^0.7.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
color-js/color.js (colorjs.io)
v0.7.0Compare Source
Two pre-releases in the making, this release brings a lot of new color spaces, a new gamut mapping method, a smarter
display(), a leanerdist/, and a pile of fixes.If you have been following along with the v0.7.0-alpha.1 and v0.7.0-alpha.2 pre-releases, the only things new to you are in Changes since v0.7.0-alpha.2.
⬇️ Over 240 million downloads! 🤯
Color.js has now been downloaded over 240 million times on npm!
As a reminder, we have an Open Collective that you can fund directly.
If your company depends on Color.js in any way, it is in your best interest to ensure its future is sustainable.
🚨 Breaking changes
These are unlikely to break things for the majority of users, but theoretically could if you were doing weird stuff with Color.js 😜.
We cleaned up
dist/quite a bit with this release and re-evaluated what actually needs to be there:src/. This also fixes a dual-instance bug where importing fromsrc/vs. the package root could yield differentColorregistries (by @LeaVerou in #739)..min.*files from the package, since packages are moving away from providing these and minification is becoming a consumer concern (by @LeaVerou in #741).For those of you that have been importing files directly from
colorjs.io, removed files now redirect to the versions still there (e.g.colorjs.io/dist/color.min.jsandcolorjs.io/dist/color.jsnow both redirect tocolorjs.io/src/color.js), so your code should continue to work.New color spaces
c = 1is the most colorful in-gamut color at a given lightness and hue so you never have to worry about getting out of gamut! These new spaces are:oklch-p3,oklch-srgb,oklch-rec2020,lch-p3,lch-srgb,lch-rec2020.GamutRelativeColorSpaceclass that can be easily used to generate such color spaces for any gamut and color space, as long as there is a coordinate to reduce that is guaranteed to get you in-gamut.hsl-p3andhsl-rec2020: HSL syntax, wider gamut (by @LeaVerou in #735)helmlab-metric(Helmlab MetricSpace),helmgen(HelmGen), andhelmgenlch(HelmGenLCh) (by @Grkmyldz148)Other new features
display()fallback When a color isn't natively supported by the browser,display()now stays as close as possible to the original color: it walks up the base color space chain (closest first) and uses the first supported ancestor, preserving the color's gamut (e.g. anhsl-p3color falls back tocolor(display-p3 …)rather thanlab()) instead of always jumping to the widest default. Adds an opt-indisplaySpacesoverride onColorSpace, a parameterizablesupports(), and aDisplayOptionsinterface (by @LeaVerou in #738)raytrace. It traces a ray to the gamut boundary instead of binary-searching, automatically determining the RGB gamut and linear space from the space object (by @facelessuser)deltaEHelmlab, based on the Helmlab model (by @Grkmyldz148)collapseoption toserialize()/Color.toString()to disable collapsing for hex colors (e.g. keep#ff0066instead of collapsing it to#f06) (by @MysteryBlokHed in #712)For plugin/library/tooling authors
Exposed more internals, so you never have to duplicate stuff that Color.js already knows about:
ColorSpace.MColor spaces now expose the transformation matrices they use internally through a newMproperty, so consumers can reuse them instead of duplicating the data. Matrices for RGB spaces can also be supplied via the genericMoption (by @LeaVerou in #749)inv(matrix inversion) andsolveto the math utilities, so external libraries are no longer required when developing new color spaces (by @facelessuser)ColorSpace#hueIdandColorSpace#hueIndex, so code that needs the hue angle can look it up from the space definition instead of assuming it is namedh(by @svgeesus in #754)Changes since v0.7.0-alpha.2
Bug fixes
nonealpha. Concretely:h(e.g.hzin Jzczhz) now interpolate correctly too.0leaves the coordinates untouched instead of dividing by zero and producingNaN.nonealpha is carried forward from the other color before premultiplying, per CSS Color 4 § 13.2, and staysnoneonly if both colors are missing it. Previously anonealpha premultiplied every coordinate to zero, turning the color black.helmgenlchnow serializes ascolor(--helmgenlch …)instead of the invalidcolor(helmgenlch …), by giving it thecssIdits sibling spaces already had (by @Grkmyldz148, fixes #730)1e-12gives better resolution for 64 bit values, while1e-6is the right choice for 32 bit (by @facelessuser in #752)For contributors
Other bug fixes & performance
These landed in the pre-releases:
toBase/fromBasewhen options omit them, instead of clobbering prototype methods withundefined(by @LeaVerou)typesfield back topackage.json(by @MysteryBlokHed in #714)Full Changelog: color-js/color.js@v0.6.1...v0.7.0
New Contributors
deltaEHelmlab)Configuration
📅 Schedule: (in timezone Europe/Oslo)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.