Skip to content

Commit

Permalink
Update compat table script (#11496)
Browse files Browse the repository at this point in the history
* Update compat-data build script

* Update generated data

* Update fixtures

* Use older --shallow-since (the last commit has 04-17 as the date)
  • Loading branch information
nicolo-ribaudo committed Apr 28, 2020
1 parent fa98a0a commit 7c80ed9
Show file tree
Hide file tree
Showing 11 changed files with 217 additions and 459 deletions.
220 changes: 110 additions & 110 deletions packages/babel-compat-data/data/corejs2-built-ins.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions packages/babel-compat-data/data/plugin-bugfixes.json
Expand Up @@ -30,7 +30,7 @@
"node": "6",
"ios": "10",
"samsung": "5",
"electron": "1"
"electron": "0.37"
},
"bugfix/transform-edge-default-parameters": {
"chrome": "49",
Expand All @@ -41,7 +41,7 @@
"node": "6",
"ios": "10",
"samsung": "5",
"electron": "1"
"electron": "0.37"
},
"transform-function-name": {
"chrome": "51",
Expand Down Expand Up @@ -74,7 +74,7 @@
"node": "6",
"ios": "10",
"samsung": "5",
"electron": "1"
"electron": "0.37"
},
"bugfix/transform-safari-block-shadowing": {
"chrome": "49",
Expand All @@ -86,7 +86,7 @@
"ie": "11",
"ios": "11",
"samsung": "5",
"electron": "1"
"electron": "0.37"
},
"bugfix/transform-safari-for-shadowing": {
"chrome": "49",
Expand All @@ -98,7 +98,7 @@
"ie": "11",
"ios": "11",
"samsung": "5",
"electron": "1"
"electron": "0.37"
},
"transform-template-literals": {
"chrome": "41",
Expand All @@ -109,7 +109,7 @@
"node": "4",
"ios": "9",
"samsung": "3.4",
"electron": "0.24"
"electron": "0.22"
},
"bugfix/transform-tagged-template-caching": {
"chrome": "41",
Expand All @@ -120,6 +120,6 @@
"node": "4",
"ios": "13",
"samsung": "3.4",
"electron": "0.24"
"electron": "0.22"
}
}
43 changes: 22 additions & 21 deletions packages/babel-compat-data/data/plugins.json
Expand Up @@ -7,7 +7,8 @@
"safari": "13",
"node": "12.5",
"ios": "13",
"electron": "6.1"
"samsung": "11",
"electron": "6"
},
"proposal-nullish-coalescing-operator": {
"chrome": "80",
Expand Down Expand Up @@ -36,7 +37,7 @@
"node": "10",
"ios": "12",
"samsung": "9",
"electron": "3.1"
"electron": "3"
},
"proposal-optional-catch-binding": {
"chrome": "66",
Expand All @@ -47,7 +48,7 @@
"node": "10",
"ios": "11.3",
"samsung": "9",
"electron": "3.1"
"electron": "3"
},
"transform-parameters": {
"chrome": "49",
Expand All @@ -58,7 +59,7 @@
"node": "6",
"ios": "10",
"samsung": "5",
"electron": "1"
"electron": "0.37"
},
"proposal-async-generator-functions": {
"chrome": "63",
Expand All @@ -69,7 +70,7 @@
"node": "10",
"ios": "12",
"samsung": "8",
"electron": "3.1"
"electron": "3"
},
"proposal-object-rest-spread": {
"chrome": "60",
Expand All @@ -80,7 +81,7 @@
"node": "8.3",
"ios": "11.3",
"samsung": "8",
"electron": "2.1"
"electron": "2"
},
"transform-dotall-regex": {
"chrome": "62",
Expand All @@ -90,7 +91,7 @@
"node": "8.10",
"ios": "11.3",
"samsung": "8",
"electron": "3.1"
"electron": "3"
},
"proposal-unicode-property-regex": {
"chrome": "64",
Expand All @@ -100,7 +101,7 @@
"node": "10",
"ios": "11.3",
"samsung": "9",
"electron": "3.1"
"electron": "3"
},
"transform-named-capturing-groups-regex": {
"chrome": "64",
Expand All @@ -110,7 +111,7 @@
"node": "10",
"ios": "11.3",
"samsung": "9",
"electron": "3.1"
"electron": "3"
},
"transform-async-to-generator": {
"chrome": "55",
Expand Down Expand Up @@ -143,7 +144,7 @@
"node": "4",
"ios": "13",
"samsung": "3.4",
"electron": "0.24"
"electron": "0.22"
},
"transform-literals": {
"chrome": "44",
Expand All @@ -154,7 +155,7 @@
"node": "4",
"ios": "9",
"samsung": "4",
"electron": "0.31"
"electron": "0.30"
},
"transform-function-name": {
"chrome": "51",
Expand Down Expand Up @@ -188,7 +189,7 @@
"ie": "11",
"ios": "10",
"samsung": "3.4",
"electron": "0.24"
"electron": "0.22"
},
"transform-classes": {
"chrome": "46",
Expand Down Expand Up @@ -221,7 +222,7 @@
"node": "4",
"ios": "9",
"samsung": "4",
"electron": "0.29"
"electron": "0.28"
},
"transform-duplicate-keys": {
"chrome": "42",
Expand All @@ -232,7 +233,7 @@
"node": "4",
"ios": "9",
"samsung": "3.4",
"electron": "0.27"
"electron": "0.25"
},
"transform-computed-properties": {
"chrome": "44",
Expand All @@ -243,7 +244,7 @@
"node": "4",
"ios": "8",
"samsung": "4",
"electron": "0.31"
"electron": "0.30"
},
"transform-for-of": {
"chrome": "51",
Expand All @@ -265,7 +266,7 @@
"node": "6",
"ios": "10",
"samsung": "5",
"electron": "1"
"electron": "0.37"
},
"transform-unicode-regex": {
"chrome": "50",
Expand Down Expand Up @@ -309,7 +310,7 @@
"node": "6",
"ios": "11",
"samsung": "5",
"electron": "1"
"electron": "0.37"
},
"transform-typeof-symbol": {
"chrome": "38",
Expand All @@ -320,7 +321,7 @@
"node": "0.12",
"ios": "9",
"samsung": "3",
"electron": "0.2"
"electron": "0.20"
},
"transform-new-target": {
"chrome": "46",
Expand Down Expand Up @@ -356,7 +357,7 @@
"ios": "6",
"phantom": "2",
"samsung": "1",
"electron": "5"
"electron": "0.20"
},
"transform-property-literals": {
"chrome": "7",
Expand All @@ -370,7 +371,7 @@
"ios": "6",
"phantom": "2",
"samsung": "1",
"electron": "5"
"electron": "0.20"
},
"transform-reserved-words": {
"chrome": "13",
Expand All @@ -384,6 +385,6 @@
"ios": "6",
"phantom": "2",
"samsung": "1",
"electron": "0.2"
"electron": "0.20"
}
}
5 changes: 0 additions & 5 deletions packages/babel-compat-data/scripts/build-bugfixes-targets.js
Expand Up @@ -7,7 +7,6 @@ const path = require("path");
const {
getLowestImplementedVersion,
environments,
addOperaAndElectron,
writeFile,
} = require("./utils-build-data");

Expand Down Expand Up @@ -60,10 +59,6 @@ for (const [replaced, features] of Object.entries(allReplacedFeatures)) {
}
}

for (const plugin of Object.values(generatedTargets)) {
addOperaAndElectron(plugin);
}

for (const [filename, data] of [
["plugin-bugfixes", generatedTargets],
["overlapping-plugins", overlappingPlugins],
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-compat-data/scripts/download-compat-table.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

COMPAT_TABLE_COMMIT=df1466b4ddae4c1c9d8b385332a800eeb7f28049
COMPAT_TABLE_COMMIT=9e07df3875d8416af85cf523716519e9dd1e5e44
GIT_HEAD=build/compat-table/.git/HEAD

if [ -d "build/compat-table" ]; then
Expand All @@ -16,5 +16,5 @@ fi

rm -rf build/compat-table
mkdir -p build
git clone --branch=gh-pages --single-branch --shallow-since=2020-04-20 https://github.com/kangax/compat-table.git build/compat-table
git clone --branch=gh-pages --single-branch --shallow-since=2020-04-01 https://github.com/kangax/compat-table.git build/compat-table
cd build/compat-table && git checkout -qf $COMPAT_TABLE_COMMIT

0 comments on commit 7c80ed9

Please sign in to comment.