Skip to content

Bump colord from 2.7.0 to 2.10.0 in /web - #158

Merged
webstackdev merged 1 commit into
mainfrom
dependabot/npm_and_yarn/web/colord-2.10.0
Sep 19, 2026
Merged

webstackdev merged 1 commit into
mainfrom
dependabot/npm_and_yarn/web/colord-2.10.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 11, 2026

Copy link
Copy Markdown
Contributor

Bumps colord from 2.7.0 to 2.10.0.

Release notes

Sourced from colord's releases.

v2.10 (RGB color mixing)

  • mix, tints, shades and tones (mix plugin) now accept an optional interpolation color space. LAB stays the default; pass "rgb" to interpolate RGB channels instead — the way browsers and design tools (such as Figma) composite translucent layers.
import { colord, extend } from "colord";
import mixPlugin from "colord/plugins/mix";
extend([mixPlugin]);
colord("#ff0000").mix("#ffffff", 0.5, "rgb").toHex(); // "#ff8080"
colord("#f0f3f1").mix("#007d40", 0.14, "rgb").toHex(); // "#cee2d8" — same as compositing rgba(0, 125, 64, 0.14) over #f0f3f1
colord("#ff0000").tints(3, "rgb").map((c) => c.toHex()); // ["#ff0000", "#ff8080", "#ffffff"]

v2.9 (🗜 Color minification)

  • New minify plugin adding color string minification utilities.
import { colord, extend } from "colord";
import minifyPlugin from "colord/plugins/minify";
extend([minifyPlugin]);
colord("black").minify(); // "#000"
colord("#112233").minify(); // "#123"
colord("darkgray").minify(); // "#a9a9a9"
colord("rgba(170,170,170,0.4)").minify(); // "hsla(0,0%,67%,.4)"
colord("rgba(170,170,170,0.4)").minify({ alphaHex: true }); // "#aaa6"

v2.8 (Perceived color difference)

  • @​EricRovell added delta method to calculate the perceived color difference (CIE Delta E 2000) between two colors. The return value is 0 if the colors are equal, 1 if they are entirely different.
colord("#faf0c8").delta("#ffffff"); // 0.148
colord("#3296fa").delta("#197dc8"); // 0.099
colord("#afafaf").delta("#b4b4b4"); // 0.014
colord("[#000000](https://github.com/omgovich/colord/issues/000000)").delta("#ffffff"); // 1
Changelog

Sourced from colord's changelog.

2.10.0

  • Improve mix plugin by adding an optional "rgb" interpolation mode to mix, tints, tones and shades

2.9.7

  • Make HEX parsing and serialization more than 2x faster

2.9.6

  • Fix: Rotate the unrounded hue so rotate and harmonies preserve the original color
  • Fix: Normalize HWB whiteness + blackness over 100% to gray ❤️ @​spokodev

2.9.5

Both fixes change returned numbers for a small set of colors; toHex() output is unchanged. Snapshots holding h: 360, "hsl(360, …)" or a delta() value may need updating.

2.9.4

  • Fix: Reject malformed color strings in linear time ❤️ @​GAP-dev

2.9.3

2.9.2

  • Fix: Add "package.json" to exports map

2.9.1

  • Fix: Make minification lossless
  • Fix: Minify to name only if color is opaque

2.9.0

  • New plugin: Color string minification 🗜

2.8.0

  • New delta method to calculate the perceived color difference between two colors ❤️ @​EricRovell
Commits
  • b10c2f9 feat: add an optional RGB interpolation mode to the mix plugin (#149)
  • c7468b9 chore: prepare the 2.9.7 release (#155)
  • 3cad270 perf(hex): parse and serialize HEX without parseInt and toString (#153)
  • 51acf77 ci: run the benchmark in GitHub Actions (#154)
  • c6105a0 chore: prepare the 2.9.6 release (#151)
  • 355e1ea fix(hwb): normalize whiteness + blackness over 100% to gray (#138)
  • 341437f fix: rotate the unrounded hue so harmonies preserve the original color (#148)
  • 5573288 chore: prepare the 2.9.5 release (#147)
  • 6810020 chore: add GitHub Sponsors to FUNDING.yml (#146)
  • 9049cc8 fix: keep the hue within [0, 360) in every color model (#136)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [colord](https://github.com/omgovich/colord) from 2.7.0 to 2.10.0.
- [Release notes](https://github.com/omgovich/colord/releases)
- [Changelog](https://github.com/omgovich/colord/blob/master/CHANGELOG.md)
- [Commits](omgovich/colord@v2.7...v2.10)

---
updated-dependencies:
- dependency-name: colord
  dependency-version: 2.10.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Sep 11, 2026
@webstackdev
webstackdev merged commit 1380ad5 into main Sep 19, 2026
0 of 4 checks passed
@webstackdev
webstackdev deleted the dependabot/npm_and_yarn/web/colord-2.10.0 branch September 19, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant