Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 27, 2020
1 parent d61b45b commit 85c8bcb
Show file tree
Hide file tree
Showing 14 changed files with 115 additions and 165 deletions.
98 changes: 49 additions & 49 deletions packages/babel-compat-data/data/corejs2-built-ins.json

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions packages/babel-compat-data/data/plugins.json
Expand Up @@ -7,6 +7,7 @@
},
"proposal-optional-chaining": {
"chrome": "80",
"firefox": "74",
"safari": "tp",
"opera": "67"
},
Expand Down Expand Up @@ -152,7 +153,7 @@
},
"transform-block-scoped-functions": {
"chrome": "41",
"edge": "79",
"edge": "12",
"firefox": "46",
"safari": "10",
"node": "4",
Expand Down Expand Up @@ -285,7 +286,7 @@
},
"transform-block-scoping": {
"chrome": "49",
"edge": "79",
"edge": "14",
"firefox": "51",
"safari": "11",
"node": "6",
Expand Down Expand Up @@ -330,7 +331,7 @@
"transform-member-expression-literals": {
"chrome": "7",
"opera": "12",
"edge": "79",
"edge": "12",
"firefox": "2",
"safari": "5.1",
"node": "0.10",
Expand All @@ -344,7 +345,7 @@
"transform-property-literals": {
"chrome": "7",
"opera": "12",
"edge": "79",
"edge": "12",
"firefox": "2",
"safari": "5.1",
"node": "0.10",
Expand All @@ -358,7 +359,7 @@
"transform-reserved-words": {
"chrome": "13",
"opera": "10.50",
"edge": "79",
"edge": "12",
"firefox": "2",
"safari": "3.1",
"node": "0.10",
Expand Down
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

COMPAT_TABLE_COMMIT=43ac2a8da591285472a4fe16d61c95da1f28032c
COMPAT_TABLE_COMMIT=4e9369a699b0e15ba5c21586ce3bdd34299db9c1
rm -rf build/compat-table
mkdir -p build
git clone --branch=gh-pages --single-branch --shallow-since=2019-11-14 https://github.com/kangax/compat-table.git build/compat-table
Expand Down
Expand Up @@ -7,38 +7,34 @@ function _foo() {
/*#__PURE__*/
regeneratorRuntime.mark(function _callee2() {
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
while (1) switch (_context2.prev = _context2.next) {
case 0:
/*#__PURE__*/
(function () {
var _ref = babelHelpers.asyncToGenerator(
/*#__PURE__*/
(function () {
var _ref = babelHelpers.asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee(number) {
var tmp;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
tmp = number;
regeneratorRuntime.mark(function _callee(number) {
var tmp;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
tmp = number;

case 1:
case "end":
return _context.stop();
}
}
}, _callee);
}));
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));

return function (_x) {
return _ref.apply(this, arguments);
};
})();
return function (_x) {
return _ref.apply(this, arguments);
};
})();

case 1:
case "end":
return _context2.stop();
}
case 1:
case "end":
return _context2.stop();
}
}, _callee2);
}));
Expand Down
@@ -1,3 +1,2 @@
import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.map";
var a = new Map();
Expand Up @@ -27,17 +27,12 @@ Using plugins:
transform-async-to-generator { "ios":"10.3", "safari":"10.1" }
transform-template-literals { "ios":"10.3", "safari":"10.1" }
transform-function-name { "edge":"16" }
transform-block-scoped-functions { "edge":"16" }
transform-unicode-regex { "ios":"10.3", "safari":"10.1" }
transform-parameters { "edge":"16" }
transform-block-scoping { "edge":"16", "ios":"10.3", "safari":"10.1" }
transform-member-expression-literals { "edge":"16" }
transform-property-literals { "edge":"16" }
transform-reserved-words { "edge":"16" }
transform-block-scoping { "ios":"10.3", "safari":"10.1" }
syntax-dynamic-import { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" }

Using polyfills with `usage` option:

[<CWD>/packages/babel-preset-env/test/fixtures/corejs2/usage-browserslist-config-ignore/input.mjs] Added following core-js polyfills:
es6.map { "edge":"16" }
[<CWD>/packages/babel-preset-env/test/fixtures/corejs2/usage-browserslist-config-ignore/input.mjs] Added following core-js polyfill:
web.dom.iterable { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" }
@@ -1,2 +1 @@
import "core-js/modules/es6.typed.int8-array";
new Int8Array(1);
Expand Up @@ -27,13 +27,9 @@ Using plugins:
transform-async-to-generator { "ios":"10.3", "safari":"10.1" }
transform-template-literals { "ios":"10.3", "safari":"10.1" }
transform-function-name { "edge":"16" }
transform-block-scoped-functions { "edge":"16" }
transform-unicode-regex { "ios":"10.3", "safari":"10.1" }
transform-parameters { "edge":"16" }
transform-block-scoping { "edge":"16", "ios":"10.3", "safari":"10.1" }
transform-member-expression-literals { "edge":"16" }
transform-property-literals { "edge":"16" }
transform-reserved-words { "edge":"16" }
transform-block-scoping { "ios":"10.3", "safari":"10.1" }
syntax-dynamic-import { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" }

Using polyfills with `usage` option:
Expand Down
Expand Up @@ -30,7 +30,7 @@ Using plugins:
transform-literals { "safari":"5.1" }
transform-function-name { "chrome":"49", "edge":"17", "safari":"5.1" }
transform-arrow-functions { "safari":"5.1" }
transform-block-scoped-functions { "edge":"17", "safari":"5.1" }
transform-block-scoped-functions { "safari":"5.1" }
transform-classes { "safari":"5.1" }
transform-object-super { "safari":"5.1" }
transform-shorthand-properties { "safari":"5.1" }
Expand All @@ -42,13 +42,10 @@ Using plugins:
transform-spread { "safari":"5.1" }
transform-parameters { "edge":"17", "safari":"5.1" }
transform-destructuring { "chrome":"49", "safari":"5.1" }
transform-block-scoping { "edge":"17", "safari":"5.1" }
transform-block-scoping { "safari":"5.1" }
transform-typeof-symbol { "safari":"5.1" }
transform-new-target { "safari":"5.1" }
transform-regenerator { "chrome":"49", "safari":"5.1" }
transform-member-expression-literals { "edge":"17" }
transform-property-literals { "edge":"17" }
transform-reserved-words { "edge":"17" }
transform-modules-commonjs { "android":"78", "chrome":"49", "edge":"17", "firefox":"68", "ios":"12.2", "opera":"63", "safari":"5.1", "samsung":"9.2" }
proposal-dynamic-import { "android":"78", "chrome":"49", "edge":"17", "firefox":"68", "ios":"12.2", "opera":"63", "safari":"5.1", "samsung":"9.2" }

Expand Down
Expand Up @@ -31,7 +31,7 @@ Using plugins:
transform-literals { "ie":"11", "safari":"5.1" }
transform-function-name { "chrome":"49", "edge":"17", "ie":"11", "safari":"5.1" }
transform-arrow-functions { "ie":"11", "safari":"5.1" }
transform-block-scoped-functions { "edge":"17", "safari":"5.1" }
transform-block-scoped-functions { "safari":"5.1" }
transform-classes { "ie":"11", "safari":"5.1" }
transform-object-super { "ie":"11", "safari":"5.1" }
transform-shorthand-properties { "ie":"11", "safari":"5.1" }
Expand All @@ -43,13 +43,10 @@ Using plugins:
transform-spread { "ie":"11", "safari":"5.1" }
transform-parameters { "edge":"17", "ie":"11", "safari":"5.1" }
transform-destructuring { "chrome":"49", "ie":"11", "safari":"5.1" }
transform-block-scoping { "edge":"17", "ie":"11", "safari":"5.1" }
transform-block-scoping { "ie":"11", "safari":"5.1" }
transform-typeof-symbol { "ie":"11", "safari":"5.1" }
transform-new-target { "ie":"11", "safari":"5.1" }
transform-regenerator { "chrome":"49", "ie":"11", "safari":"5.1" }
transform-member-expression-literals { "edge":"17" }
transform-property-literals { "edge":"17" }
transform-reserved-words { "edge":"17" }
transform-modules-commonjs { "android":"78", "chrome":"49", "edge":"17", "firefox":"68", "ie":"11", "ios":"12.2", "opera":"63", "safari":"5.1", "samsung":"9.2" }
proposal-dynamic-import { "android":"78", "chrome":"49", "edge":"17", "firefox":"68", "ie":"11", "ios":"12.2", "opera":"63", "safari":"5.1", "samsung":"9.2" }

Expand Down
Expand Up @@ -26,12 +26,7 @@ Using plugins:
transform-named-capturing-groups-regex { "edge":"17", "firefox":"71" }
transform-template-literals { "safari":"12.1" }
transform-function-name { "edge":"17" }
transform-block-scoped-functions { "edge":"17" }
transform-parameters { "edge":"17" }
transform-block-scoping { "edge":"17" }
transform-member-expression-literals { "edge":"17" }
transform-property-literals { "edge":"17" }
transform-reserved-words { "edge":"17" }
transform-modules-commonjs { "android":"78", "chrome":"78", "edge":"17", "firefox":"71", "ios":"13", "opera":"63", "safari":"12.1", "samsung":"9.2" }
proposal-dynamic-import { "android":"78", "chrome":"78", "edge":"17", "firefox":"71", "ios":"13", "opera":"63", "safari":"12.1", "samsung":"9.2" }

Expand Down
Expand Up @@ -28,7 +28,7 @@ Using plugins:
transform-literals { "firefox":"49", "ie":"10", "safari":"7" }
transform-function-name { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
transform-arrow-functions { "ie":"10", "ios":"9", "safari":"7" }
transform-block-scoped-functions { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
transform-block-scoped-functions { "ie":"10", "ios":"9", "safari":"7" }
transform-classes { "ie":"10", "ios":"9", "safari":"7" }
transform-object-super { "ie":"10", "ios":"9", "safari":"7" }
transform-shorthand-properties { "ie":"10", "safari":"7" }
Expand All @@ -44,42 +44,25 @@ Using plugins:
transform-typeof-symbol { "ie":"10", "safari":"7" }
transform-new-target { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
transform-regenerator { "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
transform-member-expression-literals { "edge":"13" }
transform-property-literals { "edge":"13" }
transform-reserved-words { "edge":"13" }
transform-modules-commonjs { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
proposal-dynamic-import { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }

Using polyfills with `entry` option:

[<CWD>/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-specific-targets/input.mjs] Replaced @babel/polyfill entries with the following polyfills:
es6.array.copy-within { "ie":"10", "safari":"7" }
es6.array.every { "edge":"13" }
es6.array.fill { "ie":"10", "safari":"7" }
es6.array.filter { "edge":"13" }
es6.array.find { "ie":"10", "safari":"7" }
es6.array.find-index { "ie":"10", "safari":"7" }
es7.array.flat-map { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.array.for-each { "edge":"13" }
es6.array.from { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es7.array.includes { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.array.index-of { "edge":"13" }
es6.array.is-array { "edge":"13" }
es6.array.iterator { "ie":"10", "safari":"7" }
es6.array.last-index-of { "edge":"13" }
es6.array.map { "edge":"13" }
es6.array.of { "ie":"10", "safari":"7" }
es6.array.reduce { "edge":"13" }
es6.array.reduce-right { "edge":"13" }
es6.array.some { "edge":"13" }
es6.array.sort { "chrome":"54", "edge":"13", "ios":"9", "safari":"7" }
es6.array.sort { "chrome":"54", "ios":"9", "safari":"7" }
es6.array.species { "ie":"10", "ios":"9", "safari":"7" }
es6.date.now { "edge":"13" }
es6.date.to-iso-string { "edge":"13" }
es6.date.to-json { "edge":"13", "ios":"9", "safari":"7" }
es6.date.to-json { "ios":"9", "safari":"7" }
es6.date.to-primitive { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.date.to-string { "edge":"13" }
es6.function.bind { "edge":"13" }
es6.function.has-instance { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.function.name { "edge":"13", "ie":"10" }
es6.map { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
Expand Down Expand Up @@ -111,11 +94,8 @@ Using polyfills with `entry` option:
es6.number.parse-float { "ie":"10", "safari":"7" }
es6.number.parse-int { "ie":"10", "safari":"7" }
es6.object.assign { "ie":"10", "ios":"9", "safari":"7" }
es6.object.create { "edge":"13" }
es7.object.define-getter { "chrome":"54", "edge":"13", "ie":"10", "safari":"7" }
es7.object.define-setter { "chrome":"54", "edge":"13", "ie":"10", "safari":"7" }
es6.object.define-property { "edge":"13" }
es6.object.define-properties { "edge":"13" }
es7.object.entries { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.object.freeze { "ie":"10", "safari":"7" }
es6.object.get-own-property-descriptor { "ie":"10", "safari":"7" }
Expand All @@ -126,13 +106,13 @@ Using polyfills with `entry` option:
es7.object.lookup-setter { "chrome":"54", "edge":"13", "ie":"10", "safari":"7" }
es6.object.prevent-extensions { "ie":"10", "safari":"7" }
es6.object.to-string { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.object.is { "edge":"13", "ie":"10", "safari":"7" }
es6.object.is { "ie":"10", "safari":"7" }
es6.object.is-frozen { "ie":"10", "safari":"7" }
es6.object.is-sealed { "ie":"10", "safari":"7" }
es6.object.is-extensible { "ie":"10", "safari":"7" }
es6.object.keys { "ie":"10", "safari":"7" }
es6.object.seal { "ie":"10", "safari":"7" }
es6.object.set-prototype-of { "edge":"13", "ie":"10", "safari":"7" }
es6.object.set-prototype-of { "ie":"10", "safari":"7" }
es7.object.values { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.promise { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es7.promise.finally { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
Expand All @@ -159,43 +139,41 @@ Using polyfills with `entry` option:
es6.set { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.symbol { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es7.symbol.async-iterator { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.string.anchor { "edge":"13", "ie":"10" }
es6.string.big { "edge":"13", "ie":"10" }
es6.string.blink { "edge":"13", "ie":"10" }
es6.string.bold { "edge":"13", "ie":"10" }
es6.string.anchor { "ie":"10" }
es6.string.big { "ie":"10" }
es6.string.blink { "ie":"10" }
es6.string.bold { "ie":"10" }
es6.string.code-point-at { "ie":"10", "safari":"7" }
es6.string.ends-with { "ie":"10", "safari":"7" }
es6.string.fixed { "edge":"13", "ie":"10" }
es6.string.fontcolor { "edge":"13", "ie":"10" }
es6.string.fontsize { "edge":"13", "ie":"10" }
es6.string.fixed { "ie":"10" }
es6.string.fontcolor { "ie":"10" }
es6.string.fontsize { "ie":"10" }
es6.string.from-code-point { "ie":"10", "safari":"7" }
es6.string.includes { "ie":"10", "safari":"7" }
es6.string.italics { "edge":"13", "ie":"10" }
es6.string.italics { "ie":"10" }
es6.string.iterator { "ie":"10", "safari":"7" }
es6.string.link { "edge":"13", "ie":"10" }
es6.string.link { "ie":"10" }
es7.string.pad-start { "chrome":"54", "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es7.string.pad-end { "chrome":"54", "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.string.raw { "ie":"10", "safari":"7" }
es6.string.repeat { "ie":"10", "safari":"7" }
es6.string.small { "edge":"13", "ie":"10" }
es6.string.small { "ie":"10" }
es6.string.starts-with { "ie":"10", "safari":"7" }
es6.string.strike { "edge":"13", "ie":"10" }
es6.string.sub { "edge":"13", "ie":"10" }
es6.string.sup { "edge":"13", "ie":"10" }
es6.string.trim { "edge":"13" }
es6.string.strike { "ie":"10" }
es6.string.sub { "ie":"10" }
es6.string.sup { "ie":"10" }
es7.string.trim-left { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es7.string.trim-right { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
es6.typed.array-buffer { "ie":"10", "ios":"9", "safari":"7" }
es6.typed.data-view { "edge":"13" }
es6.typed.int8-array { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.typed.uint8-array { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.typed.int8-array { "ie":"10", "ios":"9", "safari":"7" }
es6.typed.uint8-array { "ie":"10", "ios":"9", "safari":"7" }
es6.typed.uint8-clamped-array { "ie":"10", "ios":"9", "safari":"7" }
es6.typed.int16-array { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.typed.uint16-array { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.typed.int32-array { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.typed.uint32-array { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.typed.float32-array { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.typed.float64-array { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es6.typed.int16-array { "ie":"10", "ios":"9", "safari":"7" }
es6.typed.uint16-array { "ie":"10", "ios":"9", "safari":"7" }
es6.typed.int32-array { "ie":"10", "ios":"9", "safari":"7" }
es6.typed.uint32-array { "ie":"10", "ios":"9", "safari":"7" }
es6.typed.float32-array { "ie":"10", "ios":"9", "safari":"7" }
es6.typed.float64-array { "ie":"10", "ios":"9", "safari":"7" }
es6.weak-map { "edge":"13", "firefox":"49", "ie":"10", "safari":"7" }
es6.weak-set { "edge":"13", "firefox":"49", "ie":"10", "safari":"7" }
web.timers { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
Expand Down
Expand Up @@ -28,7 +28,7 @@ Using plugins:
transform-literals { "firefox":"49", "ie":"10", "safari":"7" }
transform-function-name { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
transform-arrow-functions { "ie":"10", "ios":"9", "safari":"7" }
transform-block-scoped-functions { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
transform-block-scoped-functions { "ie":"10", "ios":"9", "safari":"7" }
transform-classes { "ie":"10", "ios":"9", "safari":"7" }
transform-object-super { "ie":"10", "ios":"9", "safari":"7" }
transform-shorthand-properties { "ie":"10", "safari":"7" }
Expand All @@ -44,9 +44,6 @@ Using plugins:
transform-typeof-symbol { "ie":"10", "safari":"7" }
transform-new-target { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
transform-regenerator { "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
transform-member-expression-literals { "edge":"13" }
transform-property-literals { "edge":"13" }
transform-reserved-words { "edge":"13" }
transform-modules-commonjs { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
proposal-dynamic-import { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }

Expand Down

0 comments on commit 85c8bcb

Please sign in to comment.