You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mentioned in the PR that the util shim would start using the symbol, but I think that didn't actually happen yet as there was another big effort to add util.types there and the inspect symbol fell by the wayside. I will work on adding that ASAP. Until then it would be best to keep both around for compatibility reasons.
IMHO Buffer.prototype.inspect() isn't really in anyone's way so if I were a buffer maintainer i would opt to keep it around for a long time, avoiding a major bump which would have some ecosystem impact, but that's not my decision to make :)
e; it's worth noting that it also still exists in Node.js. The deprecation is docs-only at the moment, so people are not even seeing deprecation warnings for it yet in the console. Until Node.js has shown deprecation warnings for a good while, I would strongly prefer the old inspect() method to stay functional.
@goto-bus-stop Thanks for all that context. This package aims for 1-to-1 functionality compatibility with Node.js, so if it's not removed from Node.js LTS yet, then we should keep it here. I'll close this now.
Activity
fanatid commentedon Sep 17, 2019
Any plans about this issue?
util.inspect.customundefinedgoto-bus-stop commentedon Sep 17, 2019
I mentioned in the PR that the
utilshim would start using the symbol, but I think that didn't actually happen yet as there was another big effort to addutil.typesthere and the inspect symbol fell by the wayside. I will work on adding that ASAP. Until then it would be best to keep both around for compatibility reasons.IMHO
Buffer.prototype.inspect()isn't really in anyone's way so if I were abuffermaintainer i would opt to keep it around for a long time, avoiding a major bump which would have some ecosystem impact, but that's not my decision to make :)e; it's worth noting that it also still exists in Node.js. The deprecation is docs-only at the moment, so people are not even seeing deprecation warnings for it yet in the console. Until Node.js has shown deprecation warnings for a good while, I would strongly prefer the old
inspect()method to stay functional.feross commentedon Sep 18, 2019
@goto-bus-stop Thanks for all that context. This package aims for 1-to-1 functionality compatibility with Node.js, so if it's not removed from Node.js LTS yet, then we should keep it here. I'll close this now.