Skip to content

Commit

Permalink
2021-09-28, Version 14.18.0 'Fermium' (LTS)
Browse files Browse the repository at this point in the history
Notable changes:

assert:
  * change status of legacy asserts (James M Snell) #38113
buffer:
  * (SEMVER-MINOR) introduce Blob (James M Snell) #36811
  * (SEMVER-MINOR) add base64url encoding option (Filip Skokan) #36952
child_process:
  * (SEMVER-MINOR) allow `options.cwd` receive a URL (Khaidi Chu) #38862
  * (SEMVER-MINOR) add timeout to spawn and fork (Nitzan Uziely) #37256
  * (SEMVER-MINOR) allow promisified exec to be cancel (Carlos Fuentes) #34249
  * (SEMVER-MINOR) add 'overlapped' stdio flag (Thiago Padilha) #29412
cli:
  * (SEMVER-MINOR) add -C alias for --conditions flag (Guy Bedford) #38755
  * (SEMVER-MINOR) add --node-memory-debug option (Anna Henningsen) #35537
dns:
  * (SEMVER-MINOR) add "tries" option to Resolve options (Luan Devecchi) #39610
  * (SEMVER-MINOR) allow `--dns-result-order` to change default dns verbatim (Ouyang Yadong) #38099
doc:
  * (SEMVER-MINOR) add missing change to resolver ctor (Luan Devecchi) #39610
  * refactor fs docs structure (James M Snell) #37170
errors:
  * (SEMVER-MINOR) remove experimental from --enable-source-maps (Benjamin Coe) #37362
esm:
  * deprecate legacy main lookup for modules (Guy Bedford) #36918
fs:
  * (SEMVER-MINOR) allow empty string for temp directory prefix (Voltrex) #39028
  * (SEMVER-MINOR) allow no-params fsPromises fileHandle read (Nitzan Uziely) #38287
  * (SEMVER-MINOR) add support for async iterators to `fsPromises.writeFile` (HiroyukiYagihashi) #37490
  * improve fsPromises readFile performance (Nitzan Uziely) #37608
  * (SEMVER-MINOR) add fsPromises.watch() (James M Snell) #37179
  * (SEMVER-MINOR) allow `position` parameter to be a `BigInt` in read and readSync (Darshan Sen) #36190
http2:
  * (SEMVER-MINOR) add support for sensitive headers (Anna Henningsen) #34145
  * (SEMVER-MINOR) allow setting the local window size of a session (Yongsheng Zhang) #35978
inspector:
  * mark as stable (Gireesh Punathil) #37748
module:
  * (SEMVER-MINOR) add support for `URL` to `import.meta.resolve` (Antoine du Hamel) #38587
  * (SEMVER-MINOR) add support for `node:`‑prefixed `require(…)` calls (ExE Boss) #37246
net:
  * (SEMVER-MINOR) introduce net.BlockList (James M Snell) #34625
node-api:
  * (SEMVER-MINOR) allow retrieval of add-on file name (Gabriel Schulhof) #37195
os:
  * (SEMVER-MINOR) add os.devNull (Luigi Pinca) #38569
perf_hooks:
  * (SEMVER-MINOR) introduce createHistogram (James M Snell) #37155
process:
  * (SEMVER-MINOR) add api to enable source-maps programmatically (legendecas) #39085
  * (SEMVER-MINOR) add `'worker'` event (James M Snell) #38659
  * (SEMVER-MINOR) add direct access to rss without iterating pages (Adrien Maret) #34291
readline:
  * (SEMVER-MINOR) add AbortSignal support to interface (Nitzan Uziely) #37932
  * (SEMVER-MINOR) add support for the AbortController to the question method (Mattias Runge-Broberg) #33676
  * (SEMVER-MINOR) add history event and option to set initial history (Mattias Runge-Broberg) #33662
repl:
  * (SEMVER-MINOR) add auto‑completion for `node:`‑prefixed `require(…)` calls (ExE Boss) #37246
