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

Conversation

nicolo-ribaudo
Copy link
Member

Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Ref - compat-table/compat-table#1605

The changes in the electron versions are because different electron versions are mapped to a single chrome version. For example, Chrome 66 -> [Electron 3, Electron 3.1]. The old script used the highest electron version, but we should use the lowest one.

@nicolo-ribaudo nicolo-ribaudo added PR: Internal 🏠 A type of pull request used for our changelog categories area: compat-table pkg: compat-data labels Apr 28, 2020
@@ -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).

@@ -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.

@babel-bot
Copy link
Collaborator

babel-bot commented Apr 28, 2020

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/21529/

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 28, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 88c8f5d:

Sandbox Source
reverent-montalcini-5uu1h Configuration

@nicolo-ribaudo
Copy link
Member Author

git clone for compat-table is hanging on Travis 🤔

@@ -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

@JLHwung JLHwung merged commit 7c80ed9 into babel:master Apr 28, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the update-compat-table-script branch April 28, 2020 20:43
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jul 29, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: compat-table outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: compat-data PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants