Upgrading purgecss from 8.x to 9.x
Comparison of the public API of purgecss 8.0.0 and 9.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.
Summary
| Removed import paths | 0 |
|---|---|
| Removed exports | 0 |
| Changed signatures | 1 |
| Removed class or interface members | 0 |
| Changed class or interface members | 2 |
| Newly deprecated | 2 |
| Requirement changes (engines, peer dependencies) | 1 |
| New exports | 0 |
Removed exports
None detected.
Changed signatures
| export | Before | After |
|---|---|---|
purgecss · ComplexSafelist | { standard?: StringRegExpArray | undefined; deep?: RegExp[] | undefined; greedy?: RegExp[] | undefined; variables?: StringRegExpArray | undefined; keyframes?: StringRegExpArray | undefined; } | { standard?: StringRegExpArray | undefined; deep?: StringRegExpArray | undefined; greedy?: StringRegExpArray | undefined; variables?: StringRegExpArray | undefined; keyframes?: StringRegExpArray | undefined; } |
Removed class or interface members
None detected.
Changed class or interface members
| member | Before | After |
|---|---|---|
Options.dynamicAttributes | string[] | StringRegExpArray |
UserDefinedOptions.dynamicAttributes | string[] | undefined | StringRegExpArray | undefined |
Newly deprecated
| export | @deprecated |
|---|---|
purgecss · VariableNode.nodes | The dependencies between declarations are no longer recorded, so this list is always empty. The variables used by a used variable are found by name in `VariablesStructure.removeUnused`. It will be removed in the next major version. |
purgecss · VariablesStructure.addVariableUsage | The variables used by a custom property are found by name in `removeUnused`, so the dependencies between declarations are no longer recorded and this method does nothing. It will be removed in the next major version. |
Requirement changes (engines, peer dependencies)
| Before | After | |
|---|---|---|
engines.node | — | >=22.12.0 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What are the breaking changes when upgrading purgecss from 8 to 9?
Between purgecss 8.0.0 and 9.0.0, Vigia found 0 removed exports, 1 changed signatures and 2 removed or changed class or interface members.
What became deprecated in purgecss 9?
2 exports or members are newly marked as deprecated in purgecss 9.0.0.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/purgecss/upgrade?from=8.0.0&to=9.0.0