postcss
8.5.33 · 13 Nov 2026MIT443.1M / weekRepositoryHomepagenpmAtom feed
Upgrading postcss From 7.0.39 to 8.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 13
- new
- 1
- fix
Start here
Before you upgrade
Tick each one off as you go- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
Security
7 advisories still affect 8.0.0
- PostCSS: incomplete fix of GHSA-6g55-p6wh-862q — attacker-controlled sourceMappingURL reads arbitrary .map files when `from` is unsetmoderate · GHSA-fxqj-rqcc-2cmp
- Regular Expression Denial of Service in postcssmoderate · GHSA-hwj9-h5mp-3pm3
- PostCSS has XSS via Unescaped </style> in its CSS Stringify Outputmoderate · GHSA-qx2v-qp2m-jg93
Upgrading to 8.5.23 clears them.
Release by release
- Breaking
PostCSS 8 dropped Node.js 6.x, 8.x, 11.x, and 13.x versions support. All these versions have no security updates anymore.
- Breaking
We now serve ES6+ sources in the npm package without Babel compilation. If you are creating tools like CodePen and put PostCSS into the client-side JS bundle, you may need to run Babel on
node_modules/postcssfor old browsers. - Breaking
We removed rarely used
postcss.vendorAPI. - New
With new API, all plugins can share a single scan of the CSS tree. It makes CSS processing up to 20% faster.
- Breaking
12 other lines we could not sort, mostly version bumps
- 8.0.0
We now treat
sourcesin map as URLs instead of file paths. - 8.0.0
We now resolve
sourcesrelative to map file, not CSS file. - 8.0.0
opts.maps.absolute = trueoption for absolute paths in source map. - 8.0.0
opts.maps.annotation = (file, root) => urlfor a dynamic path to source map. - 8.0.0
Node#origin()now returnsposition.urlin addition toposition.filefor compatibility with absolute URLs in source map’ssources. - 8.0.0
We moved API docs from JSDoc to TypeDoc. Check out our new API docs.
- 8.0.0
We keep types in separate files for better readability.
- 8.0.0
With the new structure and test system, we fixed many small issues in types.
- 8.0.0
Fixed calling
replaceWithwith input replaced node - 8.0.0
Reduce dependencies by replacing
chalktocolorette.
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.