src:
  * (SEMVER-MINOR) call overload ctor from the original ctor (Darshan Sen) #39768
  * (SEMVER-MINOR) add a constructor overload for CallbackScope (Darshan Sen) #39768
  * (SEMVER-MINOR) allow to negate boolean CLI flags (Michaël Zasso) #39023
  * (SEMVER-MINOR) add --heapsnapshot-near-heap-limit option (Joyee Cheung) #33010
  * (SEMVER-MINOR) add way to get IsolateData and allocator from Environment (Anna Henningsen) #36441
  * (SEMVER-MINOR) allow preventing SetPrepareStackTraceCallback (Shelley Vohr) #36447
  * (SEMVER-MINOR) add maybe versions of EmitExit and EmitBeforeExit (Anna Henningsen) #35486
stream:
  * (SEMVER-MINOR) add readableDidRead if has been read from (Robert Nagy) #39589
  * (SEMVER-MINOR) pipeline accept Buffer as a valid first argument (Nitzan Uziely) #37739
tls:
  * (SEMVER-MINOR) allow reading data into a static buffer (Andrey Pechkurov) #35753
tools:
  * (SEMVER-MINOR) add `Worker` to type-parser (James M Snell) #38659
url:
  * (SEMVER-MINOR) expose urlToHttpOptions utility (Yongsheng Zhang) #35960
util:
  * (SEMVER-MINOR) expose toUSVString (Robert Nagy) #39814
v8:
  * (SEMVER-MINOR) implement v8.stopCoverage() (Joyee Cheung) #33807
  * (SEMVER-MINOR) implement v8.takeCoverage() (Joyee Cheung) #33807
worker:
  * (SEMVER-MINOR) add setEnvironmentData/getEnvironmentData (James M Snell) #37486

PR-URL: #39990
  • Loading branch information
