browserslist 4.5.5 → 4.5.6
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 +3 -0
- package/README.md +28 -19
- package/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -92,6 +92,34 @@ You can test Browserslist queries in [online demo].
|
|
|
92
92
|
[`browserslist-browserstack`]: https://github.com/xeroxinteractive/browserslist-browserstack
|
|
93
93
|
|
|
94
94
|
|
|
95
|
+
## Best Practices
|
|
96
|
+
|
|
97
|
+
* Select browsers directly (`last 2 Chrome versions`) only if you are making
|
|
98
|
+
a web app for a kiosk with one browser. There are a lot of browsers
|
|
99
|
+
on the market. If you are making general web app you should respect
|
|
100
|
+
browsers diversity.
|
|
101
|
+
* There is a `defaults` query, which gives a reasonable configuration
|
|
102
|
+
for most users:
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
"browserslist": [
|
|
106
|
+
"defaults"
|
|
107
|
+
]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
* If you want to change the default set of browsers we recommend to combine
|
|
111
|
+
`last 1 version`, `not dead` with `> 0.2%` (or `> 1% in US`,
|
|
112
|
+
`> 1% in my stats`). `last n versions` adds too many dead browsers
|
|
113
|
+
and does not add popular old versions. Choosing a percentage above `0.2%`
|
|
114
|
+
will in the long run make popular browsers even more popular. We might run
|
|
115
|
+
into a monopoly and stagnation situation, as we had with Internet Explorer 6.
|
|
116
|
+
Please use this setting with caution.
|
|
117
|
+
* Don’t remove browsers just because you don’t know them. Opera Mini has
|
|
118
|
+
100 million users in Africa and it is more popular in the global market
|
|
119
|
+
than Microsoft Edge. Chinese QQ Browsers has more market share than Firefox
|
|
120
|
+
and desktop Safari altogether.
|
|
121
|
+
|
|
122
|
+
|
|
95
123
|
## Queries
|
|
96
124
|
|
|
97
125
|
Browserslist will use browsers and Node.js versions query
|
|
@@ -132,25 +160,6 @@ _A quick way to test your query is to do `npx browserslist '> 0.5%, not IE 11'`
|
|
|
132
160
|
in your terminal._
|
|
133
161
|
|
|
134
162
|
|
|
135
|
-
### Best Practices
|
|
136
|
-
|
|
137
|
-
* Select browsers directly (`last 2 Chrome versions`) only if you are making
|
|
138
|
-
a web app for a kiosk with one browser. There are a lot of browsers
|
|
139
|
-
on the market. If you are making general web app you should respect
|
|
140
|
-
browsers diversity.
|
|
141
|
-
* If you want to change the default set of browsers we recommend to combine
|
|
142
|
-
`last 1 version`, `not dead` with `> 0.2%` (or `> 1% in US`,
|
|
143
|
-
`> 1% in my stats`). `last n versions` adds too many dead browsers
|
|
144
|
-
and does not add popular old versions. Choosing a percentage above `0.2%`
|
|
145
|
-
will in the long run make popular browsers even more popular. We might run
|
|
146
|
-
into a monopoly and stagnation situation, as we had with Internet Explorer 6.
|
|
147
|
-
Please use this setting with caution.
|
|
148
|
-
* Don’t remove browsers just because you don’t know them. Opera Mini has
|
|
149
|
-
100 million users in Africa and it is more popular in the global market
|
|
150
|
-
than Microsoft Edge. Chinese QQ Browsers has more market share than Firefox
|
|
151
|
-
and desktop Safari altogether.
|
|
152
|
-
|
|
153
|
-
|
|
154
163
|
### Full List
|
|
155
164
|
|
|
156
165
|
You can specify the browser and Node.js versions by queries (case insensitive):
|
package/index.js
CHANGED
|
@@ -782,7 +782,7 @@ var QUERIES = [
|
|
|
782
782
|
}
|
|
783
783
|
},
|
|
784
784
|
{
|
|
785
|
-
regexp: /^node\s*(>=?|<=?)\s*([\d.]+)
|
|
785
|
+
regexp: /^node\s*(>=?|<=?)\s*([\d.]+)$/i,
|
|
786
786
|
select: function (context, sign, version) {
|
|
787
787
|
var nodeVersions = jsReleases.filter(function (i) {
|
|
788
788
|
return i.name === 'nodejs'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browserslist",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.6",
|
|
4
4
|
"description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"caniuse",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"repository": "browserslist/browserslist",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"caniuse-lite": "^1.0.
|
|
15
|
-
"electron-to-chromium": "^1.3.
|
|
16
|
-
"node-releases": "^1.1.
|
|
14
|
+
"caniuse-lite": "^1.0.30000963",
|
|
15
|
+
"electron-to-chromium": "^1.3.127",
|
|
16
|
+
"node-releases": "^1.1.17"
|
|
17
17
|
},
|
|
18
18
|
"bin": "./cli.js",
|
|
19
19
|
"browser": {
|