autoprefixer
Advanced tools
Comparing version 7.1.2 to 7.1.3
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 7.1.3 | ||
* Add warning for old `radial-gradient` direction syntax. | ||
## 7.1.2 | ||
@@ -5,0 +8,0 @@ * Fix `text-decoration` shortcut support. |
@@ -7,3 +7,4 @@ 'use strict'; | ||
var OLD_DIRECTION = /(^|[^-])(linear|radial)-gradient\(\s*(top|left|right|bottom)/i; | ||
var OLD_LINEAR = /(^|[^-])linear-gradient\(\s*(top|left|right|bottom)/i; | ||
var OLD_RADIAL = /(^|[^-])radial-gradient\(\s*\d+(\w*|%)\s+\d+(\w*|%)\s*,/i; | ||
@@ -72,6 +73,11 @@ var SIZES = ['width', 'height', 'min-width', 'max-width', 'min-height', 'max-height', 'inline-size', 'min-inline-size', 'max-inline-size', 'block-size', 'min-block-size', 'max-block-size']; | ||
if (decl.value.indexOf('linear-gradient') !== -1) { | ||
if (OLD_DIRECTION.test(decl.value)) { | ||
if (OLD_LINEAR.test(decl.value)) { | ||
result.warn('Gradient has outdated direction syntax. ' + 'New syntax is like `to left` instead of `right`.', { node: decl }); | ||
} | ||
} | ||
if (decl.value.indexOf('radial-gradient') !== -1) { | ||
if (OLD_RADIAL.test(decl.value)) { | ||
result.warn('Gradient has outdated direction syntax. ' + 'New syntax is like `closest-side at 0 0` ' + 'instead of `0 0, closest-side`.', { node: decl }); | ||
} | ||
} | ||
if (decl.prop === 'text-emphasis-position') { | ||
@@ -78,0 +84,0 @@ if (decl.value === 'under' || decl.value === 'over') { |
{ | ||
"name": "autoprefixer", | ||
"version": "7.1.2", | ||
"version": "7.1.3", | ||
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website", | ||
@@ -16,7 +16,7 @@ "keywords": [ | ||
"dependencies": { | ||
"browserslist": "^2.1.5", | ||
"caniuse-lite": "^1.0.30000697", | ||
"browserslist": "^2.4.0", | ||
"caniuse-lite": "^1.0.30000718", | ||
"normalize-range": "^0.1.2", | ||
"num2fraction": "^1.2.2", | ||
"postcss": "^6.0.6", | ||
"postcss": "^6.0.10", | ||
"postcss-value-parser": "^3.2.3" | ||
@@ -30,7 +30,7 @@ }, | ||
"browserify": "^14.4.0", | ||
"eslint": "^4.1.1", | ||
"eslint": "^4.5.0", | ||
"eslint-config-postcss": "^2.0.2", | ||
"fs-extra": "^3.0.1", | ||
"fs-extra": "^4.0.1", | ||
"gulp": "^3.9.1", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-babel": "^7.0.0", | ||
"gulp-coffee": "^2.3.4", | ||
@@ -40,7 +40,7 @@ "gulp-json-editor": "^2.2.1", | ||
"jest": "^20.0.4", | ||
"lint-staged": "^4.0.1", | ||
"lint-staged": "^4.0.4", | ||
"pre-commit": "^1.2.2", | ||
"size-limit": "^0.5.0", | ||
"size-limit": "^0.10.0", | ||
"vinyl-source-stream": "^1.1.0", | ||
"babel-register": "^6.24.0" | ||
"babel-register": "^6.26.0" | ||
}, | ||
@@ -50,4 +50,3 @@ "scripts": { | ||
"lint": "eslint *.js lib/*.js data/*.js test/*.js", | ||
"size": "size-limit --babili 250KB build/lib/autoprefixer.js", | ||
"test": "jest && npm run lint && gulp && npm run size" | ||
"test": "jest && npm run lint && gulp && size-limit" | ||
}, | ||
@@ -60,2 +59,6 @@ "lint-staged": { | ||
], | ||
"size-limit": [{ | ||
"path": "build/lib/autoprefixer.js", | ||
"limit": "250 KB" | ||
}], | ||
"eslintConfig": { | ||
@@ -62,0 +65,0 @@ "extends": "eslint-config-postcss", |
@@ -406,4 +406,4 @@ # Autoprefixer [![Build Status][ci-img]][ci] | ||
```sh | ||
npm install --global postcss-cli autoprefixer | ||
postcss *.css --use autoprefixer -d build/ | ||
npm install postcss-cli autoprefixer | ||
npx postcss *.css --use autoprefixer -d build/ | ||
``` | ||
@@ -410,0 +410,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
292222
5739
Updatedbrowserslist@^2.4.0
Updatedcaniuse-lite@^1.0.30000718
Updatedpostcss@^6.0.10