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

refactor: replace caniuse-db by mdn-browser-compat-data #11838

Merged
merged 2 commits into from Jul 20, 2020

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Jul 14, 2020

Q                       A
Patch: Bug Fix? es6.modules compat-data should include node: 13.2.
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

In this PR I have replaced caniuse-db by mdn-browser-compat-data when building the modules support in @babel/compat-data. The rationale here is

  • caniuse states that the support data of es6-modules are from mdn/browser-compat-data
  • I have submitted a PR for export * as ns support, which enables us to include export-namespace-from in the preset-env.
  • The mdn-browser-compat-data is easier to process than caniuse-db (no more getLowestImplementedVersions)
  • caniuse does not have nodejs support data

@JLHwung JLHwung added the PR: Internal 🏠 A type of pull request used for our changelog categories label Jul 14, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 14, 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 842112b:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@babel-bot
Copy link
Collaborator

babel-bot commented Jul 14, 2020

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

@JLHwung JLHwung marked this pull request as draft July 14, 2020 21:52
@JLHwung JLHwung force-pushed the use-mdn-browser-compat-data branch from 8ed0873 to d15ce7d Compare July 17, 2020 19:29
@JLHwung JLHwung marked this pull request as ready for review July 17, 2020 19:30
};
fs.writeFileSync(dataPath, `${JSON.stringify(data, null, 2)}\n`);
exports.process = process;
Copy link
Member

Choose a reason for hiding this comment

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

What is this needed for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@existentialism existentialism self-assigned this Jul 20, 2020
@JLHwung JLHwung merged commit 48be93b into babel:main Jul 20, 2020
@JLHwung JLHwung deleted the use-mdn-browser-compat-data branch July 20, 2020 21:11
@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 Oct 20, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 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