Skip to content

chore(deps): update dependency @ctrl/tinycolor to v4.2.1 - #5

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/ctrl-tinycolor-4.x-lockfile
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/ctrl-tinycolor-4.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@ctrl/tinycolor (source) 4.2.04.2.1 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

scttcper/tinycolor (@​ctrl/tinycolor)

v4.2.1

Compare Source

Patch release focused on performance and bug fixes, with no new APIs or features.

  • Speed up hex and named-color parsing, hex formatting, channel normalization, and contrast calculations. Reuse parsed colors when selecting readable text. (#​262)
  • Handle empty candidate lists in mostReadable: return null without fallback, or choose black/white when fallback colors are enabled.
  • Add regression coverage for invalid names, uppercase custom color values, hex shortening, and tied candidates.
  • Benchmark freshly built output through Node's native module loader, including rebuilds in watch mode.

Local compiled-build measurements at 061fdb8 against pre-change master on Node 24.16.0. Times are medians of nine alternating runs after warmup, with 100,000 operations per run.

Workflow Before After Throughput gain
Hex parsing 28.91 ms 17.74 ms 1.63x
Bare hex parsing 35.31 ms 23.43 ms 1.51x
Named colors 30.22 ms 18.19 ms 1.66x
Hex formatting 8.69 ms 3.84 ms 2.26x
Hex8 formatting 9.93 ms 5.09 ms 1.95x
HSL formatting 10.64 ms 8.74 ms 1.22x
Percentage formatting 9.52 ms 9.19 ms 1.04x
Parse and format 60.63 ms 53.24 ms 1.14x
Lighten and saturate 125.50 ms 101.05 ms 1.24x
Mixing colors 122.34 ms 90.85 ms 1.35x
Analogous palette 309.43 ms 252.93 ms 1.22x
Contrast calculation 65.65 ms 37.43 ms 1.75x
Selecting readable text 294.96 ms 75.18 ms 3.92x

Full changelog: scttcper/tinycolor@v4.2.0...v4.2.1


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants