browserslist 2.1.1 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +13 -3
- package/index.js +11 -2
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
3
3
|
|
|
4
|
+
## 2.1.5
|
|
5
|
+
* Remove Firefox 45 from Firefox ESR.
|
|
6
|
+
|
|
7
|
+
## 2.1.4
|
|
8
|
+
* Use both ESR versions when they actual.
|
|
9
|
+
|
|
10
|
+
## 2.1.3
|
|
11
|
+
* Add warning on first exclude query.
|
|
12
|
+
|
|
13
|
+
## 2.1.2
|
|
14
|
+
* Fix non-Node.js environments support.
|
|
15
|
+
|
|
4
16
|
## 2.1.1
|
|
5
17
|
* Fix CLI arguments parsing.
|
|
6
18
|
|
package/README.md
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
# Browserslist
|
|
2
2
|
|
|
3
|
+
<img align="right" width="100" height="100"
|
|
4
|
+
src="http://ai.github.io/browserslist/logo.svg"
|
|
5
|
+
title="Browserslist logo by Anton Lovchikov">
|
|
6
|
+
|
|
3
7
|
Library to share supported browsers list between different front-end tools.
|
|
4
|
-
It is used in
|
|
5
|
-
|
|
8
|
+
It is used in:
|
|
9
|
+
|
|
10
|
+
* [Autoprefixer]
|
|
11
|
+
* [babel-preset-env] (no config support, only tool option)
|
|
12
|
+
* [eslint-plugin-compat]
|
|
13
|
+
* [stylelint-no-unsupported-browser-features]
|
|
14
|
+
* [postcss-normalize]
|
|
6
15
|
|
|
7
16
|
All tools that rely on Browserslist will find its config automatically,
|
|
8
17
|
when you add the following to `package.json`:
|
|
@@ -46,7 +55,8 @@ You can test Browserslist queries in [online demo].
|
|
|
46
55
|
|
|
47
56
|
[stylelint-no-unsupported-browser-features]: https://github.com/ismay/stylelint-no-unsupported-browser-features
|
|
48
57
|
[eslint-plugin-compat]: https://github.com/amilajack/eslint-plugin-compat
|
|
49
|
-
[babel-env
|
|
58
|
+
[babel-preset-env]: https://github.com/babel/babel-preset-env
|
|
59
|
+
[postcss-normalize]: https://github.com/jonathantneal/postcss-normalize
|
|
50
60
|
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
|
51
61
|
[online demo]: http://browserl.ist/
|
|
52
62
|
[Can I Use]: http://caniuse.com/
|
package/index.js
CHANGED
|
@@ -51,6 +51,9 @@ var filenessCache = {};
|
|
|
51
51
|
var configCache = {};
|
|
52
52
|
|
|
53
53
|
function isFile(file) {
|
|
54
|
+
if ( !fs.existsSync ) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
54
57
|
if ( file in filenessCache ) {
|
|
55
58
|
return filenessCache[file];
|
|
56
59
|
}
|
|
@@ -208,11 +211,17 @@ var browserslist = function (queries, opts) {
|
|
|
208
211
|
|
|
209
212
|
var result = [];
|
|
210
213
|
|
|
211
|
-
queries.forEach(function (selection) {
|
|
214
|
+
queries.forEach(function (selection, index) {
|
|
212
215
|
if ( selection.trim() === '' ) return;
|
|
213
216
|
|
|
214
217
|
var exclude = selection.indexOf('not ') === 0;
|
|
215
|
-
if ( exclude )
|
|
218
|
+
if ( exclude ) {
|
|
219
|
+
if ( index === 0 ) {
|
|
220
|
+
error('Write any browsers query (for instance, `defaults`) ' +
|
|
221
|
+
'before `' + selection + '`');
|
|
222
|
+
}
|
|
223
|
+
selection = selection.slice(4);
|
|
224
|
+
}
|
|
216
225
|
|
|
217
226
|
for ( var i in browserslist.queries ) {
|
|
218
227
|
var type = browserslist.queries[i];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browserslist",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "Share browsers list between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"caniuse",
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"repository": "ai/browserslist",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"caniuse-lite": "^1.0.
|
|
14
|
-
"electron-to-chromium": "^1.3.
|
|
13
|
+
"caniuse-lite": "^1.0.30000684",
|
|
14
|
+
"electron-to-chromium": "^1.3.14"
|
|
15
15
|
},
|
|
16
16
|
"bin": "./cli.js",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"cross-spawn": "^5.1.0",
|
|
19
|
-
"eslint": "^
|
|
19
|
+
"eslint": "^4.0.0",
|
|
20
20
|
"eslint-config-postcss": "^2.0.2",
|
|
21
|
-
"jest": "^
|
|
22
|
-
"lint-staged": "^3.
|
|
21
|
+
"jest": "^20.0.4",
|
|
22
|
+
"lint-staged": "^3.6.1",
|
|
23
23
|
"pre-commit": "^1.1.3",
|
|
24
24
|
"yaspeller-ci": "^0.4.0"
|
|
25
25
|
},
|
|
@@ -50,6 +50,9 @@
|
|
|
50
50
|
"*.md": "yaspeller-ci",
|
|
51
51
|
"*.js": "eslint"
|
|
52
52
|
},
|
|
53
|
+
"browser": {
|
|
54
|
+
"fs": false
|
|
55
|
+
},
|
|
53
56
|
"pre-commit": [
|
|
54
57
|
"lint-staged"
|
|
55
58
|
]
|