Skip to content

Commit

Permalink
2022-04-26, Version 16.15.0 'Gallium' (LTS)
Browse files Browse the repository at this point in the history
Notable changes:

Add fetch API

Adds experimental support to the fetch API. This adds a `--experimental-fetch`
flag that installs the `fetch`, `Request`, `Reponse``Headers`, and `FormData`
globals.

* (SEMVER-MINOR) add fetch (Michaël Zasso) #41749
* (SEMVER-MINOR) add FormData global when fetch is enabled (Michaël Zasso) #41956

Other notable changes

* build:
  * remove broken x32 arch support (Ben Noordhuis) #41905
* crypto:
  * (SEMVER-MINOR) add KeyObject.prototype.equals method (Filip Skokan) #42093
* doc:
  * add @ShogunPanda to collaborators (Paolo Insogna) #42362
  * add JakobJingleheimer to collaborators list (Jacob Smith) #42185
  * add joesepi to collaborators (Joe Sepi) #41914
  * add marsonya to collaborators (Akhil Marsonya) #41991
  * deprecate string coercion in `fs.write`, `fs.writeFileSync` (Livia
    Medeiros) #42149
  * deprecate notice for process methods (Yash Ladha) #41587
* esm:
  * (SEMVER-MINOR) support https remotely and http locally under flag
    (Bradley Farias) #36328
* module:
  * (SEMVER-MINOR) unflag esm json modules (Geoffrey Booth) #41736
* node-api:
  * (SEMVER-MINOR) add node_api_symbol_for() (Darshan Sen) #41329
* process:
  * deprecate multipleResolves (Benjamin Gruenbaum) #41872
* stream:
  * (SEMVER-MINOR) support some and every (Benjamin Gruenbaum) #41573
  * (SEMVER-MINOR) add toArray (Benjamin Gruenbaum) #41553
  * (SEMVER-MINOR) add forEach method (Benjamin Gruenbaum) #41445

PR-URL: #42847
  • Loading branch information
danielleadams committed Apr 26, 2022
1 parent 166eb78 commit ff6f938
Show file tree
Hide file tree
Showing 16 changed files with 345 additions and 46 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_V16.md#16.14.2">16.14.2</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V16.md#16.15.0">16.15.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V16.md#16.14.2">16.14.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V16.md#16.14.1">16.14.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V16.md#16.14.0">16.14.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V16.md#16.13.2">16.13.2</a><br/>
Expand Down
4 changes: 2 additions & 2 deletions doc/api/async_context.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ added:
- v14.8.0
- v12.19.0
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/42177
description: Changed the default when `thisArg` is undefined to use `this`
from the caller.
Expand All @@ -472,7 +472,7 @@ added:
- v14.8.0
- v12.19.0
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/42177
description: Changed the default when `thisArg` is undefined to use `this`
from the caller.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3371,7 +3371,7 @@ console.log(buf.subarray(-5, -2).toString());
<!-- YAML
added: v0.3.0
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41596
description: The buf.slice() method has been deprecated.
- version:
Expand Down
6 changes: 3 additions & 3 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,15 @@ modifying the stack trace.
### `--experimental-fetch`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

Enable experimental support for the [Fetch API][].

### `--experimental-global-webcrypto`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

Expose the [Web Crypto API][] on the global scope.
Expand All @@ -310,7 +310,7 @@ Specify the `module` of a custom experimental [ECMAScript module loader][].
### `--experimental-network-imports`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental
Expand Down
6 changes: 3 additions & 3 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,7 @@ PKCS#1 and SEC1 encryption.
### `keyObject.equals(otherKeyObject)`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

* `otherKeyObject`: {KeyObject} A `KeyObject` with which to
Expand Down Expand Up @@ -2488,7 +2488,7 @@ added: v15.6.0
<!-- YAML
added: v15.6.0
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41569
description: The subject option can now be set to `'default'`.
- version: v16.14.1
Expand Down Expand Up @@ -2527,7 +2527,7 @@ considered, even if the certificate contains no subject alternative names.
<!-- YAML
added: v15.6.0
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41569
description: The subject option can now be set to `'default'`.
-->
Expand Down
8 changes: 4 additions & 4 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3039,7 +3039,7 @@ const w = new Writable({

<!-- YAML
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41596
description: Documentation-only deprecation.
-->
Expand All @@ -3057,7 +3057,7 @@ Use [`buffer.subarray`][] which does the same thing instead.

<!-- YAML
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41872
description: Documentation-only deprecation.
-->
Expand All @@ -3071,7 +3071,7 @@ which diminished its usefulness.

<!-- YAML
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41587
description: Documentation-only deprecation.
-->
Expand All @@ -3089,7 +3089,7 @@ resources and not the actual references.

<!-- YAML
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/42149
description: Documentation-only deprecation.
-->
Expand Down
6 changes: 3 additions & 3 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ try {
<!-- YAML
added: v16.7.0
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41819
description: Accepts an additional `verbatimSymlinks` option to specify
whether to perform path resolution for symlinks.
Expand Down Expand Up @@ -2014,7 +2014,7 @@ copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback);
<!-- YAML
added: v16.7.0
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41819
description: Accepts an additional `verbatimSymlinks` option to specify
whether to perform path resolution for symlinks.
Expand Down Expand Up @@ -4596,7 +4596,7 @@ copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL);
<!-- YAML
added: v16.7.0
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41819
description: Accepts an additional `verbatimSymlinks` option to specify
whether to perform path resolution for symlinks.
Expand Down
18 changes: 9 additions & 9 deletions doc/api/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Used to print to stdout and stderr. See the [`console`][] section.
## `Crypto`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental. Enable this API with the
Expand All @@ -277,7 +277,7 @@ only if the Node.js binary was compiled with including support for the
## `crypto`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental. Enable this API with the
Expand All @@ -288,7 +288,7 @@ A browser-compatible implementation of the [Web Crypto API][].
## `CryptoKey`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental. Enable this API with the
Expand Down Expand Up @@ -335,7 +335,7 @@ This variable may appear to be global but is not. See [`exports`][].
## `fetch`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental. Enable this API with the [`--experimental-fetch`][]
Expand All @@ -346,7 +346,7 @@ A browser-compatible implementation of the [`fetch()`][] function.
## Class `FormData`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental. Enable this API with the [`--experimental-fetch`][]
Expand All @@ -372,7 +372,7 @@ Node.js this is different. The top-level scope is not the global scope;
## Class `Headers`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental. Enable this API with the [`--experimental-fetch`][]
Expand Down Expand Up @@ -477,7 +477,7 @@ This variable may appear to be global but is not. See [`require()`][].
## `Response`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental. Enable this API with the [`--experimental-fetch`][]
Expand All @@ -488,7 +488,7 @@ A browser-compatible implementation of {Response}.
## `Request`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental. Enable this API with the [`--experimental-fetch`][]
Expand Down Expand Up @@ -529,7 +529,7 @@ added: v0.0.1
## `SubtleCrypto`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental. Enable this API with the
Expand Down
4 changes: 2 additions & 2 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ removed from the array on `'timeout'`.
<!-- YAML
added: v0.11.4
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41906
description: The `options` parameter is now optional.
-->
Expand Down Expand Up @@ -2824,7 +2824,7 @@ Found'`.
<!-- YAML
added: v0.1.13
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41310
description: The `noDelay`, `keepAlive` and `keepAliveInitialDelay`
options are supported now.
Expand Down
4 changes: 2 additions & 2 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2502,8 +2502,8 @@ of the ECMAScript Language Specification.
#### `node_api_symbol_for`
<!-- YAML
added: REPLACEME
napiVersion: REPLACEME
added: v16.15.0
napiVersion: v16.15.0
-->
> Stability: 1 - Experimental
Expand Down
2 changes: 1 addition & 1 deletion doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ behavior.
<!-- YAML
added: v0.1.90
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41310
description: The `noDelay`, `keepAlive` and `keepAliveInitialDelay`
options are supported now.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ See [Advanced serialization for `child_process`][] for more details.

<!-- YAML
added: v10.12.0
deprecated: REPLACEME
deprecated: v16.15.0
-->

> Stability: 0 - Deprecated
Expand Down
18 changes: 9 additions & 9 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,7 @@ for await (const result of dnsResults) {
##### `readable.forEach(fn[, options])`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -1837,7 +1837,7 @@ console.log('done'); // Stream has finished
##### `readable.toArray([options])`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -1877,7 +1877,7 @@ const dnsResults = await Readable.from([
##### `readable.some(fn[, options])`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -1926,7 +1926,7 @@ console.log('done'); // Stream has finished
##### `readable.every(fn[, options])`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -1975,7 +1975,7 @@ console.log('done'); // Stream has finished
##### `readable.flatMap(fn[, options])`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -2024,7 +2024,7 @@ for await (const result of concatResult) {
##### `readable.drop(limit[, options])`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental
Expand All @@ -2046,7 +2046,7 @@ await Readable.from([1, 2, 3, 4]).drop(2).toArray(); // [3, 4]
##### `readable.take(limit[, options])`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental
Expand All @@ -2068,7 +2068,7 @@ await Readable.from([1, 2, 3, 4]).take(2).toArray(); // [1, 2]
##### `readable.asIndexedPairs([options])`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental
Expand All @@ -2092,7 +2092,7 @@ console.log(pairs); // [[0, 'a'], [1, 'b'], [2, 'c']]
##### `readable.reduce(fn[, initial[, options]])`

<!-- YAML
added: REPLACEME
added: v16.15.0
-->

> Stability: 1 - Experimental
Expand Down
4 changes: 2 additions & 2 deletions doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ added:
- v15.12.0
- v14.18.0
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41272
description: No longer experimental.
-->
Expand Down Expand Up @@ -298,7 +298,7 @@ added:
- v15.12.0
- v14.18.0
changes:
- version: REPLACEME
- version: v16.15.0
pr-url: https://github.com/nodejs/node/pull/41272
description: No longer experimental.
-->
Expand Down
Loading

0 comments on commit ff6f938

Please sign in to comment.