Skip to content

Bump @fullhuman/postcss-purgecss from 8.0.0 to 9.1.0 - #354

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/fullhuman/postcss-purgecss-9.1.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/fullhuman/postcss-purgecss-9.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 13, 2026

Copy link
Copy Markdown
Contributor

Bumps @fullhuman/postcss-purgecss from 8.0.0 to 9.1.0.

Release notes

Sourced from @​fullhuman/postcss-purgecss's releases.

v9.1.0

PurgeCSS and its plugins now work with the bundlers in use today: Vite 8 and Rolldown, Next.js 16 with Turbopack, Rspack 1 and 2, webpack 5 and Parcel. See the package changelogs for the details, e.g. purgecss, @​fullhuman/postcss-purgecss, purgecss-webpack-plugin and rollup-plugin-purgecss.

Highlights

  • Faster content scanning. Content files are read in parallel. With the new ContentCache, which the plugins use, a content file is only read and extracted again when it changed: with the PostCSS plugin, 20 CSS files over 1,081 content files went from 7.6 s to 1.6 s.
  • Faster purging. Unused rules are removed in one pass after the walk, which gives the same output, about a third faster on large stylesheets; rejectedCss on Tailwind CSS 2 went from about 115 s to 0.5 s.
  • Dev servers stay in sync. The PostCSS plugin adds dependency messages for the content files and globs, so Vite, Next.js, webpack and Rspack (postcss-loader) and Parcel purge the CSS again when the content changes, instead of serving stale CSS until a restart. New options dependencies and contentCache.
  • CSS modules. The used classes of CSS modules are kept by the PostCSS plugin when postcss-modules runs first (Vite), and by the webpack plugin with mini-css-extract-plugin, CssExtractRspackPlugin, the native CSS of Rspack (including composes from another file) and webpack's experiments.css.
  • purgecss-webpack-plugin works with Rspack without webpack installed, purges in processAssets, extracts the content once per compilation, watches the content files and fixes its source maps.
  • rollup-plugin-purgecss works with Rolldown and Vite 8, where builds failed, creates the output directory, implements insert and honours contentFunction.

v9.0.0

BREAKING CHANGES

  • Node.js 22.12 or later is required by every package, and the purgecss command line is built on commander 15, which has the same requirement.
  • purgecss-webpack-plugin: webpack is a peer dependency (^5.0.0) instead of a dependency, so it must be installed in your project. The only option is compared with the chunk names, as documented, instead of with the asset paths: list the chunk names (for an entrypoint, its key in entry) rather than file names or folders.
  • gulp-purgecss: through2 v5 is an ES module, so the CommonJS build needs a Node.js version that supports require() of ES modules (included in the requirement above). A file that fails to purge now ends the stream with a plugin error instead of leaving the stream waiting.
  • rollup-plugin-purgecss: rollup is a peer dependency, and only the lib folder is published.
  • @​fullhuman/postcss-purgecss and purgecss-webpack-plugin: a purgecss.config.js that exists but fails to load now fails the build instead of being silently ignored, and in the PostCSS plugin the safelist of the config file and of the plugin options are combined instead of the plugin option replacing it.

Highlights

  • Regular expressions can be written as strings between slashes, such as "/^btn-/", in safelist, blocklist and dynamicAttributes, so JSON configurations like postcss.config.json can use patterns. safelist.deep and safelist.greedy accept strings as well.
  • dynamicAttributes accepts regular expressions.
  • Root-level selectors made only of pseudo-classes, such as :where(.used):hover or :host, are kept when what they depend on is used.
  • The variables option scales linearly with the number of custom properties, keeps variables used across CSS files or only inside @keyframes, and removes the @property rules of unused variables.
  • Keyframes, font faces and variables defined in one CSS file and used in another are kept regardless of the order of the css option.
  • The CLI reports errors with their message and exits with code 1.
  • The JSX and TSX extractors find class names in template literals, conditional expressions, nested JSX and clsx-style object keys.
  • Fixes for rejected and rejectedCss (ancestors of nested rules, per-file results, trimmed selectors), source maps in gulp-purgecss, config loading on Windows, options forwarding in the rollup and webpack plugins, and the Vue CLI plugin's installed version.

Upgrading

  • Use Node.js 22.12 or later.
  • purgecss-webpack-plugin: run npm i -D webpack if webpack is not already a direct dependency, and make sure only lists chunk names.
  • rollup-plugin-purgecss: rollup must be installed in your project.
  • Check that purgecss.config.js loads without error: a broken config file now fails the build instead of being ignored.

Full details per package: purgecss, @​fullhuman/postcss-purgecss, purgecss-webpack-plugin, gulp-purgecss, grunt-purgecss, rollup-plugin-purgecss, @​fullhuman/purgecss-from-jsx, @​fullhuman/purgecss-from-tsx, purgecss-from-html, purgecss-from-pug, @​fullhuman/vue-cli-plugin-purgecss, purgecss-with-wordpress.

Changelog

Sourced from @​fullhuman/postcss-purgecss's changelog.

9.1.0

