Upgrading autoprefixer 2 to 3
Breaking2.2.0 → 3.1.0Breaking1Deprecated1New2Changed6Fixed2Other1
BreakingUpgrade verdict
1 breaking change.
In plain terms
- You now tell Autoprefixer which browsers to support by passing a `browsers` list in the options object.
- The old way of passing options still works for now but shows warnings and will be removed in version 3.1.
Must act 2 items need code or config changes
Adds autoprefixer-core ~3.1.0.
Drops caniuse-db.
Installs 24 packages in all (was 22).
Also installs graceful-fs.
Moves fs-extra 0.10.0 → 0.11.1, jsonfile 1.2.0 → 2.4.0, ncp 0.5.1 → 0.6.0, postcss 2.1.2 → 2.2.6. Your build may pick other versions.
What you must change
Breaking1
Changes the browsers API: the browsers list is now set in the
browsers key with other options instead of the old options.autoprefixer()browsersDeprecations to plan for
Deprecated1
Deprecates the old API, which prints warnings and will be removed in 3.1.