Node v12.6.0 (Current)

By Michaël Zasso,

Notable changes

  • build:
    • Experimental support for building Node.js on MIPS architecture is back #27992.
  • child_process:
    • The promisified versions of child_process.exec and child_process.execFile now both return a Promise which has the child instance attached to their child property #28325.
  • deps:
    • Updated libuv to 1.30.1 #28449, #28511.
      • Support for the Haiku platform has been added.
      • The maximum UV_THREADPOOL_SIZE has been increased from 128 to 1024.
      • uv_fs_copyfile() now works properly when the source and destination files are the same.
  • process:
    • A new method, process.resourceUsage() was added. It returns resource usage for the current process, such as CPU time #28018.
  • src:
    • Fixed an issue related to stdio that could lead to a crash of the process in some circumstances #28490.
  • stream:
    • Added a writableFinished property to writable streams. It indicates that all the data has been flushed to the underlying system #28007.
  • worker:
    • Fixed an issue that prevented worker threads to listen for data on stdin #28153.
  • meta:

Commits

  • [db65594c33] - benchmark: refactor buffer benchmarks (Ruben Bridgewater) #26418
  • [e607055693] - bootstrap: --frozen-intrinsics override problem workaround (Guy Bedford) #28254
  • [cd71aad62b] - build: expose napi_build_version variable (NickNaso) #27835
  • [4d12cef2a5] - build: link libatomic on mac and linux (Gus Caplan) #28232
  • [cfb5ca3887] - build: enable openssl support for mips64el (mutao) #27992
  • [2cf37f54f0] - Revert "build: remove mips support" (mutao) #27992
  • [dd5e07f9b4] - child_process: attach child in promisification (cjihrig) #28325
  • [f21ddb2131] - crypto: move _impl call out of handleError funct (Daniel Bevenius) #28318
  • [558e9cfb6c] - crypto: move _pbkdf2 call out of handleError funct (Daniel Bevenius) #28318
  • [47b230a92b] - crypto: move _randomBytes call out of handleError funct (Daniel Bevenius) #28318
  • [def96ae278] - crypto: move _scrypt call out of handleError funct (Daniel Bevenius) #28318
  • [990feafcb6] - crypto: fix crash when calling digest after piping (Tobias Nießen) #28251
  • [43677325e1] - deps: upgrade to libuv 1.30.0 (cjihrig) #28449
  • [3a493b804e] - deps: upgrade to libuv 1.30.1 (cjihrig) #28511
  • [eee66c5e56] - doc: merge bootstrap/README.md into BUILDING.md (Rod Vagg) #28465
  • [0111c61ec0] - doc: fix swapedOut typo (cjihrig) #28497
  • [14f6cee694] - doc: reformat for-await-of (cjihrig) #28425
  • [3fea2e43c0] - doc: update readline asyncIterator docs (cjihrig) #28425
  • [0d2d116446] - doc: add links to 12.5.0 changelog notable changes (Gus Caplan) #28450
  • [96e8b988d4] - doc: clean up isDead() example (cjihrig) #28421
  • [3c047b3919] - doc: clarify response.finished (Robert Nagy) #28411
  • [5367d02ce1] - doc: replace version with REPLACEME (cjihrig) #28431
  • [e55d0efe36] - doc: remove N-API version for Experimental APIs (Michael Dawson) #28330
  • [e3dd4d5225] - doc: fix nits regarding stream utilities (Vse Mozhet Byt) #28385
  • [3d693c5ead] - doc: cleanup pendingSettingsAck docs (cjihrig) #28388
  • [b6d0cbcf20] - doc: add example code for worker.isDead() to cluster.md (Jesse Cogollo) #28362
  • [0e6196cc17] - doc: add missing word in frameError event docs (cjihrig) #28387
  • [d25d40e1e5] - doc: fix sentence about Http2Stream destruction (cjihrig) #28336
  • [4762399aca] - doc: add example for Buffer.isEncoding() (Angie M. Delgado) #28360
  • [818f08416c] - doc: add example code for fs.existsSync() (nicolasrestrepo) #28354
  • [d759e0fa49] - doc: remove "note that" from assert.md (Rich Trott) #28329
  • [d384911746] - doc: remove "note that" from async_hooks.md (Rich Trott) #28329
  • [9ca7c8603e] - doc: remove "note that" from buffer.md (Rich Trott) #28329
  • [658c7587ff] - doc: remove "note that" from cli.md (Rich Trott) #28329
  • [cb89b3b290] - doc: remove "note that" from cluster.md (Rich Trott) #28329
  • [af05ad123e] - doc: remove "note that" from console.md (Rich Trott) #28329
  • [898b69ccdf] - doc: remove "note that" from crypto.md (Rich Trott) #28329
  • [c41dbf5bc7] - doc: remove "note that" from dgram.md (Rich Trott) #28329
  • [33d9cf5a7c] - doc: remove "note that" from dns.md (Rich Trott) #28329
  • [f3b4449c07] - doc: remove "note that" from domain.md (Rich Trott) #28329
  • [75954865e6] - doc: remove "note that" from errors.md (Rich Trott) #28329
  • [520ef836c1] - doc: remove "note that" from events.md (Rich Trott) #28329
  • [d65c90b545] - doc: remove "note that" from fs.md (Rich Trott) #28329
  • [3174bc14a2] - doc: remove "note that" from http.md (Rich Trott) #28329
  • [f0a857f4b8] - doc: remove "note that" from http2.md (Rich Trott) #28329
  • [f4c6f7a5db] - doc: remove "note that" from modules.md (Rich Trott) #28329
  • [f299c44860] - doc: remove "note that" from net.md (Rich Trott) #28329
  • [b0a6da7e3c] - doc: remove "note that" from process.md (Rich Trott) #28329
  • [eba2e3c0df] - doc: remove "note that" from stream.md (Rich Trott) #28329
  • [7bd2cae197] - doc: remove "note that" from tls.md (Rich Trott) #28329
  • [204c9d8aa8] - doc: remove "note that" from tty.md (Rich Trott) #28329
  • [5e979bff2f] - doc: remove "note that" from url.md (Rich Trott) #28329
  • [c3c86b6da6] - doc: remove "note that" from util.md (Rich Trott) #28329
  • [6d94620bfc] - doc: remove "note that" from zlib.md (Rich Trott) #28329
  • [651ab3f58e] - doc: remove "note that" from pull-requests.md (Rich Trott) #28329
  • [9ac3a553ea] - doc: remove "note that" from maintaining-V8.md (Rich Trott) #28329
  • [a67afc8b60] - doc: remove "note that" from maintaining-the-build-files.md (Rich Trott) #28329
  • [9461ef8afb] - doc: remove "note that" from using-symbols.md (Rich Trott) #28329
  • [ffba80b107] - doc: remove "note that" from writing-and-running-benchmarks.md (Rich Trott) #28329
  • [1591309735] - doc: remove "note that" from writing-tests.md (Rich Trott) #28329
  • [3daced70cf] - doc: remove "make that" from onboarding.md (Rich Trott) #28329
  • [79f23b5aa6] - doc: remove "note that" from releases.md (Rich Trott) #28329
  • [71cf5586a9] - doc: remove "note that" from CPP_STYLE_GUIDE.md (Rich Trott) #28329
  • [3d6ae65181] - doc: remote "note that" from BUILDING.md (Rich Trott) #28329
  • [64f8530adc] - doc: fix typo in process.disconnect() docs (cjihrig) #28328
  • [c9226f5eb3] - doc: drop 'Note that' in addons docs (cjihrig) #28327
  • [a213eb7635] - doc: remove obsolete external link (cjihrig) #28326
  • [632fc1faf5] - doc: make multipleResolves docs less opinionated (cjihrig) #28314
  • [6063cebdd6] - doc: format ECMA-262 with a hyphen (cjihrig) #28309
  • [51742b834d] - doc: revise assert legacy mode text (Rich Trott) #28315
  • [57ac661bcb] - doc: document PerformanceNodeTiming.environment field (Yuriy Vasiyarov) #28280
  • [1f2b8c8cab] - doc: revise strict mode text in assert (Rich Trott) #28285
  • [0856a4d043] - doc: add gengjiawen to collaborators (gengjiawen) #28322
  • [359e20f048] - doc: clarify when http emits aborted event (Robert Nagy) #28262
  • [168c12758b] - doc: tidy AssertionError text (Rich Trott) #28255
  • [17efd9372b] - doc: remove instructions to post CI links (Rich Trott) #28248
  • [91d5a4df04] - doc,n-api: fix metadata for napi_create_threadsafe_function (Richard Lau) #28410
  • [c9a96aeeee] - esm: ensure cwd-relative imports for module --eval (Guy Bedford) #28389
  • [fd4d1e20f3] - http2: remove square brackets from parsed hostname (Luigi Pinca) #28406
  • [d8d4f9b569] - http2: propagate session destroy code to streams (cjihrig) #28435
  • [d8942f877d] - (SEMVER-MINOR) http2: use writableFinished instead of _writableState (zero1five) #28007
  • [d0de204c12] - http2: refactor ping + settings object lifetime management (Anna Henningsen) #28150
  • [5f9ee9f69f] - lib: fix stack overflow check to not break on primitives (kball) #28338
  • [b6a70520d2] - lib: refactor unhandled rejection deprecation warning emission (Joyee Cheung) #28258
  • [d95d610e0e] - meta: update LICENSE (Rich Trott) #28260
  • [ed8cee6b1a] - n-api: add error message for date expected (Gabriel Schulhof) #28303
  • [53297e66cb] - (SEMVER-MINOR) n-api: make func argument of napi_create_threadsafe_function optional (legendecas) #27791
  • [8ad880f3fc] - net: replace _writableState.finished with writableFinished (Rich Trott) #27974
  • [19f9281743] - (SEMVER-MINOR) process: expose uv_rusage on process.resourcesUsage() (vmarchaud) #28018
  • [0fd6524680] - process: split routines used to enhance fatal exception stack traces (Joyee Cheung) #28308
  • [e517b03701] - process: hide NodeEnvironmentFlagsSet's add function (Ruben Bridgewater) #28206
  • [c4a357dada] - report: add report versioning (cjihrig) #28121
  • [035b613f80] - src: don't abort on EIO when restoring tty (Ben Noordhuis) #28490
  • [624fd17064] - src: fix small memory leak (David Carlier) #28452
  • [0044fd2642] - src: add error codes to errors thrown in node_i18n.cc (Yaniv Friedensohn) #28221
  • [5b92eb4686] - src: refactor uncaught exception handling (Joyee Cheung) #28257
  • [c491e4dfe6] - src: fall back to env->exec_path() for default profile directory (Joyee Cheung) #28252
  • [040b9db07b] - src: save exec path when initializing Environment (Joyee Cheung) #28252
  • [1650bcf491] - (SEMVER-MINOR) stream: add writableFinished (zero1five) #28007
  • [8a64b70efe] - test: fix flaky test-vm-timeout-escape-nexttick (Rich Trott) #28461
  • [3f6f968dee] - test: skip tests related to CI failures on AIX (Sam Roberts) #28469
  • [937afcc365] - test: add test to doesNotThrow; validate if actual with regex (estrada9166) #28355
  • [004d26d5a5] - test: add tests to assert.ok and improve coverage (estrada9166) #28355
  • [82b80e0a61] - test: reset validity dates of expired certs (Sam Roberts) #28473
  • [dce4947335] - test: do not use fixed port in async-hooks/test-httparser-reuse (Anna Henningsen) #28312
  • [79b1bf5a09] - test: use assert() in N-API async test (Anna Henningsen) #28423
  • [cd78c5ef7e] - test: fixing broken test (melinamejia95) #28345
  • [d88c697f7f] - test: refactoring test, reordering arguments (David Sánchez) #28343
  • [e63990e383] - test: eliminate duplicate statements (khriztianmoreno) #28342
  • [b822545f84] - test: switch the param order in the assertion (raveneyex) #28341
  • [3bc62b9374] - test: switch assertion order (Yomar) #28339
  • [ecf4494dd2] - test: tls switch arguments order for the assertion (Laura Ciro) #28340
  • [4bca4a5091] - test: change order of arguments (MistyBlunch) #28359
  • [4973f217b8] - test: fix order of assertion arguments in test-event-emitter-num-args (Luis Gallon) #28368
  • [69f17f1ab0] - test: make test-dh-regr more efficient where possible (Rich Trott) #28390
  • [9f508e3a0a] - test: split pummel crypto dh test into two separate tests (Rich Trott) #28390
  • [e161744610] - test: move non-pummel crypto DH tests to parallel (Rich Trott) #28390
  • [16926a8183] - test: duplicated buffer in test-stream2-writable.js (Duvan Monsalve) #28380
  • [758a003f9d] - test: fix assertion argument order in test-buffer-failed-alloc-type (Alex Ramirez) #28349
  • [5047006980] - test: use regex for OpenSSL function name (Daniel Bevenius) #28289
  • [b448db3e01] - test: remove test-ttywrap.writestream.js (Rich Trott) #28316
  • [8346596552] - test: permit test-graph.signal to work without test runner (Rich Trott) #28305
  • [337aef0c2f] - test: normalize location test-worker-process-cwd.js runs tests (Samantha Sample) #28271
  • [c14e4d5bd5] - test: use .code for error in setgid (=) #28219
  • [c44db7fea5] - test: fix flaky test-worker-debug (Anna Henningsen) #28307
  • [424d91aacb] - test: add logging to statwatcher test (Rich Trott) #28270
  • [72f52a330b] - test: add Worker + uncaughtException + process.exit() test (Anna Henningsen) #28259
  • [3a2e67b916] - test: do not spawn rmdir in test-statwatcher (João Reis) #28276
  • [d949eadc38] - test: check custom inspection truncation in assert (Rich Trott) #28234
  • [993c0dbf14] - test: make sure test function resolves in test-worker-debug (Anna Henningsen) #28155
  • [1b4a7fb9cb] - tools: update unified-args to 7.0.0 for md-lint CLI (Rich Trott) #28434
  • [40ae2a6025] - tools: move python code out of jenkins shell (Sam Roberts) #28458
  • [d38b98529c] - tools: fix v8 testing with devtoolset on ppcle (Sam Roberts) #28458
  • [b8084840d8] - tools: change editorconfig's 'ignore' to 'unset' (silverwind) #28440
  • [21d2bdd3ce] - tools: remove unused using declarations (Daniel Bevenius) #28422
  • [3d014e1bf9] - tools: remove out-of-date code-cache-path comment (Daniel Bevenius) #28419
  • [60cf9111cb] - tools: fix typo in js2c.py (Daniel Bevenius) #28417
  • [b744bd9dcb] - tools: update eslint (Ruben Bridgewater) #28173
  • [03e3ccdbe5] - tools: update remark-preset-lint-node to 1.7.0 (Rich Trott) #28393
  • [619eb93942] - tools: fix typo in cache_builder.cc (Daniel Bevenius) #28418
  • [dd53e6aa7f] - tools: update babel-eslint to 10.0.2 (ZYSzys) #28266
  • [e6c7ebe90c] - vm: increase code coverage of source_text_module.js (kball) #28363
  • [2053dd0c9c] - worker: only unref port for stdin if we ref’ed it before (Anna Henningsen) #28153

