[Snyk] Upgrade colorjs.io from 0.4.5 to 0.5.2 #3
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.
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
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
Implements a change suggested by @ kachkaev in #560 (comment) to fix errors on newer TypeScript versions.
Full Changelog: v0.5.0...v0.5.1
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
Color.js currently uses
NaN
values to represent CSSnone
(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 representnone
.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
:🆕 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:
--
-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 #439grad
,rad
andturn
) improving compatibility with CSS, by @ kleinfreund in #324hsl()
,hwb()
andhsv()
by @ jamesnw in #331Gamut mapping improvements
Color space API improvements:
gamutSpace
parameter. Implemented by @ lloydk in #369color()
format. Implemented by @ lloydk in #370colorSpace.equals()
by @ LeaVerou in #413getAll()
by @ LeaVerou in #413Precision/accuracy improvements
Performance improvements
Bug Fixes
toPrecision()
(was off by one for fractional inputs) by @ efergus in #384Color
constructor by @ lloydk in #400serialize
by @ lloydk in #421TypeScript improvements
color.oklch.lightness
) will not produce TS errors any more. Quite a lot of effort by @ jgerigmeyer to make this possible, in #389steps()
andmix()
, by @ MysteryBlokHed in #323toGamut()
also accepts the color space as a string is now part of the TS definition by @ manuelmeister in #318.js
extension to file imports by @ MysteryBlokHed in #333set
by @ MysteryBlokHed in #419/fn
entrypoint by @ jgerigmeyer in #466Website
Apps
Linting & Tests
]
or}
is on the same line by @ jgerigmeyer in #440verbose
setting andwarn
function to allow customizing logging by @ jgerigmeyer in #441New 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
Identical to v0.4.4-patch.1, so that semver can do its thing
Important
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: