From 52321bd4ff55c6dca80e1a12aff6c9d66f48ba4c Mon Sep 17 00:00:00 2001 From: joostdecock Date: Thu, 7 Sep 2023 18:17:22 +0200 Subject: [PATCH] breaking(core): Dopped log.warning in favor of log.warn --- packages/core/src/point.mjs | 2 +- packages/core/src/store.mjs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/core/src/point.mjs b/packages/core/src/point.mjs index 4994ef4ebf1..c95c4cb37b6 100644 --- a/packages/core/src/point.mjs +++ b/packages/core/src/point.mjs @@ -358,7 +358,7 @@ Point.prototype.asRenderProps = function () { ////////////////////////////////////////////// /** - * Checks the Points coordinates, and raises a warning when they are invalid + * Checks the Points coordinates, and logs a warning when they are invalid * * @private * @return {object} this - The Point instance diff --git a/packages/core/src/store.mjs b/packages/core/src/store.mjs index 561f6c2d52b..d428f4b3d17 100644 --- a/packages/core/src/store.mjs +++ b/packages/core/src/store.mjs @@ -24,8 +24,6 @@ export function Store(methods = []) { const logs = { debug: [], info: [], - // FIXME: Remove after migration to 'warn' is complete - warning: [], warn: [], error: [], } @@ -39,10 +37,6 @@ export function Store(methods = []) { warn: function (...data) { logs.warn.push(...data) }, - // FIXME: Remove after migration to 'warn' is complete - warning: function (...data) { - logs.warning.push(...data) - }, error: function (...data) { if (typeof window !== 'undefined') console.error(...data[0]) logs.error.push(...data)