[Snyk] Upgrade polished from 3.3.0 to 3.5.1 #2318
Closed
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 polished from 3.3.0 to 3.5.1.
ℹ️ 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.Release notes
Package name: polished
Bug Fixes
between
,modularScale
,triangle
: fixed issue where these modules were calling deprecated functionality instripUnit
and creating unnecessary console noise (and subsequent performance problems).Introducing polished.js v3.5.0!
We're super stoked to announce that polished.js v3.5.0 is officially out! It is available via your package manager of choice. This will be the final non-patch release before v4.
npm install polished
yarn add polished
Release Highlights
New Modules
cssVar
: We've introduced a new module to handle fetching CSS Variable values. We chose to make this a standalone module as opposed to integrating it into all modules to keep module size down.Improvements
readableColor
: You can now turn on strict mode for custom provided return colors. This will ensure that they still meet AA contrasting standards. Otherwise, they will returnblack
orwhite
as normal. This mode is off by default in v3.5. (Thanks @mrmckeb).Bug Fixes
mix
,tint
,shade
: Fixed a bug wheremix
was improperly weighting alpha channels to the second provided color instead of the first. This fix also impactstint
andshade
which implementmix
.Contributors
Future Deprecations
stripUnit
: The optional unit return will be deprecated in v4. Previously, this was implemented to replacegetValueAndUnit
. However, we've decided to keep the extra module and simplifystripUnit
readableColor
: strict mode will be enabled by default in v4, it is currently disabled by default.3.4.4 (2020-01-28)
Bug Fixes
3.4.3 (2020-01-26)
Bug Fixes
clip-path
fromhideVisually
(43c69c6) - Thanks @ughitsaaronEnhancements
hsl(a)
- Fixed a bug preventing the use of decimal values.between
(and thereforefluidRange
) now supports unitless values for fromSize and toSize.getContrast
) for getting the contrast score between two colors.meetsContrastGuidelines
) for checking which contrast guidelines have been met between two colors.Thanks @souporserious!
3.3.1 (2019-05-18)
Bug Fixes
modularScale
now supports all base values regardless of unit, including unitless values. (fixes #429)parseToRGB
is now case-insensitive (thanks @Andarist)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:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs