unstale

npm / postcss

postcss

What changed in postcss 6 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-27.

12 breaking3 security1 deprecations7 new APIs and options5 performance1 behavior and defaults1 tooling48 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

postcss 862 changes

Breaking changes 6

  • Source maps are no longer loaded unless opts.from is provided, preventing potentially unsafe source-map loading.

    8.5.23release notessecurity advisory

  • Previous source maps are restricted to the opts.from folder for security reasons.

    8.5.18release notessecurity advisory

  • The npm package now ships ES6+ sources without Babel compilation; client-side bundles targeting old browsers may need to run Babel on node_modules/postcss.

    8.0.0release notes

  • Support for Node.js 6.x, 8.x, 11.x, and 13.x was dropped because those versions no longer receive security updates.

    8.0.0release notes

  • Plugins and runners must declare postcss in peerDependencies.

    8.0.0release notes

  • The rarely used postcss.vendor API was removed.

    8.0.0release notes

Security 3

New APIs and options 4

  • Set unsafeMap to true to disable the previous source maps folder restriction.

    8.5.18release notes

  • Added opts.unsafeMap to disable checks.

    8.5.12release notes

  • CSS custom properties and Sass-like $ variables now receive a special variable mark.

    8.0.0release notes

  • A new plugin API lets plugins share a single CSS-tree scan, revisit changed nodes, and reduce duplicate PostCSS dependencies and plugin-order compatibility issues.

    8.0.0release notes

Performance 4

  • Declaration parsing performance was fixed, improving how PostCSS processes declarations.

    8.5.15release notes

  • Improved performance when parsing nested brackets.

    8.5.11release notes

  • Speeds up source map encoding parsing when an error occurs.

    8.5.9release notes

  • Improved performance when cleaning source map annotations.

    8.5.7release notes

Tooling 1

  • PostCSS now has first-class TypeScript support, with separate type files and fixes to type issues.

    8.0.0release notes

Fixes and other changes 44

  • Fixed empty source in CssSyntaxError on long lines.

    8.5.33release notes

  • Fixed the types for Declaration#important.

    8.5.33release notes

  • Fixed line breaks when removing a source map annotation.

    8.5.33release notes

  • Fixed parsing of unquoted url() when /* follows a comma.

    8.5.33release notes

  • Fixed parsing of url (…) when there is a space before the bracket.

    8.5.33release notes

  • Fixed parsing of unquoted uppercase URL().

    8.5.33release notes

  • Fixed final-word lookup when source offsets are absent.

    8.5.32release notes

  • Fixed Promise semantics in LazyResult#finally().

    8.5.32release notes

  • Fixed Input#origin() when opts.from is absent.

    8.5.32release notes

  • Fixed handling of an explicit start in Warning#toString().

    8.5.32release notes

  • Fixes source maps for escaped </style> tags.

    8.5.31release notes

  • Fixes broken source maps caused by escaping </style> in CSS.

    8.5.30release notes

  • Comments are now supported when using list.comma() and list.space().

    8.5.29release notes

  • Improved escaping of closing style tags.

    8.5.29release notes

  • Fixes a types regression.

    8.5.28release notes

  • Fixed removing comments starting with /*#.

    8.5.27release notes

  • Fixed handling of the * hack before a comment in Custom Properties.

    8.5.27release notes

  • Fixed Chinese text displayed in a deprecation warning.

    8.5.27release notes

  • Fixed empty values appearing in the middle of comma-separated lists.

    8.5.27release notes

  • Fixed handling of whitespace-only values in space-separated lists.

    8.5.27release notes

  • Fixed a rule's end position when a space appears before a semicolon.

    8.5.27release notes

  • Fixed type definitions.

    8.5.27release notes

  • Fixed a regression in list.split().

    8.5.26release notes

  • Source map loading now tracks symlinks in path protection.

    8.5.26release notes

  • Fixed list.split for non-string values.

    8.5.25release notes

  • Fixed a regression affecting visitors introduced in 8.5.17.

    8.5.25release notes

  • Preserves the BOM after processing.

    8.5.24release notes

  • Fixed custom properties losing their semicolon before a comment.

    8.5.22release notes

  • Fixed childless at-rules losing their semicolon before a comment during processing.

    8.5.21release notes

  • Fixed a missing space when AtRule#params is set after.

    8.5.20release notes

  • Fixed a mixing AST error that occurred on warnings.

    8.5.20release notes

  • Fixed cleaning before for new nodes inserted to Root.

    8.5.19release notes

  • Fixed Input#origin() behavior for unmapped end positions.

    8.5.17release notes

  • Fixed an error that could exceed the maximum call stack size.

    8.5.17release notes

  • Fixed the position returned by Input#origin.

    8.5.16release notes

  • Fixed putting a parent-less node in nodes of a new node.

    8.5.16release notes

  • Fixed computing offset in positionBy().

    8.5.16release notes

  • Fixed rangeBy() when index is 0.

    8.5.16release notes

  • Fixed raws after rehydrating a JSON AST.

    8.5.16release notes

  • Fixed a regression affecting custom syntax.

    8.5.14release notes

  • Fixed a command regression in postcss-scss.

    8.5.13release notes

  • Fixed Processor#version so it works correctly for developers using the API.

    8.5.8release notes

  • The parser now correctly handles rare valid CSS edge cases; custom-property values such as { border-radius: 8px } parse as a Declaration value.

    8.0.0release notes

  • Node#origin() now returns position.url in addition to position.file for compatibility with absolute URLs in source map sources.

    8.0.0release notes

postcss 74 changes

Breaking changes 1

  • PostCSS no longer supports Node.js 4 or Node.js 9 because they no longer receive security updates.

    7.0.0release notes

Behavior and default changes 1

  • PostCSS now warns when called without plugins and syntax options.

    7.0.0release notes

Fixes and other changes 2

  • Errors during a Container#walk() circle now show the CSS node that caused the error in the stack trace.

    7.0.0release notes

  • LazyResult gained a finally method to make it compatible with the latest Promise API.

    7.0.0release notes

postcss 612 changes

Breaking changes 5

  • All methods deprecated since PostCSS 4.0 were removed.

    6.0.0release notes

  • Insert methods no longer clone nodes that already have a parent; they remove the inserted node from its previous parent.

    6.0.0release notes

  • Returns an exact copy of a node and no longer cleans raws.

    6.0.0release notes

  • PostCSS dropped Node.js 0.12 support; update Node.js to 4.0 or 7.0.

    6.0.0release notes

  • Separates process options from plugin options in the shortcut; pass plugin options as the third argument.

    6.0.0release notes

Deprecations 1

  • Deprecated because regular insert methods now have the same move behavior.

    6.0.0release notes

New APIs and options 3

  • Adds a shortcut similar to the DOM API for inserting a node after another node.

    6.0.0release notes

  • Adds a shortcut similar to the DOM API for inserting a node before another node.

    6.0.0release notes

  • Rule nodes expose their own semicolon through Rule#raws.ownSemicolon.

    6.0.0release notes

Performance 1

  • Parser and tokenizer work together and keep only a few of the latest tokens in memory, reducing memory use on large CSS files.

    6.0.0release notes

Fixes and other changes 2

  • The parser now handles the native CSS mixin @apply case where PostCSS 5.0 could lose the semicolon after a mixin definition.

    6.0.0release notes

  • Fixes the error message produced for a single : in CSS.

    6.0.0release notes