Skip to content

Commit

Permalink
2024-07-17, Version 22.5.0 (Current)
Browse files Browse the repository at this point in the history
Notable changes:

http:
  * (SEMVER-MINOR) expose websockets (Natalia Venditto) #53721
lib:
  * (SEMVER-MINOR) add `node:sqlite` module (Colin Ihrig) #53752
module:
  * add `__esModule` to `require()`'d ESM (Joyee Cheung) #52166
path:
  * (SEMVER-MINOR) add `matchesGlob` method (Aviv Keller) #52881
process:
  * (SEMVER-MINOR) port on-exit-leak-free to core (Vinicius Lourenço) #53239
stream:
  * (SEMVER-MINOR) pipeline wait for close before calling the callback (jakecastelli) #53462
test_runner:
  * support glob matching coverage files (Aviv Keller) #53553
worker:
  * (SEMVER-MINOR) add `postMessageToThread` (Paolo Insogna) #53682

PR-URL: #53826
  • Loading branch information
aduh95 committed Jul 17, 2024
1 parent ad1e561 commit 34de839
Show file tree
Hide file tree
Showing 12 changed files with 195 additions and 37 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.4.1">22.4.1</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.5.0">22.5.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.4.1">22.4.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.4.0">22.4.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.3.0">22.3.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.2.0">22.2.0</a><br/>
Expand Down
6 changes: 3 additions & 3 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ node -C development app.js

<!-- YAML
added:
- REPLACEME
- v22.5.0
-->

> Stability: 1 - Experimental
Expand All @@ -511,7 +511,7 @@ files must meet **both** criteria to be included in the coverage report.

<!-- YAML
added:
- REPLACEME
- v22.5.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -1082,7 +1082,7 @@ Use this flag to enable [ShadowRealm][] support.
### `--experimental-sqlite`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

Enable the experimental [`node:sqlite`][] module.
Expand Down
10 changes: 5 additions & 5 deletions doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -2585,7 +2585,7 @@ A call was made and the UDP subsystem was not running.
### `ERR_SQLITE_ERROR`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

An error was returned from [SQLite][].
Expand Down Expand Up @@ -3120,7 +3120,7 @@ nor a relative path starting with `./` or `../`.
### `ERR_WORKER_MESSAGING_ERRORED`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

