browserslist 4.28.2 → 4.28.4

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 CHANGED
@@ -59,6 +59,3 @@ You can check how config works at our playground: [`browsersl.ist`](https://brow
59
59
  [Autoprefixer]: https://github.com/postcss/autoprefixer
60
60
  [Can I Use]: https://caniuse.com/
61
61
  [Babel]: https://github.com/babel/babel/tree/master/packages/babel-preset-env
62
-
63
- ## Docs
64
- Read full docs **[here](https://github.com/browserslist/browserslist#readme)**.
package/index.js CHANGED
@@ -829,7 +829,8 @@ var QUERIES = {
829
829
  var baselineVersions
830
830
  var includeDownstream = !!node.downstream
831
831
  var includeKaiOS = !!node.kaios
832
- if (node.availability === 'newly' && node.date) {
832
+ var availability = node.availability && node.availability.toLowerCase()
833
+ if (availability === 'newly' && node.date) {
833
834
  throw new BrowserslistError(
834
835
  'Using newly available with a date is not supported, please use "widely available on YYYY-MM-DD" and add 30 months to the date you specified.'
835
836
  )
@@ -848,7 +849,7 @@ var QUERIES = {
848
849
  includeKaiOS: includeKaiOS,
849
850
  suppressWarnings: true
850
851
  })
851
- } else if (node.availability === 'newly') {
852
+ } else if (availability === 'newly') {
852
853
  var future30months = new Date().setMonth(new Date().getMonth() + 30)
853
854
  baselineVersions = bbm.getCompatibleVersions({
854
855
  widelyAvailableOnDate: future30months,
package/node.js CHANGED
@@ -337,7 +337,7 @@ module.exports = {
337
337
  }
338
338
  var usageData = region(compressed)
339
339
  normalizeUsageData(usageData, data)
340
- usage[country] = {}
340
+ usage[country] = Object.create(null)
341
341
  for (var i in usageData) {
342
342
  for (var j in usageData[i]) {
343
343
  usage[country][i + ' ' + j] = usageData[i][j]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browserslist",
3
- "version": "4.28.2",
3
+ "version": "4.28.4",
4
4
  "description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
5
5
  "keywords": [
6
6
  "browsers",
@@ -33,10 +33,10 @@
33
33
  },
34
34
  "types": "./index.d.ts",
35
35
  "dependencies": {
36
- "baseline-browser-mapping": "^2.10.12",
37
- "caniuse-lite": "^1.0.30001782",
38
- "electron-to-chromium": "^1.5.328",
39
- "node-releases": "^2.0.36",
36
+ "baseline-browser-mapping": "^2.10.38",
37
+ "caniuse-lite": "^1.0.30001799",
38
+ "electron-to-chromium": "^1.5.376",
39
+ "node-releases": "^2.0.48",
40
40
  "update-browserslist-db": "^1.2.3"
41
41
  },
42
42
  "engines": {