targos committed Sep 4, 2021
1 parent 55493f2 commit f226165
Show file tree
Hide file tree
Showing 28 changed files with 574 additions and 86 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V14.md#14.17.6">14.17.6</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V14.md#14.18.0">14.18.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V14.md#14.17.6">14.17.6</a><br/>
<a href="doc/changelogs/CHANGELOG_V14.md#14.17.5">14.17.5</a><br/>
<a href="doc/changelogs/CHANGELOG_V14.md#14.17.4">14.17.4</a><br/>
<a href="doc/changelogs/CHANGELOG_V14.md#14.17.3">14.17.3</a><br/>
Expand Down
8 changes: 4 additions & 4 deletions doc/api/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ An alias of [`assert.ok()`][].
<!-- YAML
added: v0.1.21
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38113
description: In Legacy assertion mode, changed status from Deprecated to
Legacy.
Expand Down Expand Up @@ -758,7 +758,7 @@ assert.doesNotThrow(
<!-- YAML
added: v0.1.21
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38113
description: In Legacy assertion mode, changed status from Deprecated to
Legacy.
Expand Down Expand Up @@ -985,7 +985,7 @@ instance of an [`Error`][] then it will be thrown instead of the
<!-- YAML
added: v0.1.21
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38113
description: In Legacy assertion mode, changed status from Deprecated to
Legacy.
Expand Down Expand Up @@ -1125,7 +1125,7 @@ instead of the [`AssertionError`][].
<!-- YAML
added: v0.1.21
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38113
description: In Legacy assertion mode, changed status from Deprecated to
Legacy.
Expand Down
16 changes: 8 additions & 8 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const buf7 = Buffer.from('tést', 'latin1');
## Buffers and character encodings
<!-- YAML
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/36952
description: Introduced `base64url` encoding.
- version: v6.4.0
Expand Down Expand Up @@ -289,7 +289,7 @@ Additionally, the [`buf.values()`][], [`buf.keys()`][], and

## Class: `Blob`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

> Stability: 1 - Experimental
Expand All @@ -299,7 +299,7 @@ multiple worker threads.

### `new buffer.Blob([sources[, options]])`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

* `sources` {string[]|ArrayBuffer[]|TypedArray[]|DataView[]|Blob[]} An array
Expand All @@ -321,7 +321,7 @@ String sources are also copied into the `Blob`.

### `blob.arrayBuffer()`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

* Returns: {Promise}
Expand All @@ -331,14 +331,14 @@ the `Blob` data.

### `blob.size`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

The total size of the `Blob` in bytes.

### `blob.slice([start, [end, [type]]])`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

* `start` {number} The starting index.
Expand All @@ -350,7 +350,7 @@ data. The original `Blob` is not alterered.

### `blob.text()`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

* Returns: {Promise}
Expand All @@ -360,7 +360,7 @@ string.

### `blob.type`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

* Type: {string}
Expand Down
24 changes: 12 additions & 12 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ exec('"my script.cmd" a b', (err, stdout, stderr) => {
<!-- YAML
added: v0.1.90
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38862
description: The `cwd` option can be a WHATWG `URL` object using
`file:` protocol.
Expand Down Expand Up @@ -275,7 +275,7 @@ controller.abort();
<!-- YAML
added: v0.1.91
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38862
description: The `cwd` option can be a WHATWG `URL` object using
`file:` protocol.
Expand Down Expand Up @@ -382,14 +382,14 @@ controller.abort();
<!-- YAML
added: v0.5.0
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38862
description: The `cwd` option can be a WHATWG `URL` object using
`file:` protocol.
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/37256
description: timeout was added.
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/37325
description: killSignal for AbortSignal was added.
- version: v14.17.0
Expand Down Expand Up @@ -495,14 +495,14 @@ if (process.argv[2] === 'child') {
<!-- YAML
added: v0.1.90
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38862
description: The `cwd` option can be a WHATWG `URL` object using
`file:` protocol.
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/37256
description: timeout was added.
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/37325
description: killSignal for AbortSignal was added.
- version: v14.17.0
Expand Down Expand Up @@ -740,7 +740,7 @@ subprocess.unref();
<!-- YAML
added: v0.7.10
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/29412
description: Added the `overlapped` stdio flag.
- version: v3.3.1
Expand Down Expand Up @@ -855,7 +855,7 @@ configuration at startup.
<!-- YAML
added: v0.11.12
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38862
description: The `cwd` option can be a WHATWG `URL` object using
`file:` protocol.
Expand Down Expand Up @@ -928,7 +928,7 @@ arbitrary command execution.**
<!-- YAML
added: v0.11.12
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38862
description: The `cwd` option can be a WHATWG `URL` object using
`file:` protocol.
Expand Down Expand Up @@ -992,7 +992,7 @@ metacharacters may be used to trigger arbitrary command execution.**
<!-- YAML
added: v0.11.12
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38862
description: The `cwd` option can be a WHATWG `URL` object using
`file:` protocol.
Expand Down
8 changes: 4 additions & 4 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ code from strings throw an exception instead. This does not affect the Node.js

### `--dns-result-order=order`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

Set the default value of `verbatim` in [`dns.lookup()`][] and
Expand All @@ -208,7 +208,7 @@ Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with
<!-- YAML
added: v12.12.0
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/37362
description: This API is no longer experimental.
-->
Expand Down Expand Up @@ -352,7 +352,7 @@ be added.

### `--heapsnapshot-near-heap-limit=max_count`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -611,7 +611,7 @@ Silence all process warnings (including deprecations).

### `--node-memory-debug`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

Enable extra debug checks for memory leaks in Node.js internals. This is
Expand Down
2 changes: 1 addition & 1 deletion doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2656,7 +2656,7 @@ Use `fs.rm(path, { recursive: true, force: true })` instead.
### DEP0151: Main index lookup and extension searching
<!-- YAML
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/36918
description: Documentation-only deprecation
with `--pending-deprecation` support.
Expand Down
6 changes: 3 additions & 3 deletions doc/api/dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The following methods from the `dns` module are available:
<!-- YAML
added: v8.3.0
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/39610
description: The `options` object now accepts a `tries` option.
- version: v14.5.0
Expand Down Expand Up @@ -635,7 +635,7 @@ one of the [DNS error codes][].

## `dns.setDefaultResultOrder(order)`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

* `order` {string} must be `'ipv4first'` or `'verbatim'`.
Expand Down Expand Up @@ -1153,7 +1153,7 @@ is one of the [DNS error codes](#dns_error_codes).

### `dnsPromises.setDefaultResultOrder(order)`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

* `order` {string} must be `'ipv4first'` or `'verbatim'`.
Expand Down
4 changes: 2 additions & 2 deletions doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ An unknown Diffie-Hellman group name was given. See
<a id="ERR_DLOPEN_FAILED"></a>
### `ERR_DLOPEN_FAILED`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

A call to `process.dlopen()` failed.
Expand Down Expand Up @@ -1432,7 +1432,7 @@ An IP address is not valid.
<a id="ERR_INVALID_MODULE"></a>
### `ERR_INVALID_MODULE`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

An attempt was made to load a module that does not exist or was otherwise not
Expand Down
4 changes: 2 additions & 2 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ added:
- v14.13.1
- v12.20.0
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/37246
description: Added `node:` import support to `require(...)`.
-->
Expand Down Expand Up @@ -282,7 +282,7 @@ added:
- v13.9.0
- v12.16.2
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/38587
description: Add support for WHATWG `URL` object to `parentURL` parameter.
-->
Expand Down
12 changes: 6 additions & 6 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ the end of the file.
<!-- YAML
added: v10.0.0
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/37490
description: The `data` argument supports `AsyncIterable`, `Iterable` and `Stream`.
- version: v14.12.0
Expand Down Expand Up @@ -799,7 +799,7 @@ rejection only when `recursive` is false.
<!-- YAML
added: v10.0.0
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/39028
description: The `prefix` parameter now accepts an empty string.
-->
Expand Down Expand Up @@ -1203,7 +1203,7 @@ The `atime` and `mtime` arguments follow these rules:
### `fsPromises.watch(filename[, options])`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->
* `filename` {string|Buffer|URL}
Expand Down Expand Up @@ -1254,7 +1254,7 @@ All the [caveats][] for `fs.watch()` also apply to `fsPromises.watch()`.
<!-- YAML
added: v10.0.0
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/37490
description: The `data` argument supports `AsyncIterable`, `Iterable` and `Stream`.
- version: v14.17.0
Expand Down Expand Up @@ -2560,7 +2560,7 @@ See the POSIX mkdir(2) documentation for more details.
<!-- YAML
added: v5.10.0
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/39028
description: The `prefix` parameter now accepts an empty string.
- version: v10.0.0
Expand Down Expand Up @@ -4496,7 +4496,7 @@ See the POSIX mkdir(2) documentation for more details.
<!-- YAML
added: v5.10.0
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/39028
description: The `prefix` parameter now accepts an empty string.
-->
Expand Down
2 changes: 1 addition & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -2767,7 +2767,7 @@ This can be overridden for servers and client requests by passing the
<!-- YAML
added: v0.3.6
changes:
- version: REPLACEME
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/39310
description: When using a `URL` object parsed username and
password will now be properly URI decoded.
Expand Down
4 changes: 2 additions & 2 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ A prototype-less object describing the current remote settings of this

#### `http2session.setLocalWindowSize(windowSize)`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

* `windowSize` {number}
Expand Down Expand Up @@ -2597,7 +2597,7 @@ the given `Buffer` as generated by `http2.getPackedSettings()`.

### `http2.sensitiveHeaders`
<!-- YAML
added: REPLACEME
added: v14.18.0
-->

* {symbol}
Expand Down
Loading

0 comments on commit f226165

Please sign in to comment.