Skip to content
This repository was archived by the owner on Jun 13, 2021. It is now read-only.

Commit 55f118a

Browse files
committed
6.6.0
1 parent da61697 commit 55f118a

File tree

4 files changed

+42
-30
lines changed

4 files changed

+42
-30
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ os:
88
- osx
99

1010
node_js:
11-
- node
1211
- 10
1312
- 8
1413
- 6

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changes to PostCSS Preset Env
22

3+
### 6.6.0 (February 28, 2019)
4+
5+
- Moved browserslist detection from using each input file per process to using
6+
the working directory on intialization, as was implied by the documentation.
7+
If fixing this previously undocumented behavior causes any harm to existing
8+
projects, it can be easily rolled back in a subsequent patch. For the
9+
majority of projects — those with a singular browserslist configuration and
10+
potentially many individually processed CSS files — we should expect reported
11+
build times around 35 seconds to drop to less than 2 seconds.
12+
- Updated `browserslist` to 4.4.2 (minor)
13+
- Updated `autoprefixer` to 9.4.9 (patch)
14+
- Updated `caniuse-lite` to 1.0.30000939 (patch)
15+
- Updated `postcss` to 7.0.14 (patch)
16+
- Updated `postcss-attribute-case-insensitive` to 4.0.1 (patch)
17+
318
### 6.5.0 (December 12, 2018)
419

520
- Added `css-blank-pseudo` polyfill

package.json

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-preset-env",
3-
"version": "6.5.0",
3+
"version": "6.6.0",
44
"description": "Convert modern CSS into something browsers understand",
55
"author": "Jonathan Neal <[email protected]>",
66
"license": "CC0-1.0",
@@ -16,8 +16,9 @@
1616
"index.mjs.map"
1717
],
1818
"scripts": {
19+
"build": "rollup -c .rollup.js --silent",
1920
"prepublishOnly": "npm test",
20-
"pretest": "rollup -c .rollup.js --silent",
21+
"pretest:tape": "npm run build",
2122
"test": "npm run test:js && npm run test:tape",
2223
"test:js": "eslint src/*.js src/lib/*.js src/patch/*.js --cache --ignore-path .gitignore --quiet",
2324
"test:tape": "postcss-tape"
@@ -26,15 +27,15 @@
2627
"node": ">=6.0.0"
2728
},
2829
"dependencies": {
29-
"autoprefixer": "^9.4.2",
30-
"browserslist": "^4.3.5",
31-
"caniuse-lite": "^1.0.30000918",
30+
"autoprefixer": "^9.4.9",
31+
"browserslist": "^4.4.2",
32+
"caniuse-lite": "^1.0.30000939",
3233
"css-blank-pseudo": "^0.1.4",
3334
"css-has-pseudo": "^0.10.0",
3435
"css-prefers-color-scheme": "^3.1.1",
3536
"cssdb": "^4.3.0",
36-
"postcss": "^7.0.6",
37-
"postcss-attribute-case-insensitive": "^4.0.0",
37+
"postcss": "^7.0.14",
38+
"postcss-attribute-case-insensitive": "^4.0.1",
3839
"postcss-color-functional-notation": "^2.0.1",
3940
"postcss-color-gray": "^5.0.0",
4041
"postcss-color-hex-alpha": "^5.0.2",
@@ -65,16 +66,16 @@
6566
"postcss-selector-not": "^4.0.0"
6667
},
6768
"devDependencies": {
68-
"@babel/core": "^7.2.0",
69-
"@babel/preset-env": "^7.2.0",
69+
"@babel/core": "^7.3.4",
70+
"@babel/preset-env": "^7.3.4",
7071
"babel-eslint": "^10.0.1",
71-
"eslint": "^5.10.0",
72+
"eslint": "^5.14.1",
7273
"eslint-config-dev": "^2.0.0",
73-
"postcss-simple-vars": "^5.0.1",
74-
"postcss-tape": "^3.0.0-rc.2",
74+
"postcss-simple-vars": "^5.0.2",
75+
"postcss-tape": "^4.0.0",
7576
"pre-commit": "^1.2.2",
76-
"rollup": "^0.67.4",
77-
"rollup-plugin-babel": "^4.1.0"
77+
"rollup": "^1.3.2",
78+
"rollup-plugin-babel": "^4.3.2"
7879
},
7980
"eslintConfig": {
8081
"extends": "dev",

src/postcss.js

+12-15
Original file line numberDiff line numberDiff line change
@@ -83,24 +83,21 @@ export default postcss.plugin('postcss-preset-env', opts => {
8383
})
8484
);
8585

86-
return (root, result) => {
87-
// browsers supported by the configuration
88-
const supportedBrowsers = browserslist(browsers, {
89-
path: result.root.source && result.root.source.input && result.root.source.input.file,
90-
ignoreUnknownVersions: true
91-
});
86+
// browsers supported by the configuration
87+
const supportedBrowsers = browserslist(browsers, { ignoreUnknownVersions: true });
9288

93-
// features supported by the stage and browsers
94-
const supportedFeatures = stagedFeatures.filter(
95-
feature => supportedBrowsers.some(
96-
supportedBrowser => browserslist(feature.browsers, {
97-
ignoreUnknownVersions: true
98-
}).some(
99-
polyfillBrowser => polyfillBrowser === supportedBrowser
100-
)
89+
// features supported by the stage and browsers
90+
const supportedFeatures = stagedFeatures.filter(
91+
feature => supportedBrowsers.some(
92+
supportedBrowser => browserslist(feature.browsers, {
93+
ignoreUnknownVersions: true
94+
}).some(
95+
polyfillBrowser => polyfillBrowser === supportedBrowser
10196
)
102-
);
97+
)
98+
);
10399

100+
return (root, result) => {
104101
// polyfills run in execution order
105102
const polyfills = supportedFeatures.reduce(
106103
(promise, feature) => promise.then(

0 commit comments

Comments
 (0)