Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compat table script #11496

Merged
merged 4 commits into from Apr 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Electron 5 is Chrome 72 (while this plugin is needed for Chrome <=7).

"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"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what happens when you consider versions as if they were decimal numbers.

}
}
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
Copy link
Contributor

@JLHwung JLHwung Apr 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a bug of GitHub.

$ git show --pretty=fuller HEAD

commit 9e07df3875d8416af85cf523716519e9dd1e5e44 (HEAD -> gh-pages, upstream/gh-pages, upstream/HEAD)
Author:     Nicolò Ribaudo <***>
AuthorDate: Fri Apr 17 15:06:37 2020 +0200
Commit:     Jordan Harband <***>
CommitDate: Fri Apr 17 15:06:37 2020 +0200

The CommitDate should be the time when the PR is merged instead of when the PR is authored. Note that--shallow-since filters history by CommitDate so it should have been included in --shallow-since=2020-04-20 if the history is indeed chronological.

$ git rev-list HEAD --since=2020-04-20
(empty)

$ git rev-list HEAD~ --since=2020-04-20

0243431898be45cf53aed6c5b7332265cf7e69a8
6e9e589e966ec4b69ea35c63d55cf7d800ee94b6
989fad76f621c260f304d75c07c386c4a1857072
20a151274a2584175a9841e19bbd3098315c8868
df1466b4ddae4c1c9d8b385332a800eeb7f28049
58fca823e2dbb0c94774cc5f9a970c165deffeff

cd build/compat-table && git checkout -qf $COMPAT_TABLE_COMMIT