summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2018-07-03 09:44:13 +0200
committerMichaël Zasso <targos@protonmail.com>2018-07-04 20:06:26 +0200
commit7951e6d26b2c2036a8d6dbb92b395f9e15d90e14 (patch)
treec5c6371954d74a3aec350feed2bbf349b85e401e /doc/api
parentecba4fa743d2c991ee665c3964913cfa5c30a8f8 (diff)
downloadandroid-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')
-rw-r--r--doc/api/dns.md36
-rw-r--r--doc/api/fs.md6
-rw-r--r--doc/api/n-api.md14
-rw-r--r--doc/api/util.md4
-rw-r--r--doc/api/vm.md4
5 files changed, 32 insertions, 32 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
diff --git a/doc/api/fs.md b/doc/api/fs.md
index ac6ddf5284..e33acafb97 100644
--- a/doc/api/fs.md
+++ b/doc/api/fs.md
@@ -1909,7 +1909,7 @@ Synchronous lchmod(2). Returns `undefined`.
## fs.lchown(path, uid, gid, callback)
<!-- YAML
changes:
- - version: REPLACEME
+ - version: v10.6.0
pr-url: https://github.com/nodejs/node/pull/21498
description: This API is no longer deprecated.
- version: v10.0.0
@@ -1934,7 +1934,7 @@ to the completion callback.
## fs.lchownSync(path, uid, gid)
<!-- YAML
changes:
- - version: REPLACEME
+ - version: v10.6.0
pr-url: https://github.com/nodejs/node/pull/21498
description: This API is no longer deprecated.
-->
@@ -3911,7 +3911,7 @@ no arguments upon success. This method is only implemented on macOS.
<!-- YAML
added: v10.0.0
changes:
- - version: REPLACEME
+ - version: v10.6.0
pr-url: https://github.com/nodejs/node/pull/21498
description: This API is no longer deprecated.
-->
diff --git a/doc/api/n-api.md b/doc/api/n-api.md
index fe738f90a4..0d3fdc3a07 100644
--- a/doc/api/n-api.md
+++ b/doc/api/n-api.md
@@ -4045,7 +4045,7 @@ prevent the event loop from exiting. The APIs `napi_ref_threadsafe_function` and
> Stability: 1 - Experimental
<!-- YAML
-added: REPLACEME
+added: v10.6.0
-->
```C
NAPI_EXTERN napi_status
@@ -4088,7 +4088,7 @@ parameters and with `undefined` as its `this` value.
> Stability: 1 - Experimental
<!-- YAML
-added: REPLACEME
+added: v10.6.0
-->
```C
NAPI_EXTERN napi_status
@@ -4106,7 +4106,7 @@ This API may be called from any thread which makes use of `func`.
> Stability: 1 - Experimental
<!-- YAML
-added: REPLACEME
+added: v10.6.0
-->
```C
NAPI_EXTERN napi_status
@@ -4134,7 +4134,7 @@ This API may be called from any thread which makes use of `func`.
> Stability: 1 - Experimental
<!-- YAML
-added: REPLACEME
+added: v10.6.0
-->
```C
NAPI_EXTERN napi_status
@@ -4156,7 +4156,7 @@ This API may be called from any thread which will start making use of `func`.
> Stability: 1 - Experimental
<!-- YAML
-added: REPLACEME
+added: v10.6.0
-->
```C
NAPI_EXTERN napi_status
@@ -4184,7 +4184,7 @@ This API may be called from any thread which will stop making use of `func`.
> Stability: 1 - Experimental
<!-- YAML
-added: REPLACEME
+added: v10.6.0
-->
```C
NAPI_EXTERN napi_status
@@ -4205,7 +4205,7 @@ This API may only be called from the main thread.
> Stability: 1 - Experimental
<!-- YAML
-added: REPLACEME
+added: v10.6.0
-->
```C
NAPI_EXTERN napi_status
diff --git a/doc/api/util.md b/doc/api/util.md
index 4a6988c87d..f199f211a8 100644
--- a/doc/api/util.md
+++ b/doc/api/util.md
@@ -360,8 +360,8 @@ stream.write('With ES6');
<!-- YAML
added: v0.3.0
changes:
- - version: REPLACEME
- pr-url: https://github.com/nodejs/node/pull/REPLACEME
+ - version: v10.6.0
+ pr-url: https://github.com/nodejs/node/pull/20725
description: Inspecting linked lists and similar objects is now possible
up to the maximum call stack size.
- version: v10.0.0
diff --git a/doc/api/vm.md b/doc/api/vm.md
index 966ccbfaa2..d3be08f89b 100644
--- a/doc/api/vm.md
+++ b/doc/api/vm.md
@@ -411,7 +411,7 @@ changes:
pr-url: https://github.com/nodejs/node/pull/4777
description: The `cachedData` and `produceCachedData` options are
supported now.
- - version: REPLACEME
+ - version: v10.6.0
pr-url: https://github.com/nodejs/node/pull/20300
description: The `produceCachedData` is deprecated in favour of
`script.createCachedData()`
@@ -443,7 +443,7 @@ any global object; rather, it is bound before each run, just for that run.
### script.createCachedData()
<!-- YAML
-added: REPLACEME
+added: v10.6.0
-->
* Returns: {Buffer}