browserslist 4.21.3 → 4.21.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/README.md +28 -19
- package/browser.js +3 -1
- package/index.js +2 -2
- package/node.js +5 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Browserslist [![Cult Of Martians][cult-img]][cult]
|
|
2
2
|
|
|
3
|
-
<img width="120" height="120" alt="Browserslist logo by Anton
|
|
4
|
-
src="https://
|
|
3
|
+
<img width="120" height="120" alt="Browserslist logo by Anton Popov"
|
|
4
|
+
src="https://browsersl.ist/logo.svg" align="right">
|
|
5
5
|
|
|
6
6
|
The config to share target browsers and Node.js versions between different
|
|
7
7
|
front-end tools. It is used in:
|
|
@@ -19,8 +19,7 @@ when you add the following to `package.json`:
|
|
|
19
19
|
|
|
20
20
|
```json
|
|
21
21
|
"browserslist": [
|
|
22
|
-
"defaults",
|
|
23
|
-
"not IE 11",
|
|
22
|
+
"defaults and supports es6-module",
|
|
24
23
|
"maintained node versions"
|
|
25
24
|
]
|
|
26
25
|
```
|
|
@@ -30,8 +29,7 @@ Or in `.browserslistrc` config:
|
|
|
30
29
|
```yaml
|
|
31
30
|
# Browsers that we support
|
|
32
31
|
|
|
33
|
-
defaults
|
|
34
|
-
not IE 11
|
|
32
|
+
defaults and supports es6-module
|
|
35
33
|
maintained node versions
|
|
36
34
|
```
|
|
37
35
|
|
|
@@ -39,28 +37,39 @@ Developers set their version lists using queries like `last 2 versions`
|
|
|
39
37
|
to be free from updating versions manually.
|
|
40
38
|
Browserslist will use [`caniuse-lite`] with [Can I Use] data for this queries.
|
|
41
39
|
|
|
42
|
-
|
|
43
|
-
`browserslist` config, `.browserslistrc` config,
|
|
44
|
-
`browserslist` section in `package.json` or environment variables.
|
|
40
|
+
You can check how config works at our playground: [`browsersl.ist`](https://browsersl.ist/)
|
|
45
41
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<a href="https://evilmartians.com/?utm_source=browserslist">
|
|
50
|
-
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
|
|
51
|
-
alt="Sponsored by Evil Martians" width="236" height="54">
|
|
42
|
+
<a href="https://browsersl.ist/">
|
|
43
|
+
<img src="/img/screenshot.webp" alt="browsersl.ist website">
|
|
52
44
|
</a>
|
|
53
45
|
|
|
46
|
+
<br>
|
|
47
|
+
<br>
|
|
48
|
+
<div align="center">
|
|
49
|
+
<a href="https://evilmartians.com/?utm_source=browserslist">
|
|
50
|
+
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
|
|
51
|
+
alt="Sponsored by Evil Martians" width="236" height="54">
|
|
52
|
+
</a>
|
|
53
|
+
|
|
54
|
+
<a href="https://cube.dev/?ref=eco-browserslist-github">
|
|
55
|
+
<img src="https://user-images.githubusercontent.com/986756/154330861-d79ab8ec-aacb-4af8-9e17-1b28f1eccb01.svg"
|
|
56
|
+
alt="Supported by Cube" width="227" height="46">
|
|
57
|
+
</a>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
54
60
|
[stylelint-no-unsupported-browser-features]: https://github.com/ismay/stylelint-no-unsupported-browser-features
|
|
61
|
+
[obsolete-webpack-plugin]: https://github.com/ElemeFE/obsolete-webpack-plugin
|
|
55
62
|
[eslint-plugin-compat]: https://github.com/amilajack/eslint-plugin-compat
|
|
56
63
|
[Browserslist Example]: https://github.com/browserslist/browserslist-example
|
|
57
|
-
[postcss-preset-env]: https://github.com/
|
|
58
|
-
[postcss-normalize]: https://github.com/
|
|
64
|
+
[postcss-preset-env]: https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env
|
|
65
|
+
[postcss-normalize]: https://github.com/csstools/postcss-normalize
|
|
66
|
+
[`browsersl.ist`]: https://browsersl.ist/
|
|
59
67
|
[`caniuse-lite`]: https://github.com/ben-eb/caniuse-lite
|
|
60
68
|
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
|
61
69
|
[Can I Use]: https://caniuse.com/
|
|
62
70
|
[Babel]: https://github.com/babel/babel/tree/master/packages/babel-preset-env
|
|
63
|
-
[
|
|
71
|
+
[cult-img]: https://cultofmartians.com/assets/badges/badge.svg
|
|
72
|
+
[cult]: https://cultofmartians.com/done.html
|
|
64
73
|
|
|
65
74
|
## Docs
|
|
66
|
-
Read
|
|
75
|
+
Read full docs **[here](https://github.com/browserslist/browserslist#readme)**.
|
package/browser.js
CHANGED
package/index.js
CHANGED
|
@@ -417,7 +417,7 @@ function browserslist(queries, opts) {
|
|
|
417
417
|
return compare(name1[0], name2[0])
|
|
418
418
|
}
|
|
419
419
|
})
|
|
420
|
-
if (!
|
|
420
|
+
if (!env.env.BROWSERSLIST_DISABLE_CACHE) {
|
|
421
421
|
cache[cacheKey] = result
|
|
422
422
|
}
|
|
423
423
|
return result
|
|
@@ -992,7 +992,7 @@ var QUERIES = {
|
|
|
992
992
|
matches: [],
|
|
993
993
|
regexp: /^(firefox|ff|fx)\s+esr$/i,
|
|
994
994
|
select: function () {
|
|
995
|
-
return ['firefox
|
|
995
|
+
return ['firefox 102']
|
|
996
996
|
}
|
|
997
997
|
},
|
|
998
998
|
opera_mini_all: {
|
package/node.js
CHANGED
|
@@ -247,7 +247,7 @@ module.exports = {
|
|
|
247
247
|
try {
|
|
248
248
|
compressed = require('caniuse-lite/data/regions/' + code + '.js')
|
|
249
249
|
} catch (e) {
|
|
250
|
-
throw new BrowserslistError(
|
|
250
|
+
throw new BrowserslistError('Unknown region name `' + code + '`.')
|
|
251
251
|
}
|
|
252
252
|
var usageData = region(compressed)
|
|
253
253
|
normalizeUsageData(usageData, data)
|
|
@@ -267,7 +267,7 @@ module.exports = {
|
|
|
267
267
|
try {
|
|
268
268
|
compressed = require('caniuse-lite/data/features/' + name + '.js')
|
|
269
269
|
} catch (e) {
|
|
270
|
-
throw new BrowserslistError(
|
|
270
|
+
throw new BrowserslistError('Unknown feature name `' + name + '`.')
|
|
271
271
|
}
|
|
272
272
|
var stats = feature(compressed).stats
|
|
273
273
|
features[name] = {}
|
|
@@ -403,5 +403,7 @@ module.exports = {
|
|
|
403
403
|
|
|
404
404
|
currentNode: function currentNode() {
|
|
405
405
|
return 'node ' + process.versions.node
|
|
406
|
-
}
|
|
406
|
+
},
|
|
407
|
+
|
|
408
|
+
env: process.env
|
|
407
409
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browserslist",
|
|
3
|
-
"version": "4.21.
|
|
3
|
+
"version": "4.21.5",
|
|
4
4
|
"description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"caniuse",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"repository": "browserslist/browserslist",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"caniuse-lite": "^1.0.
|
|
25
|
-
"electron-to-chromium": "^1.4.
|
|
26
|
-
"node-releases": "^2.0.
|
|
27
|
-
"update-browserslist-db": "^1.0.
|
|
24
|
+
"caniuse-lite": "^1.0.30001449",
|
|
25
|
+
"electron-to-chromium": "^1.4.284",
|
|
26
|
+
"node-releases": "^2.0.8",
|
|
27
|
+
"update-browserslist-db": "^1.0.10"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|