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 the `--experimental-fetch`
flag that installs the `fetch`, `Request`, `Response`, `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 27, 2022
1 parent 8f248d4 commit 3120691
Show file tree
Hide file tree
Showing 15 changed files with 423 additions and 42 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -53,7 +53,8 @@ release.
<a href="doc/changelogs/CHANGELOG_V17.md#17.0.0">17.0.0</a><br/>
</td>
<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
8 changes: 6 additions & 2 deletions doc/api/async_context.md
Expand Up @@ -446,7 +446,9 @@ added:
- v14.8.0
- v12.19.0
changes:
- version: v17.8.0
- version:
- v17.8.0
- 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 +474,9 @@ added:
- v14.8.0
- v12.19.0
changes:
- version: v17.8.0
- version:
- v17.8.0
- 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
4 changes: 3 additions & 1 deletion doc/api/buffer.md
Expand Up @@ -3389,7 +3389,9 @@ console.log(buf.subarray(-5, -2).toString());
<!-- YAML
added: v0.3.0
changes:
- version: v17.5.0
- version:
- v17.5.0
- v16.15.0
pr-url: https://github.com/nodejs/node/pull/41596
description: The buf.slice() method has been deprecated.
- version:
Expand Down
8 changes: 6 additions & 2 deletions doc/api/cli.md
Expand Up @@ -283,7 +283,9 @@ modifying the stack trace.
### `--experimental-global-webcrypto`

<!-- YAML
added: v17.6.0
added:
- v17.6.0
- v16.15.0
-->

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

<!-- YAML
added: v17.6.0
added:
- v17.6.0
- v16.15.0
-->

> Stability: 1 - Experimental
Expand Down
12 changes: 9 additions & 3 deletions doc/api/crypto.md
Expand Up @@ -2090,7 +2090,9 @@ PKCS#1 and SEC1 encryption.
### `keyObject.equals(otherKeyObject)`

<!-- YAML
added: v17.7.0
added:
- v17.7.0
- v16.15.0
-->

* `otherKeyObject`: {KeyObject} A `KeyObject` with which to
Expand Down Expand Up @@ -2503,7 +2505,9 @@ changes:
description: The `wildcards`, `partialWildcards`, `multiLabelWildcards`, and
`singleLabelSubdomains` options have been removed since they
had no effect.
- version: v17.5.0
- version:
- v17.5.0
- v16.15.0
pr-url: https://github.com/nodejs/node/pull/41569
description: The subject option can now be set to `'default'`.
-->
Expand Down Expand Up @@ -2536,7 +2540,9 @@ changes:
- version: v18.0.0
pr-url: https://github.com/nodejs/node/pull/41600
description: The subject option now defaults to `'default'`.
- version: v17.5.0
- version:
- v17.5.0
- v16.15.0
pr-url: https://github.com/nodejs/node/pull/41569
description: The subject option can now be set to `'default'`.
-->
Expand Down
16 changes: 12 additions & 4 deletions doc/api/deprecations.md
Expand Up @@ -3057,7 +3057,9 @@ const w = new Writable({

<!-- YAML
changes:
- version: v17.5.0
- version:
- v17.5.0
- v16.15.0
pr-url: https://github.com/nodejs/node/pull/41596
description: Documentation-only deprecation.
-->
Expand Down Expand Up @@ -3090,7 +3092,9 @@ changes:
- version: v18.0.0
pr-url: https://github.com/nodejs/node/pull/41896
description: Runtime deprecation.
- version: v17.6.0
- version:
- v17.6.0
- v16.15.0
pr-url: https://github.com/nodejs/node/pull/41872
description: Documentation-only deprecation.
-->
Expand All @@ -3104,7 +3108,9 @@ which diminished its usefulness.

<!-- YAML
changes:
- version: v17.6.0
- version:
- v17.6.0
- v16.15.0
pr-url: https://github.com/nodejs/node/pull/41587
description: Documentation-only deprecation.
-->
Expand All @@ -3125,7 +3131,9 @@ changes:
- version: v18.0.0
pr-url: https://github.com/nodejs/node/pull/42607
description: Runtime deprecation.
- version: v17.8.0
- version:
- v17.8.0
- v16.15.0
pr-url: https://github.com/nodejs/node/pull/42149
description: Documentation-only deprecation.
-->
Expand Down
12 changes: 9 additions & 3 deletions doc/api/fs.md
Expand Up @@ -870,7 +870,9 @@ try {
<!-- YAML
added: v16.7.0
changes:
- version: v17.6.0
- version:
- v17.6.0
- 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 @@ -2093,7 +2095,9 @@ changes:
description: Passing an invalid callback to the `callback` argument
now throws `ERR_INVALID_ARG_TYPE` instead of
`ERR_INVALID_CALLBACK`.
- version: v17.6.0
- version:
- v17.6.0
- 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 @@ -4859,7 +4863,9 @@ copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL);
<!-- YAML
added: v16.7.0
changes:
- version: v17.6.0
- version:
- v17.6.0
- 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
36 changes: 27 additions & 9 deletions doc/api/globals.md
Expand Up @@ -340,7 +340,9 @@ A browser-compatible implementation of [`CountQueuingStrategy`][].
## `Crypto`

<!-- YAML
added: v17.6.0
added:
- v17.6.0
- v16.15.0
-->

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

<!-- YAML
added: v17.6.0
added:
- v17.6.0
- v16.15.0
-->

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

<!-- YAML
added: v17.6.0
added:
- v17.6.0
- v16.15.0
-->

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

<!-- YAML
added: v17.5.0
added:
- v17.5.0
- v16.15.0
-->

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

<!-- YAML
added: v17.6.0
added:
- v17.6.0
- v16.15.0
-->

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

<!-- YAML
added: v17.5.0
added:
- v17.5.0
- v16.15.0
-->

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

<!-- YAML
added: v17.5.0
added:
- v17.5.0
- v16.15.0
-->

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

<!-- YAML
added: v17.5.0
added:
- v17.5.0
- v16.15.0
-->

> Stability: 1 - Experimental. Disable this API with the [`--no-experimental-fetch`][]
Expand Down Expand Up @@ -685,7 +701,9 @@ The WHATWG [`structuredClone`][] method.
## `SubtleCrypto`

<!-- YAML
added: v17.6.0
added:
- v17.6.0
- v16.15.0
-->

> Stability: 1 - Experimental. Enable this API with the
Expand Down
8 changes: 6 additions & 2 deletions doc/api/http.md
Expand Up @@ -301,7 +301,9 @@ removed from the array on `'timeout'`.
<!-- YAML
added: v0.11.4
changes:
- version: v17.7.0
- version:
- v17.7.0
- v16.15.0
pr-url: https://github.com/nodejs/node/pull/41906
description: The `options` parameter is now optional.
-->
Expand Down Expand Up @@ -2948,7 +2950,9 @@ changes:
- version: v18.0.0
pr-url: https://github.com/nodejs/node/pull/42163
description: The `noDelay` option now defaults to `true`.
- version: v17.7.0
- version:
- v17.7.0
- v16.15.0
pr-url: https://github.com/nodejs/node/pull/41310
description: The `noDelay`, `keepAlive` and `keepAliveInitialDelay`
options are supported now.
Expand Down
8 changes: 6 additions & 2 deletions doc/api/n-api.md
Expand Up @@ -2507,8 +2507,12 @@ of the ECMAScript Language Specification.
#### `node_api_symbol_for`

<!-- YAML
added: v17.5.0
napiVersion: v17.5.0
added:
- v17.5.0
- v16.15.0
napiVersion:
- v17.5.0
- v16.15.0
-->

> Stability: 1 - Experimental
Expand Down
4 changes: 3 additions & 1 deletion doc/api/net.md
Expand Up @@ -830,7 +830,9 @@ behavior.
<!-- YAML
added: v0.1.90
changes:
- version: v17.7.0
- version:
- v17.7.0
- 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: 3 additions & 1 deletion doc/api/process.md
Expand Up @@ -180,7 +180,9 @@ See [Advanced serialization for `child_process`][] for more details.

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

> Stability: 0 - Deprecated
Expand Down

0 comments on commit 3120691

Please sign in to comment.