Skip to content

Commit db1c2be

Browse files
aduh95RafaelGSS
authored andcommittedJul 17, 2024·
2024-07-17, 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 5090166 commit db1c2be

11 files changed

+192
-34
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
@@ -1086,7 +1086,7 @@ Use this flag to enable [ShadowRealm][] support.
10861086
### `--experimental-sqlite`
10871087

10881088
<!-- YAML
1089-
added: REPLACEME
1089+
added: v22.5.0
10901090
-->
10911091

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

‎doc/api/errors.md

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

25742574
<!-- YAML
2575-
added: REPLACEME
2575+
added: v22.5.0
25762576
-->
25772577

25782578
An error was returned from [SQLite][].
@@ -3113,7 +3113,7 @@ nor a relative path starting with `./` or `../`.
31133113
### `ERR_WORKER_MESSAGING_ERRORED`
31143114

31153115
<!-- YAML
3116-
added: REPLACEME
3116+
added: v22.5.0
31173117
-->
31183118

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

31273127
<!-- YAML
3128-
added: REPLACEME
3128+
added: v22.5.0
31293129
-->
31303130

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

31393139
<!-- YAML
3140-
added: REPLACEME
3140+
added: v22.5.0
31413141
-->
31423142

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

31513151
<!-- YAML
3152-
added: REPLACEME
3152+
added: v22.5.0
31533153
-->
31543154

31553155
> 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()`][].
@@ -1900,7 +1900,7 @@ previous setting of `process.exitCode`.
19001900
## `process.finalization.register(ref, callback)`
19011901
19021902
<!-- YAML
1903-
added: REPLACEME
1903+
added: v22.5.0
19041904
-->
19051905
19061906
> Stability: 1.1 - Active Development
@@ -2009,7 +2009,7 @@ as it is not guaranteed that the callback will be called under all circumstances
20092009
## `process.finalization.registerBeforeExit(ref, callback)`
20102010
20112011
<!-- YAML
2012-
added: REPLACEME
2012+
added: v22.5.0
20132013
-->
20142014
20152015
> Stability: 1.1 - Active Development
@@ -2030,7 +2030,7 @@ this means that there is a possibility that the callback will not be called unde
20302030
## `process.finalization.unregister(ref)`
20312031
20322032
<!-- YAML
2033-
added: REPLACEME
2033+
added: v22.5.0
20342034
-->
20352035
20362036
> 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

‎doc/changelogs/CHANGELOG_V22.md

+157
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.