Closed renovate[bot] closed 4 years ago
Merging #86 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #86 +/- ##
=======================================
Coverage 40.78% 40.78%
=======================================
Files 5 5
Lines 76 76
Branches 3 3
=======================================
Hits 31 31
Misses 45 45
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 27c3fe0...903e5c6. Read the comment docs.
As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 3.x releases. However, if you upgrade to 3.x manually then Renovate will then reenable updates for minor and patch updates automatically.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.
This PR contains the following updates:
^2.2.1
->^3.0.0
Release Notes
FullHuman/purgecss
### [`v3.0.0`](https://togithub.com/FullHuman/purgecss/releases/v3.0.0) [Compare Source](https://togithub.com/FullHuman/purgecss/compare/v2.3.0...v3.0.0) #### 3.0.0 ##### Simplifying whitelist option Whitelist started as a simple option named `whitelist` but grew up with the different use-cases and needs that appear with time. Another option called `whitelistPatterns` appeared, then `whitelistPatternsChildren`, … It is now more complex and complicated, and somewhat difficult to remember how to use it with different options. To summarize the changes, the whitelist options are now grouped in one option called safelist. And the most used options can be defined in one array. Two forms are available. The simple form is: ```ts safelist: ['invisibleClass', /^nav-/] ``` In this form, safelist is an array that can take a string or a regex. The complex form is: ```ts safelist: { standard: ['invisibleClass', /^nav-/], deep: [], greedy: [], keyframes: [], variables: [] } ``` In this form, safelist is an object taking optional properties: standard is the same as the simple form and replaces `whitelist` and whitelistPatterns deep replaces whitelistPatternsChildren greedy is a new option coming from [#424](https://togithub.com/FullHuman/purgecss/pull/424) keyframes can be used to add keyframes to the safelist, when using keyframes: true ([#418](https://togithub.com/FullHuman/purgecss/issues/418)) variables can be used to add CSS variables to the safelist, when using variables: true ##### New Option: Blocklist Blocklist will block the CSS selectors from appearing in the final output CSS. The selectors will be removed even when they are seen as used by PurgeCSS. blocklist: ['usedClass', /^nav-/] Even if `nav-links` and `usedClass` are found in your content files (HTML, Javascript), they will be removed. ##### CLI PurgeCSS is using commander.js for its CLI. The recent version of commander.js introduced the possibility of making an option variadic. This means when specifying multiple option arguments, the parsed option value will be an array. A few options are now taking advantage of this new feature: content, css, and the newly introduced option safelist and blocklist. It is no longer necessary to separate the list items with a comma. ##### From changelog: - **CLI:** add blocklist option ([3961afb](https://togithub.com/FullHuman/purgecss/commit/3961afbc6d90eae83fe4862a4498857fa7ba3ff6)) - add blocklist option ([04223f7](https://togithub.com/FullHuman/purgecss/commit/04223f7fe27f8d818961a53900a7c5293d2322b6)) - add safelist option, replace whitelist - add safelist keyframes and css variables ([dc59d30](https://togithub.com/FullHuman/purgecss/commit/dc59d309a4a4be9845c40966a19f9705c42a33a1)), closes [#418](https://togithub.com/FullHuman/purgecss/issues/418) [#439](https://togithub.com/FullHuman/purgecss/issues/439)Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.