Skip to content

chore(deps): update dependency purgecss to v8#59

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/purgecss-8.x
Open

chore(deps): update dependency purgecss to v8#59
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/purgecss-8.x

Conversation

@renovate

@renovate renovate Bot commented Jan 24, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
purgecss (source) 1.3.0 β†’ 8.0.0 age confidence

Release Notes

FullHuman/purgecss (purgecss)

v8.0.0

Compare Source

BREAKING CHANGES
  • Revert the changes from v7.0.2 that modified the import of the PostCSS plugin. This was causing issues (see #​1295. The PostCSS plugin should now be imported via a default import:
import purgeCSSPlugin from '@​fullhuman/postcss-purgecss';
Features
  • feat: add --preserve-paths option to CLI for maintaining folder hierarchy (aa5ac9d), closes #​377
Bug fixes
Changes (commits since v7.0.2)

v7.0.2

Compare Source

Bug Fixes
Features
  • feat(purgecss-from-pug): returns ExtractorResultDetailed instead of selectors (fb51dc6)
BREAKING CHANGES
  • PostCSS plugin should now be imported via purgeCSSPlugin
import { purgeCSSPlugin } from '@​fullhuman/postcss-purgecss';
  • drop support for node 18.
Other
  • build(deps-dev): update dependencies
  • build(deps): update dependencies

Full Changelog: FullHuman/purgecss@v6.0.0...v7.0.2

v6.0.0

Compare Source

Bug Fixes
Features

v5.0.0

Compare Source

Bug Fixes
Features
BREAKING CHANGES
  • purgecss-webpack-plugin: drop webpack 4 support

v4.1.3

Compare Source

v4.1.2

Compare Source

v4.1.1

Compare Source

v4.1.0

Compare Source

Bug Fixes
Features

v4.0.3

Compare Source

Features
  • add dynamic attributes option (9b0fdc3), closes #​588
  • add skippedContentGlobs option to webpack and gulp plugin (e3dce1a)

v4.0.2

Compare Source

v4.0.1

Compare Source

Bug Fixes
  • attribute selector with spaces being removed (418dc7e), closes #​392
  • webpack plugin option blocklist types (5b029c2)
Features

v4.0.0

Compare Source

Bug Fixes
  • test: webpack test type error (c41ad27)
Features
BREAKING CHANGES

v3.1.3

Compare Source

Changes
  • postcss-purgecss remove postcss 8 as peer dependency
  • purgecss-webpack-plugin fix backward compatibility with webpack 4
  • PurgeCSS Update to PostCSS 8
  • postcss-purgecss Add compatibility with PostCSS 8
  • purgecss-webpack-plugin Fix deprecation warning with Webpack 5
Bug Fixes

v3.1.0

Compare Source

v3.0.0

Compare Source

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:

safelist: ['invisibleClass', /^nav-/]

In this form, safelist is an array that can take a string or a regex.

The complex form is:

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
keyframes can be used to add keyframes to the safelist, when using keyframes: true (#​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:

v2.3.0

v2.2.0

Compare Source

v2.1.2

Compare Source

v2.1.0

Compare Source

v2.0.6

Compare Source

v2.0.5: v2.0

Compare Source

Changes:

  • Asynchronous
import PurgeCSS from "purgecss";

const purgecssResults = await new PurgeCSS().purge({
    // options
});
  • Extractor is a function
content => content.match(/[\w-/:]+(?<!:)/g) || []
  • variables option to remove unused CSS variables
  • Drop support of NodeJS < 8

v2.0.3

Compare Source

v2.0.2

Compare Source

v1.4.2

Compare Source

v1.4.1

Compare Source

  • Merge pull request #​210, ability to exclude current rule with a ignore comment placed inside of it
  • Merge pull request #​229, Fix the config file path of windows
  • update dependencies

v1.4.0

Compare Source

Features
  • postcss-purgecss: add package (2b0616f)

Configuration

πŸ“… Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • 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 this update again.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/purgecss-8.x branch from 84546aa to 91dc320 Compare March 5, 2026 17:48
@renovate renovate Bot force-pushed the renovate/purgecss-8.x branch from 91dc320 to 3ea7c6f Compare April 1, 2026 20:03
@renovate renovate Bot force-pushed the renovate/purgecss-8.x branch from 3ea7c6f to fe3c235 Compare April 8, 2026 21:10
@renovate renovate Bot force-pushed the renovate/purgecss-8.x branch from fe3c235 to d36200d Compare April 29, 2026 15:55
@renovate renovate Bot force-pushed the renovate/purgecss-8.x branch from d36200d to 3924ad6 Compare May 12, 2026 10:52
@renovate renovate Bot force-pushed the renovate/purgecss-8.x branch from 3924ad6 to 6007783 Compare May 28, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants