Closed panuhorsmalahti closed 6 years ago
+1
+1 this breaks compatibility with ES6
It looks deprecated?
ES6 deprecates that though... so, is there a way to keep the name bold in colors while not causing conflicts with the prototype method? Ideas welcome. Would be great to not have to change the colors API, especially for a deprecated function. Note this should only be an issue outside safe mode for colors.
I'm closing this as a duplicate of #168 , but this isn't solved yet, so really encourage discussion on that issue. Would be great to find a workaround^^
ES6 brings String.prototype.bold to wrap string to bold tags: https://javascript.spec.whatwg.org/#string.prototype.bold
However, colors.js also wants to use that property. I recommend renaming the .bold property to something else.