browserslist 4.4.1 → 4.4.2

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.4.2
5
+ * Allow to have string in `package.json` (by @dmarkhas).
6
+
4
7
  ## 4.4.1
5
8
  * Allow to use `.` in scope name of shareable config (by Gustav Nikolaj).
6
9
 
package/README.md CHANGED
@@ -219,6 +219,7 @@ samsung 5
219
219
 
220
220
  Browserslist works with separated versions of browsers.
221
221
  You should avoid queries like `Firefox > 0`.
222
+ The list of the specified browsers acts as a white list which means other browsers are ignored.
222
223
 
223
224
  All queries are based on the [Can I Use] support table,
224
225
  e.g. `last 3 iOS versions` might select `8.4, 9.2, 9.3` (mixed major and minor),
package/node.js CHANGED
@@ -86,10 +86,9 @@ function parsePackage (file) {
86
86
  '`browserlist` key instead of `browserslist` in ' + file)
87
87
  }
88
88
  var list = config.browserslist
89
- if (Array.isArray(list)) {
89
+ if (Array.isArray(list) || typeof list === 'string') {
90
90
  list = { defaults: list }
91
91
  }
92
-
93
92
  for (var i in list) {
94
93
  check(list[i])
95
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browserslist",
3
- "version": "4.4.1",
3
+ "version": "4.4.2",
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.30000929",
15
- "electron-to-chromium": "^1.3.103",
16
- "node-releases": "^1.1.3"
14
+ "caniuse-lite": "^1.0.30000939",
15
+ "electron-to-chromium": "^1.3.113",
16
+ "node-releases": "^1.1.8"
17
17
  },
18
18
  "bin": "./cli.js",
19
19
  "browser": {