node-util icon indicating copy to clipboard operation
node-util copied to clipboard

Sync with Node.js master

Open BridgeAR opened this issue 6 years ago • 1 comments

This is just a meta issue to update the whole module. So far it supports parts and other things are missing or somewhat outdated. It would be good to sync the whole project. One of the things that we should look into is what Browser support should be achieved. I personally would like to skip IE support. It is pretty hard to backport all changes that are necessary to support the Internet Explorer 11 (even though the current worldwide usage is still around 3%).

BridgeAR avatar May 06 '19 18:05 BridgeAR

IMO we should not crash on IE11, but output differences in util.inspect/util.format('%o') are okay. those are unlikely to be end-user-facing and developers who are targeting IE11- will be able to deal with differences in debug output. For isDeepStrictEqual, i guess it would also be a best-effort implementation(?), but we can caution users if it doesn't work with polyfilled ES6 Set/Map for example.

During the nearform grant for browserify I worked on updating util.inspect here: https://github.com/browserify/node-util/tree/inspect I don't know if that is a useful starting point, a good chunk of it is just worse implementations of the new util.types functions :)

I don't remember what the status is on most of the updates I was trying to do to this module, and I'm mid-move right now so not yet sure if/when i'll have time to dig into it! Anyway, if you (or someone else) submit a PR that would obsolete some of my unfinished work that'd be totally fine

When we have all the missing stuff, we should bump this to 1.0 finally haha

goto-bus-stop avatar May 06 '19 19:05 goto-bus-stop