Node.js and Browser polyfill gap
webpack and browserify user polyfill libraries for in-browser usage.
For example, webpack and browserify alias assert
module to commonjs-assert in browser-env.
Recently, Node.js have upgraded own core module like assert
. But, polyfill module like commonjs-assert does not follow the breaking change.
This repository aim to collect the gap issue between Node.js and Browser polyfills.
Node.js >= 10.0.0
Node.js |
Browser polyfill |
Issue |
Link |
assert |
defunctzombie/commonjs-assert |
Error code and Error message are different |
Issue, Article |
|
|
assert.deepEqual does't support Map , Set , Iterator etc... |
Issue, Document, Release |
|
|
require("assert").strict |
Docs, Release |
|
|
assert.rejects() |
Release |
|
|
assert.doesNotReject() |
Release |
|
|
Compatible issue with assert.fail() , assert.ok() , and assert.ifError() |
No arguments behavior. Release |
buffer |
feross/buffer |
--- |
|
child_process |
--- |
--- |
|
cluster |
--- |
--- |
|
console |
Raynos/console-browserify |
--- |
|
constants |
juliangruber/constants-browserify |
--- |
|
crypto |
crypto-browserify/crypto-browserify |
--- |
|
dgram |
--- |
--- |
|
dns |
--- |
--- |
|
domain |
bevry/domain-browser |
--- |
|
events |
Gozala/events |
eventNames |
Issue |
|
|
getMaxListeners |
Issue |
|
|
prependListener |
Issue |
|
|
prependOnceListener |
Issue |
|
|
off |
Issue |
fs |
--- |
--- |
|
http |
jhiesey/stream-http |
--- |
|
https |
substack/https-browserify |
--- |
|
module |
--- |
--- |
|
net |
--- |
--- |
|
os |
CoderPuppy/os-browserify |
os.constants |
|
path |
substack/path-browserify |
path.posix |
Issue |
|
|
path.parse(path) |
Issue |
|
|
path.win32 |
|
|
|
path.format(pathObject) |
|
process |
shtylman/node-process |
process.channel |
|
|
|
process.platform |
Issue |
|
|
process.execArgv |
Issue |
|
|
process.cpuUsage([previousValue]) |
|
|
|
process.emitWarning(warning[, options]) |
|
punycode |
bestiejs/punycode.js |
--- |
|
querystring |
mike-spainhower/querystring |
--- |
|
readline |
--- |
--- |
|
repl |
--- |
--- |
|
stream |
substack/stream-browserify |
--- |
|
string_decoder |
rvagg/string_decoder |
TODO |
Repository |
sys |
defunctzombie/node-util |
TODO |
|
timers |
jryans/timers-browserify |
--- |
|
tls |
--- |
--- |
|
tty |
substack/tty-browserify |
--- |
|
url |
defunctzombie/node-url |
url.URL (WHATWG URL) |
Release, Document, Issue |
|
|
url.format does't support WHATWG URL |
Release, Document |
util |
defunctzombie/node-util |
util.callbackify(original) |
|
|
|
util.inspect.custom |
|
|
|
util.inspect.defaultOptions |
|
|
|
util.promisify(original) |
|
|
|
util.promisify.custom |
|
|
|
util.inspect() options maxArrayLength, breakLength |
|
|
|
util.isDeepStrictEqual |
|
|
|
util.isDeepStrictEqual |
|
vm |
substack/vm-browserify |
vm.isContext(sandbox) |
|
zlib |
devongovett/browserify-zlib |
zlib.bytesRead |
|