browserslist 4.6.2 → 4.6.3

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 CHANGED
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 4.6.3
5
+ * Dirty fix for `android all` error.
6
+
4
7
  ## 4.6.2
5
8
  * Fix `last x version` and similar queries for Android (by Tony Ross).
6
9
 
package/README.md CHANGED
@@ -115,7 +115,7 @@ You can test Browserslist queries in [online demo].
115
115
  * Don’t remove browsers just because you don’t know them. Opera Mini has
116
116
  100 million users in Africa and it is more popular in the global market
117
117
  than Microsoft Edge. Chinese QQ Browsers has more market share than Firefox
118
- and desktop Safari altogether.
118
+ and desktop Safari combined.
119
119
 
120
120
 
121
121
  ## Queries
@@ -200,6 +200,12 @@ You can specify the browser and Node.js versions by queries (case insensitive):
200
200
 
201
201
  You can add `not ` to any query.
202
202
 
203
+ [`caniuse-lite/data/regions`]: https://github.com/ben-eb/caniuse-lite/tree/master/data/regions
204
+ [two-letter country code]: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
205
+ [custom usage data]: #custom-usage-data
206
+ [still maintained]: https://github.com/nodejs/Release
207
+ [Can I Use]: https://caniuse.com/
208
+
203
209
 
204
210
  ### Debug
205
211
 
@@ -225,23 +231,6 @@ samsung 5
225
231
  ```
226
232
 
227
233
 
228
- ### Notes
229
-
230
- Browserslist works with separated versions of browsers.
231
- You should avoid queries like `Firefox > 0`.
232
- The list of the specified browsers acts as a white list which means other browsers are ignored.
233
-
234
- All queries are based on the [Can I Use] support table,
235
- e.g. `last 3 iOS versions` might select `8.4, 9.2, 9.3` (mixed major and minor),
236
- whereas `last 3 Chrome versions` might select `50, 49, 48` (major only).
237
-
238
- [`caniuse-lite/data/regions`]: https://github.com/ben-eb/caniuse-lite/tree/master/data/regions
239
- [two-letter country code]: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
240
- [custom usage data]: #custom-usage-data
241
- [still maintained]: https://github.com/nodejs/Release
242
- [Can I Use]: https://caniuse.com/
243
-
244
-
245
234
  ### Browsers
246
235
 
247
236
  Names are case insensitive:
@@ -408,9 +397,12 @@ In `package.json`:
408
397
  "> 1%",
409
398
  "ie 10"
410
399
  ],
411
- "development": [
400
+ "modern": [
412
401
  "last 1 chrome version",
413
402
  "last 1 firefox version"
403
+ ],
404
+ "ssr": [
405
+ "node 12"
414
406
  ]
415
407
  }
416
408
  ```
@@ -418,13 +410,16 @@ In `package.json`:
418
410
  In `.browserslistrc` config:
419
411
 
420
412
  ```ini
421
- [production staging]
413
+ [production]
422
414
  > 1%
423
415
  ie 10
424
416
 
425
- [development]
417
+ [modern]
426
418
  last 1 chrome version
427
419
  last 1 firefox version
420
+
421
+ [ssr]
422
+ node 12
428
423
  ```
429
424
 
430
425
 
package/index.js CHANGED
@@ -957,6 +957,15 @@ var QUERIES = [
957
957
  return browserslist(browserslist.defaults)
958
958
  }
959
959
  },
960
+ {
961
+ regexp: /^android all$/i,
962
+ select: function () {
963
+ /* istanbul ignore next */
964
+ console.warn('BrowserslistError: Unknown browser query `android all`')
965
+ /* istanbul ignore next */
966
+ return []
967
+ }
968
+ },
960
969
  {
961
970
  regexp: /^dead$/i,
962
971
  select: function (context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browserslist",
3
- "version": "4.6.2",
3
+ "version": "4.6.3",
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,8 +11,8 @@
11
11
  "license": "MIT",
12
12
  "repository": "browserslist/browserslist",
13
13
  "dependencies": {
14
- "caniuse-lite": "^1.0.30000974",
15
- "electron-to-chromium": "^1.3.150",
14
+ "caniuse-lite": "^1.0.30000975",
15
+ "electron-to-chromium": "^1.3.164",
16
16
  "node-releases": "^1.1.23"
17
17
  },
18
18
  "bin": "./cli.js",