Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Update dependency polished to v3 #40

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 30, 2019

This PR contains the following updates:

Package Type Update Change
polished (source) dependencies major 2.3.3 -> 3.4.4

Release Notes

styled-components/polished

v3.4.4

Compare Source

Bug Fixes
  • position: fix typing for position to address typescript incompatability (63ab9a6), closes #​475

v3.4.3

Compare Source

Bug Fixes
Enhancements
  • Adds more tagging for easier discoverability - Thanks @​nurbek-ab

v3.4.2

Compare Source

  • hsl(a) - Fixed a bug preventing the use of decimal values.

v3.4.1

Compare Source

  • between (and therefore fluidRange) now supports unitless values for fromSize and toSize.

v3.4.0

Compare Source

  • Adds a color module (getContrast) for getting the contrast score between two colors.
  • Adds a color module (meetsContrastGuidelines) for checking which contrast guidelines have been met between two colors.

Thanks @​souporserious!

v3.3.2

Compare Source

  • (Color Modules) - Fixes a bug that would cause hue to be negative in some cases instead of rotating around the color wheel to a positive value. Thanks @​DavidDeprost

v3.3.1

Compare Source

Bug Fixes
  • hslToRgb: correct % for potential negative hue (5c306c8), closes #​437

v3.3.0

Compare Source

  • modularScale now supports all base values regardless of unit, including unitless values. (fixes #​429)
  • parseToRGB is now case-insensitive (thanks @​Andarist)
  • refactored export statements across the library resulting in a small decrease in bundle size.

v3.2.1

Compare Source

Bug Fixes
  • modularScale: Remove rem/em restriction (70f373e)

v3.2.0

Compare Source

  • triangle now supports intermediate directions (i.e. 'topLeft'). In most cases, it will now also
    return 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.
  • fixed a bug withtriangle where passing a unitless number to triangle defaulted to a pixel value. It will instead return the unitless value.

v3.1.0

Compare Source

  • fontFace now can provide optional format hints for each file src using the formatHint configuration option. (#​416)
  • fontFace now supports a base64 encoded dataURI as the value for fontFilePath. Currently, only supports a single base64 value. Can also optionally use formatHint if fileFormats is passed. (#​416)

v3.0.4

Compare Source

  • Fixes a bug with production error logging that was pointing to non-existent documentation.

v3.0.3

Compare Source

  • adds sideEffects: false to the package.json
  • reorganizes package.json
  • moves babel-plugin-preval to devDependencies
  • Updates README.MD with note about moduleResolution: node

v3.0.2

Compare Source

  • Replaced negative lookbehind when matching seconds. This wasn't supported in all browsers.

v3.0.1

Compare Source

  • Fixes an issue where math would not work in IE11 (due to lack of support for Object.values). Thanks @​goldsziggy!
  • Adds support for s, ms, deg, gd, rad, grad, & turn in math functions.

v3.0.0

Compare 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 polished
yarn add polished

Release Highlights

New Modules
  • New Module: linearGradient: We've introduced a new module to handle generating linear gradients. linearGradient accepts an array of color stops, and optional directions and fallback to generate a linear gradient with a single color background fallback.
  • New Module: math: We've introduced a new module to handle doing calculations on CSS values. math accepts 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.
  • New Module: hslToColorString: Converts a HslColor or HslaColor object to a color string. (Thanks @​sandiiarov)
  • New Module: rgbToColorString: Converts a RgbColor or RgbaColor object to a color string. (Thanks @​sandiiarov)
Improvements
  • New Error System: We now have the base for our long promised error system (Thanks @​Andarist). All current errors will now show up in development, but will be stripped out and linked to our error.md in production. This reduces the overall bundle size and will set us up for our much more thorough error system coming in v4.
  • Color Module Improvement: All color modules now safely handle the transparent keyword instead of erroring out. How each module handles this is slightly different, but you wll always get a valid color or transparent back when passing transparent to a color module.
  • Color Module Improvement: Color modules that were using toColorString now properly use hslToColorString and rgbToColorString where appropriate. This speeds up color modules that were previously leveraging toColorString to convert colors between formats. (Thanks @​sandiiarov)
  • modularScale Improvement: modularScale now also accepts rem values for its base, where previously it only worked with em.
  • readableColor Improvement: readableColor now 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 returning white or black based on the passed colors luminosity.
  • stripUnit Improvement: stripUnit now offers the option to return the value and unit as an array, replacing the functionality of getValueAndUnit. Without this option, it will continue to return just the stripped value.
Future Breaking Changes
  • Marked For Deprecation: getValueAndUnit: getValueAndUnit has been marked for deprecation and will be removed in v4. This in someways duplicated functionality available in stripUnit. Instead of having two similar modules,stripUnit has been improved to optionally return the stripped unit as part of an array.
Breaking Changes
  • Deprecation: selection: As indicated in the v2 release notes, selection has been deprecated. All css-in-js libraries handle this selector without additional prefixing from polished.
  • Deprecation: placeholder: As indicated in the v2 release notes, placeholder has 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:

  • Improved errors - We will be doing a complete re-write of our errors to drastically improve the developer experience.
  • New Docs - polished.js has grown into a pretty robust library with a wide array of uses cases. There are a lot of things it can do that people are not aware of. Our aim with the new docs site is to provide a lot more insight on how to leverage polished.js regardless of your CSS-In-JS lirbary.
  • Truly Support 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.
  • Scoped Packages - Starting in v4, we are going to start offering sub-sections of polished.js as scoped packages. Plenty of users only use certain portions, and we want to provide them a smaller way to get the portions they use.
  • Performance Audit - One thing we need to spend more time on is the performance of polished.js. We plan on performance testing each module in isolation and identifying areas for improvement in v4.
  • Size Audit- Bundle size has always been tricky with polished.js. Due to the nature of the library, we have really focused on the total size, and instead of supported tree-shaking and individual imports to keep bundle-size impact down. That being said, we will be doing an module-by-module audit to see where we can bring file size down.
  • Deprecate getValueAndUnit - v4 will see this module fully deprecated.

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 if you tick the rebase/retry checkbox below.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/polished-3.x branch 2 times, most recently from 50ccb7a to b789023 Compare May 5, 2019 17:06
@renovate renovate bot force-pushed the renovate/polished-3.x branch 3 times, most recently from 66440ec to b486e34 Compare May 25, 2019 19:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant