Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade colorjs.io from 0.4.5 to 0.5.2 #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Carolinewly
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade colorjs.io from 0.4.5 to 0.5.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 3 versions ahead of your current version.

  • The recommended version was released on a month ago.

Release notes
Package name: colorjs.io
  • 0.5.2 - 2024-06-26

    A fix for the same issue as the previous patch. This should fix compatibility with all TypeScript versions.

    What's Changed

    Full Changelog: v0.5.1...v0.5.2

  • 0.5.1 - 2024-06-24

    Implements a change suggested by @ kachkaev in #560 (comment) to fix errors on newer TypeScript versions.

    Full Changelog: v0.5.0...v0.5.1

  • 0.5.0 - 2024-03-01

    It’s been a while since our last release, so this is a big one!
    Going forwards, we plan to make at least one release per month.

    Heads ups

    ⚠️ Future breaking change

    Color.js currently uses NaN values to represent CSS none (e.g. for achromatic colors).
    However, CSS also now has a NaN value, which is currently impossible to represent in Color.js.
    Therefore, In the next non-minor version, we will start using null to represent none.
    If you have code that handles these values, you can prepare for the change by detecting which value is being used and using that instead of a hardcoded NaN:

    const NONE_COORD = new Color("rgb(none none none)").coords[0].valueOf()

    🆕 Color.js Discord server

    We’ve just set up a Discord server so that people can help each other and discuss color science topics in a more immediate way. Join now!.
    Do note we also have a Discussions section for more long-form help.

    ⬇️ 2 million downloads!

    We’ve recently passed a big milestone: Color.js was downloaded 2 million times on npm!

    New in v0.5.0

    New Color Spaces

    Improved compatibility with CSS:

    • Moving to a standard ---prefixed version for color spaces that are not built-in into CSS. To facilitate "upgrading" color spaces when they later get added to standard CSS, both ---prefixed and unprefixed versions of all color spaces are also accepted. Implemented by @ jgerigmeyer in #407 and #439
    • Add support for more angle units (grad, rad and turn) improving compatibility with CSS, by @ kleinfreund in #324
    • Add CSS gamut mapping algorithm by @ jamesnw in #344 and #352
    • Remove gamut mapping from hsl(), hwb() and hsv() by @ jamesnw in #331

    Gamut mapping improvements

    • Support for HCT gamut mapping by @ facelessuser in #420
    • toGamut extended to allow configuring the delta E method, the JND, and enabling white and black SDR clamp by @ facelessuser in #420
    • Allow hsluv to be gamut mapped using the CSS algorithm by @ lloydk in #431
    • Avoid needless two-step color conversion at the start of gamut mapping by @ facelessuser in #426
    • Avoid round-trip to/from oklch in CSS mapping method for colors that are in gamut @ jgerigmeyer in #455

    Color space API improvements:

    • Color spaces can now override the heuristically determined color space used to check gamut via a gamutSpace parameter. Implemented by @ lloydk in #369
    • Color spaces can now define a grammar for color() format. Implemented by @ lloydk in #370
    • Support string ids in colorSpace.equals() by @ LeaVerou in #413
    • Make the color space optional in getAll() by @ LeaVerou in #413

    Precision/accuracy improvements

    Performance improvements

    • [deltaE] Speedup of 7th powers in DeltaE2000 by @ dom1n1k in #340

    Bug Fixes

    TypeScript improvements

    Website

    Apps

    • [apps/gamut-mapping] New app to experiment with different gamut mapping algorithms and quickly see how wide a gamut a color requires by @ LeaVerou
    • [apps/gradient] pin mavo to hotfix app by @ clanghout in #359
    • [apps/picker] Use correct granularity in number input rather than 1 across all color spaces (by @ sidewayss in #330)
    • [apps/convert] Up/down arrows to tweak color coordinates by @ LeaVerou
    • [apps/convert] Pin color spaces to top by @ LeaVerou

    Linting & Tests

    • New JS-first testsuite that eliminates boilerplate and makes writing tests quick, by @ LeaVerou (piloting her experimental testing framework htest.dev)
    • Fix Jzazbz tests by @ facelessuser in #366
    • More consistent formatting across the codebase by @ jgerigmeyer in #372
    • Add more ESLint recommended rules, and enforce them in CI by @ jgerigmeyer in #373
    • Enforce trailing commas unless ] or } is on the same line by @ jgerigmeyer in #440
    • Port parse test to new JS testsuite by @ lloydk in #427
    • Add configurable verbose setting and warn function to allow customizing logging by @ jgerigmeyer in #441
    • Other testing improvements by @ svgeesus

    New Contributors

    A huge thank you to all of our existing and new contributors. Color.js would not be what it is without you!

    Full Changelog: v0.4.5...v0.5.0

  • 0.4.5 - 2023-06-05

    Identical to v0.4.4-patch.1, so that semver can do its thing

from colorjs.io GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade colorjs.io from 0.4.5 to 0.5.2.

See this package in npm:
colorjs.io

See this project in Snyk:
https://app.snyk.io/org/carolinewly/project/42f36696-04a7-463e-af3f-be377afe500d?utm_source=github&utm_medium=referral&page=upgrade-pr
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.

2 participants