diff --git a/CHANGELOG.md b/CHANGELOG.md index b928bb7d3f..9af45c0359 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,11 @@ _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.12 + + * **Bug Fix** + * Deprecate `playground.methodBinding`. + ## 4.7.11 * **Bug Fix** diff --git a/src/babel/transformation/transformers/playground/memoization-operator.js b/src/babel/transformation/transformers/playground/memoization-operator.js index f8d55d854c..7c63ad102a 100644 --- a/src/babel/transformation/transformers/playground/memoization-operator.js +++ b/src/babel/transformation/transformers/playground/memoization-operator.js @@ -11,7 +11,6 @@ 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( diff --git a/src/babel/transformation/transformers/playground/method-binding.js b/src/babel/transformation/transformers/playground/method-binding.js index 5d4ddff3c7..3bea826a5a 100644 --- a/src/babel/transformation/transformers/playground/method-binding.js +++ b/src/babel/transformation/transformers/playground/method-binding.js @@ -3,6 +3,8 @@ import * as t from "../../../types"; export var playground = true; export function BindMemberExpression(node, parent, scope) { + console.error("Method binding is deprecated and will be removed in 5.0.0"); + var object = node.object; var prop = node.property; @@ -25,6 +27,8 @@ export function BindMemberExpression(node, parent, scope) { } export function BindFunctionExpression(node, parent, scope) { + console.error("Method binding is deprecated and will be removed in 5.0.0"); + var buildCall = function (args) { var param = scope.generateUidIdentifier("val"); return t.functionExpression(null, [param], t.blockStatement([