Skip to content

Commit

Permalink
2018-07-04, Version 10.6.0 (Current)
Browse files Browse the repository at this point in the history
Notable changes:

* build:
  * Node.js should now be about 60% faster to startup than the previous version,
    thanks to the use V8's code cache feature for core modules. [#21405](#21405)
* dns:
  * An experimental promisified version of the dns module is now available. Give
    it a try with `require('dns').promises`. [#21264](#21264)
* fs:
  * `fs.lchown` has been undeprecated now that libuv supports it. [#21498](#21498)
* lib:
  * `Atomics.wake` is being renamed to `Atomics.notify` in the ECMAScript
    specification ([reference](tc39/ecma262#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](#21413) [#21518](#21518)
* n-api:
  * Add API for asynchronous functions. [#17887](#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](#20725)
* vm:
  * Add `script.createCachedData()`. This API replaces the `produceCachedData`
    option of the `Script` constructor that is now deprecated. [#20300](#20300)
* worker:
  * Support for relative paths has been added to the `Worker` constructor. Paths
    are interpreted relative to the current working directory. [#21407](#21407)

PR-URL: #21629
  • Loading branch information
targos committed Jul 3, 2018
1 parent 5d6d6fb commit 1f713d6
Show file tree
Hide file tree
Showing 8 changed files with 180 additions and 36 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V10.md#10.5.0">10.5.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V10.md#10.6.0">10.6.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V10.md#10.5.0">10.5.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V10.md#10.4.1">10.4.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V10.md#10.4.0">10.4.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V10.md#10.3.0">10.3.0</a><br/>
Expand Down
36 changes: 18 additions & 18 deletions doc/api/dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ via `require('dns').promises`.

### Class: dnsPromises.Resolver
<!-- YAML
added: REPLACEME
added: v10.6.0
-->

An independent resolver for DNS requests.
Expand Down Expand Up @@ -631,7 +631,7 @@ The following methods from the `dnsPromises` API are available:

### dnsPromises.getServers()
<!-- YAML
added: REPLACEME
added: v10.6.0
-->

* Returns: {string[]}
Expand All @@ -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}
Expand Down Expand Up @@ -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}
Expand All @@ -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'`.
Expand Down Expand Up @@ -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}
Expand All @@ -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}
Expand All @@ -799,7 +799,7 @@ addresses.

### dnsPromises.resolveAny(hostname)
<!-- YAML
added: REPLACEME
added: v10.6.0
-->
- `hostname` {string}

Expand Down Expand Up @@ -843,7 +843,7 @@ Here is an example of the result object:

### dnsPromises.resolveCname(hostname)
<!-- YAML
added: REPLACEME
added: v10.6.0
-->
- `hostname` {string}

Expand All @@ -853,7 +853,7 @@ the `hostname` (e.g. `['bar.example.com']`).

### dnsPromises.resolveMx(hostname)
<!-- YAML
added: REPLACEME
added: v10.6.0
-->
- `hostname` {string}

Expand All @@ -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}

Expand Down Expand Up @@ -893,7 +893,7 @@ of objects with the following properties:

### dnsPromises.resolveNs(hostname)
<!-- YAML
added: REPLACEME
added: v10.6.0
-->
- `hostname` {string}

Expand All @@ -904,7 +904,7 @@ records available for `hostname` (e.g.

### dnsPromises.resolvePtr(hostname)
<!-- YAML
added: REPLACEME
added: v10.6.0
-->
- `hostname` {string}

Expand All @@ -914,7 +914,7 @@ containing the reply records.

### dnsPromises.resolveSoa(hostname)
<!-- YAML
added: REPLACEME
added: v10.6.0
-->
- `hostname` {string}

Expand Down Expand Up @@ -945,7 +945,7 @@ following properties:

### dnsPromises.resolveSrv(hostname)
<!-- YAML
added: REPLACEME
added: v10.6.0
-->
- `hostname` {string}

Expand All @@ -970,7 +970,7 @@ the following properties:

### dnsPromises.resolveTxt(hostname)
<!-- YAML
added: REPLACEME
added: v10.6.0
-->
- `hostname` {string}

Expand All @@ -983,7 +983,7 @@ treated separately.

### dnsPromises.reverse(ip)
<!-- YAML
added: REPLACEME
added: v10.6.0
-->
- `ip` {string}

Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,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
Expand All @@ -1929,7 +1929,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.
-->
Expand Down Expand Up @@ -3906,7 +3906,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.
-->
Expand Down
14 changes: 7 additions & 7 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
Expand Down Expand Up @@ -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}
Expand Down
Loading

0 comments on commit 1f713d6

Please sign in to comment.