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 #12850

Merged
merged 5 commits into from Feb 23, 2021
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
4 changes: 4 additions & 0 deletions packages/babel-compat-data/data/plugins.json
Expand Up @@ -3,6 +3,7 @@
"chrome": "74",
"opera": "62",
"edge": "79",
"safari": "14.1",
"node": "12",
"samsung": "11",
"electron": "6.0"
Expand All @@ -27,9 +28,11 @@
},
"proposal-logical-assignment-operators": {
"chrome": "85",
"edge": "85",
"firefox": "79",
"safari": "14",
"node": "15",
"ios": "14",
"electron": "10.0"
},
"proposal-nullish-coalescing-operator": {
Expand Down Expand Up @@ -432,6 +435,7 @@
"and_chr": "72",
"edge": "79",
"firefox": "80",
"and_ff": "80",
"node": "13.2",
"opera": "60",
"op_mob": "51",
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-compat-data/package.json
Expand Up @@ -29,9 +29,9 @@
"compat-data"
],
"devDependencies": {
"@mdn/browser-compat-data": "^3.1.1",
"core-js-compat": "^3.9.0",
"electron-to-chromium": "1.3.583",
"lodash": "^4.17.19",
"mdn-browser-compat-data": "1.0.38"
"electron-to-chromium": "1.3.672",
"lodash": "^4.17.19"
}
}
4 changes: 2 additions & 2 deletions packages/babel-compat-data/scripts/build-data.js
@@ -1,7 +1,7 @@
"use strict";

const path = require("path");
const compatData = require("mdn-browser-compat-data").javascript;
const compatData = require("@mdn/browser-compat-data").javascript;
const { process } = require("./build-modules-support");
const { generateData, environments, writeFile } = require("./utils-build-data");

