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
The methods fs.read, fs.readSync, fs.write, fs.writeSync, fs.writeFile and fs.writeFileSync now all accept TypedArray and DataView objects. #22150
A new boolean option, withFileTypes, can be passed to to fs.readdir and fs.readdirSync. If set to true, the methods return an array of directory
entries. These are objects that can be used to determine the type of each
entry and filter them based on that without calling fs.stat. #22020
http2:
The http2 module is no longer experimental. #22466
os:
Added two new methods: os.getPriority and os.setPriority, allowing to
manipulate the scheduling priority of processes. #22407
process:
Added process.allowedNodeEnvironmentFlags. This object can be used to
programmatically validate and list flags that are allowed in the NODE_OPTIONS environment variable. #19335
src:
Deprecated option variables in public C++ API. #22515
Added vm.compileFunction, a method to create new JavaScript functions from
a source body, with options similar to those of the other vm methods. #21571
Notable Changes
TypedArray
andDataView
values are now accepted as input byexecFileSync
andspawnSync
. #22409environment variable
NODE_V8_COVERAGE
to a directory. #225276.3.0-next.0
6.3.0
6.4.0
6.4.1
fs.read
,fs.readSync
,fs.write
,fs.writeSync
,fs.writeFile
andfs.writeFileSync
now all acceptTypedArray
andDataView
objects. #22150withFileTypes
, can be passed to tofs.readdir
andfs.readdirSync
. If set to true, the methods return an array of directoryentries. These are objects that can be used to determine the type of each
entry and filter them based on that without calling
fs.stat
. #22020http2
module is no longer experimental. #22466os.getPriority
andos.setPriority
, allowing tomanipulate the scheduling priority of processes. #22407
process.allowedNodeEnvironmentFlags
. This object can be used toprogrammatically validate and list flags that are allowed in the
NODE_OPTIONS
environment variable. #19335vm.compileFunction
, a method to create new JavaScript functions froma source body, with options similar to those of the other
vm
methods. #21571Commits
bdd3afbb87
] - assert: fix loose set and map comparison (Ruben Bridgewater) #22495e2a801a5e6
] - async_hooks: adding regression test case for async/await (Anto Aravinth) #2237448648f5194
] - benchmark: add lines to scatter plots (Denys Otrishko) #220749a10421f53
] - build: use arm64 as DESTCPU for aarch64 (Daniel Bevenius) #225484862ce1816
] - build: use0o
octal notation in configure (Anna Henningsen) #22536efe71e9e31
] - build: Don't set-fno-threadsafe-statics
on macOS (Kyle Fuller) #22198fc1259bf56
] - build: usenpm ci
(Refael Ackermann) #22399660c515e60
] - build: move available-node variable to top (Daniel Bevenius) #223568f760c2476
] - build: touch tools/doc/node_modules after run (Daniel Bevenius) #22350fd6033c341
] - build: add test-doc to test target (Daniel Bevenius) #22294ed874e40d1
] - build: use echo command instead of shell comments (Daniel Bevenius) #222933915537c13
] - build,tools: tweak the travis config (Refael Ackermann) #224172f9295e68b
] - build,win: remove unmatchedendlocal
statement (Refael Ackermann) #22627180bb0b7d8
] - child_process: fix handling of incorrect uid/gid in spawn (Denys Otrishko) #225745321c312c2
] - (SEMVER-MINOR) child_process: allow typed arrays for input (Sarat Addepalli) #2240943092ebfa2
] - cli: more flexible width when printing--help
(Anna Henningsen) #2263718ce2b8911
] - cli: generate --help text in JS (Anna Henningsen) #22490dec42b54f7
] - cli: fix flags on help output (Gus Caplan) #222719a0dad2097
] - (SEMVER-MINOR) coverage: expose native V8 coverage (Benjamin Coe) #22527989fd73f1e
] - crypto: fix incorrect use of INT_MAX in validation (Tobias Nießen) #22581c47c79e1ca
] - crypto: improve setAuthTag (Tobias Nießen) #22538ea34cc7b88
] - crypto: deduplicate public key parsing (Tobias Nießen) #2255359a6c60a92
] - crypto: add support for OCB mode for AEAD (Tobias Nießen) #214472c33dc36b1
] - deps: update to nghttp2 1.33.0 (Anna Henningsen) #22649212e6bb092
] - deps: cherry-pick 22116dd from upstream V8 (Marcel Laverdet) #21992f7295493c4
] - deps: backport a8f6869 from upstream V8 (Ben Newman) #22122c84c27f7de
] - deps: cherry-pick bf5ea81 from upstream V8 (Ali Ijaz Sheikh) #22114a986abc529
] - deps: fix V8 test regression (Michaël Zasso) #22677a5c0bc44ac
] - deps: backport 4 CPU profiler commits from upstream V8 (Peter Marshall) #2202811c96987ff
] - (SEMVER-MINOR) deps: upgrade npm to 6.4.1 (Kat Marchán) #225915f44ce8b8b
] - deps: backport String::Utf8Length with isolate (Michaël Zasso) #22531d50e1ffa52
] - deps: backport String::Write{OneByte,Utf8} with isolate (Michaël Zasso) #225313dc9cfc4af
] - deps: backport StackFrame::GetFrame with isolate (Michaël Zasso) #225311be23f7b95
] - deps: sync V8 embedder string with master branch (Michaël Zasso) #22573aa22dc8d68
] - deps: import [email protected] (Sam Ruby) #22488611f423e1b
] - deps: patch V8 to 6.8.275.30 (Michaël Zasso) #2212590e99dac86
] - deps: upgrade to libuv 1.23.0 (cjihrig) #22365eab377f681
] - deps: fix CRLF in text file not present in upstream (Joyee Cheung) #22340c4ef170484
] - doc: remove usage of deprecated V8 APIs in addons.md (Michaël Zasso) #22667a448c8b779
] - doc: add blurb about implications of ABI stability (Gabriel Schulhof) #22508a3e3ae01fb
] - doc: clarify Readable paused/flowing!==object mode (Chris White) #2261956e654a47f
] - doc: update a link in v8.md (lakamsani) #22639805875d33b
] - doc: add personal pronoun for danbev (Daniel Bevenius) #2267071502f219c
] - doc: improve ECDH example (Tobias Nießen) #22607a4545ad8dc
] - doc: indicate createSecureContext arg is optional (Rich Trott) #225450e862da422
] - doc: remove _optional_ designation for tls options (Rich Trott) #22545c7268c45bc
] - doc: improve examples in buffer docs (pranshuchittora) #22170395ba7b046
] - doc: fix a typo in fs.md (Vse Mozhet Byt) #226357d8ef42058
] - doc: clarify fallback behavior of module require (TomCoded) #224943cec988e79
] - doc: Remove 'dnt_helper.js' (MaleDong) #225955c2a6d8dfb
] - doc: add section on how to build debug build (Troels Liebe Bentsen) #22510bfdb28e45a
] - doc: fix up warning text about character devices (Anna Henningsen) #2256956f73a1996
] - doc: add profiling APIs to the diagnostics support document (Matheus Marchini) #225886f0e83ee03
] - doc: update Linux perf test status in our CI (Matheus Marchini) #22588ae934186df
] - doc: make Stability Index more concise (Rich Trott) #22544c3a4cc4c16
] - doc: unify deprecation wording (Tobias Nießen) #22555e24cd92b66
] - doc: remove redundant 'Example:' and similar notes (Vse Mozhet Byt) #225371d38399bcd
] - doc: replace1
byprocess.stdout.fd
(Weijia Wang) #225645e7c6518a3
] - doc: warn against streaming from character devices (Gireesh Punathil) #2121205d432c2a6
] - doc: initial cut at support tiers for diag tools (Michael Dawson) #21870397235ec62
] - doc: simplify http2 wording and formatting (Rich Trott) #2254181364a7e16
] - doc: clarify ERR_AMBIGUOUS_ARGUMENT (Rich Trott) #2254246063b8479
] - doc: add GitHub email set up link to COLLABORATOR_GUIDE (Denys Otrishko) #225259b4403dd7d
] - doc: clarify git config name/email requirements (Anna Henningsen) #224332875f72c46
] - doc: document removed error codes (Sarat Addepalli) #22100c833d83d21
] - doc: support 'removed' field in doc YAML sections (Sarat Addepalli) #22100e2541303f3
] - doc: tweak macOS-firewall note position (ZYSzys) #224406228433926
] - doc: add lundibundi to collaborators (Denys Otrishko) #224912a849ba241
] - doc: state callback behavior on empty buffer (Ruben Verborgh) #22461f27a25472c
] - doc: make createPushResponse() more detailled (MaleDong) #22366282a45d042
] - doc: update wrapping-related documentation (Gabriel Schulhof) #22363c17e980534
] - doc: clarify fs.write[Sync]() descriptions (Vse Mozhet Byt) #224021ebaa2af4a
] - doc: unify optional arguments format in headings (Vse Mozhet Byt) #22397d86e615549
] - doc: clarify documentation of pipes and zlib objects (Andreas Girgensohn) #22354e6440888b1
] - doc: add doc for --loader option (Sarat Addepalli) #221049142935eb2
] - doc: clarify that new URL().port could be an empty string (Matteo Collina) #22232c894145e28
] - doc: Windows building supported on x64 (Refael Ackermann) #21443797229810e
] - doc: clarify ServerResponse explanations (MaleDong) #223052260bb9214
] - (SEMVER-MINOR) fs: update read to work with any TypedArray/DataView (Sarat Addepalli) #22150ad97314418
] - (SEMVER-MINOR) fs: readdir optionally returning type information (Bryan English) #220201e9d3e64cd
] - gyp: muffle xcodebuild warnings (Ujjwal Sharma) #21999c07a065699
] - http: adding doc and debug for calling empty string on write function (Anto Aravinth) #221184cdecc5ebe
] - http2: don't expose the original socket through the socket proxy (Szymon Marczak) #22650f77bbe8cab
] - (SEMVER-MINOR) http2: graduate from experimental (James M Snell) #22466a740145e1b
] - http2: throw better error when accessing unbound socket proxy (James M Snell) #22486d3ceaa1d41
] - http2: emit timeout on compat request and response (James M Snell) #22252f0be05342b
] - lib: merge onread handlers for http2 streams & net.Socket (Ashok) #224491eac11f626
] - lib: extract validateNumber validator (Jon Moss) #222493f93782767
] - lib: remove unused exec param (MaleDong) #2227446fbc23614
] - lib,src: standardizeowner\_symbol
for handles (Anna Henningsen) #2200296213c8027
] - n-api: clean up thread-safe function (Gabriel Schulhof) #22259609ae33bbe
] - n-api: remove idle_running from TsFn (Lars-Magnus Skog) #22520ad0072abfa
] - os: don't use getCheckedFunction() in userInfo() (cjihrig) #22609219da67e2e
] - (SEMVER-MINOR) os: add os.{get,set}Priority() (cjihrig) #2240730b22a676d
] - os: destructure ERR_SYSTEM_ERROR properly (cjihrig) #223943b44053ce8
] - os: improve networkInterfaces performance (Ruben Bridgewater) #22359107c8c0d4d
] - perf_hooks: move strings to env (James M Snell) #224012bf46ae45e
] - (SEMVER-MINOR) process: add allowedNodeEnvironmentFlags property (Christopher Hiller) #193355af6a89a73
] - process: use owner_symbol for\_getActive\*
(Anna Henningsen) #220020b340ab5e7
] - repl: tab auto complete big arrays (Ruben Bridgewater) #224081025868d5c
] - src: remove calls to deprecated V8 functions (Equals) (Michaël Zasso) #22665c637d41b9d
] - src: remove calls to deprecated v8 functions (IntegerValue) (Ujjwal Sharma) #22129be86ddb7ec
] - src: promote v8 name spaces with using (Gireesh Punathil) #22641b1e5491ae9
] - src: remove calls to deprecated V8 functions (Int32Value) (Michaël Zasso) #22662e5e72e60f0
] - src: skip warnings for our own deprecated APIs (Anna Henningsen) #22666dbb8f37377
] - src: remove editing leftovers from options help text (Anna Henningsen) #226364e651983e5
] - src: allow UTF-16 in generic StringBytes decode call (Anna Henningsen) #22622f064d44fad
] - src: warn about odd UTF-16 decoding function signature (Anna Henningsen) #22623516d71af66
] - src: fix a typo in the comment (Gireesh Punathil) #226401edd47e0b7
] - src: disable debug options when inspector is unavailable (Anna Henningsen) #22657cfca8518f8
] - src: addNODE\_EXTERN
to class definition (Anna Henningsen) #22559c8e586c859
] - src: add trace points to dns (Chin Huang) #21840b8299585bc
] - src: make CLI options programatically accesible (Anna Henningsen) #224908930268382
] - src: fix node::FatalException (Tobias Nießen) #22654bac4c41328
] - (SEMVER-MINOR) src: deprecate option variables in public API (Anna Henningsen) #22515956502949b
] - src: remove calls to deprecated v8 functions (Uint32Value) (Ujjwal Sharma) #22143b2a955a269
] - src: rework (mostly internal) functions to use Maybes (Ujjwal Sharma) #219350a65727f0a
] - src: remove calls to deprecated v8 functions (ToString) (Ujjwal Sharma) #2193575a9192549
] - src: fix external memory usage going negative (Mathias Buus) #2259499146772e0
] - src: remove calls to deprecated v8 functions (BooleanValue) (Ujjwal Sharma) #22075a7c0cb87be
] - src: do not pass code to ScriptCompiler::CreateCodeCacheForFunction (Michaël Zasso) #22596332b035a96
] - src: use String::Utf8Length with isolate (Michaël Zasso) #225318375f753c0
] - src: use String::Write{OneByte,Utf8} with isolate (Michaël Zasso) #225319478f29387
] - src: use StackFrame::GetFrame with isolate (Michaël Zasso) #22531f8feb0253d
] - src: add missingNODE\_WANT\_INTERNALS
guards (Anna Henningsen) #225142c5dfef393
] - src: fix NODE_OPTIONS parsing bug (Anna Henningsen) #22529034ba7322f
] - src: fix --without-ssl build (Ian McKellar) #224842767ebad2f
] - src: move more to node_process.cc from node.cc (James M Snell) #224228fd55fffee
] - (SEMVER-MINOR) src: refactor options parsing (Anna Henningsen) #22392198cf417b5
] - src: yield empty maybes for failed AsyncWrap::MakeCallback calls (Anna Henningsen) #2207802e3daaa57
] - src: implement v8::Platform::CallDelayedOnWorkerThread (Alexey Kozyatinskiy) #22383c207865e24
] - src: encode 0x27 (') for special URLs (Timothy Gu) #220224638ce6f03
] - src: perform integrity checks on built-in code cache (Joyee Cheung) #22152866965ec0e
] - src: fix race on modpending (Ryan Petrich) #21611383d578d76
] - src,deps: add isolate parameter to String::Concat (Michaël Zasso) #225214ed300a585
] - stream: update emit readable debug statement (Daniel Bevenius) #2261353fb7af1b2
] - stream: restore flow if there are 'data' handlers after once('readable') (Matteo Collina) #22209dd772c1f13
] - test: refactor test-gc-tls-external-memory (Anna Henningsen) #226517a3bbd21f3
] - Revert "test: mark async-hooks/test-callback-error as flaky" (Anna Henningsen) #226554791cd7f0a
] - test: fix flaky async-hooks/test-callback-error (Anna Henningsen) #22655c26747d9af
] - test: fix flaky test-worker-message-port-transfer-self (Anna Henningsen) #22658e5b732f25d
] - test: add test to dynamic enablement of trace-events (Ali Ijaz Sheikh) #221142025eaf999
] - test: improve assertion in process test (Anna Henningsen) #226347a70dce251
] - test: fix test-trace-events-dns (Rich Trott) #22674cb15017bfe
] - test: fix flaky parallel/test-fs-write-file-typedarrays (Anna Henningsen) #226597627b0430a
] - test: use module.exports consistently (James M Snell) #22557d3740d843a
] - test: improve assertions in test-cli-node-print-help (Anna Henningsen) #2248967372016bb
] - test: move test that depends on dns query to internet (Joyee Cheung) #2251682732ef4f7
] - test: fix typo in test name (Rich Trott) #22605d3bb7419f2
] - test: refacor spawn[Sync]Pwd (Refael Ackermann) #225224cdc61bc8c
] - test: move AEAD test vectors out of script (Tobias Nießen) #21873d27e463ca6
] - test: properly extend process.env in child_process (Lucas Woo) #22430863899970b
] - test: add test for internalConnect() when address type is IPv6 (Yaniv Friedensohn) #224447f85288808
] - test: remove string literal from strictEqual() (Scott Van Gilder) #2251281d824b132
] - test: move custom WHATWG URL tests into separate files (Joyee Cheung) #224426f31478229
] - test: remove third argument from strictEqual() (Neeraj Laad) #22451d02fb36379
] - test: move common.isCPPSymbolsNotMapped to tick-processor tests (James M Snell) #224599ec105ccdc
] - test: improve code coverage for string decoder (Benjamin Chen) #223061e7deb72d2
] - test: add streams benchmark test (Denys Otrishko) #22335ef60a8d7a5
] - test: add vm benchmark test (Denys Otrishko) #22335400aac8c5f
] - test: add v8 benchmark test (Denys Otrishko) #22335a8b8d3fe56
] - test: move common.onGC to individual module (James M Snell) #224466d0c3d19b8
] - test: flaky everywhere test-trace-events-fs-sync (Refael Ackermann) #224837f2d3d0ed4
] - test: move hijackstdio out of require('common') (James M Snell) #22462fcf059a667
] - test: add test unknown credential error of process.setgroups (Masashi Hirano) #22368ae016c8e6d
] - test: add tests for dnsPromises.lookup (Masashi Hirano) #2155998af1704ae
] - test: move common.ArrayStream to separate module (James M Snell) #22447e68438246e
] - test: remove isGlibc from common (James M Snell) #22443acfb29cbd8
] - test: harden sequential/test-performance (Ruben Bridgewater) #2240438b0c1f04d
] - test: remove redundant cli tests (Bryan English) #22355e8e014a8dc
] - test: improve assert message in http timeout test (Rich Trott) #2240322adebfc9a
] - test: move http timeout test to parallel (Rich Trott) #224035aa3100c29
] - test: fix flaky http timeout test (Rich Trott) #2240333994d896a
] - test: remove third argument from assert.strictEqual() (Dzmitry_Prudnikau) #22371fbc189b9eb
] - test: cover error case in os getCheckedFunction() (cjihrig) #22394149c209171
] - test: harden test-gc-http-client (Ruben Bridgewater) #22373acfb72486d
] - test: remove harmony flags (Ruben Bridgewater) #2228544bcc1d71a
] - test: fix cctest URLTest.ToFilePath on Win32 without Intl (James M Snell) #222652ed22dfa3a
] - test: mark async-hooks/test-callback-error as flaky (Joyee Cheung) #223304a28d38788
] - test: mark async-hooks/test-statwatcher as flaky (Joyee Cheung) #223305cfab145a1
] - test: remove common.hasTracing (Rich Trott) #222507794d4e0b8
] - test,stream: fix pipeline test so it runs well on Windows in older nodes (Matteo Collina) #22456696f7a54b5
] - tls: improve debugging assertion (Anna Henningsen) #226252ca21998d3
] - tools: add [src] links to async_hooks.html (Sam Ruby) #22656c32d5577b6
] - tools: add [src] links to assert.html (Sam Ruby) #22601f5520cc53d
] - tools: specify rule disabled in test-assert.js (Rich Trott) #2256315b7f75e49
] - tools: specify rules disabled in common/dns.js (Rich Trott) #2256350100f3a9c
] - tools: Include links to source code in documentation (Sam Ruby) #2240514ac77e2e2
] - tools: add missing package-lock to clang-format (Michaël Zasso) #225009d246f97d1
] - tools: update ESLint to 5.4.0 (Rich Trott) #22454725a2b14f2
] - tools: simplify ESLint invocation in Makefile (Rich Trott) #223485b14066c14
] - util: restore all information in inspect (Ruben Bridgewater) #22437f86ca8948a
] - util: Fix number format forpad
(MaleDong) #219061828017053
] - util: mark special entries as such (Ruben Bridgewater) #22287f763ac7dd0
] - util: escape symbol and non-enumerable keys (Ruben Bridgewater) #223003dc3a3196a
] - util: improve empty typed array inspection (Ruben Bridgewater) #22284e9ac683efc
] - util: properly indent special properties (Ruben Bridgewater) #22291459d676203
] - util: harden util.inspect (Ruben Bridgewater) #21869cdf6471234
] - util: fix sparse array inspection (Ruben Bridgewater) #222832b1cb3b01f
] - util,assert: improve performance (Ruben Bridgewater) #221974d4180b46b
] - util,assert: improve comparison performance (Ruben Bridgewater) #222582937a79c45
] - (SEMVER-MINOR) vm: add bindings for v8::CompileFunctionInContext (Ujjwal Sharma) #21571eebcec7db5
] - win, build: remove superfluous error message (Bartosz Sosnowski) #22580041c779814
] - win,build: build N-API addons in parallel (Bartosz Sosnowski) #225821daa82a8fc
] - worker: display MessagePort status in util.inspect() (Anna Henningsen) #22658887c43ffa7
] - worker: remove redundant function call tosetupPortReferencing
(Ouyang Yadong) #222988e542eaf5f
] - zlib: fix memory leak for invalid input (Anna Henningsen) #22713The text was updated successfully, but these errors were encountered: