From 0cca27b3ffb9fade34aac0ee77d020fb7cac0879 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 2 Mar 2018 09:53:46 -0800 Subject: 2018-04-24, Version 10.0.0 (Current) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Assert * Calling `assert.fail()` with more than one argument is deprecated. #70dcacd710 * Calling `assert.ok()` with no arguments will now throw. #3cd7977a42 * Calling `assert.ifError()` will now throw with any argument other than `undefined` or `null`. Previously the method would throw with any truthy value. #e65a6e81ef * The `assert.rejects()` and `assert.doesNotReject()` methods have been added for working with async functions. #599337f43e * Async_hooks * Older experimental async_hooks APIs have been removed. #1cc6b993b9 * Buffer * Uses of `new Buffer()` and `Buffer()` outside of the `node_modules` directory will now emit a runtime deprecation warning. #9d4ab90117 * `Buffer.isEncoding()` now returns `undefined` for falsy values, including an empty string. #452eed956e * `Buffer.fill()` will throw if an attempt is made to fill with an empty `Buffer`. #1e802539b2 * Child Process * Undefined properties of env are ignored. #38ee25e2e2, #85739b6c5b * Console * The `console.table()` method has been added. #97ace04492 * Crypto * The `crypto.createCipher()` and `crypto.createDecipher()` methods have been deprecated. Please use `crypto.createCipheriv()` and `crypto.createDecipheriv()` instead. #81f88e30dd * The `decipher.finaltol()` method has been deprecated. #19f3927d92 * The `crypto.DEFAULT_ENCODING` property has been deprecated. #6035beea93 * The `ECDH.convertKey()` method has been added. #f2e02883e7 * The `crypto.fips` property has been deprecated. #6e7992e8b8 * Dependencies * V8 has been updated to 6.6. #9daebb48d6 * OpenSSL has been updated to 1.1.0h. #66cb29e646 * EventEmitter * The `EventEmitter.prototype.off()` method has been added as an alias for `EventEmitter.prototype.removeListener()`. #3bb6f07d52 * File System * The `fs.promises` API provides experimental promisified versions of the `fs` functions. #329fc78e49 * Invalid path errors are now thrown synchronously. #d8f73385e2 * The `fs.readFile()` method now partitions reads to avoid thread pool exhaustion. #67a4ce1c6e * HTTP * Processing of HTTP Status codes `100`, `102-199` has been improved. #baf8495078 * Multi-byte characters in URL paths are now forbidden. #b961d9fd83 * N-API * The n-api is no longer experimental. #cd7d7b15c1 * Net * The `'close'` event will be emitted after `'end'`. #9b7a6914a7 * Perf_hooks * The `PerformanceObserver` class is now an `AsyncResource` and can be monitored using `async_hooks`. #009e41826f * Trace events are now emitted for performance events. #9e509b622b * The `performance` API has been simplified. #2ec6995555 * Performance milestone marks will be emitted as trace events. #96cb4fb795 * Process * Using non-string values for `process.env` is deprecated. #5826fe4e79 * The `process.assert()` method is deprecated. #703e37cf3f * REPL * REPL now experimentally supports top-level await when using the `--experimental-repl-await` flag. #eeab7bc068 * The previously deprecated "magic mode" has been removed. #4893f70d12 * The previously deprecated `NODE_REPL_HISTORY_FILE` environment variable has been removed. #60c9ad7979 * Proxy objects are shown as Proxy objects when inspected. #90a43906ab * Streams * The `'readable'` event is now always deferred with nextTick. #1e0f3315c7 * A new `pipeline()` method has been provided for building end-to-data stream pipelines. #a5cf3feaf1 * Experimental support for async for-await has been added to `stream.Readable`. #61b4d60c5d * Timers * The `enroll()` and `unenroll()` methods have been deprecated. #68783ae0b8 * TLS * The `tls.convertNONProtocols()` method has been deprecated. #9204a0db6e * Support for NPN (next protocol negotiation) has been dropped. #5bfbe5ceae * The `ecdhCurve` default is now `'auto'`. #af78840b19 * Trace Events * A new `trace_events` top-level module allows trace event categories to be enabled/disabld at runtime. #da5d818a54 * URL * The WHATWG URL API is now a global. #312414662b * Util * `util.types.is[…]` type checks have been added. #b20af8088a * Support for bigint formatting has been added to `util.inspect()`. #39dc947409 --- doc/api/assert.md | 16 ++--- doc/api/buffer.md | 60 +++++++++--------- doc/api/cli.md | 4 +- doc/api/console.md | 6 +- doc/api/crypto.md | 16 ++--- doc/api/deprecations.md | 4 +- doc/api/fs.md | 158 ++++++++++++++++++++++++------------------------ doc/api/globals.md | 4 +- doc/api/http.md | 12 ++-- doc/api/http2.md | 12 ++-- doc/api/process.md | 2 +- doc/api/repl.md | 4 +- doc/api/stream.md | 18 +++--- doc/api/tracing.md | 16 ++--- doc/api/url.md | 4 +- doc/api/util.md | 78 ++++++++++++------------ doc/api/vm.md | 6 +- doc/api/zlib.md | 4 +- 18 files changed, 212 insertions(+), 212 deletions(-) (limited to 'doc/api') diff --git a/doc/api/assert.md b/doc/api/assert.md index 62c96801d3..ab4aa9c7cd 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -376,7 +376,7 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the ## assert.doesNotReject(block[, error][, message]) * `block` {Function|Promise} * `error` {RegExp|Function} @@ -565,7 +565,7 @@ See below for further details. @@ -850,7 +850,7 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the @@ -920,7 +920,7 @@ assert(0); ## assert.rejects(block[, error][, message]) * `block` {Function|Promise} * `error` {RegExp|Function|Object|Error} @@ -980,7 +980,7 @@ argument gets considered. diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 6e6a4f77f5..0195c1cd26 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -302,7 +302,7 @@ It can be constructed in a variety of ways. Enable experimental top-level `await` keyword support in REPL. @@ -397,7 +397,7 @@ added: - v5.0.0 - v4.2.0 changes: - - version: REPLACEME + - version: v10.0.0 pr-url: https://github.com/nodejs/node/pull/19600 description: The `--require` option is now supported when checking a file. --> diff --git a/doc/api/console.md b/doc/api/console.md index 28dd0b854b..825ca28e28 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -85,7 +85,7 @@ changes: - version: v8.0.0 pr-url: https://github.com/nodejs/node/pull/9744 description: The `ignoreErrors` option was introduced. - - version: REPLACEME + - version: v10.0.0 pr-url: https://github.com/nodejs/node/pull/19372 description: The `Console` constructor now supports an `options` argument, and the `colorMode` option was introduced. @@ -128,7 +128,7 @@ new Console({ stdout: process.stdout, stderr: process.stderr }); * `tabularData` {any} diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 47181f6a2c..ae121e83f2 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -674,7 +674,7 @@ assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); ### ECDH.convertKey(key, curve[, inputEncoding[, outputEncoding[, format]]]) - `key` {string | Buffer | TypedArray | DataView} @@ -728,7 +728,7 @@ changes: - version: v6.0.0 pr-url: https://github.com/nodejs/node/pull/5522 description: The default `inputEncoding` changed from `binary` to `utf8` - - version: REPLACEME + - version: v10.0.0 pr-url: https://github.com/nodejs/node/pull/16849 description: Changed error format to better support invalid public key error @@ -1291,7 +1291,7 @@ added: v6.3.0 ### crypto.DEFAULT_ENCODING The default encoding to use for functions that can take either strings @@ -1308,7 +1308,7 @@ This property is deprecated. ### crypto.fips Property for checking and controlling whether a FIPS compliant crypto provider @@ -1320,7 +1320,7 @@ This property is deprecated. Please use `crypto.setFips()` and ### crypto.createCipher(algorithm, password[, options]) > Stability: 0 - Deprecated: Use [`crypto.createCipheriv()`][] instead. @@ -1423,7 +1423,7 @@ called. ### crypto.createDecipher(algorithm, password[, options]) > Stability: 0 - Deprecated: Use [`crypto.createDecipheriv()`][] instead. @@ -1724,7 +1724,7 @@ console.log(aliceSecret === bobSecret); ### crypto.getFips() - Returns: {boolean} `true` if and only if a FIPS compliant crypto provider is currently in use. @@ -2158,7 +2158,7 @@ The flags below are deprecated in OpenSSL-1.1.0. ### crypto.setFips(bool) * `bool` {boolean} `true` to enable FIPS mode. diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 6689f03a25..1c3c488c8d 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -94,7 +94,7 @@ is strongly recommended: * [`Buffer.from(string[, encoding])`][from_string_encoding] - Create a `Buffer` that copies `string`. -As of REPLACEME, a deprecation warning is printed at runtime when +As of v10.0.0, a deprecation warning is printed at runtime when `--pending-deprecation` is used or when the calling code is outside `node_modules` in order to better target developers, rather than users. @@ -170,7 +170,7 @@ explicitly via error event handlers set on the domain instead. Type: End-of-Life Calling an asynchronous function without a callback throws a `TypeError` -REPLACEME onwards. Refer: [PR 12562](https://github.com/nodejs/node/pull/12562) +v10.0.0 onwards. Refer: [PR 12562](https://github.com/nodejs/node/pull/12562) ### DEP0014: fs.read legacy String interface diff --git a/doc/api/fs.md b/doc/api/fs.md index a80a5efcb4..d585164faf 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -322,7 +322,7 @@ fs.watch('./tmp', { encoding: 'buffer' }, (eventType, filename) => { ### Event: 'close' Emitted when the watcher stops watching for changes. @@ -896,7 +896,7 @@ try { A `FileHandle` object is a wrapper for a numeric file descriptor. @@ -3391,7 +3391,7 @@ unclosed file descriptors after a `Promise` is resolved or rejected. #### filehandle.appendFile(data, options) * `data` {string|Buffer} * `options` {Object|string} @@ -3410,7 +3410,7 @@ The `FileHandle` must have been opened for appending. #### filehandle.chmod(mode) * `mode` {integer} * Returns: {Promise} @@ -3420,7 +3420,7 @@ arguments upon success. #### filehandle.chown(uid, gid) * `uid` {integer} * `gid` {integer} @@ -3431,7 +3431,7 @@ upon success. #### filehandle.close() * Returns: {Promise} A `Promise` that will be resolved once the underlying @@ -3454,7 +3454,7 @@ async function openAndClose() { #### filehandle.datasync() * Returns: {Promise} @@ -3463,14 +3463,14 @@ success. #### filehandle.fd * {number} The numeric file descriptor managed by the `FileHandle` object. #### filehandle.read(buffer, offset, length, position) * `buffer` {Buffer|Uint8Array} * `offset` {integer} @@ -3497,7 +3497,7 @@ property that is a reference to the passed in `buffer` argument. #### filehandle.readFile(options) * `options` {Object|string} * `encoding` {string|null} **Default:** `null` @@ -3521,7 +3521,7 @@ The `FileHandle` has to support reading. #### filehandle.stat() * Returns: {Promise} @@ -3529,7 +3529,7 @@ Retrieves the [`fs.Stats`][] for the file. #### filehandle.sync() * Returns: {Promise} @@ -3538,7 +3538,7 @@ success. #### filehandle.truncate(len) * `len` {integer} **Default:** `0` * Returns: {Promise} @@ -3584,7 +3584,7 @@ The last three bytes are null bytes ('\0'), to compensate the over-truncation. #### filehandle.utimes(atime, mtime) * `atime` {number|string|Date} * `mtime` {number|string|Date}` @@ -3598,7 +3598,7 @@ This function does not work on AIX versions before 7.1, it will resolve the #### filehandle.write(buffer, offset, length, position) * `buffer` {Buffer|Uint8Array} * `offset` {integer} @@ -3629,7 +3629,7 @@ the end of the file. #### filehandle.writeFile(data, options) * `data` {string|Buffer|Uint8Array} * `options` {Object|string} @@ -3653,7 +3653,7 @@ without waiting for the `Promise` to be resolved (or rejected). ### fsPromises.access(path[, mode]) * `path` {string|Buffer|URL} @@ -3693,7 +3693,7 @@ the error raised if the file is not accessible. ### fsPromises.appendFile(file, data[, options]) * `file` {string|Buffer|URL|FileHandle} filename or `FileHandle` @@ -3715,7 +3715,7 @@ for appending (using `fsPromises.open()`). ### fsPromises.chmod(path, mode) * `path` {string|Buffer|URL} @@ -3727,7 +3727,7 @@ arguments upon succces. ### fsPromises.chown(path, uid, gid) * `path` {string|Buffer|URL} @@ -3740,7 +3740,7 @@ upon success. ### fsPromises.copyFile(src, dest[, flags]) * `src` {string|Buffer|URL} source filename to copy @@ -3795,7 +3795,7 @@ fsPromises.copyFile('source.txt', 'destination.txt', COPYFILE_EXCL) ### fsPromises.fchmod(filehandle, mode) * `filehandle` {FileHandle} @@ -3807,7 +3807,7 @@ success. ### fsPromises.fchown(filehandle, uid, gid) * `filehandle` {FileHandle} @@ -3820,7 +3820,7 @@ the `Promise` with no arguments upon success. ### fsPromises.fdatasync(filehandle) * `filehandle` {FileHandle} @@ -3831,7 +3831,7 @@ success. ### fsPromises.fstat(filehandle) * `filehandle` {FileHandle} @@ -3841,7 +3841,7 @@ Retrieves the [`fs.Stats`][] for the given `filehandle`. ### fsPromises.fsync(filehandle) * `filehandle` {FileHandle} @@ -3852,7 +3852,7 @@ success. ### fsPromises.ftruncate(filehandle[, len]) * `filehandle` {FileHandle} @@ -3901,7 +3901,7 @@ The last three bytes are null bytes ('\0'), to compensate the over-truncation. ### fsPromises.futimes(filehandle, atime, mtime) * `filehandle` {FileHandle} @@ -3917,7 +3917,7 @@ This function does not work on AIX versions before 7.1, it will resolve the ### fsPromises.lchmod(path, mode) * `path` {string|Buffer|URL} @@ -3929,7 +3929,7 @@ no arguments upon success. This method is only implemented on macOS. ### fsPromises.lchown(path, uid, gid) * `path` {string|Buffer|URL} @@ -3942,7 +3942,7 @@ no arguments upon success. This method is only implemented on macOS. ### fsPromises.link(existingPath, newPath) * `existingPath` {string|Buffer|URL} @@ -3953,7 +3953,7 @@ Asynchronous link(2). The `Promise` is resolved with no arguments upon success. ### fsPromises.lstat(path) * `path` {string|Buffer|URL} @@ -3964,7 +3964,7 @@ for the given symbolic link `path`. ### fsPromises.mkdir(path[, mode]) * `path` {string|Buffer|URL} @@ -3976,7 +3976,7 @@ arguments upon success. ### fsPromises.mkdtemp(prefix[, options]) * `prefix` {string} @@ -4006,7 +4006,7 @@ intention is to create a temporary directory *within* `/tmp`, the `prefix` ### fsPromises.open(path, flags[, mode]) * `path` {string|Buffer|URL} @@ -4027,7 +4027,7 @@ a colon, Node.js will open a file system stream, as described by ### fsPromises.read(filehandle, buffer, offset, length, position) * `filehandle` {FileHandle} @@ -4056,7 +4056,7 @@ property that is a reference to the passed in `buffer` argument. ### fsPromises.readdir(path[, options]) * `path` {string|Buffer|URL} @@ -4074,7 +4074,7 @@ will be passed as `Buffer` objects. ### fsPromises.readFile(path[, options]) * `path` {string|Buffer|URL|FileHandle} filename or `FileHandle` @@ -4100,7 +4100,7 @@ Any specified `FileHandle` has to support reading. ### fsPromises.readlink(path[, options]) * `path` {string|Buffer|URL} @@ -4118,7 +4118,7 @@ returned will be passed as a `Buffer` object. ### fsPromises.realpath(path[, options]) * `path` {string|Buffer|URL} @@ -4143,7 +4143,7 @@ this restriction. ### fsPromises.rename(oldPath, newPath) * `oldPath` {string|Buffer|URL} @@ -4155,7 +4155,7 @@ upon success. ### fsPromises.rmdir(path) * `path` {string|Buffer|URL} @@ -4170,7 +4170,7 @@ error on POSIX. ### fsPromises.stat(path) * `path` {string|Buffer|URL} @@ -4180,7 +4180,7 @@ The `Promise` is resolved with the [`fs.Stats`][] object for the given `path`. ### fsPromises.symlink(target, path[, type]) * `target` {string|Buffer|URL} @@ -4198,7 +4198,7 @@ the `target` argument will automatically be normalized to absolute path. ### fsPromises.truncate(path[, len]) * `path` {string|Buffer|URL} @@ -4210,7 +4210,7 @@ success. The `path` *must* be a string or `Buffer`. ### fsPromises.unlink(path) * `path` {string|Buffer|URL} @@ -4221,7 +4221,7 @@ success. ### fsPromises.utimes(path, atime, mtime) * `path` {string|Buffer|URL} @@ -4240,7 +4240,7 @@ The `atime` and `mtime` arguments follow these rules: ### fsPromises.write(filehandle, buffer[, offset[, length[, position]]]) * `filehandle` {FileHandle} @@ -4273,7 +4273,7 @@ the end of the file. ### fsPromises.writeFile(file, data[, options]) * `file` {string|Buffer|URL|FileHandle} filename or `FileHandle` diff --git a/doc/api/globals.md b/doc/api/globals.md index 9ed63764d3..a9aaefeefa 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -140,7 +140,7 @@ added: v0.0.1 ## URL @@ -149,7 +149,7 @@ The WHATWG `URL` class. See the [`URL`][] section. ## URLSearchParams diff --git a/doc/api/http.md b/doc/api/http.md index 700dce3b94..d6f738cb81 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -403,7 +403,7 @@ the client should send the request body. ### Event: 'information' Emitted when the server sends a 1xx response (excluding 101 Upgrade). This @@ -547,7 +547,7 @@ See [`request.socket`][] @@ -888,8 +888,8 @@ per connection (in the case of HTTP Keep-Alive connections). @@ -1068,7 +1068,7 @@ See [`response.socket`][]. @@ -1459,7 +1459,7 @@ will result in a [`TypeError`][] being thrown. ### response.writeProcessing() Sends a HTTP/1.1 102 Processing message to the client, indicating that diff --git a/doc/api/http2.md b/doc/api/http2.md index f35e9b8b29..dd53e9f27f 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -328,7 +328,7 @@ Will be `true` if this `Http2Session` instance has been closed, otherwise #### http2session.connecting * {boolean} @@ -883,7 +883,7 @@ stream.on('trailers', (headers, flags) => { #### Event: 'wantTrailers' The `'wantTrailers'` event is emitted when the `Http2Stream` has queued the @@ -1055,7 +1055,7 @@ A current state of this `Http2Stream`. #### http2stream.sendTrailers(headers) * `headers` {HTTP/2 Headers Object} @@ -1284,7 +1284,7 @@ server.on('stream', (stream) => { diff --git a/doc/api/process.md b/doc/api/process.md index 202725cb51..bc8c100002 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -840,7 +840,7 @@ emitMyWarning(); diff --git a/doc/api/repl.md b/doc/api/repl.md index 46cac0df3e..2231232827 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -441,8 +441,8 @@ Returns `true` if `keyword` is a valid keyword, otherwise `false`. @@ -1017,7 +1017,7 @@ the status of the `highWaterMark`. > Stability: 1 - Experimental @@ -1292,7 +1292,7 @@ The default implementation of `_destroy()` for `Transform` also emit `'close'`. ### stream.finished(stream, callback) * `stream` {Stream} A readable and/or writable stream. @@ -1340,7 +1340,7 @@ rs.resume(); // drain the stream ### stream.pipeline(...streams[, callback]) * `...streams` {Stream} Two or more streams to pipe between. @@ -1525,7 +1525,7 @@ constructor and implement the `writable._write()` method. The #### Constructor: new stream.Writable([options]) diff --git a/doc/api/tracing.md b/doc/api/tracing.md index 0b46abf81b..f83e808dc8 100644 --- a/doc/api/tracing.md +++ b/doc/api/tracing.md @@ -76,12 +76,12 @@ unlike `process.hrtime()` which returns nanoseconds. ## The `trace_events` module ### `Tracing` object The `Tracing` object is used to enable or disable tracing for sets of @@ -95,7 +95,7 @@ set of enabled trace event categories. #### `tracing.categories` * {string} @@ -105,7 +105,7 @@ A comma-separated list of the trace event categories covered by this #### `tracing.disable()` Disables this `Tracing` object. @@ -131,7 +131,7 @@ console.log(trace_events.getEnabledCategories()); #### `tracing.enable()` Enables this `Tracing` object for the set of categories covered by the @@ -139,14 +139,14 @@ Enables this `Tracing` object for the set of categories covered by the #### `tracing.enabled` * {boolean} `true` only if the `Tracing` object has been enabled. ### `trace_events.createTracing(options)` * `options` {Object} @@ -168,7 +168,7 @@ tracing.disable(); ### `trace_events.getEnabledCategories()` * Returns: {string} diff --git a/doc/api/url.md b/doc/api/url.md index 97cc284a6d..35a72da8ee 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -75,7 +75,7 @@ const myURL = @@ -477,7 +477,7 @@ console.log(JSON.stringify(myURLs)); diff --git a/doc/api/util.md b/doc/api/util.md index e8f97397d3..8da80d1f79 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -120,7 +120,7 @@ environment variable: `NODE_DEBUG=fs,net,tls`. @@ -256,7 +256,7 @@ with care and never in a hot code path. ## util.formatWithOptions(inspectOptions, format[, ...args]) * `inspectOptions` {Object} @@ -363,7 +363,7 @@ stream.write('With ES6'); `util.types` provides a number of type checks for different kinds of built-in @@ -953,7 +953,7 @@ useful for addon developers who prefer to do type checking in JavaScript. ### util.types.isAnyArrayBuffer(value) * Returns: {boolean} @@ -973,7 +973,7 @@ util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true ### util.types.isArgumentsObject(value) * Returns: {boolean} @@ -991,7 +991,7 @@ function foo() { ### util.types.isArrayBuffer(value) * Returns: {boolean} @@ -1009,7 +1009,7 @@ util.types.isArrayBuffer(new SharedArrayBuffer()); // Returns false ### util.types.isAsyncFunction(value) * Returns: {boolean} @@ -1028,7 +1028,7 @@ util.types.isAsyncFunction(async function foo() {}); // Returns true ### util.types.isBooleanObject(value) * Returns: {boolean} @@ -1049,7 +1049,7 @@ util.types.isBooleanObject(Boolean(true)); // Returns false ### util.types.isDataView(value) * Returns: {boolean} @@ -1068,7 +1068,7 @@ See also [`ArrayBuffer.isView()`][]. ### util.types.isDate(value) * Returns: {boolean} @@ -1083,7 +1083,7 @@ util.types.isDate(new Date()); // Returns true ### util.types.isExternal(value) * Returns: {boolean} @@ -1092,7 +1092,7 @@ Returns `true` if the value is a native `External` value. ### util.types.isFloat32Array(value) * Returns: {boolean} @@ -1109,7 +1109,7 @@ util.types.isFloat32Array(new Float64Array()); // Returns false ### util.types.isFloat64Array(value) * Returns: {boolean} @@ -1126,7 +1126,7 @@ util.types.isFloat64Array(new Float64Array()); // Returns true ### util.types.isGeneratorFunction(value) * Returns: {boolean} @@ -1145,7 +1145,7 @@ util.types.isGeneratorFunction(function* foo() {}); // Returns true ### util.types.isGeneratorObject(value) * Returns: {boolean} @@ -1166,7 +1166,7 @@ util.types.isGeneratorObject(generator); // Returns true ### util.types.isInt8Array(value) * Returns: {boolean} @@ -1183,7 +1183,7 @@ util.types.isInt8Array(new Float64Array()); // Returns false ### util.types.isInt16Array(value) * Returns: {boolean} @@ -1200,7 +1200,7 @@ util.types.isInt16Array(new Float64Array()); // Returns false ### util.types.isInt32Array(value) * Returns: {boolean} @@ -1217,7 +1217,7 @@ util.types.isInt32Array(new Float64Array()); // Returns false ### util.types.isMap(value) * Returns: {boolean} @@ -1232,7 +1232,7 @@ util.types.isMap(new Map()); // Returns true ### util.types.isMapIterator(value) * Returns: {boolean} @@ -1252,7 +1252,7 @@ util.types.isMapIterator(map[Symbol.iterator]()); // Returns true ### util.types.isNativeError(value) * Returns: {boolean} @@ -1269,7 +1269,7 @@ util.types.isNativeError(new RangeError()); // Returns true ### util.types.isNumberObject(value) * Returns: {boolean} @@ -1286,7 +1286,7 @@ util.types.isNumberObject(new Number(0)); // Returns true ### util.types.isPromise(value) * Returns: {boolean} @@ -1301,7 +1301,7 @@ util.types.isPromise(Promise.resolve(42)); // Returns true ### util.types.isProxy(value) * Returns: {boolean} @@ -1319,7 +1319,7 @@ util.types.isProxy(proxy); // Returns true ### util.types.isRegExp(value) * Returns: {boolean} @@ -1335,7 +1335,7 @@ util.types.isRegExp(new RegExp('abc')); // Returns true ### util.types.isSet(value) * Returns: {boolean} @@ -1350,7 +1350,7 @@ util.types.isSet(new Set()); // Returns true ### util.types.isSetIterator(value) * Returns: {boolean} @@ -1370,7 +1370,7 @@ util.types.isSetIterator(set[Symbol.iterator]()); // Returns true ### util.types.isSharedArrayBuffer(value) * Returns: {boolean} @@ -1388,7 +1388,7 @@ util.types.isSharedArrayBuffer(new SharedArrayBuffer()); // Returns true ### util.types.isStringObject(value) * Returns: {boolean} @@ -1405,7 +1405,7 @@ util.types.isStringObject(new String('foo')); // Returns true ### util.types.isSymbolObject(value) * Returns: {boolean} @@ -1423,7 +1423,7 @@ util.types.isSymbolObject(Object(symbol)); // Returns true ### util.types.isTypedArray(value) * Returns: {boolean} @@ -1442,7 +1442,7 @@ See also [`ArrayBuffer.isView()`][]. ### util.types.isUint8Array(value) * Returns: {boolean} @@ -1459,7 +1459,7 @@ util.types.isUint8Array(new Float64Array()); // Returns false ### util.types.isUint8ClampedArray(value) * Returns: {boolean} @@ -1476,7 +1476,7 @@ util.types.isUint8ClampedArray(new Float64Array()); // Returns false ### util.types.isUint16Array(value) * Returns: {boolean} @@ -1493,7 +1493,7 @@ util.types.isUint16Array(new Float64Array()); // Returns false ### util.types.isUint32Array(value) * Returns: {boolean} @@ -1510,7 +1510,7 @@ util.types.isUint32Array(new Float64Array()); // Returns false ### util.types.isWeakMap(value) * Returns: {boolean} @@ -1525,7 +1525,7 @@ util.types.isWeakMap(new WeakMap()); // Returns true ### util.types.isWeakSet(value) * Returns: {boolean} @@ -1540,7 +1540,7 @@ util.types.isWeakSet(new WeakSet()); // Returns true ### util.types.isWebAssemblyCompiledModule(value) * Returns: {boolean} diff --git a/doc/api/vm.md b/doc/api/vm.md index 6c7bdeffda..75fb03642c 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -510,7 +510,7 @@ overhead. @@ -616,10 +616,10 @@ console.log(globalVar); diff --git a/doc/api/zlib.md b/doc/api/zlib.md index 053cd2893a..1fe05f26ca 100644 --- a/doc/api/zlib.md +++ b/doc/api/zlib.md @@ -400,7 +400,7 @@ class of the compressor/decompressor classes. ### zlib.bytesRead > Stability: 0 - Deprecated: Use [`zlib.bytesWritten`][] instead. @@ -414,7 +414,7 @@ expose values under these names. ### zlib.bytesWritten * {number} -- cgit v1.2.3