Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4966028397 | ||
|
|
82e04fffac | ||
|
|
a46313903d | ||
|
|
68340b1288 | ||
|
|
7f9fe4af15 |
@@ -13,6 +13,13 @@ _Note: Gaps between patch versions are faulty/broken releases._
|
||||
|
||||
See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
|
||||
|
||||
## 4.7.14
|
||||
|
||||
* **Bug Fix**
|
||||
* Fix constructor spreading of `Promise`.
|
||||
* **Internal**
|
||||
* Deprecate remaining playground transformers and abstract references.
|
||||
|
||||
## 4.7.13
|
||||
|
||||
* **Bug Fix**
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "babel",
|
||||
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
||||
"version": "4.7.13",
|
||||
"version": "4.7.14",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"homepage": "https://babeljs.io/",
|
||||
"repository": "babel/babel",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "babel-runtime",
|
||||
"description": "babel selfContained runtime",
|
||||
"version": "4.7.12",
|
||||
"version": "4.7.13",
|
||||
"repository": "babel/babel",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"dependencies": {
|
||||
|
||||
@@ -24,6 +24,7 @@ var container = function (parent, call, ret, file) {
|
||||
export function AssignmentExpression(node, parent, scope, file) {
|
||||
var left = node.left;
|
||||
if (!t.isVirtualPropertyExpression(left)) return;
|
||||
console.error("Abstract references are deprecated and will be removed in 5.0.0");
|
||||
|
||||
var value = node.right;
|
||||
var temp;
|
||||
@@ -65,6 +66,7 @@ export function UnaryExpression(node, parent, scope, file) {
|
||||
var arg = node.argument;
|
||||
if (!t.isVirtualPropertyExpression(arg)) return;
|
||||
if (node.operator !== "delete") return;
|
||||
console.error("Abstract references are deprecated and will be removed in 5.0.0");
|
||||
|
||||
var call = util.template("abstract-expression-delete", {
|
||||
PROPERTY: arg.property,
|
||||
@@ -77,6 +79,7 @@ export function UnaryExpression(node, parent, scope, file) {
|
||||
export function CallExpression(node, parent, scope) {
|
||||
var callee = node.callee;
|
||||
if (!t.isVirtualPropertyExpression(callee)) return;
|
||||
console.error("Abstract references are deprecated and will be removed in 5.0.0");
|
||||
|
||||
var temp = scope.generateTempBasedOnNode(callee.object);
|
||||
|
||||
@@ -98,6 +101,7 @@ export function CallExpression(node, parent, scope) {
|
||||
}
|
||||
|
||||
export function VirtualPropertyExpression(node) {
|
||||
console.error("Abstract references are deprecated and will be removed in 5.0.0");
|
||||
return util.template("abstract-expression-get", {
|
||||
PROPERTY: node.property,
|
||||
OBJECT: node.object
|
||||
@@ -105,6 +109,7 @@ export function VirtualPropertyExpression(node) {
|
||||
}
|
||||
|
||||
export function PrivateDeclaration(node) {
|
||||
console.error("Abstract references are deprecated and will be removed in 5.0.0");
|
||||
return t.variableDeclaration("const", node.declarations.map(function (id) {
|
||||
return t.variableDeclarator(id, t.newExpression(t.identifier("WeakMap"), []));
|
||||
}));
|
||||
|
||||
@@ -16,6 +16,7 @@ build(exports, {
|
||||
},
|
||||
|
||||
build(node) {
|
||||
console.error("The mallet operator is deprecated and will be removed in 5.0.0");
|
||||
return t.unaryExpression("!", node, true);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -11,6 +11,7 @@ build(exports, {
|
||||
},
|
||||
|
||||
build(node, file) {
|
||||
console.error("The memoization operator is deprecated and will be removed in 5.0.0");
|
||||
return t.unaryExpression(
|
||||
"!",
|
||||
t.callExpression(
|
||||
|
||||
@@ -25,7 +25,7 @@ function registerType(type: string, skipAliasCheck?: boolean) {
|
||||
}
|
||||
|
||||
export var STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"];
|
||||
export var NATIVE_TYPE_NAMES = ["Array", "Object", "Number", "Boolean", "Date", "Array", "String"];
|
||||
export var NATIVE_TYPE_NAMES = ["Array", "Object", "Number", "Boolean", "Date", "Array", "String", "Promise"];
|
||||
export var FLATTENABLE_KEYS = ["body", "expressions"];
|
||||
export var FOR_INIT_KEYS = ["left", "init"];
|
||||
export var COMMENT_KEYS = ["leadingComments", "trailingComments"];
|
||||
|
||||
Reference in New Issue
Block a user