Windows 32-bit Installer: https://nodejs.org/dist/v12.6.0/node-v12.6.0-x86.msi
Windows 64-bit Installer: https://nodejs.org/dist/v12.6.0/node-v12.6.0-x64.msi
Windows 32-bit Binary: https://nodejs.org/dist/v12.6.0/win-x86/node.exe
Windows 64-bit Binary: https://nodejs.org/dist/v12.6.0/win-x64/node.exe
macOS 64-bit Installer: https://nodejs.org/dist/v12.6.0/node-v12.6.0.pkg
macOS 64-bit Binary: https://nodejs.org/dist/v12.6.0/node-v12.6.0-darwin-x64.tar.gz
Linux 64-bit Binary: https://nodejs.org/dist/v12.6.0/node-v12.6.0-linux-x64.tar.xz
Linux PPC LE 64-bit Binary: https://nodejs.org/dist/v12.6.0/node-v12.6.0-linux-ppc64le.tar.xz
Linux s390x 64-bit Binary: https://nodejs.org/dist/v12.6.0/node-v12.6.0-linux-s390x.tar.xz
AIX 64-bit Binary: https://nodejs.org/dist/v12.6.0/node-v12.6.0-aix-ppc64.tar.gz
SmartOS 64-bit Binary: https://nodejs.org/dist/v12.6.0/node-v12.6.0-sunos-x64.tar.xz
ARMv7 32-bit Binary: https://nodejs.org/dist/v12.6.0/node-v12.6.0-linux-armv7l.tar.xz
ARMv8 64-bit Binary: https://nodejs.org/dist/v12.6.0/node-v12.6.0-linux-arm64.tar.xz
Source Code: https://nodejs.org/dist/v12.6.0/node-v12.6.0.tar.gz
Other release files: https://nodejs.org/dist/v12.6.0/
Documentation: https://nodejs.org/docs/v12.6.0/api/

