postcss-preset-env
Advanced tools
Comparing version 6.5.0 to 6.6.0
# Changes to PostCSS Preset Env | ||
### 6.6.0 (February 28, 2019) | ||
- Moved browserslist detection from using each input file per process to using | ||
the working directory on intialization, as was implied by the documentation. | ||
If fixing this previously undocumented behavior causes any harm to existing | ||
projects, it can be easily rolled back in a subsequent patch. For the | ||
majority of projects — those with a singular browserslist configuration and | ||
potentially many individually processed CSS files — we should expect reported | ||
build times around 35 seconds to drop to less than 2 seconds. | ||
- Updated `browserslist` to 4.4.2 (minor) | ||
- Updated `autoprefixer` to 9.4.9 (patch) | ||
- Updated `caniuse-lite` to 1.0.30000939 (patch) | ||
- Updated `postcss` to 7.0.14 (patch) | ||
- Updated `postcss-attribute-case-insensitive` to 4.0.1 (patch) | ||
### 6.5.0 (December 12, 2018) | ||
@@ -4,0 +19,0 @@ |
27
index.js
@@ -8,2 +8,3 @@ 'use strict'; | ||
var cssdb = _interopDefault(require('cssdb')); | ||
var postcss$1 = _interopDefault(require('postcss')); | ||
var postcssAttributeCaseInsensitive = _interopDefault(require('postcss-attribute-case-insensitive')); | ||
@@ -25,3 +26,2 @@ var postcssBlankPseudo = _interopDefault(require('css-blank-pseudo/postcss')); | ||
var postcssFontVariant = _interopDefault(require('postcss-font-variant')); | ||
var postcss = _interopDefault(require('postcss')); | ||
var postcssGapProperties = _interopDefault(require('postcss-gap-properties')); | ||
@@ -47,3 +47,3 @@ var postcssHasPseudo = _interopDefault(require('css-has-pseudo/postcss')); | ||
var postcssFontFamilySystemUi = postcss.plugin('postcss-system-ui-font', () => root => { | ||
var postcssFontFamilySystemUi = postcss$1.plugin('postcss-system-ui-font', () => root => { | ||
root.walkDecls(propertyRegExp, decl => { | ||
@@ -392,3 +392,3 @@ decl.value = decl.value.replace(systemUiMatch, systemUiReplace); | ||
var postcss$1 = postcss.plugin('postcss-preset-env', opts => { | ||
var postcss = postcss$1.plugin('postcss-preset-env', opts => { | ||
// initialize options | ||
@@ -436,14 +436,13 @@ const features = Object(Object(opts).features); | ||
id: feature.id | ||
})); | ||
return (root, result) => { | ||
// browsers supported by the configuration | ||
const supportedBrowsers = browserslist(browsers, { | ||
path: result.root.source && result.root.source.input && result.root.source.input.file, | ||
ignoreUnknownVersions: true | ||
}); // features supported by the stage and browsers | ||
})); // browsers supported by the configuration | ||
const supportedFeatures = stagedFeatures.filter(feature => supportedBrowsers.some(supportedBrowser => browserslist(feature.browsers, { | ||
ignoreUnknownVersions: true | ||
}).some(polyfillBrowser => polyfillBrowser === supportedBrowser))); // polyfills run in execution order | ||
const supportedBrowsers = browserslist(browsers, { | ||
ignoreUnknownVersions: true | ||
}); // features supported by the stage and browsers | ||
const supportedFeatures = stagedFeatures.filter(feature => supportedBrowsers.some(supportedBrowser => browserslist(feature.browsers, { | ||
ignoreUnknownVersions: true | ||
}).some(polyfillBrowser => polyfillBrowser === supportedBrowser))); | ||
return (root, result) => { | ||
// polyfills run in execution order | ||
const polyfills = supportedFeatures.reduce((promise, feature) => promise.then(() => feature.plugin(result.root, result)), Promise.resolve()).then(() => stagedAutoprefixer(result.root, result)).then(() => { | ||
@@ -484,3 +483,3 @@ if (Object(opts).exportTo) { | ||
module.exports = postcss$1; | ||
module.exports = postcss; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "postcss-preset-env", | ||
"version": "6.5.0", | ||
"version": "6.6.0", | ||
"description": "Convert modern CSS into something browsers understand", | ||
@@ -19,4 +19,5 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"scripts": { | ||
"build": "rollup -c .rollup.js --silent", | ||
"prepublishOnly": "npm test", | ||
"pretest": "rollup -c .rollup.js --silent", | ||
"pretest:tape": "npm run build", | ||
"test": "npm run test:js && npm run test:tape", | ||
@@ -30,5 +31,5 @@ "test:js": "eslint src/*.js src/lib/*.js src/patch/*.js --cache --ignore-path .gitignore --quiet", | ||
"dependencies": { | ||
"autoprefixer": "^9.4.2", | ||
"browserslist": "^4.3.5", | ||
"caniuse-lite": "^1.0.30000918", | ||
"autoprefixer": "^9.4.9", | ||
"browserslist": "^4.4.2", | ||
"caniuse-lite": "^1.0.30000939", | ||
"css-blank-pseudo": "^0.1.4", | ||
@@ -38,4 +39,4 @@ "css-has-pseudo": "^0.10.0", | ||
"cssdb": "^4.3.0", | ||
"postcss": "^7.0.6", | ||
"postcss-attribute-case-insensitive": "^4.0.0", | ||
"postcss": "^7.0.14", | ||
"postcss-attribute-case-insensitive": "^4.0.1", | ||
"postcss-color-functional-notation": "^2.0.1", | ||
@@ -71,12 +72,12 @@ "postcss-color-gray": "^5.0.0", | ||
"devDependencies": { | ||
"@babel/core": "^7.2.0", | ||
"@babel/preset-env": "^7.2.0", | ||
"@babel/core": "^7.3.4", | ||
"@babel/preset-env": "^7.3.4", | ||
"babel-eslint": "^10.0.1", | ||
"eslint": "^5.10.0", | ||
"eslint": "^5.14.1", | ||
"eslint-config-dev": "^2.0.0", | ||
"postcss-simple-vars": "^5.0.1", | ||
"postcss-tape": "^3.0.0-rc.2", | ||
"postcss-simple-vars": "^5.0.2", | ||
"postcss-tape": "^4.0.0", | ||
"pre-commit": "^1.2.2", | ||
"rollup": "^0.67.4", | ||
"rollup-plugin-babel": "^4.1.0" | ||
"rollup": "^1.3.2", | ||
"rollup-plugin-babel": "^4.3.2" | ||
}, | ||
@@ -83,0 +84,0 @@ "eslintConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
140052
840
Updatedautoprefixer@^9.4.9
Updatedbrowserslist@^4.4.2
Updatedcaniuse-lite@^1.0.30000939
Updatedpostcss@^7.0.14