Repository: mapbox/batfish
Pull request #346 (2021-01-22 17:45:27)

Update caniuse
According to https://github.com/browserslist/browserslist#browsers-data-updating, we should update caniuse-lite regularly. We recently did this in dr-ui@3.0.0 and I think we should do it here, too. Especially since the list is very out of date.

This PR:

- Updates caniuse.
- Updates the default list for `devBrowserslist`.

Target browser changes:

```
Latest version:     1.0.30001197
Installed version:  1.0.30001066
```

```diff
- and_chr 81
+ and_chr 88
- and_ff 68
+ and_ff 86
- chrome 81
- chrome 80
+ chrome 89
+ chrome 88
+ chrome 87
- edge 81
- edge 80
- edge 18
+ edge 89
+ edge 88
- firefox 76
- firefox 75
- firefox 74
+ firefox 86
+ firefox 85
- ios_saf 13.4
- ios_saf 13.3
- ios_saf 12.2-12.4
+ ios_saf 14.0-14.4
+ ios_saf 13.4-13.7
- op_mob 46
+ op_mob 62
- opera 68
- opera 67
+ opera 73
+ opera 72
- safari 13
+ safari 14
- samsung 11.1
- samsung 10.1
+ samsung 13.0
+ samsung 12.0
```


Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5bc998f..2af2dc0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,10 @@
 # Changelog
 
+## Main
+
+- Update caniuse-lite. 
+- Update `devBrowserslist` default list: `['Edge >= 88', 'Firefox >= 85', 'Chrome >= 88', 'Safari >= 14', 'iOS >= 14.4']`.
+
 ## 2.1.0
 
 - Update dependencies with security updates.
diff --git a/docs/configuration.md b/docs/configuration.md
index c928f22..83918a6 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -135,7 +135,7 @@ During development (`batfish start`), this will be overridden by [`devBrowsersli
 ### devBrowserslist
 
 Type: `Array<string> | false`.
-Default: `['Edge >= 14', 'Firefox >= 52', 'Chrome >= 58', 'Safari >= 10', 'iOS >= 10.2'`].
+Default: `['Edge >= 88', 'Firefox >= 85', 'Chrome >= 88', 'Safari >= 14', 'iOS >= 14.4']`.
 
 A [Browserslist](https://github.com/ai/browserslist) value to specify which browsers you need to support *with the development build* (`batfish start`).
 If this value is `false`, [`browserslist`] will be used for both production and development builds.
diff --git a/package-lock.json b/package-lock.json
index fd94a45..d25cc89 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
 {
   "name": "@mapbox/batfish",
-  "version": "2.1.0",
+  "version": "2.1.0-browsers.0",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {
@@ -3360,9 +3360,9 @@
       }
     },
     "caniuse-lite": {
-      "version": "1.0.30001066",
-      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001066.tgz",
-      "integrity": "sha512-Gfj/WAastBtfxLws0RCh2sDbTK/8rJuSeZMecrSkNGYxPcv7EzblmDGfWQCFEQcSqYE2BRgQiJh8HOD07N5hIw=="
+      "version": "1.0.30001197",
+      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001197.tgz",
+      "integrity": "sha512-8aE+sqBqtXz4G8g35Eg/XEaFr2N7rd/VQ6eABGBmNtcB8cN6qNJhMi6oSFy4UWWZgqgL3filHT8Nha4meu3tsw=="
     },
     "capture-exit": {
       "version": "2.0.0",
diff --git a/package.json b/package.json
index e06006b..4670fc6 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@mapbox/batfish",
-  "version": "2.1.0",
+  "version": "2.1.0-browsers.0",
   "description": "The React-powered static-site generator you didn't know you wanted",
   "main": "dist/node/index.js",
   "bin": {
diff --git a/src/node/validate-config.js b/src/node/validate-config.js
index 720d61e..dc5b4a5 100644
--- a/src/node/validate-config.js
+++ b/src/node/validate-config.js
@@ -248,11 +248,11 @@ function validateConfig(
     browserslist: ['> 5%', 'last 2 versions'],
     devBrowserslist: [
       // Recent browsers supporting a lot of ES2015.
-      'Edge >= 14',
-      'Firefox >= 52',
-      'Chrome >= 58',
-      'Safari >= 10',
-      'iOS >= 10.2'
+      'Edge >= 88',
+      'Firefox >= 85',
+      'Chrome >= 88',
+      'Safari >= 14',
+      'iOS >= 14.4'
     ],
     fileLoaderExtensions: [
       'jpeg',


Test patch:
diff --git a/test/__snapshots__/validate-config.test.js.snap b/test/__snapshots__/validate-config.test.js.snap
index 9ae4fcf..c436945 100644
--- a/test/__snapshots__/validate-config.test.js.snap
+++ b/test/__snapshots__/validate-config.test.js.snap
@@ -13,11 +13,11 @@ Object {
   ],
   "clearOutputDirectory": true,
   "devBrowserslist": Array [
-    "Edge >= 14",
-    "Firefox >= 52",
-    "Chrome >= 58",
-    "Safari >= 10",
-    "iOS >= 10.2",
+    "Edge >= 88",
+    "Firefox >= 85",
+    "Chrome >= 88",
+    "Safari >= 14",
+    "iOS >= 14.4",
   ],
   "developmentDevtool": "source-map",
   "fileLoaderExtensions": Array [