Open azu opened 6 years ago
eventNames, getMaxListeners, prependListener and prependOnceListener are available in events@2.0.0 (https://github.com/webpack/node-libs-browser/pull/74). off
will be available in events@3.0.0.
path.posix, path.parse, and parth.format are available in path-browserify@1.0.0
@azu thanks for compiling that list. That will definitely be helpful when updating the libraries 👍
We can't do that too frequently as updating these libraries might be breaking change for a lot of people.
I've collected the gap between Node.js core lib and webpack/browserify's shim lib.
Latest results is in following repository.
Env
Gap list
assert.deepEqual
does't supportMap
,Set
,Iterator
etc...require("assert").strict
eventNames
getMaxListeners
prependListener
prependOnceListener
off
url.URL
(WHATWG URL)url.format
does't support WHATWG URLTests
Also, I've written the test for these new methods/properties.
Node.js 10 pass the tests, but the code that is bundled by webpack is failed.