Expand All @@ -11,7 +11,7 @@ for (const target of ["plugin", "corejs2-built-in"]) {
require(`./data/${target}-features`)
);
if (target === "plugin") {
// add export-namespace-from from mdn-browser-compat-data
// add export-namespace-from from @mdn/browser-compat-data
const exportNamespaceFromCompatData = process(
compatData.statements.export.namespace
);
Expand Down
8 changes: 6 additions & 2 deletions packages/babel-compat-data/scripts/build-modules-support.js
@@ -1,7 +1,7 @@
const path = require("path");
const fs = require("fs");

const compatData = require("mdn-browser-compat-data").javascript;
const compatData = require("@mdn/browser-compat-data").javascript;
const { addElectronSupportFromChromium } = require("./chromium-to-electron");

// Map mdn-browser-compat-data to browserslist browser names
Expand Down Expand Up @@ -41,7 +41,11 @@ function process(source) {
if (Array.isArray(browserSupport)) {
browserSupport = browserSupport[0]; // The first item is the most progressive support
}
if (browserSupport.version_added && !browserSupport.flags) {
if (
browserSupport.version_added &&
!browserSupport.flags &&
!browserSupport.partial_implementation
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is used to rule out Safari 14 on class properties transform. It is an no-op in this PR.

https://github.com/mdn/browser-compat-data/blob/178137547bc29a79b712cec221af099329b1f4a0/javascript/classes.json#L590

) {
allowedBrowsers[browserName] = browserVersion(
browser,
browserSupport.version_added
Expand Down
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

COMPAT_TABLE_COMMIT=74122d2dc54b7d655e8e7c621dee7030b857052c
COMPAT_TABLE_COMMIT=ec317e988ed0011cc5d24364e0f4f3a2e86d1f7f
GIT_HEAD=build/compat-table/.git/HEAD

if [ -d "build/compat-table" ]; then
Expand Down
@@ -1,3 +1,4 @@
import "core-js/modules/es6.array.concat.js";
import "core-js/modules/es6.array.copy-within.js";
import "core-js/modules/es6.array.every.js";
import "core-js/modules/es6.array.fill.js";
Expand All @@ -16,9 +17,11 @@ import "core-js/modules/es6.array.map.js";
import "core-js/modules/es6.array.of.js";
import "core-js/modules/es6.array.reduce.js";
import "core-js/modules/es6.array.reduce-right.js";
import "core-js/modules/es6.array.slice.js";
import "core-js/modules/es6.array.some.js";
import "core-js/modules/es6.array.sort.js";
import "core-js/modules/es6.array.species.js";
import "core-js/modules/es6.array.splice.js";
import "core-js/modules/es6.date.now.js";
import "core-js/modules/es6.date.to-iso-string.js";
import "core-js/modules/es6.date.to-json.js";
Expand Down
@@ -1,8 +1,13 @@
import "core-js/modules/es6.array.concat.js";
import "core-js/modules/es6.array.filter.js";
import "core-js/modules/es7.array.flat-map.js";
import "core-js/modules/es6.array.from.js";
import "core-js/modules/es6.array.iterator.js";
import "core-js/modules/es6.array.map.js";
import "core-js/modules/es6.array.slice.js";
import "core-js/modules/es6.array.sort.js";
import "core-js/modules/es6.array.species.js";
import "core-js/modules/es6.array.splice.js";
import "core-js/modules/es6.function.has-instance.js";
import "core-js/modules/es6.map.js";
import "core-js/modules/es6.object.assign.js";
Expand Down
@@ -1,8 +1,13 @@
import "core-js/modules/es6.array.concat.js";
import "core-js/modules/es6.array.filter.js";
import "core-js/modules/es7.array.flat-map.js";
import "core-js/modules/es6.array.from.js";
import "core-js/modules/es6.array.iterator.js";
import "core-js/modules/es6.array.map.js";
import "core-js/modules/es6.array.slice.js";
import "core-js/modules/es6.array.sort.js";
import "core-js/modules/es6.array.species.js";
import "core-js/modules/es6.array.splice.js";
import "core-js/modules/es6.function.has-instance.js";
import "core-js/modules/es6.map.js";
import "core-js/modules/es7.object.define-getter.js";
Expand Down
@@ -1,13 +1,18 @@
import "core-js/modules/es6.array.concat.js";
Copy link
Contributor

Choose a reason for hiding this comment

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

In corejs2, there is not a modules/es6.array.concat.js. Is this a bug?
https://github.com/zloirock/core-js/tree/v2/modules

import "core-js/modules/es6.array.copy-within.js";
import "core-js/modules/es6.array.fill.js";
import "core-js/modules/es6.array.filter.js";
import "core-js/modules/es6.array.find.js";
import "core-js/modules/es6.array.find-index.js";
import "core-js/modules/es7.array.flat-map.js";
import "core-js/modules/es6.array.from.js";
import "core-js/modules/es7.array.includes.js";
import "core-js/modules/es6.array.iterator.js";
import "core-js/modules/es6.array.map.js";
import "core-js/modules/es6.array.of.js";
import "core-js/modules/es6.array.slice.js";
import "core-js/modules/es6.array.species.js";
import "core-js/modules/es6.array.splice.js";
import "core-js/modules/es6.date.to-primitive.js";
import "core-js/modules/es6.function.has-instance.js";
import "core-js/modules/es6.function.name.js";
Expand Down
@@ -1,13 +1,18 @@
import "core-js/modules/es6.array.concat.js";
import "core-js/modules/es6.array.copy-within.js";
import "core-js/modules/es6.array.fill.js";
import "core-js/modules/es6.array.filter.js";
import "core-js/modules/es6.array.find.js";
import "core-js/modules/es6.array.find-index.js";
import "core-js/modules/es7.array.flat-map.js";
import "core-js/modules/es6.array.from.js";
import "core-js/modules/es7.array.includes.js";
import "core-js/modules/es6.array.iterator.js";
import "core-js/modules/es6.array.map.js";
import "core-js/modules/es6.array.of.js";
import "core-js/modules/es6.array.slice.js";
import "core-js/modules/es6.array.species.js";
import "core-js/modules/es6.array.splice.js";
import "core-js/modules/es6.date.to-primitive.js";
import "core-js/modules/es6.date.to-string.js";
import "core-js/modules/es6.function.has-instance.js";
Expand Down
@@ -1,3 +1,5 @@
require("core-js/modules/es6.array.concat.js");

require("core-js/modules/es6.array.copy-within.js");

require("core-js/modules/es6.array.every.js");
Expand Down Expand Up @@ -34,12 +36,16 @@ require("core-js/modules/es6.array.reduce.js");

require("core-js/modules/es6.array.reduce-right.js");

require("core-js/modules/es6.array.slice.js");

require("core-js/modules/es6.array.some.js");

require("core-js/modules/es6.array.sort.js");

require("core-js/modules/es6.array.species.js");

require("core-js/modules/es6.array.splice.js");

require("core-js/modules/es6.date.now.js");

require("core-js/modules/es6.date.to-iso-string.js");
Expand Down
@@ -1,3 +1,4 @@
import "core-js/modules/es6.array.concat.js";
import "core-js/modules/es6.array.copy-within.js";
import "core-js/modules/es6.array.every.js";
import "core-js/modules/es6.array.fill.js";
Expand All @@ -16,9 +17,11 @@ import "core-js/modules/es6.array.map.js";
import "core-js/modules/es6.array.of.js";
import "core-js/modules/es6.array.reduce.js";
import "core-js/modules/es6.array.reduce-right.js";
import "core-js/modules/es6.array.slice.js";
import "core-js/modules/es6.array.some.js";
import "core-js/modules/es6.array.sort.js";
import "core-js/modules/es6.array.species.js";
import "core-js/modules/es6.array.splice.js";
import "core-js/modules/es6.date.now.js";
import "core-js/modules/es6.date.to-iso-string.js";
import "core-js/modules/es6.date.to-json.js";
Expand Down
Expand Up @@ -16,7 +16,7 @@ Using modules transform: auto

Using plugins:
proposal-numeric-separator { "ios":"12.2" }
proposal-logical-assignment-operators { "chrome":"84", "edge":"85", "firefox":"78", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-logical-assignment-operators { "chrome":"84", "firefox":"78", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-nullish-coalescing-operator { "ios":"12.2", "samsung":"11.1" }
proposal-optional-chaining { "ios":"12.2", "samsung":"11.1" }
syntax-json-strings { "android":"85", "chrome":"84", "edge":"85", "firefox":"78", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }
Expand Down
Expand Up @@ -17,7 +17,7 @@ Using modules transform: auto

Using plugins:
proposal-numeric-separator { "ie":"11", "ios":"12.2" }
proposal-logical-assignment-operators { "chrome":"84", "edge":"85", "firefox":"78", "ie":"11", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-logical-assignment-operators { "chrome":"84", "firefox":"78", "ie":"11", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-nullish-coalescing-operator { "ie":"11", "ios":"12.2", "samsung":"11.1" }
proposal-optional-chaining { "ie":"11", "ios":"12.2", "samsung":"11.1" }
proposal-json-strings { "ie":"11" }
Expand Down
Expand Up @@ -16,7 +16,7 @@ Using modules transform: auto

Using plugins:
syntax-numeric-separator { "android":"85", "chrome":"85", "edge":"85", "firefox":"81", "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-logical-assignment-operators { "edge":"85", "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-logical-assignment-operators { "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-nullish-coalescing-operator { "samsung":"11.1" }
proposal-optional-chaining { "samsung":"11.1" }
syntax-json-strings { "android":"85", "chrome":"85", "edge":"85", "firefox":"81", "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }
Expand Down
Expand Up @@ -56,17 +56,22 @@ Using polyfills with `entry-global` method:

[<CWD>/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-android/input.mjs]
The corejs2 polyfill entry has been replaced with the following polyfills:
es6.array.concat { "android":"4" }
es6.array.copy-within { "android":"4" }
es6.array.fill { "android":"4" }
es6.array.filter { "android":"4" }
es6.array.find { "android":"4" }
es6.array.find-index { "android":"4" }
es7.array.flat-map { "android":"4" }
es6.array.from { "android":"4" }
es7.array.includes { "android":"4" }
es6.array.iterator { "android":"4" }
es6.array.map { "android":"4" }
es6.array.of { "android":"4" }
es6.array.slice { "android":"4" }
es6.array.sort { "android":"4" }
es6.array.species { "android":"4" }
es6.array.splice { "android":"4" }
es6.date.to-primitive { "android":"4" }
es6.function.has-instance { "android":"4" }
es6.map { "android":"4" }
Expand Down
Expand Up @@ -42,11 +42,16 @@ Using polyfills with `entry-global` method:

[<CWD>/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-electron/input.mjs]
The corejs2 polyfill entry has been replaced with the following polyfills:
es6.array.concat { "electron":"0.36" }
es6.array.filter { "electron":"0.36" }
es7.array.flat-map { "electron":"0.36" }
es6.array.from { "electron":"0.36" }
es6.array.iterator { "electron":"0.36" }
es6.array.map { "electron":"0.36" }
es6.array.slice { "electron":"0.36" }
es6.array.sort { "electron":"0.36" }
es6.array.species { "electron":"0.36" }
es6.array.splice { "electron":"0.36" }
es6.function.has-instance { "electron":"0.36" }
es6.map { "electron":"0.36" }
es6.object.assign { "electron":"0.36" }
Expand Down
Expand Up @@ -58,6 +58,7 @@ Using polyfills with `entry-global` method:

[<CWD>/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-proposals/input.mjs]
The corejs2 polyfill entry has been replaced with the following polyfills:
es6.array.concat { "ie":"6" }
es6.array.copy-within { "ie":"6" }
es6.array.every { "ie":"6" }
es6.array.fill { "ie":"6" }
Expand All @@ -76,9 +77,11 @@ The corejs2 polyfill entry has been replaced with the following polyfills:
es6.array.of { "ie":"6" }
es6.array.reduce { "ie":"6" }
es6.array.reduce-right { "ie":"6" }
es6.array.slice { "ie":"6" }
es6.array.some { "ie":"6" }
es6.array.sort { "ie":"6" }
es6.array.species { "ie":"6" }
es6.array.splice { "ie":"6" }
es6.date.now { "ie":"6" }
es6.date.to-iso-string { "ie":"6" }
es6.date.to-json { "ie":"6" }
Expand Down
Expand Up @@ -60,6 +60,7 @@ Using polyfills with `entry-global` method:

[<CWD>/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-shippedProposals/input.mjs]
The corejs2 polyfill entry has been replaced with the following polyfills:
es6.array.concat { "ie":"6" }
es6.array.copy-within { "ie":"6" }
es6.array.every { "ie":"6" }
es6.array.fill { "ie":"6" }
Expand All @@ -78,9 +79,11 @@ The corejs2 polyfill entry has been replaced with the following polyfills:
es6.array.of { "ie":"6" }
es6.array.reduce { "ie":"6" }
es6.array.reduce-right { "ie":"6" }
es6.array.slice { "ie":"6" }
es6.array.some { "ie":"6" }
es6.array.sort { "ie":"6" }
es6.array.species { "ie":"6" }
es6.array.splice { "ie":"6" }
es6.date.now { "ie":"6" }
es6.date.to-iso-string { "ie":"6" }
es6.date.to-json { "ie":"6" }
Expand Down
Expand Up @@ -65,17 +65,22 @@ Using polyfills with `entry-global` method:

[<CWD>/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-specific-targets/input.mjs]
The corejs2 polyfill entry has been replaced with the following polyfills:
es6.array.concat { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.copy-within { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.fill { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.filter { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.find { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.find-index { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es7.array.flat-map { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.from { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es7.array.includes { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.iterator { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.map { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.of { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.slice { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.sort { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.species { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.splice { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.date.to-json { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.date.to-primitive { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.function.has-instance { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
Expand Down
Expand Up @@ -61,17 +61,22 @@ Using polyfills with `entry-global` method:

[<CWD>/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-versions-decimals/input.mjs]
The corejs2 polyfill entry has been replaced with the following polyfills:
es6.array.concat { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.copy-within { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.fill { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.filter { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.find { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.find-index { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es7.array.flat-map { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.from { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es7.array.includes { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.iterator { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.map { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.of { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.slice { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.sort { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.species { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.array.splice { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.date.to-primitive { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.function.has-instance { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es6.function.name { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
Expand Down
Expand Up @@ -59,17 +59,22 @@ Using polyfills with `entry-global` method:

[<CWD>/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-versions-strings/input.mjs]
The corejs2 polyfill entry has been replaced with the following polyfills:
es6.array.concat { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.copy-within { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.fill { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.filter { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.find { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.find-index { "chrome":"54", "ie":"10", "node":"6.10" }
es7.array.flat-map { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.from { "chrome":"54", "ie":"10", "node":"6.10" }
es7.array.includes { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.iterator { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.map { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.of { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.slice { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.sort { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.species { "chrome":"54", "ie":"10", "node":"6.10" }
es6.array.splice { "chrome":"54", "ie":"10", "node":"6.10" }
es6.date.to-primitive { "chrome":"54", "ie":"10", "node":"6.10" }
es6.function.has-instance { "chrome":"54", "ie":"10", "node":"6.10" }
es6.function.name { "chrome":"54", "ie":"10", "node":"6.10" }
Expand Down