diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-07-03 09:44:13 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-07-04 20:06:26 +0200 |
commit | 7951e6d26b2c2036a8d6dbb92b395f9e15d90e14 (patch) | |
tree | c5c6371954d74a3aec350feed2bbf349b85e401e /doc/api/dns.md | |
parent | ecba4fa743d2c991ee665c3964913cfa5c30a8f8 (diff) | |
download | android-node-v8-7951e6d26b2c2036a8d6dbb92b395f9e15d90e14.tar.gz android-node-v8-7951e6d26b2c2036a8d6dbb92b395f9e15d90e14.tar.bz2 android-node-v8-7951e6d26b2c2036a8d6dbb92b395f9e15d90e14.zip |
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
Diffstat (limited to 'doc/api/dns.md')
-rw-r--r-- | doc/api/dns.md | 36 |
1 files changed, 18 insertions, 18 deletions
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 <!-- YAML -added: REPLACEME +added: v10.6.0 --> An independent resolver for DNS requests. @@ -631,7 +631,7 @@ The following methods from the `dnsPromises` API are available: ### dnsPromises.getServers() <!-- YAML -added: REPLACEME +added: v10.6.0 --> * Returns: {string[]} @@ -652,7 +652,7 @@ section if a custom port is used. ### dnsPromises.lookup(hostname[, options]) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} - `options` {integer | Object} @@ -715,7 +715,7 @@ dnsPromises.lookup('example.com', options).then((result) => { ### dnsPromises.lookupService(address, port) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `address` {string} - `port` {number} @@ -740,7 +740,7 @@ dnsPromises.lookupService('127.0.0.1', 22).then((result) => { ### dnsPromises.resolve(hostname[, rrtype]) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `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]) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `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]) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} Hostname to resolve. - `options` {Object} @@ -799,7 +799,7 @@ addresses. ### dnsPromises.resolveAny(hostname) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} @@ -843,7 +843,7 @@ Here is an example of the result object: ### dnsPromises.resolveCname(hostname) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} @@ -853,7 +853,7 @@ the `hostname` (e.g. `['bar.example.com']`). ### dnsPromises.resolveMx(hostname) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} @@ -864,7 +864,7 @@ containing both a `priority` and `exchange` property (e.g. ### dnsPromises.resolveNaptr(hostname) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} @@ -893,7 +893,7 @@ of objects with the following properties: ### dnsPromises.resolveNs(hostname) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} @@ -904,7 +904,7 @@ records available for `hostname` (e.g. ### dnsPromises.resolvePtr(hostname) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} @@ -914,7 +914,7 @@ containing the reply records. ### dnsPromises.resolveSoa(hostname) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} @@ -945,7 +945,7 @@ following properties: ### dnsPromises.resolveSrv(hostname) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} @@ -970,7 +970,7 @@ the following properties: ### dnsPromises.resolveTxt(hostname) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `hostname` {string} @@ -983,7 +983,7 @@ treated separately. ### dnsPromises.reverse(ip) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `ip` {string} @@ -995,7 +995,7 @@ is one of the [DNS error codes](#dns_error_codes). ### dnsPromises.setServers(servers) <!-- YAML -added: REPLACEME +added: v10.6.0 --> - `servers` {string[]} array of [rfc5952][] formatted addresses |