> Stability: 1.1 - Active development
Expand All @@ -3132,7 +3132,7 @@ The destination thread threw an error while processing a message sent via [`post
### `ERR_WORKER_MESSAGING_FAILED`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

> Stability: 1.1 - Active development
Expand All @@ -3144,7 +3144,7 @@ The thread requested in [`postMessageToThread()`][] is invalid or has no `worker
### `ERR_WORKER_MESSAGING_SAME_THREAD`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

> Stability: 1.1 - Active development
Expand All @@ -3156,7 +3156,7 @@ The thread id requested in [`postMessageToThread()`][] is the current thread id.
### `ERR_WORKER_MESSAGING_TIMEOUT`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

> Stability: 1.1 - Active development
Expand Down
2 changes: 1 addition & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -4232,7 +4232,7 @@ Set the maximum number of idle HTTP parsers.
<!-- YAML
added:
- REPLACEME
- v22.5.0
-->
A browser-compatible implementation of [`WebSocket`][].
Expand Down
2 changes: 1 addition & 1 deletion doc/api/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ path.format({
## `path.matchesGlob(path, pattern)`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

> Stability: 1 - Experimental
Expand Down
8 changes: 4 additions & 4 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ most convenient for scripts).
### Event: `'workerMessage'`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* `value` {any} A value transmitted using [`postMessageToThread()`][].
Expand Down Expand Up @@ -1892,7 +1892,7 @@ previous setting of `process.exitCode`.
## `process.finalization.register(ref, callback)`
<!-- YAML
added: REPLACEME
added: v22.5.0
-->
> Stability: 1.1 - Active Development
Expand Down Expand Up @@ -2001,7 +2001,7 @@ as it is not guaranteed that the callback will be called under all circumstances
## `process.finalization.registerBeforeExit(ref, callback)`
<!-- YAML
added: REPLACEME
added: v22.5.0
-->
> Stability: 1.1 - Active Development
Expand All @@ -2022,7 +2022,7 @@ this means that there is a possibility that the callback will not be called unde
## `process.finalization.unregister(ref)`
<!-- YAML
added: REPLACEME
added: v22.5.0
-->
> Stability: 1.1 - Active Development
Expand Down
32 changes: 16 additions & 16 deletions doc/api/sqlite.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# SQLite

<!--introduced_in=REPLACEME-->
<!--introduced_in=v22.5.0-->

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

> Stability: 1.1 - Active development
Expand Down Expand Up @@ -85,7 +85,7 @@ console.log(query.all());
## Class: `DatabaseSync`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

This class represents a single [connection][] to a SQLite database. All APIs
Expand All @@ -94,7 +94,7 @@ exposed by this class execute synchronously.
### `new DatabaseSync(location[, options])`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* `location` {string} The location of the database. A SQLite database can be
Expand All @@ -112,7 +112,7 @@ Constructs a new `DatabaseSync` instance.
### `database.close()`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

Closes the database connection. An exception is thrown if the database is not
Expand All @@ -121,7 +121,7 @@ open. This method is a wrapper around [`sqlite3_close_v2()`][].
### `database.exec(sql)`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* `sql` {string} A SQL string to execute.
Expand All @@ -133,7 +133,7 @@ file. This method is a wrapper around [`sqlite3_exec()`][].
### `database.open()`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

Opens the database specified in the `location` argument of the `DatabaseSync`
Expand All @@ -143,7 +143,7 @@ the constructor. An exception is thrown if the database is already open.
### `database.prepare(sql)`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* `sql` {string} A SQL string to compile to a prepared statement.
Expand All @@ -155,7 +155,7 @@ around [`sqlite3_prepare_v2()`][].
## Class: `StatementSync`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

This class represents a single [prepared statement][]. This class cannot be
Expand All @@ -172,7 +172,7 @@ over hand-crafted SQL strings when handling user input.
### `statement.all([namedParameters][, ...anonymousParameters])`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* `namedParameters` {Object} An optional object used to bind named parameters.
Expand All @@ -191,7 +191,7 @@ the values in `namedParameters` and `anonymousParameters`.
### `statement.expandedSQL()`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* Returns: {string} The source SQL expanded to include parameter values.
Expand All @@ -203,7 +203,7 @@ placeholders replaced by values. This method is a wrapper around
### `statement.get([namedParameters][, ...anonymousParameters])`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* `namedParameters` {Object} An optional object used to bind named parameters.
Expand All @@ -223,7 +223,7 @@ values in `namedParameters` and `anonymousParameters`.
### `statement.run([namedParameters][, ...anonymousParameters])`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* `namedParameters` {Object} An optional object used to bind named parameters.
Expand All @@ -248,7 +248,7 @@ values in `namedParameters` and `anonymousParameters`.
### `statement.setAllowBareNamedParameters(enabled)`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* `enabled` {boolean} Enables or disables support for binding named parameters
Expand All @@ -273,7 +273,7 @@ are several caveats to be aware of when enabling bare named parameters:
### `statement.setReadBigInts(enabled)`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* `enabled` {boolean} Enables or disables the use of `BigInt`s when reading
Expand All @@ -289,7 +289,7 @@ supported at all times.
### `statement.sourceSQL()`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* Returns: {string} The source SQL used to create this prepared statement.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ protocol.
### `tlsSocket.setKeyCert(context)`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

* `context` {Object|tls.SecureContext} An object containing at least `key` and
Expand Down
2 changes: 1 addition & 1 deletion doc/api/webcrypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ The algorithms currently supported include:
<!-- YAML
added: v15.0.0
changes:
- version: REPLACEME
- version: v22.5.0
pr-url: https://github.com/nodejs/node/pull/53601

Check warning on line 578 in doc/api/webcrypto.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: The length parameter is now optional for `'ECDH'`, `'X25519'`,
and `'X448'`.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ if (isMainThread) {
## `worker.postMessageToThread(threadId, value[, transferList][, timeout])`

<!-- YAML
added: REPLACEME
added: v22.5.0
-->

> Stability: 1.1 - Active development
Expand Down
Loading

0 comments on commit 34de839

Please sign in to comment.