From 7951e6d26b2c2036a8d6dbb92b395f9e15d90e14 Mon Sep 17 00:00:00 2001 From: Michaƫl Zasso Date: Tue, 3 Jul 2018 09:44:13 +0200 Subject: 2018-07-04, Version 10.6.0 (Current) Notable changes: * dns: * An experimental promisified version of the dns module is now available. Give it a try with `require('dns').promises`. [#21264](https://github.com/nodejs/node/pull/21264) * fs: * `fs.lchown` has been undeprecated now that libuv supports it. [#21498](https://github.com/nodejs/node/pull/21498) * lib: * `Atomics.wake` is being renamed to `Atomics.notify` in the ECMAScript specification ([reference](https://github.com/tc39/ecma262/pull/1220)). Since Node.js now has experimental support for worker threads, we are being proactive and added a `notify` alias, while emitting a warning if `wake` is used. [#21413](https://github.com/nodejs/node/pull/21413) [#21518](https://github.com/nodejs/node/pull/21518) * n-api: * Add API for asynchronous functions. [#17887](https://github.com/nodejs/node/pull/17887) * util: * `util.inspect` is now able to return a result instead of throwing when the maximum call stack size is exceeded during inspection. [#20725](https://github.com/nodejs/node/pull/20725) * vm: * Add `script.createCachedData()`. This API replaces the `produceCachedData` option of the `Script` constructor that is now deprecated. [#20300](https://github.com/nodejs/node/pull/20300) * worker: * Support for relative paths has been added to the `Worker` constructor. Paths are interpreted relative to the current working directory. [#21407](https://github.com/nodejs/node/pull/21407) PR-URL: https://github.com/nodejs/node/pull/21629 --- doc/api/dns.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'doc/api/dns.md') diff --git a/doc/api/dns.md b/doc/api/dns.md index 804c39e3a3..82ee2442a0 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -585,7 +585,7 @@ via `require('dns').promises`. ### Class: dnsPromises.Resolver An independent resolver for DNS requests. @@ -631,7 +631,7 @@ The following methods from the `dnsPromises` API are available: ### dnsPromises.getServers() * Returns: {string[]} @@ -652,7 +652,7 @@ section if a custom port is used. ### dnsPromises.lookup(hostname[, options]) - `hostname` {string} - `options` {integer | Object} @@ -715,7 +715,7 @@ dnsPromises.lookup('example.com', options).then((result) => { ### dnsPromises.lookupService(address, port) - `address` {string} - `port` {number} @@ -740,7 +740,7 @@ dnsPromises.lookupService('127.0.0.1', 22).then((result) => { ### dnsPromises.resolve(hostname[, rrtype]) - `hostname` {string} Hostname to resolve. - `rrtype` {string} Resource record type. **Default:** `'A'`. @@ -769,7 +769,7 @@ is one of the [DNS error codes](#dns_error_codes). ### dnsPromises.resolve4(hostname[, options]) - `hostname` {string} Hostname to resolve. - `options` {Object} @@ -784,7 +784,7 @@ addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). ### dnsPromises.resolve6(hostname[, options]) - `hostname` {string} Hostname to resolve. - `options` {Object} @@ -799,7 +799,7 @@ addresses. ### dnsPromises.resolveAny(hostname) - `hostname` {string} @@ -843,7 +843,7 @@ Here is an example of the result object: ### dnsPromises.resolveCname(hostname) - `hostname` {string} @@ -853,7 +853,7 @@ the `hostname` (e.g. `['bar.example.com']`). ### dnsPromises.resolveMx(hostname) - `hostname` {string} @@ -864,7 +864,7 @@ containing both a `priority` and `exchange` property (e.g. ### dnsPromises.resolveNaptr(hostname) - `hostname` {string} @@ -893,7 +893,7 @@ of objects with the following properties: ### dnsPromises.resolveNs(hostname) - `hostname` {string} @@ -904,7 +904,7 @@ records available for `hostname` (e.g. ### dnsPromises.resolvePtr(hostname) - `hostname` {string} @@ -914,7 +914,7 @@ containing the reply records. ### dnsPromises.resolveSoa(hostname) - `hostname` {string} @@ -945,7 +945,7 @@ following properties: ### dnsPromises.resolveSrv(hostname) - `hostname` {string} @@ -970,7 +970,7 @@ the following properties: ### dnsPromises.resolveTxt(hostname) - `hostname` {string} @@ -983,7 +983,7 @@ treated separately. ### dnsPromises.reverse(ip) - `ip` {string} @@ -995,7 +995,7 @@ is one of the [DNS error codes](#dns_error_codes). ### dnsPromises.setServers(servers) - `servers` {string[]} array of [rfc5952][] formatted addresses -- cgit v1.2.3