chore(deps): update dependency polished to v3#114
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
7225d1e to
75ded6e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
^1.9.3->^1.9.3 || ^3.0.0^1.9.3->^3.0.0Release Notes
styled-components/polished
v3.6.5Compare Source
Bug Fix
cssVar: Properly handles the exception where the document object is not available in non-browser environments (#518). This simply throws a proper error. It does not enablecssVarto work server-side.v3.6.4Compare Source
Bug Fix
rgbToString: Fixes an issue where passing a rgba color with 0 alpha was incorrectly returning a hex value (#515)v3.6.3Compare Source
Bug Fix
normalize: Updates to normalize.css 8.0.1 to fix a regression to fix a regression withmainnot being set todisplay: block.v3.6.2Compare Source
Bug Fix
esmodules: truefrom theesmbuild to fix an issue with ES5 support.v3.6.1Compare Source
Bug Fix
jsnext:mainbundle reference that was not pointing to an ES5 compatible build.v3.6.0Compare Source
Build Enhancements
commonjsbundle and make it the newmainbundle.bugfixes: true.uglifywithterseron minified standalone build.v3.5.2Compare Source
Bug Fixes
cssVar: fixed issue where CSS variables set my stylesheets were returning with a leading space and breaking other polished modules when passed the return value. (#493)v3.5.1Compare Source
Bug Fixes
between,modularScale,triangle: fixed issue where these modules were calling deprecated functionality instripUnitand creating unnecessary console noise (and subsequent performance problems).v3.5.0Compare Source
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 polishedyarn add polishedRelease 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 returnblackorwhiteas normal. This mode is off by default in v3.5. (Thanks @mrmckeb).Bug Fixes
mix,tint,shade: Fixed a bug wheremixwas improperly weighting alpha channels to the second provided color instead of the first. This fix also impactstintandshadewhich 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 simplifystripUnitreadableColor: strict mode will be enabled by default in v4, it is currently disabled by default.v3.4.4Compare Source
Bug Fixes
v3.4.3Compare Source
Bug Fixes
clip-pathfromhideVisually(43c69c6) - Thanks @ughitsaaronEnhancements
v3.4.2Compare Source
hsl(a)- Fixed a bug preventing the use of decimal values.v3.4.1Compare Source
between(and thereforefluidRange) now supports unitless values for fromSize and toSize.v3.4.0Compare Source
getContrast) for getting the contrast score between two colors.meetsContrastGuidelines) for checking which contrast guidelines have been met between two colors.Thanks @souporserious!
v3.3.2Compare Source
v3.3.1Compare Source
Bug Fixes
v3.3.0Compare Source
modularScalenow supports all base values regardless of unit, including unitless values. (fixes #429)parseToRGBis now case-insensitive (thanks @Andarist)v3.2.1Compare Source
Bug Fixes
v3.2.0Compare Source
trianglenow supports intermediate directions (i.e. 'topLeft'). In most cases, it will now alsoreturn a smaller object than prior by combining colors into a single 'borderColor' line. (#399)
triangle no longer relies onborderColorordirectionalProperty`, and therefore has a smaller bundle size.trianglewhere passing a unitless number to triangle defaulted to a pixel value. It will instead return the unitless value.v3.1.0Compare Source
fontFacenow can provide optional format hints for each file src using theformatHintconfiguration option. (#416)fontFacenow supports a base64 encoded dataURI as the value forfontFilePath. Currently, only supports a single base64 value. Can also optionally useformatHintiffileFormatsis passed. (#416)v3.0.4Compare Source
v3.0.3Compare Source
sideEffects: falseto the package.jsondevDependenciesREADME.MDwith note aboutmoduleResolution: nodev3.0.2Compare Source
v3.0.1Compare Source
mathwould not work in IE11 (due to lack of support forObject.values). Thanks @goldsziggy!s,ms,deg,gd,rad,grad, &turninmathfunctions.v3.0.0Compare Source
Introducing polished.js v3!
We're super stoked to announce that polished.js v3 is officially out! It is available via your package manager of choice:
npm install polishedyarn add polishedRelease Highlights
New Modules
linearGradient: We've introduced a new module to handle generating linear gradients.linearGradientaccepts an array of color stops, and optional directions and fallback to generate a linear gradient with a single color background fallback.math: We've introduced a new module to handle doing calculations on CSS values.mathaccepts a formula as a string and currently supports addition, subtraction, multiplication, division, square root, powers, factorial, min, max, and modification of order of operations parentheses. This can also be extended to incorporate other mathematical functions.hslToColorString: Converts a HslColor or HslaColor object to a color string. (Thanks @sandiiarov)rgbToColorString: Converts a RgbColor or RgbaColor object to a color string. (Thanks @sandiiarov)Improvements
error.mdin production. This reduces the overall bundle size and will set us up for our much more thorough error system coming in v4.transparentkeyword instead of erroring out. How each module handles this is slightly different, but you wll always get a valid color ortransparentback when passingtransparentto a color module.toColorStringnow properly usehslToColorStringandrgbToColorStringwhere appropriate. This speeds up color modules that were previously leveragingtoColorStringto convert colors between formats. (Thanks @sandiiarov)modularScaleImprovement:modularScalenow also acceptsremvalues for its base, where previously it only worked withem.readableColorImprovement:readableColornow offers the option to set the color(s) it returns for light or dark colors. Otherwise, it will work the way it always has, either returningwhiteorblackbased on the passed colors luminosity.stripUnitImprovement:stripUnitnow offers the option to return the value and unit as an array, replacing the functionality ofgetValueAndUnit. Without this option, it will continue to return just the stripped value.Future Breaking Changes
getValueAndUnit:getValueAndUnithas been marked for deprecation and will be removed in v4. This in someways duplicated functionality available instripUnit. Instead of having two similar modules,stripUnithas been improved to optionally return the stripped unit as part of an array.Breaking Changes
selection: As indicated in the v2 release notes,selectionhas been deprecated. All css-in-js libraries handle this selector without additional prefixing from polished.placeholder: As indicated in the v2 release notes,placeholderhas been deprecated. All css-in-js libraries handle this selector without additional prefixing from polished.Coming In v4
As usual, we will be taking a bit of a break from major work for a couple months, but we are already planning out v4. This release will largely focus on library-wide impact, and likely won't include any new functionality. Here is the current state of the roadmap:
babel-plugin-polished- This plugin has been around since the early days of polished.js, but we've never taken official ownership of it. We will be pulling it forward in v4, updating it, and incorporating it into our testing and docs.getValueAndUnit- v4 will see this module fully deprecated.v2.3.3Compare Source
Bug Fixes
v2.3.2Compare Source
Bug Fixes
v2.3.1Compare Source
Bug Fixes
v2.3.0Compare Source
Features
v2.2.0Compare Source
Features
v2.1.1Compare Source
Feature
Build
v2.0.3Compare Source
Bug Fixes
v2.0.2Compare Source
Bug Fixes
v2.0.1Compare Source
Bug Fixes
v2.0.0Compare Source
This is a major release that introduces new modules, improvements to existing modules, bug fixes, improved TypeScript and Flow Support, and some deprecations.
Breaking Changes
We introduced one necessary breaking change in this release. In the future, we will warn a full major version ahead of time, but this one necessitated an immediate fix. (Un)luckily, it was never working properly in the first place.
mixcolor module now requires a ratio in order to work. It originally tried to default to.5but this broke in most cases.Deprecations
These items have been marked for deprecation in v3 of
polished.placeholdermixin is no longer required to address gaps in vendor prefixing in major CSS-in-JS libraries.selectionmixin is no longer required to address gaps in vendor prefixing in major CSS-in-JS libraries.These items have been deprecated immediately as the change doesn't introduce any breaking changes. However, you will want to update your code accordingly.
normalizeno longer acceptsexcludeOpinionatedas a parameter, as opinionated rules have been removed in the latest versions of normalize.css.New Modules
This release addresses our most popular feature requests as voted on by users. If something you were hoping for didn't make it, you can make your voice heard by 👍a module request in our issues.
Mixins
betweenmixin added to return a CSS calc formula for linear interpolation of a property between two values.covermixin added to return CSS to fully cover an area similar tobackground-image: cover.fluidRangemixin added to returns a set of media queries that resizes a property (or set of properties) between a provided fromSize and toSize linearly.Shorthands
bordershorthand added to return shorthand for the border property that splits out individual properties for use with tools like Fela and Styletron.Helpers
getValueAndUnithelper added returns a given CSS value and its unit as elements of an array.New Features
We have made a variety of improvements to existing modules as well.
Mixins
fontFacenow supportsfont-display,font-variation-settings, andfont-feature-settings.trianglenow supports any unit of measure instead of justpx. (Thanks @lifeiscontent)normalizehas been upgraded to use normalize.css 8.0.Color Modules
All color modules now support hex color values with alpha values (commonly referred to as 8-Digit hex colors).
All color modules now support string values for all parameters.
mixfixed an issue where mix would not curry properly.Shorthands
transitionsnow supports applying the same transition to multiple properties in one call.Bug Fixes
Mixins
ellipsis- fixed a bug to avoid potential white-space issues withdisplay: inline-block.normalize- fixed an issue where vendor prefixed values were not properly camel-cased.retinaImage- fixed a bug that was causing background-image to be set toundefined(instead of not set at all) when a background image is not passed.Flow
mixnow properly passes flow tests in all cases, including when curried.Stylestype for better compatibility with CSS-In-JS libraries and their Flow type definitions. (Thanks @vhfmag)TypeScript (Thanks @ForbesLindesay)
Stylestype for better compatibility with CSS-In-JS libraries and their TypeScript definitions. (Thanks @vhfmag)Documentation
documentation.jsand generation should no longer randomly break for contributors.triangledocumentation now properly displays.toColorStringdocumentation now properly displays.Renovate configuration
📅 Schedule: 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 these updates again.
This PR has been generated by WhiteSource Renovate. View repository job log here.