Releases: postcss/autoprefixer
Releases · postcss/autoprefixer
1.0 “Plus ultra”
Notable Changes
- Source map support. Autoprefixer now generates source map or modify previous source map (for example, from Sass).
- Preserves code indentations. New parser now saves all spaces from input CSS, so output prefixed CSS will be with same code style. It makes Autoprefixer much better for text editors plugin and prevents Autoprefixer to uncompress CSS from Sass.
- CSS parser was changed to PostCSS. It allows to add prefixes inside some new or custom at-rules and fix issue with comment in property name. Also it clean Autoprefixer code by moving some common CSS processor code to PostCSS.
- Better vendor hacks detection. Autoprefixer will preserve outdated prefixed property if you it put right after unprefixed ones. Also fixed bug with same properties in one rule.
- License was changed to MIT. New license is more free and allow to remove long LGPL preamble from each file.
- Long browser names. Autoprefixer now understands
firefox
,explorer
andblackberry
browser aliases and ignore case in browser names. So you can set supported browsers likeFirefox >= 22
. Also you can select lastn
versions of some specified browser bylast 2 Chrome versions
requirement.
API Changes
- Method
compile()
was renamed toprocess()
and now returnResult
object withcss
andmap
properties. Instead of input file infile
option, you should set input and output file names tofrom
andto
options to generate correct source map. Oldcompile()
API show deprecated warning and will be removed in next 1.1 release. - Method
inspect()
was renamed toinfo()
to fix name conflict with Console API. - There is no
autoprefixer.rework
method anymore. Just useautoprefixer.process(css).css
after your Rework transformations.
Binary
- Binary now will not concat output files. Concat requires extra code to support source map. Use special tools like grunt-concat-sourcemap.
- New
-d
option to set output directory for multiple input files. - Syntax error now displays input file name.
Fixes
- Add prefixes inside custom at-rules.
- Add only necessary prefixes to selector inside prefixed at-rule.
- Safer backgrounds list parser from PostCSS in gradient hack.
- Prefix
@keyframes
inside@media
. - Don’t prefix values for CSS3 PIE properties.
- Use browserify to build standalone version.
0.8 “Unbowed, Unbent, Unbroken”
- Add more browsers to defaults (`> 1%, last 2 versions, ff 17, opera 12.1`
instead of just `last 2 browsers`).
- Keep vendor prefixes without unprefixed version (like vendor-specific hacks).
- Convert gradients to old WebKit syntax (actual for Android 2.3).
- Better support for several syntaxes with one prefix (like Flexbox and
gradients in WebKit).
- Add intrinsic and extrinsic sizing values support.
- Remove never existed prefixes from common mistakes (like -ms-transition).
- Add Opera 17 data.
- Fix selector prefixes order.
- Fix browser versions order in inspect.
0.7 “We Do Not Sow”
0.6 “As High As Honor”
0.5 “Ours is the Fury”
0.4 “Winter Is Coming”
0.3 “Growing Strong”
- Rename `autoprefixer.filter()` to `autoprefixer.rework()`.
- Use own filters instead of Rework’s `prefix` and `prefixValue`.
- Smarter value prefixer without false match “order” in “border”.
- 40% faster.
- Don’t add unnecessary properties instead of Rework’s `prefixValue`.
- Don’t change properties order.
- Sort properties and values in inspect output.
- Add main to component config (by @jonathanong).
- Fix documentation (by @putnik and @mvasilkov).