1
0
Fork 0

breaking(core): Dopped log.warning in favor of log.warn

This commit is contained in:
joostdecock 2023-09-07 18:17:22 +02:00
parent 671bd9291e
commit 52321bd4ff
2 changed files with 1 additions and 7 deletions

View file

@ -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

View file

@ -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)