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.
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 color-js/color.js#407 and color-js/color.js#439
This version was pushed to npm by jgerigmeyer, a new releaser for colorjs.io since your current version.
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show 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)
Bumps colorjs.io from 0.4.5 to 0.5.0.
Release notes
Sourced from colorjs.io's releases.
... (truncated)
Commits
58524b8
Release 0.5.0e5e1280
Export types at top level of /fn entrypoint (#466)f86150b
update babel depsc258d1d
Audit function parameter and return types (3/2) (#461)ae9ea42
Allow hwb to accept numbers (#464)a1a11cb
[elements/color-swatch] Fix case where value attribute is set before inite48d472
[Gamut Mapping App] Hide deltas if mapped color is unchanged. (#459)d082f35
Refactor out a clip and an LH correction and still retain ∆h ~4.4c167531
Audit function parameter and return types (2/2) (#457)0d6b31b
Always show delta display to help confirm it is in gamut (#458)Maintainer changes
This version was pushed to npm by jgerigmeyer, a new releaser for colorjs.io since your current version.
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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show