Skip to content

Upgrading autoprefixer 5 to 6

Breaking5.2.0 → 6.7.7Breaking11New26Changed6Fixed27Other32

BreakingUpgrade verdict

11 breaking changes.

  • In 6.5 we fixed when Autopefixer removed -webkit-align-self even if final spec is still in requirements.
  • Remove -ms-transform-style and -o-transform-style that never existed.
  • Remove unnecessary -khtml- prefix too.
  • Deprecated autoprefixer(opt).process(css) was removed in favor of autoprefixer.process(css, opt), common for all PostCSS plugins.
Top 3 of 11 that need code or config changes

Adds browserslist ^1.7.6, caniuse-db ^1.0.30000634, normalize-range ^0.1.2, num2fraction ^1.2.2, postcss-value-parser ^3.2.3.

Drops autoprefixer-core, fs-extra.

Installs 18 packages in all (was 26).

Also installs ansi-regex, ansi-styles, chalk, electron-to-chromium, escape-string-regexp, has-ansi, has-flag, strip-ansi, supports-color.

No longer installs amdefine, balanced-match, brace-expansion, concat-map, es6-promise, fs.realpath, glob, graceful-fs, inflight, inherits, jsonfile, minimatch, natives, once, path-is-absolute and 2 more.

Moves browserslist 0.4.0 → 1.7.7, js-base64 2.1.9 → 2.6.4, postcss 4.1.16 → 5.2.18, source-map 0.4.4 → 0.5.7. Your build may pick other versions.

Breaking11
In 6.5 we fixed when Autopefixer removed -webkit-align-self even if final spec is still in requirements.
-webkit-align-self
Remove -ms-transform-style and -o-transform-style that never existed.
-ms-transform-style-o-transform-style
Remove unnecessary -khtml- prefix too.
-khtml-
Deprecated autoprefixer(opt).process(css) was removed in favor of autoprefixer.process(css, opt), common for all PostCSS plugins.
autoprefixer(opt).process(css)autoprefixer.process(css, opt)
safe option was removed in favor of PostCSS Safe Parser.
safe
Opera 12.1 was removed from default query.
Autoprefixer now supports Custom Syntaxes from PostCSS.
Autoprefixer now uses PostCSS 5.0 API, so you can use it with new PostCSS runners without any warnings.
Now we have Microsoft Edge support.
You can use not word in browsers query.
notlast 2 browsers
@ben-eb adds browsers versions ranges like IE 6-9.