browserslist 4.16.6 → 4.16.7
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 +12 -8
- package/node.js +5 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -213,7 +213,7 @@ intersection of all the previous queries:
|
|
|
213
213
|
`last 1 version or chrome > 75 and > 1%` will select
|
|
214
214
|
(`browser last version` or `Chrome since 76`) and `more than 1% marketshare`.
|
|
215
215
|
|
|
216
|
-
There
|
|
216
|
+
There are 3 different ways to combine queries as depicted below. First you start
|
|
217
217
|
with a single query and then we combine the queries to get our final list.
|
|
218
218
|
|
|
219
219
|
Obviously you can *not* start with a `not` combiner, since there is no left-hand
|
|
@@ -235,7 +235,8 @@ You can specify the browser and Node.js versions by queries (case insensitive):
|
|
|
235
235
|
|
|
236
236
|
* `defaults`: Browserslist’s default browsers
|
|
237
237
|
(`> 0.5%, last 2 versions, Firefox ESR, not dead`).
|
|
238
|
-
*
|
|
238
|
+
* By usage statistics:
|
|
239
|
+
* `> 5%`: browsers versions selected by global usage statistics.
|
|
239
240
|
`>=`, `<` and `<=` work too.
|
|
240
241
|
* `> 5% in US`: uses USA usage statistics.
|
|
241
242
|
It accepts [two-letter country code].
|
|
@@ -247,19 +248,22 @@ You can specify the browser and Node.js versions by queries (case insensitive):
|
|
|
247
248
|
* `cover 99.5%`: most popular browsers that provide coverage.
|
|
248
249
|
* `cover 99.5% in US`: same as above, with [two-letter country code].
|
|
249
250
|
* `cover 99.5% in my stats`: uses [custom usage data].
|
|
250
|
-
*
|
|
251
|
-
|
|
252
|
-
`Samsung 4` and `OperaMobile 12.1`.
|
|
253
|
-
* `last 2 versions`: the last 2 versions for *each* browser.
|
|
251
|
+
* Last versions:
|
|
252
|
+
* `last 2 versions`: the last 2 versions for *each* browser.
|
|
254
253
|
* `last 2 Chrome versions`: the last 2 versions of Chrome browser.
|
|
255
254
|
* `last 2 major versions` or `last 2 iOS major versions`:
|
|
256
255
|
all minor/patch releases of last 2 major versions.
|
|
257
|
-
* `
|
|
256
|
+
* `dead`: browsers without official support or updates for 24 months.
|
|
257
|
+
Right now it is `IE 10`, `IE_Mob 11`, `BlackBerry 10`, `BlackBerry 7`,
|
|
258
|
+
`Samsung 4` and `OperaMobile 12.1`.
|
|
259
|
+
* Node.js versions:
|
|
260
|
+
* `node 10` and `node 10.4`: selects latest Node.js `10.x.x`
|
|
258
261
|
or `10.4.x` release.
|
|
259
262
|
* `current node`: Node.js version used by Browserslist right now.
|
|
260
263
|
* `maintained node versions`: all Node.js versions, which are [still maintained]
|
|
261
264
|
by Node.js Foundation.
|
|
262
|
-
*
|
|
265
|
+
* Browsers versions:
|
|
266
|
+
* `iOS 7`: the iOS browser version 7 directly.
|
|
263
267
|
* `Firefox > 20`: versions of Firefox newer than 20.
|
|
264
268
|
`>=`, `<` and `<=` work too. It also works with Node.js.
|
|
265
269
|
* `ie 6-8`: selects an inclusive range of versions.
|
package/node.js
CHANGED
|
@@ -113,6 +113,9 @@ function latestReleaseTime (agents) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
function normalizeStats (data, stats) {
|
|
116
|
+
if (!data) {
|
|
117
|
+
data = {}
|
|
118
|
+
}
|
|
116
119
|
if (stats && 'dataByBrowser' in stats) {
|
|
117
120
|
stats = stats.dataByBrowser
|
|
118
121
|
}
|
|
@@ -372,9 +375,8 @@ module.exports = {
|
|
|
372
375
|
if (latest !== 0 && latest < halfYearAgo) {
|
|
373
376
|
console.warn(
|
|
374
377
|
'Browserslist: caniuse-lite is outdated. Please run:\n' +
|
|
375
|
-
'npx browserslist@latest --update-db\n' +
|
|
376
|
-
'
|
|
377
|
-
'Why you should do it regularly:\n' +
|
|
378
|
+
' npx browserslist@latest --update-db\n' +
|
|
379
|
+
' Why you should do it regularly: ' +
|
|
378
380
|
'https://github.com/browserslist/browserslist#browsers-data-updating'
|
|
379
381
|
)
|
|
380
382
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browserslist",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.7",
|
|
4
4
|
"description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"caniuse",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"repository": "browserslist/browserslist",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"caniuse-lite": "^1.0.
|
|
18
|
+
"caniuse-lite": "^1.0.30001248",
|
|
19
19
|
"colorette": "^1.2.2",
|
|
20
|
-
"electron-to-chromium": "^1.3.
|
|
20
|
+
"electron-to-chromium": "^1.3.793",
|
|
21
21
|
"escalade": "^3.1.1",
|
|
22
|
-
"node-releases": "^1.1.
|
|
22
|
+
"node-releases": "^1.1.73"
|
|
23
23
|
},
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|