SHASUMS

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

26bbcb162932a8d04008c65b19c5056c871a7c3af38b4a4efaba316751a81f59  node-v12.6.0-aix-ppc64.tar.gz
004b7992a2621eb35a47c94d258510ca5744b5a8072364f235dc7e3d4bff7457  node-v12.6.0-darwin-x64.tar.gz
381b34381c0a161a9637d5428c852ad77df9486b4c1a3ba31ae3ef258a41e982  node-v12.6.0-darwin-x64.tar.xz
583b4c0c52ea6ee00ef830c3292202f40f418686683127382a554d431004f9d0  node-v12.6.0-headers.tar.gz
2b6770e36eeb617a6f7b14920ec368ae797b8b73f440307a8d44af69f73a7688  node-v12.6.0-headers.tar.xz
966951924e08c6e1107a46396dd661a827d9473d2b503fe9e6383bbfa68881b3  node-v12.6.0-linux-arm64.tar.gz
b7a6580f0c5406b990b3c9f0d91297b103e38e2752b8b745c4d15310a9dd79d1  node-v12.6.0-linux-arm64.tar.xz
fd54e5f1ce0d1b7cc42c1ab9de55923de21277aa797220a1c78ec053eda071b4  node-v12.6.0-linux-armv7l.tar.gz
a1969673f7300298798531f5b8c529b1c1205f012478f041d2b870937e809ed0  node-v12.6.0-linux-armv7l.tar.xz
1c6fa9286d77842cdfde11c50120c4ce1d1b173003bf2adca8cf99ac3699f058  node-v12.6.0-linux-ppc64le.tar.gz
1bcac2ce219e67110b0bed2576d106b52c33af54e89d85b626e44bec85171ba7  node-v12.6.0-linux-ppc64le.tar.xz
6953dcef942ae7bbe26020c67ac6d10040cb367cc2417b0e27f52f529a6f4fa8  node-v12.6.0-linux-s390x.tar.gz
e29af49118468aad053ee4872fad80e2631a7db331d5214d9f7baf4601194a6c  node-v12.6.0-linux-s390x.tar.xz
ed54fb02a3e9544d9b86a1afbb526b429ae565214d54275c3c5cbfc5e5ea4691  node-v12.6.0-linux-x64.tar.gz
1ac14567e2be5562df209900e28430bd11575d985a85e8a6df2743428570de33  node-v12.6.0-linux-x64.tar.xz
fe3257b4a2035605f916af5c30b1381f3a4a90c72b0cd031ef5ccea36513b6ec  node-v12.6.0.pkg
f8b9e5b0784b71ba2378b32415062e9d004791ff3db84d62db0aa62eaff92711  node-v12.6.0-sunos-x64.tar.gz
c55852e3018b276dd228e3cdda36c27faffef52f8319f9ecafd6e39648e410a7  node-v12.6.0-sunos-x64.tar.xz
8b47a34a5507ee24abb91f26f8799bf3af66172b0ffd45981a7fcf1dde463bd4  node-v12.6.0.tar.gz
9e0a4bb2dbc66e76a999aebde8425e2f1df13231938df996bbff14e47bcaf089  node-v12.6.0.tar.xz
832f2695a63634cb2d0ddc3a158ecccaa0203e3515fe6dbdc840c84b542c2981  node-v12.6.0-win-x64.7z
0c5ac670c5bb0ea0d389bb7269cb84104702826f791a1d057eae02cdb9eed717  node-v12.6.0-win-x64.zip
2bb3de08b1656e90f36e67a1631afcd4236ae0c94ed4fb36232aafa6cd7531a3  node-v12.6.0-win-x86.7z
5d3cdefed43919df0ec1295fcfe65ba3fe9e495f9c29dd477eb028c385c7d773  node-v12.6.0-win-x86.zip
2aa6856cde3d36220d34c70000c6305802e95f2fda1c1d62bb639c10371b55a6  node-v12.6.0-x64.msi
f4728f17717dc2ac8a767f80c5d93cf6aa6cfeff80c1c0ee61ce9f261e4da26e  node-v12.6.0-x86.msi
b4fe35e293337213c4a9ce86fc3e3a0165912aecc3cdec0537166d6d73f8cf94  win-x64/node.exe
62b0fa5e814c05bdc90a184135285dd3d687779ec2a0c5ab8d0a72a20fc84673  win-x64/node.lib
fdbf83772aa7d2e5067baef7b647b1dbdd6d5b952c7c2fde8b761c448adf93a6  win-x64/node_pdb.7z
16fa0cee367c349b1645921c37d0656a108588e9567f8f2c58d6f90ab24b4a96  win-x64/node_pdb.zip
6653e93376a05f7e825785c92255c2e5d83ba72374cfc26418e7b0e0ea9f546e  win-x86/node.exe
0d591f213842e3dfbc7a4a864e848635561cf8dbe0f07759e9f043d7eb6f6ebc  win-x86/node.lib
d36e0d842813516f9d0538396abc409658a159c2ee193986b180ad9aa959beb8  win-x86/node_pdb.7z
3928b9b6cf6e849904c5969774494949360894b8ed7e4d379968fc54a10adc03  win-x86/node_pdb.zip
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEj8yhP+8dDC6RAI4Jdw96mlrhVgAFAl0cs+4ACgkQdw96mlrh
VgCn+g/9HI9xhrqigJokQ4Sey5W8mFc1o7B+4HifxvoI5HVerwXi3b0syNcPR5u/
J+j4n82VbgyAMxftz4bzkSUn+gPpyyxDNKi7QCGZg2iYiOEmvBTkQP1bjY4cHp0r
JcxukaANOB6xbDVE+UXh1vnjChjpiZ1ZSYh9J/U+GEnKOroyXNGF2+VV8MLHUlb3
5/00R3EyAUKh0kwpPtWsDdvTcweJpjsvAazIyvOkvMowIrAJpDLwZPzesL9UIanM
RLrErqZm4Dz0ehVASipBl9raKGEUD2ns3kFzeqGj526JEiVsNwEwawACS5KOn97z
B0ksPENp3Pui4tz0olmoHnRj3zickNnte1auBzaPVrngMInqITUpio/Og7uSHb8A
X0U7dtjwfhCI8BfwIwDxtvKwWVNFwNHF1K3SAAWhENKdyc93leC5DWJRiriQF7fu
iUKXBzIJhpagbFgSuoRutwuToaW5egG5GutYV0J25DsOXLUEfi+vDCqPPht1HhsH
n7UMhTiKf7UYyn+l9+MQA5ZslVttwRq755KQZPevYinyjGGanFitcEJsztxsowmT
xt1M3Asln+cL1wRXs9buKvx+ArkFKwXPuNHZK7pKSnMWtSueT/Q0+VpXwfTm7oKL
NMNHX91p/YgFn0DEG8NvqvMiFSuLvCYVbWnhd55q3RopFAX0VZc=
=USlD
-----END PGP SIGNATURE-----
Retorne ao começo