Skip to content

Commit b90d208

Browse files
committed
2024-07-16, Version 22.5.0 (Current)
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
1 parent ad1e561 commit b90d208

12 files changed

+195
-37
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ release.
3838
</tr>
3939
<tr>
4040
<td valign="top">
41-
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.4.1">22.4.1</a></b><br/>
41+
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.5.0">22.5.0</a></b><br/>
42+
<a href="doc/changelogs/CHANGELOG_V22.md#22.4.1">22.4.1</a><br/>
4243
<a href="doc/changelogs/CHANGELOG_V22.md#22.4.0">22.4.0</a><br/>
4344
<a href="doc/changelogs/CHANGELOG_V22.md#22.3.0">22.3.0</a><br/>
4445
<a href="doc/changelogs/CHANGELOG_V22.md#22.2.0">22.2.0</a><br/>

doc/api/cli.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ node -C development app.js
494494

495495
<!-- YAML
496496
added:
497-
- REPLACEME
497+
- v22.5.0
498498
-->
499499

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

512512
<!-- YAML
513513
added:
514-
- REPLACEME
514+
- v22.5.0
515515
-->
516516

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

10841084
<!-- YAML
1085-
added: REPLACEME
1085+
added: v22.5.0
10861086
-->
10871087

10881088
Enable the experimental [`node:sqlite`][] module.

doc/api/errors.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2585,7 +2585,7 @@ A call was made and the UDP subsystem was not running.
25852585
### `ERR_SQLITE_ERROR`
25862586

25872587
<!-- YAML
2588-
added: REPLACEME
2588+
added: v22.5.0
25892589
-->
25902590

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

31223122
<!-- YAML
3123-
added: REPLACEME
3123+
added: v22.5.0
31243124
-->
31253125

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

31343134
<!-- YAML
3135-
added: REPLACEME
3135+
added: v22.5.0
31363136
-->
31373137

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

31463146
<!-- YAML
3147-
added: REPLACEME
3147+
added: v22.5.0
31483148
-->
31493149

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

31583158
<!-- YAML
3159-
added: REPLACEME
3159+
added: v22.5.0
31603160
-->
31613161

31623162
> Stability: 1.1 - Active development

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4232,7 +4232,7 @@ Set the maximum number of idle HTTP parsers.
42324232
42334233
<!-- YAML
42344234
added:
4235-
- REPLACEME
4235+
- v22.5.0
42364236
-->
42374237
42384238
A browser-compatible implementation of [`WebSocket`][].

doc/api/path.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ path.format({
282282
## `path.matchesGlob(path, pattern)`
283283

284284
<!-- YAML
285-
added: REPLACEME
285+
added: v22.5.0
286286
-->
287287

288288
> Stability: 1 - Experimental

doc/api/process.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ most convenient for scripts).
330330
### Event: `'workerMessage'`
331331

332332
<!-- YAML
333-
added: REPLACEME
333+
added: v22.5.0
334334
-->
335335

336336
* `value` {any} A value transmitted using [`postMessageToThread()`][].
@@ -1892,7 +1892,7 @@ previous setting of `process.exitCode`.
18921892
## `process.finalization.register(ref, callback)`
18931893
18941894
<!-- YAML
1895-
added: REPLACEME
1895+
added: v22.5.0
18961896
-->
18971897
18981898
> Stability: 1.1 - Active Development
@@ -2001,7 +2001,7 @@ as it is not guaranteed that the callback will be called under all circumstances
20012001
## `process.finalization.registerBeforeExit(ref, callback)`
20022002
20032003
<!-- YAML
2004-
added: REPLACEME
2004+
added: v22.5.0
20052005
-->
20062006
20072007
> Stability: 1.1 - Active Development
@@ -2022,7 +2022,7 @@ this means that there is a possibility that the callback will not be called unde
20222022
## `process.finalization.unregister(ref)`
20232023
20242024
<!-- YAML
2025-
added: REPLACEME
2025+
added: v22.5.0
20262026
-->
20272027
20282028
> Stability: 1.1 - Active Development

doc/api/sqlite.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SQLite
22

3-
<!--introduced_in=REPLACEME-->
3+
<!--introduced_in=v22.5.0-->
44

55
<!-- YAML
6-
added: REPLACEME
6+
added: v22.5.0
77
-->
88

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

8787
<!-- YAML
88-
added: REPLACEME
88+
added: v22.5.0
8989
-->
9090

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

9696
<!-- YAML
97-
added: REPLACEME
97+
added: v22.5.0
9898
-->
9999

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

114114
<!-- YAML
115-
added: REPLACEME
115+
added: v22.5.0
116116
-->
117117

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

123123
<!-- YAML
124-
added: REPLACEME
124+
added: v22.5.0
125125
-->
126126

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

135135
<!-- YAML
136-
added: REPLACEME
136+
added: v22.5.0
137137
-->
138138

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

145145
<!-- YAML
146-
added: REPLACEME
146+
added: v22.5.0
147147
-->
148148

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

157157
<!-- YAML
158-
added: REPLACEME
158+
added: v22.5.0
159159
-->
160160

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

174174
<!-- YAML
175-
added: REPLACEME
175+
added: v22.5.0
176176
-->
177177

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

193193
<!-- YAML
194-
added: REPLACEME
194+
added: v22.5.0
195195
-->
196196

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

205205
<!-- YAML
206-
added: REPLACEME
206+
added: v22.5.0
207207
-->
208208

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

225225
<!-- YAML
226-
added: REPLACEME
226+
added: v22.5.0
227227
-->
228228

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

250250
<!-- YAML
251-
added: REPLACEME
251+
added: v22.5.0
252252
-->
253253

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

275275
<!-- YAML
276-
added: REPLACEME
276+
added: v22.5.0
277277
-->
278278

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

291291
<!-- YAML
292-
added: REPLACEME
292+
added: v22.5.0
293293
-->
294294

295295
* Returns: {string} The source SQL used to create this prepared statement.

doc/api/tls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ protocol.
15771577
### `tlsSocket.setKeyCert(context)`
15781578

15791579
<!-- YAML
1580-
added: REPLACEME
1580+
added: v22.5.0
15811581
-->
15821582

15831583
* `context` {Object|tls.SecureContext} An object containing at least `key` and

doc/api/webcrypto.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ The algorithms currently supported include:
574574
<!-- YAML
575575
added: v15.0.0
576576
changes:
577-
- version: REPLACEME
577+
- version: v22.5.0
578578
pr-url: https://github.com/nodejs/node/pull/53601
579579
description: The length parameter is now optional for `'ECDH'`, `'X25519'`,
580580
and `'X448'`.

doc/api/worker_threads.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ if (isMainThread) {
255255
## `worker.postMessageToThread(threadId, value[, transferList][, timeout])`
256256

257257
<!-- YAML
258-
added: REPLACEME
258+
added: v22.5.0
259259
-->
260260

261261
> Stability: 1.1 - Active development

0 commit comments

Comments
 (0)