PurgeCSS and its plugins now work with the bundlers in use today: Vite 8 and Rolldown, Next.js 16 with Turbopack, Rspack 1 and 2, webpack 5 and Parcel. See the package changelogs for the details, e.g. purgecss, @​fullhuman/postcss-purgecss, purgecss-webpack-plugin and rollup-plugin-purgecss.

Highlights

  • Faster content scanning. Content files are read in parallel. With the new ContentCache, which the plugins use, a content file is only read and extracted again when it changed: with the PostCSS plugin, 20 CSS files over 1,081 content files went from 7.6 s to 1.6 s.
  • Faster purging. Unused rules are removed in one pass after the walk, which gives the same output, about a third faster on large stylesheets; rejectedCss on Tailwind CSS 2 went from about 115 s to 0.5 s.
  • Dev servers stay in sync. The PostCSS plugin adds dependency messages for the content files and globs, so Vite, Next.js, webpack and Rspack (postcss-loader) and Parcel purge the CSS again when the content changes, instead of serving stale CSS until a restart. New options dependencies and contentCache.
  • CSS modules. The used classes of CSS modules are kept by the PostCSS plugin when postcss-modules runs first (Vite), and by the webpack plugin with mini-css-extract-plugin, CssExtractRspackPlugin, the native CSS of Rspack (including composes from another file) and webpack's experiments.css.
  • purgecss-webpack-plugin works with Rspack without webpack installed, purges in processAssets, extracts the content once per compilation, watches the content files and fixes its source maps.
  • rollup-plugin-purgecss works with Rolldown and Vite 8, where builds failed, creates the output directory, implements insert and honours contentFunction.

9.0.0

From this release, each package has its own changelog, generated from the changesets: see packages/<name>/CHANGELOG.md, for example purgecss, @​fullhuman/postcss-purgecss and purgecss-webpack-plugin. All packages are released together with the same version.

BREAKING CHANGES

  • Node.js 22.12 or later is required by every package, and the purgecss command line is built on commander 15, which has the same requirement.
  • purgecss-webpack-plugin: webpack is a peer dependency (^5.0.0) instead of a dependency, so it must be installed in your project. The only option is compared with the chunk names, as documented, instead of with the asset paths: list the chunk names (for an entrypoint, its key in entry) rather than file names or folders.
  • gulp-purgecss: through2 v5 is an ES module, so the CommonJS build needs a Node.js version that supports require() of ES modules (included in the requirement above). A file that fails to purge now ends the stream with a plugin error instead of leaving the stream waiting.
  • rollup-plugin-purgecss: rollup is a peer dependency, and only the lib folder is published.
  • @​fullhuman/postcss-purgecss and purgecss-webpack-plugin: a purgecss.config.js that exists but fails to load now fails the build instead of being silently ignored, and in the PostCSS plugin the safelist of the config file and of the plugin options are combined instead of the plugin option replacing it.

Highlights

  • Regular expressions can be written as strings between slashes, such as "/^btn-/", in safelist, blocklist and dynamicAttributes, so JSON configurations like postcss.config.json can use patterns. safelist.deep and safelist.greedy accept strings as well.
  • dynamicAttributes accepts regular expressions.
  • Root-level selectors made only of pseudo-classes, such as :where(.used):hover or :host, are kept when what they depend on is used.
  • The variables option scales linearly with the number of custom properties, keeps variables used across CSS files or only inside @keyframes, and removes the @property rules of unused variables.
  • Keyframes, font faces and variables defined in one CSS file and used in another are kept regardless of the order of the css option.
  • The CLI reports errors with their message and exits with code 1.
  • The JSX and TSX extractors find class names in template literals, conditional expressions, nested JSX and clsx-style object keys.
  • Fixes for rejected and rejectedCss (ancestors of nested rules, per-file results, trimmed selectors), source maps in gulp-purgecss, config loading on Windows, options forwarding in the rollup and webpack plugins, and the Vue CLI plugin's installed version.
Commits
  • 38f7d07 chore: release 9.1.0 (#1589)
  • e0f3dd4 feat: make the JS plugins work with 2026 bundlers (#1588)
  • c122e13 docs: document the sourceMap option and the sourceMap result (#1586)
  • 6ae41d9 docs: document how the PostCSS and webpack plugins load purgecss.config.js (#...
  • 834d7ff docs: restyle the site in Lab Report, remove the ad, fix SEO and broken links...
  • fa7f918 chore: release 9.0.0 (#1583)
  • b359897 test(purgecss): write CLI config test files to a temp dir (#1576)
  • a6ab570 docs: declare www.purgecss.com as the site's canonical host (#1582)
  • fa1bf15 docs: deploy the documentation site with Vercel (#1581)
  • ae638aa test(postcss-purgecss): cover the variables option and safelist.variables (#1...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@fullhuman/postcss-purgecss](https://github.com/FullHuman/purgecss) from 8.0.0 to 9.1.0.
- [Release notes](https://github.com/FullHuman/purgecss/releases)
- [Changelog](https://github.com/FullHuman/purgecss/blob/main/CHANGELOG.md)
- [Commits](FullHuman/purgecss@v8.0.0...v9.1.0)

---
updated-dependencies:
- dependency-name: "@fullhuman/postcss-purgecss"
  dependency-version: 9.1.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants