Skip to content

Commit

Permalink
Merge branch 'nodejs:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito authored Jan 16, 2024
2 parents 3e588a1 + e133e51 commit 5b1991f
Show file tree
Hide file tree
Showing 27 changed files with 481 additions and 132 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V21.md#21.5.0">21.5.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V21.md#21.6.0">21.6.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V21.md#21.5.0">21.5.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V21.md#21.4.0">21.4.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V21.md#21.3.0">21.3.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V21.md#21.2.0">21.2.0</a><br/>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,6 @@ For information about the governance of the Node.js project, see
**Myles Borins** <<myles.borins@gmail.com>> (he/him)
* [ovflowd](https://github.com/ovflowd) -
**Claudio Wunder** <<cwunder@gnome.org>> (he/they)
* [oyyd](https://github.com/oyyd) -
**Ouyang Yadong** <<oyydoibh@gmail.com>> (he/him)
* [panva](https://github.com/panva) -
**Filip Skokan** <<panva.ip@gmail.com>> (he/him)
* [Qard](https://github.com/Qard) -
Expand Down Expand Up @@ -621,6 +619,8 @@ For information about the governance of the Node.js project, see
**Alexis Campailla** <<orangemocha@nodejs.org>>
* [othiym23](https://github.com/othiym23) -
**Forrest L Norvell** <<ogd@aoaioxxysz.net>> (they/them/themself)
* [oyyd](https://github.com/oyyd) -
**Ouyang Yadong** <<oyydoibh@gmail.com>> (he/him)
* [petkaantonov](https://github.com/petkaantonov) -
**Petka Antonov** <<petka_antonov@hotmail.com>>
* [phillipj](https://github.com/phillipj) -
Expand Down
2 changes: 1 addition & 1 deletion deps/cares/cares.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
}],
[ 'OS not in "win android"', {
'cflags': [
'--std=gnu89'
'--std=gnu11'
],
}],
[ 'OS=="linux"', {
Expand Down
4 changes: 2 additions & 2 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ If this flag is passed, the behavior can still be set to not abort through
### `--allow-addons`

<!-- YAML
added: REPLACEME
added: v21.6.0
-->

> Stability: 1.1 - Active development
Expand Down Expand Up @@ -367,7 +367,7 @@ Currently the support for run-time snapshot is experimental in that:
### `--build-snapshot-config`

<!-- YAML
added: REPLACEME
added: v21.6.0
-->

> Stability: 1 - Experimental
Expand Down
10 changes: 6 additions & 4 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3527,6 +3527,9 @@ deprecated. Get them from `fs.constants` or `fs.promises.constants` instead.

<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/51442
description: End-of-Life.
- version:
- v21.3.0
- v20.11.0
Expand All @@ -3537,10 +3540,10 @@ changes:
description: Documentation-only deprecation.
-->

Type: Documentation-only
Type: End-of-Life

The [`util.types.isWebAssemblyCompiledModule`][] API is deprecated. Please use
`value instanceof WebAssembly.Module` instead.
The `util.types.isWebAssemblyCompiledModule` API has been removed.
Please use `value instanceof WebAssembly.Module` instead.

### DEP0178: `dirent.path`

Expand Down Expand Up @@ -3715,7 +3718,6 @@ Please use the [`crypto.createHash()`][] method to create Hash instances.
[`util.log()`]: util.md#utillogstring
[`util.promisify`]: util.md#utilpromisifyoriginal
[`util.toUSVString()`]: util.md#utiltousvstringstring
[`util.types.isWebAssemblyCompiledModule`]: util.md#utiltypesiswebassemblycompiledmodulevalue
[`util.types`]: util.md#utiltypes
[`util`]: util.md
[`worker.exitedAfterDisconnect`]: cluster.md#workerexitedafterdisconnect
Expand Down
6 changes: 3 additions & 3 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -2991,12 +2991,12 @@ added:
* `value` {string|string\[]} Header value
* Returns: {this}

Append a single header value for the header object.
Append a single header value to the header object.

If the value is an array, this is equivalent of calling this method multiple
If the value is an array, this is equivalent to calling this method multiple
times.

If there were no previous value for the header, this is equivalent of calling
If there were no previous values for the header, this is equivalent to calling
[`outgoingMessage.setHeader(name, value)`][].

Depending of the value of `options.uniqueHeaders` when the client request or the
Expand Down
43 changes: 43 additions & 0 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2890,6 +2890,19 @@ added: v8.4.0
Returns a [HTTP/2 Settings Object][] containing the deserialized settings from
the given `Buffer` as generated by `http2.getPackedSettings()`.

### `http2.performServerHandshake(socket[, options])`

<!-- YAML
added: REPLACEME
-->

* `socket` {stream.Duplex}
* `options` {Object}
* ...: Any [`http2.createServer()`][] option can be provided.
* Returns: {ServerHttp2Session}

Create an HTTP/2 server session from an existing socket.

### `http2.sensitiveHeaders`

<!-- YAML
Expand Down Expand Up @@ -3646,6 +3659,36 @@ message) to the response.
Attempting to set a header field name or value that contains invalid characters
will result in a [`TypeError`][] being thrown.

#### `response.appendHeader(name, value)`

<!-- YAML
added: REPLACEME
-->

* `name` {string}
* `value` {string|string\[]}

Append a single header value to the header object.

If the value is an array, this is equivalent to calling this method multiple
times.

If there were no previous values for the header, this is equivalent to calling
[`response.setHeader()`][].

Attempting to set a header field name or value that contains invalid characters
will result in a [`TypeError`][] being thrown.

```js
// Returns headers including "set-cookie: a" and "set-cookie: b"
const server = http2.createServer((req, res) => {
res.setHeader('set-cookie', 'a');
res.appendHeader('set-cookie', 'b');
res.writeHead(200);
res.end('ok');
});
```

#### `response.connection`

<!-- YAML
Expand Down
2 changes: 1 addition & 1 deletion doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ async function getPackageType(url) {
.catch((err) => {
if (err?.code !== 'ENOENT') console.error(err);
});
// Ff package.json existed and contained a `type` field with a value, voila
// If package.json existed and contained a `type` field with a value, voilà
if (type) return type;
// Otherwise, (if not at the root) continue checking the next directory up
// If at the root, stop and return false
Expand Down
2 changes: 1 addition & 1 deletion doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ handle and/or callback scope inside a `napi_callback` is not necessary.
#### `node_api_nogc_finalize`

<!-- YAML
added: REPLACEME
added: v21.6.0
-->

> Stability: 1 - Experimental
Expand Down
6 changes: 3 additions & 3 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ See [`net.createConnection()`][].
### Event: `'connectionAttempt'`

<!-- YAML
added: REPLACEME
added: v21.6.0
-->

* `ip` {number} The IP which the socket is attempting to connect to.
Expand All @@ -707,7 +707,7 @@ if the family autoselection algorithm is enabled in [`socket.connect(options)`][
### Event: `'connectionAttemptFailed'`

<!-- YAML
added: REPLACEME
added: v21.6.0
-->

* `ip` {number} The IP which the socket attempted to connect to.
Expand All @@ -721,7 +721,7 @@ if the family autoselection algorithm is enabled in [`socket.connect(options)`][
### Event: `'connectionAttemptTimeout'`

<!-- YAML
added: REPLACEME
added: v21.6.0
-->

* `ip` {number} The IP which the socket attempted to connect to.
Expand Down
20 changes: 0 additions & 20 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -2838,25 +2838,6 @@ Returns `true` if the value is a built-in [`WeakSet`][] instance.
util.types.isWeakSet(new WeakSet()); // Returns true
```

### `util.types.isWebAssemblyCompiledModule(value)`

<!-- YAML
added: v10.0.0
deprecated: v14.0.0
-->

> Stability: 0 - Deprecated: Use `value instanceof WebAssembly.Module` instead.

* `value` {any}
* Returns: {boolean}

Returns `true` if the value is a built-in [`WebAssembly.Module`][] instance.

```js
const module = new WebAssembly.Module(wasmBuffer);
util.types.isWebAssemblyCompiledModule(module); // Returns true
```

## Deprecated APIs

The following APIs are deprecated and should no longer be used. Existing
Expand Down Expand Up @@ -3362,7 +3343,6 @@ util.log('Timestamped message.');
[`Uint8ClampedArray`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray
[`WeakMap`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
[`WeakSet`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet
[`WebAssembly.Module`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module
[`assert.deepStrictEqual()`]: assert.md#assertdeepstrictequalactual-expected-message
[`console.error()`]: console.md#consoleerrordata-args
[`mime.toString()`]: #mimetostring
Expand Down
Loading

0 comments on commit 5b1991f

Please sign in to comment.