node-linux-s390x 22.7.0 → 22.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +391 -0
- package/LICENSE +215 -33
- package/README.md +4 -4
- package/bin/node +0 -0
- package/include/node/common.gypi +1 -1
- package/include/node/config.gypi +4 -1
- package/include/node/js_native_api.h +4 -0
- package/include/node/node_version.h +1 -1
- package/include/node/v8-isolate.h +7 -0
- package/package.json +1 -1
- package/share/man/man1/node.1 +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
</tr>
|
|
9
9
|
<tr>
|
|
10
10
|
<td>
|
|
11
|
+
<a href="#22.9.0">22.9.0</a><br/>
|
|
12
|
+
<a href="#22.8.0">22.8.0</a><br/>
|
|
11
13
|
<a href="#22.7.0">22.7.0</a><br/>
|
|
12
14
|
<a href="#22.6.0">22.6.0</a><br/>
|
|
13
15
|
<a href="#22.5.1">22.5.1</a><br/>
|
|
@@ -46,6 +48,395 @@
|
|
|
46
48
|
* [io.js](CHANGELOG_IOJS.md)
|
|
47
49
|
* [Archive](CHANGELOG_ARCHIVE.md)
|
|
48
50
|
|
|
51
|
+
<a id="22.9.0"></a>
|
|
52
|
+
|
|
53
|
+
## 2024-09-17, Version 22.9.0 (Current), @RafaelGSS
|
|
54
|
+
|
|
55
|
+
### New API to retrieve execution Stack Trace
|
|
56
|
+
|
|
57
|
+
A new API `getCallSite` has been introduced to the `util` module. This API allows users
|
|
58
|
+
to retrieve the stacktrace of the current execution. Example:
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
const util = require('node:util');
|
|
62
|
+
|
|
63
|
+
function exampleFunction() {
|
|
64
|
+
const callSites = util.getCallSite();
|
|
65
|
+
|
|
66
|
+
console.log('Call Sites:');
|
|
67
|
+
callSites.forEach((callSite, index) => {
|
|
68
|
+
console.log(`CallSite ${index + 1}:`);
|
|
69
|
+
console.log(`Function Name: ${callSite.functionName}`);
|
|
70
|
+
console.log(`Script Name: ${callSite.scriptName}`);
|
|
71
|
+
console.log(`Line Number: ${callSite.lineNumber}`);
|
|
72
|
+
console.log(`Column Number: ${callSite.column}`);
|
|
73
|
+
});
|
|
74
|
+
// CallSite 1:
|
|
75
|
+
// Function Name: exampleFunction
|
|
76
|
+
// Script Name: /home/example.js
|
|
77
|
+
// Line Number: 5
|
|
78
|
+
// Column Number: 26
|
|
79
|
+
|
|
80
|
+
// CallSite 2:
|
|
81
|
+
// Function Name: anotherFunction
|
|
82
|
+
// Script Name: /home/example.js
|
|
83
|
+
// Line Number: 22
|
|
84
|
+
// Column Number: 3
|
|
85
|
+
|
|
86
|
+
// ...
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// A function to simulate another stack layer
|
|
90
|
+
function anotherFunction() {
|
|
91
|
+
exampleFunction();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
anotherFunction();
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Thanks to Rafael Gonzaga for making this work on [#54380](https://github.com/nodejs/node/pull/54380).
|
|
98
|
+
|
|
99
|
+
### Disable V8 Maglev
|
|
100
|
+
|
|
101
|
+
We have seen several crashes/unexpected JS behaviors with maglev on v22
|
|
102
|
+
(which ships V8 v12.4). The bugs lie in the codegen so it would be difficult for
|
|
103
|
+
users to work around them or even figure out where the bugs are coming from.
|
|
104
|
+
Some bugs are fixed in the upstream while some others probably remain.
|
|
105
|
+
|
|
106
|
+
As v22 will get stuck with V8 v12.4 as LTS, it will be increasingly difficult to
|
|
107
|
+
backport patches for them even if the bugs are fixed. So disable it by default
|
|
108
|
+
on v22 to reduce the churn and troubles for users.
|
|
109
|
+
|
|
110
|
+
Thanks to Joyee Cheung for making this work on [#54384](https://github.com/nodejs/node/pull/54384)
|
|
111
|
+
|
|
112
|
+
### Exposes X509\_V\_FLAG\_PARTIAL\_CHAIN to tls.createSecureContext
|
|
113
|
+
|
|
114
|
+
This releases introduces a new option to the API `tls.createSecureContext`. For
|
|
115
|
+
now on users can use `tls.createSecureContext({ allowPartialTrustChain: true })`
|
|
116
|
+
to treat intermediate (non-self-signed) certificates in the trust CA certificate
|
|
117
|
+
list as trusted.
|
|
118
|
+
|
|
119
|
+
Thanks to Anna Henningsen for making this work on [#54790](https://github.com/nodejs/node/pull/54790)
|
|
120
|
+
|
|
121
|
+
### Other Notable Changes
|
|
122
|
+
|
|
123
|
+
* \[[`5c9599af5a`](https://github.com/nodejs/node/commit/5c9599af5a)] - **src**: create handle scope in FastInternalModuleStat (Joyee Cheung) [#54384](https://github.com/nodejs/node/pull/54384)
|
|
124
|
+
* \[[`e2307d87e8`](https://github.com/nodejs/node/commit/e2307d87e8)] - **(SEMVER-MINOR)** **stream**: relocate the status checking code in the onwritecomplete (YoonSoo\_Shin) [#54032](https://github.com/nodejs/node/pull/54032)
|
|
125
|
+
|
|
126
|
+
### Deprecations
|
|
127
|
+
|
|
128
|
+
* \[[`8433032948`](https://github.com/nodejs/node/commit/8433032948)] - **repl**: doc-deprecate instantiating `node:repl` classes without `new` (Aviv Keller) [#54842](https://github.com/nodejs/node/pull/54842)
|
|
129
|
+
* \[[`8c4c85cf31`](https://github.com/nodejs/node/commit/8c4c85cf31)] - **zlib**: deprecate instantiating classes without new (Yagiz Nizipli) [#54708](https://github.com/nodejs/node/pull/54708)
|
|
130
|
+
|
|
131
|
+
### Commits
|
|
132
|
+
|
|
133
|
+
* \[[`027b0ffe84`](https://github.com/nodejs/node/commit/027b0ffe84)] - **async\_hooks**: add an InactiveAsyncContextFrame class (Bryan English) [#54510](https://github.com/nodejs/node/pull/54510)
|
|
134
|
+
* \[[`022767028e`](https://github.com/nodejs/node/commit/022767028e)] - **benchmark**: --no-warnings to avoid DEP/ExpWarn log (Rafael Gonzaga) [#54928](https://github.com/nodejs/node/pull/54928)
|
|
135
|
+
* \[[`af1988c147`](https://github.com/nodejs/node/commit/af1988c147)] - **benchmark**: add buffer.isAscii benchmark (RafaelGSS) [#54740](https://github.com/nodejs/node/pull/54740)
|
|
136
|
+
* \[[`40c6849964`](https://github.com/nodejs/node/commit/40c6849964)] - **benchmark**: add buffer.isUtf8 bench (RafaelGSS) [#54740](https://github.com/nodejs/node/pull/54740)
|
|
137
|
+
* \[[`237d7dfbde`](https://github.com/nodejs/node/commit/237d7dfbde)] - **benchmark**: add access async version to bench (Rafael Gonzaga) [#54747](https://github.com/nodejs/node/pull/54747)
|
|
138
|
+
* \[[`ebe91db827`](https://github.com/nodejs/node/commit/ebe91db827)] - **benchmark**: enhance dc publish benchmark (Rafael Gonzaga) [#54745](https://github.com/nodejs/node/pull/54745)
|
|
139
|
+
* \[[`060164485b`](https://github.com/nodejs/node/commit/060164485b)] - **benchmark**: add match and doesNotMatch bench (RafaelGSS) [#54734](https://github.com/nodejs/node/pull/54734)
|
|
140
|
+
* \[[`2844180c7e`](https://github.com/nodejs/node/commit/2844180c7e)] - **benchmark**: add rejects and doesNotReject bench (RafaelGSS) [#54734](https://github.com/nodejs/node/pull/54734)
|
|
141
|
+
* \[[`af7689ed02`](https://github.com/nodejs/node/commit/af7689ed02)] - **benchmark**: add throws and doesNotThrow bench (RafaelGSS) [#54734](https://github.com/nodejs/node/pull/54734)
|
|
142
|
+
* \[[`456a1fe222`](https://github.com/nodejs/node/commit/456a1fe222)] - **benchmark**: add strictEqual and notStrictEqual bench (RafaelGSS) [#54734](https://github.com/nodejs/node/pull/54734)
|
|
143
|
+
* \[[`721c63c858`](https://github.com/nodejs/node/commit/721c63c858)] - **benchmark**: adds groups to better separate benchmarks (Giovanni Bucci) [#54393](https://github.com/nodejs/node/pull/54393)
|
|
144
|
+
* \[[`68e45b406e`](https://github.com/nodejs/node/commit/68e45b406e)] - **benchmark,doc**: add CPU scaling governor to perf (Rafael Gonzaga) [#54723](https://github.com/nodejs/node/pull/54723)
|
|
145
|
+
* \[[`d19efd7a50`](https://github.com/nodejs/node/commit/d19efd7a50)] - **benchmark,doc**: mention bar.R to the list of scripts (Rafael Gonzaga) [#54722](https://github.com/nodejs/node/pull/54722)
|
|
146
|
+
* \[[`1fb67afa2f`](https://github.com/nodejs/node/commit/1fb67afa2f)] - **buffer**: fix out of range for toString (Jason Zhang) [#54553](https://github.com/nodejs/node/pull/54553)
|
|
147
|
+
* \[[`85b5ed5d41`](https://github.com/nodejs/node/commit/85b5ed5d41)] - **buffer**: re-enable Fast API for Buffer.write (Robert Nagy) [#54526](https://github.com/nodejs/node/pull/54526)
|
|
148
|
+
* \[[`9a075279ec`](https://github.com/nodejs/node/commit/9a075279ec)] - **build**: upgrade clang-format to v18 (Aviv Keller) [#53957](https://github.com/nodejs/node/pull/53957)
|
|
149
|
+
* \[[`69ec9d8d2b`](https://github.com/nodejs/node/commit/69ec9d8d2b)] - **build**: fix conflicting V8 object print flags (Daeyeon Jeong) [#54785](https://github.com/nodejs/node/pull/54785)
|
|
150
|
+
* \[[`948bba396c`](https://github.com/nodejs/node/commit/948bba396c)] - **build**: do not build with code cache for core coverage collection (Joyee Cheung) [#54633](https://github.com/nodejs/node/pull/54633)
|
|
151
|
+
* \[[`6200cf4fb6`](https://github.com/nodejs/node/commit/6200cf4fb6)] - **build**: don't store eslint locally (Aviv Keller) [#54231](https://github.com/nodejs/node/pull/54231)
|
|
152
|
+
* \[[`3b5ed97fe9`](https://github.com/nodejs/node/commit/3b5ed97fe9)] - **build**: turn off `-Wrestrict` (Richard Lau) [#54737](https://github.com/nodejs/node/pull/54737)
|
|
153
|
+
* \[[`e38e305a35`](https://github.com/nodejs/node/commit/e38e305a35)] - **build,win**: enable clang-cl compilation (Stefan Stojanovic) [#54655](https://github.com/nodejs/node/pull/54655)
|
|
154
|
+
* \[[`5bba0781b0`](https://github.com/nodejs/node/commit/5bba0781b0)] - **crypto**: reject dh,x25519,x448 in {Sign,Verify}Final (Huáng Jùnliàng) [#53774](https://github.com/nodejs/node/pull/53774)
|
|
155
|
+
* \[[`3981853c00`](https://github.com/nodejs/node/commit/3981853c00)] - **crypto**: return a clearer error when loading an unsupported pkcs12 (Tim Perry) [#54485](https://github.com/nodejs/node/pull/54485)
|
|
156
|
+
* \[[`02ac5376b9`](https://github.com/nodejs/node/commit/02ac5376b9)] - **crypto**: remove unused `kHashTypes` internal (Antoine du Hamel) [#54627](https://github.com/nodejs/node/pull/54627)
|
|
157
|
+
* \[[`323d9da3c9`](https://github.com/nodejs/node/commit/323d9da3c9)] - **deps**: update cjs-module-lexer to 1.4.1 (Node.js GitHub Bot) [#54846](https://github.com/nodejs/node/pull/54846)
|
|
158
|
+
* \[[`bf4bf7cc6b`](https://github.com/nodejs/node/commit/bf4bf7cc6b)] - **deps**: update simdutf to 5.5.0 (Node.js GitHub Bot) [#54434](https://github.com/nodejs/node/pull/54434)
|
|
159
|
+
* \[[`61047dd130`](https://github.com/nodejs/node/commit/61047dd130)] - **deps**: upgrade npm to 10.8.3 (npm team) [#54619](https://github.com/nodejs/node/pull/54619)
|
|
160
|
+
* \[[`2351da5034`](https://github.com/nodejs/node/commit/2351da5034)] - **deps**: update cjs-module-lexer to 1.4.0 (Node.js GitHub Bot) [#54713](https://github.com/nodejs/node/pull/54713)
|
|
161
|
+
* \[[`0659516823`](https://github.com/nodejs/node/commit/0659516823)] - **deps**: allow amaro to be externalizable (Michael Dawson) [#54646](https://github.com/nodejs/node/pull/54646)
|
|
162
|
+
* \[[`6a32645dbc`](https://github.com/nodejs/node/commit/6a32645dbc)] - **deps**: fix sign-compare warning in ncrypto (Cheng) [#54624](https://github.com/nodejs/node/pull/54624)
|
|
163
|
+
* \[[`8f62f19197`](https://github.com/nodejs/node/commit/8f62f19197)] - **doc**: fix broken Android building link (Niklas Wenzel) [#54922](https://github.com/nodejs/node/pull/54922)
|
|
164
|
+
* \[[`440c256d76`](https://github.com/nodejs/node/commit/440c256d76)] - **doc**: add support link for aduh95 (Antoine du Hamel) [#54866](https://github.com/nodejs/node/pull/54866)
|
|
165
|
+
* \[[`56aca2a1ca`](https://github.com/nodejs/node/commit/56aca2a1ca)] - **doc**: run license-builder (github-actions\[bot]) [#54854](https://github.com/nodejs/node/pull/54854)
|
|
166
|
+
* \[[`8931f569c6`](https://github.com/nodejs/node/commit/8931f569c6)] - **doc**: experimental flag for global accessible APIs (Chengzhong Wu) [#54330](https://github.com/nodejs/node/pull/54330)
|
|
167
|
+
* \[[`6f8a6e9eb6`](https://github.com/nodejs/node/commit/6f8a6e9eb6)] - **doc**: add `ERR_INVALID_ADDRESS` to `errors.md` (Aviv Keller) [#54661](https://github.com/nodejs/node/pull/54661)
|
|
168
|
+
* \[[`c1b92e05e7`](https://github.com/nodejs/node/commit/c1b92e05e7)] - **doc**: add support link for mcollina (Matteo Collina) [#54786](https://github.com/nodejs/node/pull/54786)
|
|
169
|
+
* \[[`1def18122a`](https://github.com/nodejs/node/commit/1def18122a)] - **doc**: mark `--conditions` CLI flag as stable (Guy Bedford) [#54209](https://github.com/nodejs/node/pull/54209)
|
|
170
|
+
* \[[`b8ae36b6c3`](https://github.com/nodejs/node/commit/b8ae36b6c3)] - **doc**: fix typo in recognizing-contributors (Tobias Nießen) [#54822](https://github.com/nodejs/node/pull/54822)
|
|
171
|
+
* \[[`2c2ae80924`](https://github.com/nodejs/node/commit/2c2ae80924)] - **doc**: clarify `--max-old-space-size` and `--max-semi-space-size` units (Alexandre ABRIOUX) [#54477](https://github.com/nodejs/node/pull/54477)
|
|
172
|
+
* \[[`5bd4be5ce7`](https://github.com/nodejs/node/commit/5bd4be5ce7)] - **doc**: replace --allow-fs-read by --allow-fs-write in related section (M1CK431) [#54427](https://github.com/nodejs/node/pull/54427)
|
|
173
|
+
* \[[`c0f3e4603f`](https://github.com/nodejs/node/commit/c0f3e4603f)] - **doc**: add support link for marco-ippolito (Marco Ippolito) [#54789](https://github.com/nodejs/node/pull/54789)
|
|
174
|
+
* \[[`dc69eb8276`](https://github.com/nodejs/node/commit/dc69eb8276)] - **doc**: fix typo in module.md (Tobias Nießen) [#54794](https://github.com/nodejs/node/pull/54794)
|
|
175
|
+
* \[[`de225f5db9`](https://github.com/nodejs/node/commit/de225f5db9)] - **doc**: specify that preloaded modules affect subprocesses (Aviv Keller) [#52939](https://github.com/nodejs/node/pull/52939)
|
|
176
|
+
* \[[`62b0007cbe`](https://github.com/nodejs/node/commit/62b0007cbe)] - **doc**: clarify expandedSQL behavior (Tobias Nießen) [#54685](https://github.com/nodejs/node/pull/54685)
|
|
177
|
+
* \[[`1c7bdf95db`](https://github.com/nodejs/node/commit/1c7bdf95db)] - **doc**: render type references in SQLite docs (Tobias Nießen) [#54684](https://github.com/nodejs/node/pull/54684)
|
|
178
|
+
* \[[`5555095531`](https://github.com/nodejs/node/commit/5555095531)] - **doc**: fix typo (Michael Dawson) [#54640](https://github.com/nodejs/node/pull/54640)
|
|
179
|
+
* \[[`754baa4efa`](https://github.com/nodejs/node/commit/754baa4efa)] - **doc**: fix webcrypto.md AES-GCM backticks (Filip Skokan) [#54621](https://github.com/nodejs/node/pull/54621)
|
|
180
|
+
* \[[`5bfb4bcf45`](https://github.com/nodejs/node/commit/5bfb4bcf45)] - **doc**: add documentation about os.tmpdir() overrides (Joyee Cheung) [#54613](https://github.com/nodejs/node/pull/54613)
|
|
181
|
+
* \[[`22d873208e`](https://github.com/nodejs/node/commit/22d873208e)] - **doc, build**: fixup build docs (Aviv Keller) [#54899](https://github.com/nodejs/node/pull/54899)
|
|
182
|
+
* \[[`5e081a12b6`](https://github.com/nodejs/node/commit/5e081a12b6)] - **doc, child\_process**: add esm snippets (Aviv Keller) [#53616](https://github.com/nodejs/node/pull/53616)
|
|
183
|
+
* \[[`2b68c30a26`](https://github.com/nodejs/node/commit/2b68c30a26)] - **doc, meta**: fix broken link in `onboarding.md` (Aviv Keller) [#54886](https://github.com/nodejs/node/pull/54886)
|
|
184
|
+
* \[[`a624002fff`](https://github.com/nodejs/node/commit/a624002fff)] - **esm**: throw `ERR_REQUIRE_ESM` instead of `ERR_INTERNAL_ASSERTION` (Antoine du Hamel) [#54868](https://github.com/nodejs/node/pull/54868)
|
|
185
|
+
* \[[`31d4ef91ee`](https://github.com/nodejs/node/commit/31d4ef91ee)] - **esm**: fix support for `URL` instances in `import.meta.resolve` (Antoine du Hamel) [#54690](https://github.com/nodejs/node/pull/54690)
|
|
186
|
+
* \[[`40ba89e452`](https://github.com/nodejs/node/commit/40ba89e452)] - **esm**: use Undici/`fetch` `data:` URL parser (Matthew Aitken) [#54748](https://github.com/nodejs/node/pull/54748)
|
|
187
|
+
* \[[`93116dd7b1`](https://github.com/nodejs/node/commit/93116dd7b1)] - **fs**: translate error code properly in cpSync (Jason Zhang) [#54906](https://github.com/nodejs/node/pull/54906)
|
|
188
|
+
* \[[`375cbb592e`](https://github.com/nodejs/node/commit/375cbb592e)] - **fs**: refactor rimraf to avoid using primordials (Yagiz Nizipli) [#54834](https://github.com/nodejs/node/pull/54834)
|
|
189
|
+
* \[[`ee89c3149e`](https://github.com/nodejs/node/commit/ee89c3149e)] - **fs**: respect dereference when copy symlink directory (Jason Zhang) [#54732](https://github.com/nodejs/node/pull/54732)
|
|
190
|
+
* \[[`7123bf7ca4`](https://github.com/nodejs/node/commit/7123bf7ca4)] - **http**: reduce likelihood of race conditions on keep-alive timeout (jazelly) [#54863](https://github.com/nodejs/node/pull/54863)
|
|
191
|
+
* \[[`04ef3e4afd`](https://github.com/nodejs/node/commit/04ef3e4afd)] - **https**: only use default ALPNProtocols when appropriate (Brian White) [#54411](https://github.com/nodejs/node/pull/54411)
|
|
192
|
+
* \[[`dc5593ba1e`](https://github.com/nodejs/node/commit/dc5593ba1e)] - **lib**: remove unnecessary async (jakecastelli) [#54829](https://github.com/nodejs/node/pull/54829)
|
|
193
|
+
* \[[`2b9a6373da`](https://github.com/nodejs/node/commit/2b9a6373da)] - **lib**: make WeakRef safe in abort\_controller (jazelly) [#54791](https://github.com/nodejs/node/pull/54791)
|
|
194
|
+
* \[[`5f02e1b850`](https://github.com/nodejs/node/commit/5f02e1b850)] - **lib**: move `Symbol[Async]Dispose` polyfills to `internal/util` (Antoine du Hamel) [#54853](https://github.com/nodejs/node/pull/54853)
|
|
195
|
+
* \[[`fc78ced7e4`](https://github.com/nodejs/node/commit/fc78ced7e4)] - **lib**: convert signals to array before validation (Jason Zhang) [#54714](https://github.com/nodejs/node/pull/54714)
|
|
196
|
+
* \[[`21fef34a53`](https://github.com/nodejs/node/commit/21fef34a53)] - **lib**: add note about removing `node:sys` module (Rafael Gonzaga) [#54743](https://github.com/nodejs/node/pull/54743)
|
|
197
|
+
* \[[`a37d805489`](https://github.com/nodejs/node/commit/a37d805489)] - **(SEMVER-MINOR)** **lib**: add util.getCallSite() API (Rafael Gonzaga) [#54380](https://github.com/nodejs/node/pull/54380)
|
|
198
|
+
* \[[`2a1f56cce6`](https://github.com/nodejs/node/commit/2a1f56cce6)] - **lib**: ensure no holey array in fixed\_queue (Jason Zhang) [#54537](https://github.com/nodejs/node/pull/54537)
|
|
199
|
+
* \[[`540b1dbaf6`](https://github.com/nodejs/node/commit/540b1dbaf6)] - **lib**: refactor SubtleCrypto experimental warnings (Filip Skokan) [#54620](https://github.com/nodejs/node/pull/54620)
|
|
200
|
+
* \[[`b59c8b88c7`](https://github.com/nodejs/node/commit/b59c8b88c7)] - **lib,src**: use built-in array buffer detach, transfer (Yagiz Nizipli) [#54837](https://github.com/nodejs/node/pull/54837)
|
|
201
|
+
* \[[`c1cc046de9`](https://github.com/nodejs/node/commit/c1cc046de9)] - **meta**: bump peter-evans/create-pull-request from 6.1.0 to 7.0.1 (dependabot\[bot]) [#54820](https://github.com/nodejs/node/pull/54820)
|
|
202
|
+
* \[[`82c08ef483`](https://github.com/nodejs/node/commit/82c08ef483)] - **meta**: add `Windows ARM64` to flaky-tests list (Aviv Keller) [#54693](https://github.com/nodejs/node/pull/54693)
|
|
203
|
+
* \[[`df30e8efa1`](https://github.com/nodejs/node/commit/df30e8efa1)] - **meta**: ping @nodejs/performance on bench changes (Rafael Gonzaga) [#54752](https://github.com/nodejs/node/pull/54752)
|
|
204
|
+
* \[[`bdd9fbb905`](https://github.com/nodejs/node/commit/bdd9fbb905)] - **meta**: bump actions/setup-python from 5.1.1 to 5.2.0 (Rich Trott) [#54691](https://github.com/nodejs/node/pull/54691)
|
|
205
|
+
* \[[`19574a8403`](https://github.com/nodejs/node/commit/19574a8403)] - **meta**: update sccache to v0.8.1 (Aviv Keller) [#54720](https://github.com/nodejs/node/pull/54720)
|
|
206
|
+
* \[[`9ebcfb2b28`](https://github.com/nodejs/node/commit/9ebcfb2b28)] - **meta**: bump step-security/harden-runner from 2.9.0 to 2.9.1 (dependabot\[bot]) [#54704](https://github.com/nodejs/node/pull/54704)
|
|
207
|
+
* \[[`ea58feb959`](https://github.com/nodejs/node/commit/ea58feb959)] - **meta**: bump actions/upload-artifact from 4.3.4 to 4.4.0 (dependabot\[bot]) [#54703](https://github.com/nodejs/node/pull/54703)
|
|
208
|
+
* \[[`c6bd9e443e`](https://github.com/nodejs/node/commit/c6bd9e443e)] - **meta**: bump github/codeql-action from 3.25.15 to 3.26.6 (dependabot\[bot]) [#54702](https://github.com/nodejs/node/pull/54702)
|
|
209
|
+
* \[[`79b358af2e`](https://github.com/nodejs/node/commit/79b358af2e)] - **meta**: fix links in `SECURITY.md` (Aviv Keller) [#54696](https://github.com/nodejs/node/pull/54696)
|
|
210
|
+
* \[[`6c8a20d650`](https://github.com/nodejs/node/commit/6c8a20d650)] - **meta**: fix `contributing` codeowners (Aviv Keller) [#54641](https://github.com/nodejs/node/pull/54641)
|
|
211
|
+
* \[[`b7284ed099`](https://github.com/nodejs/node/commit/b7284ed099)] - **module**: do not warn for typeless package.json when there isn't one (Joyee Cheung) [#54045](https://github.com/nodejs/node/pull/54045)
|
|
212
|
+
* \[[`ddd24a6e63`](https://github.com/nodejs/node/commit/ddd24a6e63)] - **node-api**: add external buffer creation benchmark (Chengzhong Wu) [#54877](https://github.com/nodejs/node/pull/54877)
|
|
213
|
+
* \[[`4a7576efae`](https://github.com/nodejs/node/commit/4a7576efae)] - **node-api**: add support for UTF-8 and Latin-1 property keys (Mert Can Altin) [#52984](https://github.com/nodejs/node/pull/52984)
|
|
214
|
+
* \[[`461e523498`](https://github.com/nodejs/node/commit/461e523498)] - **os**: improve `tmpdir` performance (Yagiz Nizipli) [#54709](https://github.com/nodejs/node/pull/54709)
|
|
215
|
+
* \[[`94fb7ab2e7`](https://github.com/nodejs/node/commit/94fb7ab2e7)] - **path**: remove `StringPrototypeCharCodeAt` from `posix.extname` (Aviv Keller) [#54546](https://github.com/nodejs/node/pull/54546)
|
|
216
|
+
* \[[`67b1d4cb45`](https://github.com/nodejs/node/commit/67b1d4cb45)] - **repl**: avoid interpreting 'npm' as a command when errors are recoverable (Shima Ryuhei) [#54848](https://github.com/nodejs/node/pull/54848)
|
|
217
|
+
* \[[`8433032948`](https://github.com/nodejs/node/commit/8433032948)] - **repl**: doc-deprecate instantiating `node:repl` classes without `new` (Aviv Keller) [#54842](https://github.com/nodejs/node/pull/54842)
|
|
218
|
+
* \[[`7766349dd0`](https://github.com/nodejs/node/commit/7766349dd0)] - **sqlite**: fix segfault in expandedSQL (Tobias Nießen) [#54687](https://github.com/nodejs/node/pull/54687)
|
|
219
|
+
* \[[`4c1b98ba2b`](https://github.com/nodejs/node/commit/4c1b98ba2b)] - **sqlite**: remove unnecessary auto assignment (Tobias Nießen) [#54686](https://github.com/nodejs/node/pull/54686)
|
|
220
|
+
* \[[`77d162adb6`](https://github.com/nodejs/node/commit/77d162adb6)] - **src**: add `--env-file-if-exists` flag (Bosco Domingo) [#53060](https://github.com/nodejs/node/pull/53060)
|
|
221
|
+
* \[[`424bdc03b4`](https://github.com/nodejs/node/commit/424bdc03b4)] - **src**: add Cleanable class to Environment (Gabriel Schulhof) [#54880](https://github.com/nodejs/node/pull/54880)
|
|
222
|
+
* \[[`fbd08e3a9f`](https://github.com/nodejs/node/commit/fbd08e3a9f)] - **src**: switch crypto APIs to use Maybe\<void> (James M Snell) [#54775](https://github.com/nodejs/node/pull/54775)
|
|
223
|
+
* \[[`5e72bd3545`](https://github.com/nodejs/node/commit/5e72bd3545)] - **src**: eliminate ManagedEVPPkey (James M Snell) [#54751](https://github.com/nodejs/node/pull/54751)
|
|
224
|
+
* \[[`97cbcfbb43`](https://github.com/nodejs/node/commit/97cbcfbb43)] - **src**: fix unhandled error in structuredClone (Daeyeon Jeong) [#54764](https://github.com/nodejs/node/pull/54764)
|
|
225
|
+
* \[[`b89cd8d19a`](https://github.com/nodejs/node/commit/b89cd8d19a)] - **src**: move hkdf, scrypto, pbkdf2 impl to ncrypto (James M Snell) [#54651](https://github.com/nodejs/node/pull/54651)
|
|
226
|
+
* \[[`5c9599af5a`](https://github.com/nodejs/node/commit/5c9599af5a)] - **src**: create handle scope in FastInternalModuleStat (Joyee Cheung) [#54384](https://github.com/nodejs/node/pull/54384)
|
|
227
|
+
* \[[`e2307d87e8`](https://github.com/nodejs/node/commit/e2307d87e8)] - **(SEMVER-MINOR)** **stream**: relocate the status checking code in the onwritecomplete (YoonSoo\_Shin) [#54032](https://github.com/nodejs/node/pull/54032)
|
|
228
|
+
* \[[`ff54cabef6`](https://github.com/nodejs/node/commit/ff54cabef6)] - **test**: adjust test-tls-junk-server for OpenSSL32 (Michael Dawson) [#54926](https://github.com/nodejs/node/pull/54926)
|
|
229
|
+
* \[[`23fb03beed`](https://github.com/nodejs/node/commit/23fb03beed)] - **test**: remove duplicate skip AIX (Wuli) [#54917](https://github.com/nodejs/node/pull/54917)
|
|
230
|
+
* \[[`2b5e70816a`](https://github.com/nodejs/node/commit/2b5e70816a)] - **test**: adjust tls test for OpenSSL32 (Michael Dawson) [#54909](https://github.com/nodejs/node/pull/54909)
|
|
231
|
+
* \[[`cefa692dcb`](https://github.com/nodejs/node/commit/cefa692dcb)] - **test**: fix test-http2-socket-close.js (Hüseyin Açacak) [#54900](https://github.com/nodejs/node/pull/54900)
|
|
232
|
+
* \[[`097f6d3e7e`](https://github.com/nodejs/node/commit/097f6d3e7e)] - **test**: improve test-internal-fs-syncwritestream (Sunghoon) [#54671](https://github.com/nodejs/node/pull/54671)
|
|
233
|
+
* \[[`ed736a689f`](https://github.com/nodejs/node/commit/ed736a689f)] - **test**: deflake test-dns (Luigi Pinca) [#54902](https://github.com/nodejs/node/pull/54902)
|
|
234
|
+
* \[[`bb4849f595`](https://github.com/nodejs/node/commit/bb4849f595)] - **test**: fix test test-tls-dhe for OpenSSL32 (Michael Dawson) [#54903](https://github.com/nodejs/node/pull/54903)
|
|
235
|
+
* \[[`d9264bceca`](https://github.com/nodejs/node/commit/d9264bceca)] - **test**: use correct file naming syntax for `util-parse-env` (Aviv Keller) [#53705](https://github.com/nodejs/node/pull/53705)
|
|
236
|
+
* \[[`115a7ca42a`](https://github.com/nodejs/node/commit/115a7ca42a)] - **test**: add missing await (Luigi Pinca) [#54828](https://github.com/nodejs/node/pull/54828)
|
|
237
|
+
* \[[`7a1d633d77`](https://github.com/nodejs/node/commit/7a1d633d77)] - **test**: move more url tests to `node:test` (Yagiz Nizipli) [#54636](https://github.com/nodejs/node/pull/54636)
|
|
238
|
+
* \[[`ee385d62b9`](https://github.com/nodejs/node/commit/ee385d62b9)] - **test**: strip color chars in `test-runner-run` (Giovanni Bucci) [#54552](https://github.com/nodejs/node/pull/54552)
|
|
239
|
+
* \[[`2efec6221c`](https://github.com/nodejs/node/commit/2efec6221c)] - **test**: deflake test-http2-misbehaving-multiplex (Luigi Pinca) [#54872](https://github.com/nodejs/node/pull/54872)
|
|
240
|
+
* \[[`b198a91404`](https://github.com/nodejs/node/commit/b198a91404)] - **test**: remove dead code in test-http2-misbehaving-multiplex (Luigi Pinca) [#54860](https://github.com/nodejs/node/pull/54860)
|
|
241
|
+
* \[[`194cb83f39`](https://github.com/nodejs/node/commit/194cb83f39)] - **test**: reduce test-esm-loader-hooks-inspect-wait flakiness (Luigi Pinca) [#54827](https://github.com/nodejs/node/pull/54827)
|
|
242
|
+
* \[[`4b53558e8b`](https://github.com/nodejs/node/commit/4b53558e8b)] - **test**: reduce the allocation size in test-worker-arraybuffer-zerofill (James M Snell) [#54839](https://github.com/nodejs/node/pull/54839)
|
|
243
|
+
* \[[`c968d65d6d`](https://github.com/nodejs/node/commit/c968d65d6d)] - **test**: fix test-tls-client-mindhsize for OpenSSL32 (Michael Dawson) [#54739](https://github.com/nodejs/node/pull/54739)
|
|
244
|
+
* \[[`b998bb0933`](https://github.com/nodejs/node/commit/b998bb0933)] - **test**: remove need to make fs call for zlib test (Yagiz Nizipli) [#54814](https://github.com/nodejs/node/pull/54814)
|
|
245
|
+
* \[[`f084ea2e01`](https://github.com/nodejs/node/commit/f084ea2e01)] - **test**: use platform timeout (jakecastelli) [#54591](https://github.com/nodejs/node/pull/54591)
|
|
246
|
+
* \[[`b10e434cf3`](https://github.com/nodejs/node/commit/b10e434cf3)] - **test**: add platform timeout support for riscv64 (jakecastelli) [#54591](https://github.com/nodejs/node/pull/54591)
|
|
247
|
+
* \[[`b875f2d7de`](https://github.com/nodejs/node/commit/b875f2d7de)] - **test**: reduce stack size for test-error-serdes (James M Snell) [#54840](https://github.com/nodejs/node/pull/54840)
|
|
248
|
+
* \[[`d1a411480a`](https://github.com/nodejs/node/commit/d1a411480a)] - **test**: reduce fs calls in test-fs-existssync-false (Yagiz Nizipli) [#54815](https://github.com/nodejs/node/pull/54815)
|
|
249
|
+
* \[[`b96ee30a09`](https://github.com/nodejs/node/commit/b96ee30a09)] - **test**: use `node:test` in `test-cli-syntax.bad` (Aviv Keller) [#54513](https://github.com/nodejs/node/pull/54513)
|
|
250
|
+
* \[[`5278b8b7a1`](https://github.com/nodejs/node/commit/5278b8b7a1)] - **test**: move test-http-server-request-timeouts-mixed (James M Snell) [#54841](https://github.com/nodejs/node/pull/54841)
|
|
251
|
+
* \[[`8345a60d3a`](https://github.com/nodejs/node/commit/8345a60d3a)] - **test**: fix Windows async-context-frame memory failure (Stephen Belanger) [#54823](https://github.com/nodejs/node/pull/54823)
|
|
252
|
+
* \[[`cad404e1a1`](https://github.com/nodejs/node/commit/cad404e1a1)] - **test**: fix volatile for CauseSegfault with clang (Ivan Trubach) [#54325](https://github.com/nodejs/node/pull/54325)
|
|
253
|
+
* \[[`41682c7286`](https://github.com/nodejs/node/commit/41682c7286)] - **test**: set `test-http2-socket-close` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
254
|
+
* \[[`1e1ac48711`](https://github.com/nodejs/node/commit/1e1ac48711)] - **test**: set `test-worker-arraybuffer-zerofill` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
255
|
+
* \[[`56238debff`](https://github.com/nodejs/node/commit/56238debff)] - **test**: set `test-runner-run-watch` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
256
|
+
* \[[`8291de1540`](https://github.com/nodejs/node/commit/8291de1540)] - **test**: set `test-http-server-request-timeouts-mixed` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
257
|
+
* \[[`32d340e6b3`](https://github.com/nodejs/node/commit/32d340e6b3)] - **test**: set `test-single-executable-application-empty` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
258
|
+
* \[[`6a2da4c4ca`](https://github.com/nodejs/node/commit/6a2da4c4ca)] - **test**: set `test-macos-app-sandbox` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
259
|
+
* \[[`2f408847a0`](https://github.com/nodejs/node/commit/2f408847a0)] - **test**: set `test-fs-utimes` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
260
|
+
* \[[`e3b7c40ffc`](https://github.com/nodejs/node/commit/e3b7c40ffc)] - **test**: set `test-runner-run-watch` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
261
|
+
* \[[`d2ede46946`](https://github.com/nodejs/node/commit/d2ede46946)] - **test**: set `test-sqlite-statement-sync` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
262
|
+
* \[[`b9f3385808`](https://github.com/nodejs/node/commit/b9f3385808)] - **test**: set `test-writewrap` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
263
|
+
* \[[`d55fec8f40`](https://github.com/nodejs/node/commit/d55fec8f40)] - **test**: set `test-async-context-frame` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
264
|
+
* \[[`3dfb525f3e`](https://github.com/nodejs/node/commit/3dfb525f3e)] - **test**: set `test-esm-loader-hooks-inspect-wait` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
265
|
+
* \[[`b0458a88b4`](https://github.com/nodejs/node/commit/b0458a88b4)] - **test**: set `test-http2-large-file` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
266
|
+
* \[[`5f6f8757e5`](https://github.com/nodejs/node/commit/5f6f8757e5)] - **test**: set `test-runner-watch-mode-complex` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
267
|
+
* \[[`4231af336d`](https://github.com/nodejs/node/commit/4231af336d)] - **test**: set `test-performance-function` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
268
|
+
* \[[`45ef2a868e`](https://github.com/nodejs/node/commit/45ef2a868e)] - **test**: set `test-debugger-heap-profiler` as flaky (Yagiz Nizipli) [#54802](https://github.com/nodejs/node/pull/54802)
|
|
269
|
+
* \[[`b5137f6405`](https://github.com/nodejs/node/commit/b5137f6405)] - **test**: fix `test-process-load-env-file` when path contains `'` (Antoine du Hamel) [#54511](https://github.com/nodejs/node/pull/54511)
|
|
270
|
+
* \[[`960116905a`](https://github.com/nodejs/node/commit/960116905a)] - **test**: refactor fs-watch tests due to macOS issue (Santiago Gimeno) [#54498](https://github.com/nodejs/node/pull/54498)
|
|
271
|
+
* \[[`f074d74bf3`](https://github.com/nodejs/node/commit/f074d74bf3)] - **test**: refactor `test-esm-type-field-errors` (Giovanni Bucci) [#54368](https://github.com/nodejs/node/pull/54368)
|
|
272
|
+
* \[[`67e30deced`](https://github.com/nodejs/node/commit/67e30deced)] - **test**: move more zlib tests to node:test (Yagiz Nizipli) [#54609](https://github.com/nodejs/node/pull/54609)
|
|
273
|
+
* \[[`fdb65111a3`](https://github.com/nodejs/node/commit/fdb65111a3)] - **test**: improve output of child process utilities (Joyee Cheung) [#54622](https://github.com/nodejs/node/pull/54622)
|
|
274
|
+
* \[[`55a12a4190`](https://github.com/nodejs/node/commit/55a12a4190)] - **test,crypto**: update WebCryptoAPI WPT (Filip Skokan) [#54925](https://github.com/nodejs/node/pull/54925)
|
|
275
|
+
* \[[`de0f445a7f`](https://github.com/nodejs/node/commit/de0f445a7f)] - **test\_runner**: reimplement `assert.ok` to allow stack parsing (Aviv Keller) [#54776](https://github.com/nodejs/node/pull/54776)
|
|
276
|
+
* \[[`a52c199d9d`](https://github.com/nodejs/node/commit/a52c199d9d)] - **(SEMVER-MINOR)** **test\_runner**: report coverage thresholds in `test:coverage` (Aviv Keller) [#54813](https://github.com/nodejs/node/pull/54813)
|
|
277
|
+
* \[[`6552fddef5`](https://github.com/nodejs/node/commit/6552fddef5)] - **test\_runner**: update kPatterns (Pietro Marchini) [#54728](https://github.com/nodejs/node/pull/54728)
|
|
278
|
+
* \[[`3396a4954d`](https://github.com/nodejs/node/commit/3396a4954d)] - **test\_runner**: detect only tests when isolation is off (Colin Ihrig) [#54832](https://github.com/nodejs/node/pull/54832)
|
|
279
|
+
* \[[`021f59b6bc`](https://github.com/nodejs/node/commit/021f59b6bc)] - **test\_runner**: apply filtering when tests begin (Colin Ihrig) [#54832](https://github.com/nodejs/node/pull/54832)
|
|
280
|
+
* \[[`36da793350`](https://github.com/nodejs/node/commit/36da793350)] - **test\_runner**: allow `--import` with no isolation (Aviv Keller) [#54697](https://github.com/nodejs/node/pull/54697)
|
|
281
|
+
* \[[`de73d1ee4b`](https://github.com/nodejs/node/commit/de73d1ee4b)] - **test\_runner**: improve code coverage cleanup (Colin Ihrig) [#54856](https://github.com/nodejs/node/pull/54856)
|
|
282
|
+
* \[[`3d478728f2`](https://github.com/nodejs/node/commit/3d478728f2)] - **timers**: avoid generating holey internal arrays (Gürgün Dayıoğlu) [#54771](https://github.com/nodejs/node/pull/54771)
|
|
283
|
+
* \[[`b3d567ae0f`](https://github.com/nodejs/node/commit/b3d567ae0f)] - **timers**: document ref option for scheduler.wait (Paolo Insogna) [#54605](https://github.com/nodejs/node/pull/54605)
|
|
284
|
+
* \[[`c2bf0134ce`](https://github.com/nodejs/node/commit/c2bf0134ce)] - **(SEMVER-MINOR)** **tls**: add `allowPartialTrustChain` flag (Anna Henningsen) [#54790](https://github.com/nodejs/node/pull/54790)
|
|
285
|
+
* \[[`608a611132`](https://github.com/nodejs/node/commit/608a611132)] - **tools**: add readability/fn\_size to filter (Rafael Gonzaga) [#54744](https://github.com/nodejs/node/pull/54744)
|
|
286
|
+
* \[[`93fab49099`](https://github.com/nodejs/node/commit/93fab49099)] - **tools**: add util scripts to land and rebase PRs (Antoine du Hamel) [#54656](https://github.com/nodejs/node/pull/54656)
|
|
287
|
+
* \[[`d6df542ff8`](https://github.com/nodejs/node/commit/d6df542ff8)] - **tools**: remove readability/fn\_size rule (Rafael Gonzaga) [#54663](https://github.com/nodejs/node/pull/54663)
|
|
288
|
+
* \[[`689d127ee7`](https://github.com/nodejs/node/commit/689d127ee7)] - **typings**: fix TypedArray to a global type (1ilsang) [#54063](https://github.com/nodejs/node/pull/54063)
|
|
289
|
+
* \[[`071dff1d34`](https://github.com/nodejs/node/commit/071dff1d34)] - **typings**: correct param type of `SafePromisePrototypeFinally` (Wuli) [#54727](https://github.com/nodejs/node/pull/54727)
|
|
290
|
+
* \[[`5243e3240c`](https://github.com/nodejs/node/commit/5243e3240c)] - _**Revert**_ "**v8**: enable maglev on supported architectures" (Joyee Cheung) [#54384](https://github.com/nodejs/node/pull/54384)
|
|
291
|
+
* \[[`ade9da5b3a`](https://github.com/nodejs/node/commit/ade9da5b3a)] - **vm**: add vm proto property lookup test (Chengzhong Wu) [#54606](https://github.com/nodejs/node/pull/54606)
|
|
292
|
+
* \[[`8385958b60`](https://github.com/nodejs/node/commit/8385958b60)] - **zlib**: add typings for better dx (Yagiz Nizipli) [#54699](https://github.com/nodejs/node/pull/54699)
|
|
293
|
+
* \[[`8c4c85cf31`](https://github.com/nodejs/node/commit/8c4c85cf31)] - **zlib**: deprecate instantiating classes without new (Yagiz Nizipli) [#54708](https://github.com/nodejs/node/pull/54708)
|
|
294
|
+
|
|
295
|
+
<a id="22.8.0"></a>
|
|
296
|
+
|
|
297
|
+
## 2024-09-03, Version 22.8.0 (Current), @RafaelGSS
|
|
298
|
+
|
|
299
|
+
### New JS API for compile cache
|
|
300
|
+
|
|
301
|
+
This release adds a new API `module.enableCompileCache()` that can be used to enable on-disk code caching of all modules loaded after this API is called.
|
|
302
|
+
Previously this could only be enabled by the `NODE_COMPILE_CACHE` environment variable, so it could only set by end-users.
|
|
303
|
+
This API allows tooling and library authors to enable caching of their own code.
|
|
304
|
+
This is a built-in alternative to the [v8-compile-cache](https://www.npmjs.com/package/v8-compile-cache)/[v8-compile-cache-lib ](https://www.npmjs.com/package/v8-compile-cache-lib) packages,
|
|
305
|
+
but have [better performance](https://github.com/nodejs/node/issues/47472#issuecomment-1970331362) and supports ESM.
|
|
306
|
+
|
|
307
|
+
Thanks to Joyee Cheung for working on this.
|
|
308
|
+
|
|
309
|
+
### New option for vm.createContext() to create a context with a freezable globalThis
|
|
310
|
+
|
|
311
|
+
Node.js implements a flavor of `vm.createContext()` and friends that creates a context without contextifying its global
|
|
312
|
+
object when vm.constants.DONT\_CONTEXTIFY is used. This is suitable when users want to freeze the context
|
|
313
|
+
(impossible when the global is contextified i.e. has interceptors installed) or speed up the global access if they
|
|
314
|
+
don't need the interceptor behavior.
|
|
315
|
+
|
|
316
|
+
Thanks to Joyee Cheung for working on this.
|
|
317
|
+
|
|
318
|
+
### Support for coverage thresholds
|
|
319
|
+
|
|
320
|
+
Node.js now supports requiring code coverage to meet a specific threshold before the process exits successfully.
|
|
321
|
+
To use this feature, you need to enable the `--experimental-test-coverage` flag.
|
|
322
|
+
|
|
323
|
+
You can set thresholds for the following types of coverage:
|
|
324
|
+
|
|
325
|
+
* **Branch coverage**: Use `--test-coverage-branches=<threshold>`
|
|
326
|
+
* **Function coverage**: Use `--test-coverage-functions=<threshold>`
|
|
327
|
+
* **Line coverage**: Use `--test-coverage-lines=<threshold>`
|
|
328
|
+
|
|
329
|
+
`<threshold>` should be an integer between 0 and 100. If an invalid value is provided, a `TypeError` will be thrown.
|
|
330
|
+
|
|
331
|
+
If the code coverage fails to meet the specified thresholds for any category, the process will exit with code `1`.
|
|
332
|
+
|
|
333
|
+
For instance, to enforce a minimum of 80% line coverage and 60% branch coverage, you can run:
|
|
334
|
+
|
|
335
|
+
```console
|
|
336
|
+
$ node --experimental-test-coverage --test-coverage-lines=80 --test-coverage-branches=60 example.js
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Thanks Aviv Keller for working on this.
|
|
340
|
+
|
|
341
|
+
### Other Notable Changes
|
|
342
|
+
|
|
343
|
+
* \[[`1f2cc2fa47`](https://github.com/nodejs/node/commit/1f2cc2fa47)] - **(SEMVER-MINOR)** **src,lib**: add performance.uvMetricsInfo (Rafael Gonzaga) [#54413](https://github.com/nodejs/node/pull/54413)
|
|
344
|
+
* \[[`1e01bdc0d0`](https://github.com/nodejs/node/commit/1e01bdc0d0)] - **(SEMVER-MINOR)** **net**: exclude ipv6 loopback addresses from server.listen (Giovanni Bucci) [#54264](https://github.com/nodejs/node/pull/54264)
|
|
345
|
+
* \[[`97fa075c2e`](https://github.com/nodejs/node/commit/97fa075c2e)] - **(SEMVER-MINOR)** **test\_runner**: support running tests in process (Colin Ihrig) [#53927](https://github.com/nodejs/node/pull/53927)
|
|
346
|
+
* \[[`858b583c88`](https://github.com/nodejs/node/commit/858b583c88)] - **(SEMVER-MINOR)** **test\_runner**: defer inheriting hooks until run() (Colin Ihrig) [#53927](https://github.com/nodejs/node/pull/53927)
|
|
347
|
+
|
|
348
|
+
### Commits
|
|
349
|
+
|
|
350
|
+
* \[[`94985df9d6`](https://github.com/nodejs/node/commit/94985df9d6)] - **benchmark**: fix benchmark for file path and URL conversion (Early Riser) [#54190](https://github.com/nodejs/node/pull/54190)
|
|
351
|
+
* \[[`ac178b094b`](https://github.com/nodejs/node/commit/ac178b094b)] - **buffer**: truncate instead of throw when writing beyond buffer (Robert Nagy) [#54524](https://github.com/nodejs/node/pull/54524)
|
|
352
|
+
* \[[`afd8c1eb4f`](https://github.com/nodejs/node/commit/afd8c1eb4f)] - **buffer**: allow invalid encoding in from (Robert Nagy) [#54533](https://github.com/nodejs/node/pull/54533)
|
|
353
|
+
* \[[`6f0cf35cd3`](https://github.com/nodejs/node/commit/6f0cf35cd3)] - **build**: reclaim disk space on macOS GHA runner (jakecastelli) [#54658](https://github.com/nodejs/node/pull/54658)
|
|
354
|
+
* \[[`467ac3aec4`](https://github.com/nodejs/node/commit/467ac3aec4)] - **build**: don't clean obj.target directory if it doesn't exist (Joyee Cheung) [#54337](https://github.com/nodejs/node/pull/54337)
|
|
355
|
+
* \[[`71fdf961df`](https://github.com/nodejs/node/commit/71fdf961df)] - **build**: update required python version to 3.8 (Aviv Keller) [#54358](https://github.com/nodejs/node/pull/54358)
|
|
356
|
+
* \[[`73604cf1c5`](https://github.com/nodejs/node/commit/73604cf1c5)] - **deps**: update nghttp2 to 1.63.0 (Node.js GitHub Bot) [#54589](https://github.com/nodejs/node/pull/54589)
|
|
357
|
+
* \[[`b00c087285`](https://github.com/nodejs/node/commit/b00c087285)] - **deps**: V8: cherry-pick e74d0f437fcd (Joyee Cheung) [#54279](https://github.com/nodejs/node/pull/54279)
|
|
358
|
+
* \[[`33a6b3c7a9`](https://github.com/nodejs/node/commit/33a6b3c7a9)] - **deps**: backport ICU-22787 to fix ClangCL on Windows (Stefan Stojanovic) [#54502](https://github.com/nodejs/node/pull/54502)
|
|
359
|
+
* \[[`fe56949cbb`](https://github.com/nodejs/node/commit/fe56949cbb)] - **deps**: update c-ares to v1.33.1 (Node.js GitHub Bot) [#54549](https://github.com/nodejs/node/pull/54549)
|
|
360
|
+
* \[[`290f6ce619`](https://github.com/nodejs/node/commit/290f6ce619)] - **deps**: update amaro to 0.1.8 (Node.js GitHub Bot) [#54520](https://github.com/nodejs/node/pull/54520)
|
|
361
|
+
* \[[`b5843568b4`](https://github.com/nodejs/node/commit/b5843568b4)] - **deps**: update amaro to 0.1.7 (Node.js GitHub Bot) [#54473](https://github.com/nodejs/node/pull/54473)
|
|
362
|
+
* \[[`9c709209b4`](https://github.com/nodejs/node/commit/9c709209b4)] - **deps**: update undici to 6.19.8 (Node.js GitHub Bot) [#54456](https://github.com/nodejs/node/pull/54456)
|
|
363
|
+
* \[[`a5ce24181b`](https://github.com/nodejs/node/commit/a5ce24181b)] - **deps**: sqlite: fix Windows compilation (Colin Ihrig) [#54433](https://github.com/nodejs/node/pull/54433)
|
|
364
|
+
* \[[`3caf29ea88`](https://github.com/nodejs/node/commit/3caf29ea88)] - **deps**: update sqlite to 3.46.1 (Node.js GitHub Bot) [#54433](https://github.com/nodejs/node/pull/54433)
|
|
365
|
+
* \[[`68758d4b08`](https://github.com/nodejs/node/commit/68758d4b08)] - **doc**: add support me link for anonrig (Yagiz Nizipli) [#54611](https://github.com/nodejs/node/pull/54611)
|
|
366
|
+
* \[[`f5c5529266`](https://github.com/nodejs/node/commit/f5c5529266)] - **doc**: add alert on REPL from TCP socket (Rafael Gonzaga) [#54594](https://github.com/nodejs/node/pull/54594)
|
|
367
|
+
* \[[`bf824483cd`](https://github.com/nodejs/node/commit/bf824483cd)] - **doc**: fix typo in styleText description (Rafael Gonzaga) [#54616](https://github.com/nodejs/node/pull/54616)
|
|
368
|
+
* \[[`825d933fd4`](https://github.com/nodejs/node/commit/825d933fd4)] - **doc**: add getHeapStatistics() property descriptions (Benji Marinacci) [#54584](https://github.com/nodejs/node/pull/54584)
|
|
369
|
+
* \[[`80e5150160`](https://github.com/nodejs/node/commit/80e5150160)] - **doc**: fix module compile cache description (沈鸿飞) [#54625](https://github.com/nodejs/node/pull/54625)
|
|
370
|
+
* \[[`7fd033fe56`](https://github.com/nodejs/node/commit/7fd033fe56)] - **doc**: run license-builder (github-actions\[bot]) [#54562](https://github.com/nodejs/node/pull/54562)
|
|
371
|
+
* \[[`c499913732`](https://github.com/nodejs/node/commit/c499913732)] - **doc**: fix information about including coverage files (Aviv Keller) [#54527](https://github.com/nodejs/node/pull/54527)
|
|
372
|
+
* \[[`c3dc83befc`](https://github.com/nodejs/node/commit/c3dc83befc)] - **doc**: support collaborators - talk amplification (Michael Dawson) [#54508](https://github.com/nodejs/node/pull/54508)
|
|
373
|
+
* \[[`fc57beaad3`](https://github.com/nodejs/node/commit/fc57beaad3)] - **doc**: add note about shasum generation failure (Marco Ippolito) [#54487](https://github.com/nodejs/node/pull/54487)
|
|
374
|
+
* \[[`1800a58f49`](https://github.com/nodejs/node/commit/1800a58f49)] - **doc**: update websocket flag description to reflect stable API status (Yelim Koo) [#54482](https://github.com/nodejs/node/pull/54482)
|
|
375
|
+
* \[[`61affd77a7`](https://github.com/nodejs/node/commit/61affd77a7)] - **doc**: fix capitalization in module.md (shallow-beach) [#54488](https://github.com/nodejs/node/pull/54488)
|
|
376
|
+
* \[[`25419915c7`](https://github.com/nodejs/node/commit/25419915c7)] - **doc**: add esm examples to node:https (Alfredo González) [#54399](https://github.com/nodejs/node/pull/54399)
|
|
377
|
+
* \[[`83b5efeb54`](https://github.com/nodejs/node/commit/83b5efeb54)] - **doc**: reserve ABI 130 for Electron 33 (Calvin) [#54383](https://github.com/nodejs/node/pull/54383)
|
|
378
|
+
* \[[`6ccbd32ae8`](https://github.com/nodejs/node/commit/6ccbd32ae8)] - **doc, meta**: add missing `,` to `BUILDING.md` (Aviv Keller) [#54409](https://github.com/nodejs/node/pull/54409)
|
|
379
|
+
* \[[`fc08a9b0cd`](https://github.com/nodejs/node/commit/fc08a9b0cd)] - **fs**: refactor handleTimestampsAndMode to remove redundant call (HEESEUNG) [#54369](https://github.com/nodejs/node/pull/54369)
|
|
380
|
+
* \[[`4a664b5fcb`](https://github.com/nodejs/node/commit/4a664b5fcb)] - **lib**: respect terminal capabilities on styleText (Rafael Gonzaga) [#54389](https://github.com/nodejs/node/pull/54389)
|
|
381
|
+
* \[[`a9ce2b6a28`](https://github.com/nodejs/node/commit/a9ce2b6a28)] - **lib**: fix emit warning for debuglog.time when disabled (Vinicius Lourenço) [#54275](https://github.com/nodejs/node/pull/54275)
|
|
382
|
+
* \[[`b5a23c9783`](https://github.com/nodejs/node/commit/b5a23c9783)] - **meta**: remind users to use a supported version in bug reports (Aviv Keller) [#54481](https://github.com/nodejs/node/pull/54481)
|
|
383
|
+
* \[[`0d7171d8e9`](https://github.com/nodejs/node/commit/0d7171d8e9)] - **meta**: add more labels to dep-updaters (Aviv Keller) [#54454](https://github.com/nodejs/node/pull/54454)
|
|
384
|
+
* \[[`c4996c189f`](https://github.com/nodejs/node/commit/c4996c189f)] - **meta**: run coverage-windows when `vcbuild.bat` updated (Aviv Keller) [#54412](https://github.com/nodejs/node/pull/54412)
|
|
385
|
+
* \[[`3cf645768e`](https://github.com/nodejs/node/commit/3cf645768e)] - **module**: use amaro default transform values (Marco Ippolito) [#54517](https://github.com/nodejs/node/pull/54517)
|
|
386
|
+
* \[[`336496b90e`](https://github.com/nodejs/node/commit/336496b90e)] - **module**: add sourceURL magic comment hinting generated source (Chengzhong Wu) [#54402](https://github.com/nodejs/node/pull/54402)
|
|
387
|
+
* \[[`04f83b50ad`](https://github.com/nodejs/node/commit/04f83b50ad)] - _**Revert**_ "**net**: validate host name for server listen" (jakecastelli) [#54554](https://github.com/nodejs/node/pull/54554)
|
|
388
|
+
* \[[`1e01bdc0d0`](https://github.com/nodejs/node/commit/1e01bdc0d0)] - **(SEMVER-MINOR)** **net**: exclude ipv6 loopback addresses from server.listen (Giovanni Bucci) [#54264](https://github.com/nodejs/node/pull/54264)
|
|
389
|
+
* \[[`3cd10a3f40`](https://github.com/nodejs/node/commit/3cd10a3f40)] - **node-api**: remove RefBase and CallbackWrapper (Vladimir Morozov) [#53590](https://github.com/nodejs/node/pull/53590)
|
|
390
|
+
* \[[`72c554abab`](https://github.com/nodejs/node/commit/72c554abab)] - **sqlite**: return results with null prototype (Michaël Zasso) [#54350](https://github.com/nodejs/node/pull/54350)
|
|
391
|
+
* \[[`e071651bb2`](https://github.com/nodejs/node/commit/e071651bb2)] - **src**: disable fast methods for `buffer.write` (Michaël Zasso) [#54565](https://github.com/nodejs/node/pull/54565)
|
|
392
|
+
* \[[`f8cbbc685a`](https://github.com/nodejs/node/commit/f8cbbc685a)] - **src**: use v8::Isolate::GetDefaultLocale() to compute navigator.language (Joyee Cheung) [#54279](https://github.com/nodejs/node/pull/54279)
|
|
393
|
+
* \[[`4baf4637eb`](https://github.com/nodejs/node/commit/4baf4637eb)] - **(SEMVER-MINOR)** **src**: add JS APIs for compile cache and NODE\_DISABLE\_COMPILE\_CACHE (Joyee Cheung) [#54501](https://github.com/nodejs/node/pull/54501)
|
|
394
|
+
* \[[`101e299656`](https://github.com/nodejs/node/commit/101e299656)] - **src**: move more crypto\_dh.cc code to ncrypto (James M Snell) [#54459](https://github.com/nodejs/node/pull/54459)
|
|
395
|
+
* \[[`e6e1f4e8bd`](https://github.com/nodejs/node/commit/e6e1f4e8bd)] - **src**: remove redundant AESCipherMode (Tobias Nießen) [#54438](https://github.com/nodejs/node/pull/54438)
|
|
396
|
+
* \[[`1ff3f63f5e`](https://github.com/nodejs/node/commit/1ff3f63f5e)] - **src**: handle errors correctly in `permission.cc` (Michaël Zasso) [#54541](https://github.com/nodejs/node/pull/54541)
|
|
397
|
+
* \[[`4938188682`](https://github.com/nodejs/node/commit/4938188682)] - **src**: return `v8::Object` from error constructors (Michaël Zasso) [#54541](https://github.com/nodejs/node/pull/54541)
|
|
398
|
+
* \[[`4578e9485b`](https://github.com/nodejs/node/commit/4578e9485b)] - **src**: use better return types in KVStore (Michaël Zasso) [#54539](https://github.com/nodejs/node/pull/54539)
|
|
399
|
+
* \[[`7d9e994791`](https://github.com/nodejs/node/commit/7d9e994791)] - **src**: change SetEncodedValue to return Maybe\<void> (Tobias Nießen) [#54443](https://github.com/nodejs/node/pull/54443)
|
|
400
|
+
* \[[`eef303028f`](https://github.com/nodejs/node/commit/eef303028f)] - **src**: remove cached data tag from snapshot metadata (Joyee Cheung) [#54122](https://github.com/nodejs/node/pull/54122)
|
|
401
|
+
* \[[`3a74c400d5`](https://github.com/nodejs/node/commit/3a74c400d5)] - **src**: improve `buffer.transcode` performance (Yagiz Nizipli) [#54153](https://github.com/nodejs/node/pull/54153)
|
|
402
|
+
* \[[`909c5320fd`](https://github.com/nodejs/node/commit/909c5320fd)] - **src**: move more crypto code to ncrypto (James M Snell) [#54320](https://github.com/nodejs/node/pull/54320)
|
|
403
|
+
* \[[`9ba75faf5f`](https://github.com/nodejs/node/commit/9ba75faf5f)] - **(SEMVER-MINOR)** **src,lib**: add performance.uvMetricsInfo (Rafael Gonzaga) [#54413](https://github.com/nodejs/node/pull/54413)
|
|
404
|
+
* \[[`fffc300c6d`](https://github.com/nodejs/node/commit/fffc300c6d)] - **stream**: change stream to use index instead of `for...of` (Wiyeong Seo) [#54474](https://github.com/nodejs/node/pull/54474)
|
|
405
|
+
* \[[`a4a6ef8d29`](https://github.com/nodejs/node/commit/a4a6ef8d29)] - **test**: fix test-tls-client-auth test for OpenSSL32 (Michael Dawson) [#54610](https://github.com/nodejs/node/pull/54610)
|
|
406
|
+
* \[[`76345a5d7c`](https://github.com/nodejs/node/commit/76345a5d7c)] - **test**: update TLS test for OpenSSL 3.2 (Richard Lau) [#54612](https://github.com/nodejs/node/pull/54612)
|
|
407
|
+
* \[[`522d5a359d`](https://github.com/nodejs/node/commit/522d5a359d)] - **test**: run V8 Fast API tests in release mode too (Michaël Zasso) [#54570](https://github.com/nodejs/node/pull/54570)
|
|
408
|
+
* \[[`edbecf5209`](https://github.com/nodejs/node/commit/edbecf5209)] - **test**: increase key size for ca2-cert.pem (Michael Dawson) [#54599](https://github.com/nodejs/node/pull/54599)
|
|
409
|
+
* \[[`bc976cfc93`](https://github.com/nodejs/node/commit/bc976cfc93)] - **test**: update test-abortsignal-cloneable to use node:test (James M Snell) [#54581](https://github.com/nodejs/node/pull/54581)
|
|
410
|
+
* \[[`9f1ce732a8`](https://github.com/nodejs/node/commit/9f1ce732a8)] - **test**: update test-assert-typedarray-deepequal to use node:test (James M Snell) [#54585](https://github.com/nodejs/node/pull/54585)
|
|
411
|
+
* \[[`c74f2aeb92`](https://github.com/nodejs/node/commit/c74f2aeb92)] - **test**: update test-assert to use node:test (James M Snell) [#54585](https://github.com/nodejs/node/pull/54585)
|
|
412
|
+
* \[[`a0be95e4cc`](https://github.com/nodejs/node/commit/a0be95e4cc)] - **test**: merge ongc and gcutil into gc.js (tannal) [#54355](https://github.com/nodejs/node/pull/54355)
|
|
413
|
+
* \[[`c10aff665e`](https://github.com/nodejs/node/commit/c10aff665e)] - **test**: move a couple of tests over to using node:test (James M Snell) [#54582](https://github.com/nodejs/node/pull/54582)
|
|
414
|
+
* \[[`dbbc790949`](https://github.com/nodejs/node/commit/dbbc790949)] - **test**: update test-aborted-util to use node:test (James M Snell) [#54578](https://github.com/nodejs/node/pull/54578)
|
|
415
|
+
* \[[`64442fce6b`](https://github.com/nodejs/node/commit/64442fce6b)] - **test**: refactor test-abortcontroller to use node:test (James M Snell) [#54574](https://github.com/nodejs/node/pull/54574)
|
|
416
|
+
* \[[`72345dee1c`](https://github.com/nodejs/node/commit/72345dee1c)] - **test**: fix embedding test for Windows (Vladimir Morozov) [#53659](https://github.com/nodejs/node/pull/53659)
|
|
417
|
+
* \[[`846e2b2896`](https://github.com/nodejs/node/commit/846e2b2896)] - **test**: refactor test\_runner tests to change default reporter (Colin Ihrig) [#54547](https://github.com/nodejs/node/pull/54547)
|
|
418
|
+
* \[[`b5eb24c86a`](https://github.com/nodejs/node/commit/b5eb24c86a)] - **test**: force spec reporter in test-runner-watch-mode.mjs (Colin Ihrig) [#54538](https://github.com/nodejs/node/pull/54538)
|
|
419
|
+
* \[[`66ae9f4c0a`](https://github.com/nodejs/node/commit/66ae9f4c0a)] - **test**: use valid hostnames (Luigi Pinca) [#54556](https://github.com/nodejs/node/pull/54556)
|
|
420
|
+
* \[[`02d664b75f`](https://github.com/nodejs/node/commit/02d664b75f)] - **test**: fix improper path to URL conversion (Antoine du Hamel) [#54509](https://github.com/nodejs/node/pull/54509)
|
|
421
|
+
* \[[`8a4f8a9eff`](https://github.com/nodejs/node/commit/8a4f8a9eff)] - **test**: add tests for runner coverage with different stdout column widths (Pietro Marchini) [#54494](https://github.com/nodejs/node/pull/54494)
|
|
422
|
+
* \[[`b0ed8dbb2f`](https://github.com/nodejs/node/commit/b0ed8dbb2f)] - **test**: prevent V8 from writing into the system's tmpdir (Michaël Zasso) [#54395](https://github.com/nodejs/node/pull/54395)
|
|
423
|
+
* \[[`5ee234a5a6`](https://github.com/nodejs/node/commit/5ee234a5a6)] - **test,crypto**: update WebCryptoAPI WPT (Filip Skokan) [#54593](https://github.com/nodejs/node/pull/54593)
|
|
424
|
+
* \[[`a4bebf8559`](https://github.com/nodejs/node/commit/a4bebf8559)] - **test\_runner**: ensure test watcher picks up new test files (Pietro Marchini) [#54225](https://github.com/nodejs/node/pull/54225)
|
|
425
|
+
* \[[`d4310fe9c1`](https://github.com/nodejs/node/commit/d4310fe9c1)] - **(SEMVER-MINOR)** **test\_runner**: add support for coverage thresholds (Aviv Keller) [#54429](https://github.com/nodejs/node/pull/54429)
|
|
426
|
+
* \[[`0cf78aa24b`](https://github.com/nodejs/node/commit/0cf78aa24b)] - **test\_runner**: refactor `mock_loader` (Antoine du Hamel) [#54223](https://github.com/nodejs/node/pull/54223)
|
|
427
|
+
* \[[`97fa075c2e`](https://github.com/nodejs/node/commit/97fa075c2e)] - **(SEMVER-MINOR)** **test\_runner**: support running tests in process (Colin Ihrig) [#53927](https://github.com/nodejs/node/pull/53927)
|
|
428
|
+
* \[[`858b583c88`](https://github.com/nodejs/node/commit/858b583c88)] - **(SEMVER-MINOR)** **test\_runner**: defer inheriting hooks until run() (Colin Ihrig) [#53927](https://github.com/nodejs/node/pull/53927)
|
|
429
|
+
* \[[`45b0250692`](https://github.com/nodejs/node/commit/45b0250692)] - **test\_runner**: account for newline in source maps (Colin Ihrig) [#54444](https://github.com/nodejs/node/pull/54444)
|
|
430
|
+
* \[[`1c29e74d30`](https://github.com/nodejs/node/commit/1c29e74d30)] - **test\_runner**: make `mock.module`'s `specifier` consistent with `import()` (Antoine du Hamel) [#54416](https://github.com/nodejs/node/pull/54416)
|
|
431
|
+
* \[[`cbe30a02a3`](https://github.com/nodejs/node/commit/cbe30a02a3)] - **test\_runner**: finish build phase before running tests (Colin Ihrig) [#54423](https://github.com/nodejs/node/pull/54423)
|
|
432
|
+
* \[[`8a4b26f00c`](https://github.com/nodejs/node/commit/8a4b26f00c)] - **timers**: fix validation (Paolo Insogna) [#54404](https://github.com/nodejs/node/pull/54404)
|
|
433
|
+
* \[[`38798140c4`](https://github.com/nodejs/node/commit/38798140c4)] - **tools**: remove unused python files (Aviv Keller) [#53928](https://github.com/nodejs/node/pull/53928)
|
|
434
|
+
* \[[`da6c61def8`](https://github.com/nodejs/node/commit/da6c61def8)] - **tools**: add swc license (Marco Ippolito) [#54462](https://github.com/nodejs/node/pull/54462)
|
|
435
|
+
* \[[`16d4c437e1`](https://github.com/nodejs/node/commit/16d4c437e1)] - **typings**: provide internal types for wasi bindings (Andrew Moon) [#54119](https://github.com/nodejs/node/pull/54119)
|
|
436
|
+
* \[[`fe5666f006`](https://github.com/nodejs/node/commit/fe5666f006)] - **vm**: return all own names and symbols in property enumerator interceptor (Chengzhong Wu) [#54522](https://github.com/nodejs/node/pull/54522)
|
|
437
|
+
* \[[`db80eac496`](https://github.com/nodejs/node/commit/db80eac496)] - **(SEMVER-MINOR)** **vm**: introduce vanilla contexts via vm.constants.DONT\_CONTEXTIFY (Joyee Cheung) [#54394](https://github.com/nodejs/node/pull/54394)
|
|
438
|
+
* \[[`8ffdd1e2b2`](https://github.com/nodejs/node/commit/8ffdd1e2b2)] - **zlib**: simplify validators (Yagiz Nizipli) [#54442](https://github.com/nodejs/node/pull/54442)
|
|
439
|
+
|
|
49
440
|
<a id="22.7.0"></a>
|
|
50
441
|
|
|
51
442
|
## 2024-08-22, Version 22.7.0 (Current), @RafaelGSS
|
package/LICENSE
CHANGED
|
@@ -106,16 +106,16 @@ The externally maintained libraries used by Node.js are:
|
|
|
106
106
|
|
|
107
107
|
- cjs-module-lexer, located at deps/cjs-module-lexer, is licensed as follows:
|
|
108
108
|
"""
|
|
109
|
-
MIT License
|
|
110
|
-
-----------
|
|
111
|
-
|
|
112
|
-
Copyright (C) 2018-2020 Guy Bedford
|
|
113
|
-
|
|
114
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
115
|
-
|
|
116
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
117
|
-
|
|
118
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
109
|
+
MIT License
|
|
110
|
+
-----------
|
|
111
|
+
|
|
112
|
+
Copyright (C) 2018-2020 Guy Bedford
|
|
113
|
+
|
|
114
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
115
|
+
|
|
116
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
117
|
+
|
|
118
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
119
119
|
"""
|
|
120
120
|
|
|
121
121
|
- ittapi, located at deps/v8/third_party/ittapi, is licensed as follows:
|
|
@@ -155,6 +155,211 @@ The externally maintained libraries used by Node.js are:
|
|
|
155
155
|
SOFTWARE.
|
|
156
156
|
"""
|
|
157
157
|
|
|
158
|
+
- swc, located at deps/amaro/dist, is licensed as follows:
|
|
159
|
+
"""
|
|
160
|
+
Apache License
|
|
161
|
+
Version 2.0, January 2004
|
|
162
|
+
http://www.apache.org/licenses/
|
|
163
|
+
|
|
164
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
165
|
+
|
|
166
|
+
1. Definitions.
|
|
167
|
+
|
|
168
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
169
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
170
|
+
|
|
171
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
172
|
+
the copyright owner that is granting the License.
|
|
173
|
+
|
|
174
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
175
|
+
other entities that control, are controlled by, or are under common
|
|
176
|
+
control with that entity. For the purposes of this definition,
|
|
177
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
178
|
+
direction or management of such entity, whether by contract or
|
|
179
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
180
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
181
|
+
|
|
182
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
183
|
+
exercising permissions granted by this License.
|
|
184
|
+
|
|
185
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
186
|
+
including but not limited to software source code, documentation
|
|
187
|
+
source, and configuration files.
|
|
188
|
+
|
|
189
|
+
"Object" form shall mean any form resulting from mechanical
|
|
190
|
+
transformation or translation of a Source form, including but
|
|
191
|
+
not limited to compiled object code, generated documentation,
|
|
192
|
+
and conversions to other media types.
|
|
193
|
+
|
|
194
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
195
|
+
Object form, made available under the License, as indicated by a
|
|
196
|
+
copyright notice that is included in or attached to the work
|
|
197
|
+
(an example is provided in the Appendix below).
|
|
198
|
+
|
|
199
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
200
|
+
form, that is based on (or derived from) the Work and for which the
|
|
201
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
202
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
203
|
+
of this License, Derivative Works shall not include works that remain
|
|
204
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
205
|
+
the Work and Derivative Works thereof.
|
|
206
|
+
|
|
207
|
+
"Contribution" shall mean any work of authorship, including
|
|
208
|
+
the original version of the Work and any modifications or additions
|
|
209
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
210
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
211
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
212
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
213
|
+
means any form of electronic, verbal, or written communication sent
|
|
214
|
+
to the Licensor or its representatives, including but not limited to
|
|
215
|
+
communication on electronic mailing lists, source code control systems,
|
|
216
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
217
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
218
|
+
excluding communication that is conspicuously marked or otherwise
|
|
219
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
220
|
+
|
|
221
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
222
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
223
|
+
subsequently incorporated within the Work.
|
|
224
|
+
|
|
225
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
226
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
227
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
228
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
229
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
230
|
+
Work and such Derivative Works in Source or Object form.
|
|
231
|
+
|
|
232
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
233
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
234
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
235
|
+
(except as stated in this section) patent license to make, have made,
|
|
236
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
237
|
+
where such license applies only to those patent claims licensable
|
|
238
|
+
by such Contributor that are necessarily infringed by their
|
|
239
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
240
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
241
|
+
institute patent litigation against any entity (including a
|
|
242
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
243
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
244
|
+
or contributory patent infringement, then any patent licenses
|
|
245
|
+
granted to You under this License for that Work shall terminate
|
|
246
|
+
as of the date such litigation is filed.
|
|
247
|
+
|
|
248
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
249
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
250
|
+
modifications, and in Source or Object form, provided that You
|
|
251
|
+
meet the following conditions:
|
|
252
|
+
|
|
253
|
+
(a) You must give any other recipients of the Work or
|
|
254
|
+
Derivative Works a copy of this License; and
|
|
255
|
+
|
|
256
|
+
(b) You must cause any modified files to carry prominent notices
|
|
257
|
+
stating that You changed the files; and
|
|
258
|
+
|
|
259
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
260
|
+
that You distribute, all copyright, patent, trademark, and
|
|
261
|
+
attribution notices from the Source form of the Work,
|
|
262
|
+
excluding those notices that do not pertain to any part of
|
|
263
|
+
the Derivative Works; and
|
|
264
|
+
|
|
265
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
266
|
+
distribution, then any Derivative Works that You distribute must
|
|
267
|
+
include a readable copy of the attribution notices contained
|
|
268
|
+
within such NOTICE file, excluding those notices that do not
|
|
269
|
+
pertain to any part of the Derivative Works, in at least one
|
|
270
|
+
of the following places: within a NOTICE text file distributed
|
|
271
|
+
as part of the Derivative Works; within the Source form or
|
|
272
|
+
documentation, if provided along with the Derivative Works; or,
|
|
273
|
+
within a display generated by the Derivative Works, if and
|
|
274
|
+
wherever such third-party notices normally appear. The contents
|
|
275
|
+
of the NOTICE file are for informational purposes only and
|
|
276
|
+
do not modify the License. You may add Your own attribution
|
|
277
|
+
notices within Derivative Works that You distribute, alongside
|
|
278
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
279
|
+
that such additional attribution notices cannot be construed
|
|
280
|
+
as modifying the License.
|
|
281
|
+
|
|
282
|
+
You may add Your own copyright statement to Your modifications and
|
|
283
|
+
may provide additional or different license terms and conditions
|
|
284
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
285
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
286
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
287
|
+
the conditions stated in this License.
|
|
288
|
+
|
|
289
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
290
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
291
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
292
|
+
this License, without any additional terms or conditions.
|
|
293
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
294
|
+
the terms of any separate license agreement you may have executed
|
|
295
|
+
with Licensor regarding such Contributions.
|
|
296
|
+
|
|
297
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
298
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
299
|
+
except as required for reasonable and customary use in describing the
|
|
300
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
301
|
+
|
|
302
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
303
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
304
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
305
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
306
|
+
implied, including, without limitation, any warranties or conditions
|
|
307
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
308
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
309
|
+
appropriateness of using or redistributing the Work and assume any
|
|
310
|
+
risks associated with Your exercise of permissions under this License.
|
|
311
|
+
|
|
312
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
313
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
314
|
+
unless required by applicable law (such as deliberate and grossly
|
|
315
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
316
|
+
liable to You for damages, including any direct, indirect, special,
|
|
317
|
+
incidental, or consequential damages of any character arising as a
|
|
318
|
+
result of this License or out of the use or inability to use the
|
|
319
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
320
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
321
|
+
other commercial damages or losses), even if such Contributor
|
|
322
|
+
has been advised of the possibility of such damages.
|
|
323
|
+
|
|
324
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
325
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
326
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
327
|
+
or other liability obligations and/or rights consistent with this
|
|
328
|
+
License. However, in accepting such obligations, You may act only
|
|
329
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
330
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
331
|
+
defend, and hold each Contributor harmless for any liability
|
|
332
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
333
|
+
of your accepting any such warranty or additional liability.
|
|
334
|
+
|
|
335
|
+
END OF TERMS AND CONDITIONS
|
|
336
|
+
|
|
337
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
338
|
+
|
|
339
|
+
To apply the Apache License to your work, attach the following
|
|
340
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
341
|
+
replaced with your own identifying information. (Don't include
|
|
342
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
343
|
+
comment syntax for the file format. We also recommend that a
|
|
344
|
+
file or class name and description of purpose be included on the
|
|
345
|
+
same "printed page" as the copyright notice for easier
|
|
346
|
+
identification within third-party archives.
|
|
347
|
+
|
|
348
|
+
Copyright 2024 SWC contributors.
|
|
349
|
+
|
|
350
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
351
|
+
you may not use this file except in compliance with the License.
|
|
352
|
+
You may obtain a copy of the License at
|
|
353
|
+
|
|
354
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
355
|
+
|
|
356
|
+
Unless required by applicable law or agreed to in writing, software
|
|
357
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
358
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
359
|
+
See the License for the specific language governing permissions and
|
|
360
|
+
limitations under the License.
|
|
361
|
+
"""
|
|
362
|
+
|
|
158
363
|
- ICU, located at deps/icu-small, is licensed as follows:
|
|
159
364
|
"""
|
|
160
365
|
UNICODE LICENSE V3
|
|
@@ -2028,29 +2233,6 @@ The externally maintained libraries used by Node.js are:
|
|
|
2028
2233
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2029
2234
|
"""
|
|
2030
2235
|
|
|
2031
|
-
- ESLint, located at tools/eslint/node_modules/eslint, is licensed as follows:
|
|
2032
|
-
"""
|
|
2033
|
-
Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
|
|
2034
|
-
|
|
2035
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2036
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
2037
|
-
in the Software without restriction, including without limitation the rights
|
|
2038
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2039
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
2040
|
-
furnished to do so, subject to the following conditions:
|
|
2041
|
-
|
|
2042
|
-
The above copyright notice and this permission notice shall be included in
|
|
2043
|
-
all copies or substantial portions of the Software.
|
|
2044
|
-
|
|
2045
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2046
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2047
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2048
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2049
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2050
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2051
|
-
THE SOFTWARE.
|
|
2052
|
-
"""
|
|
2053
|
-
|
|
2054
2236
|
- gtest, located at deps/googletest, is licensed as follows:
|
|
2055
2237
|
"""
|
|
2056
2238
|
Copyright 2008, Google Inc.
|
package/README.md
CHANGED
|
@@ -285,9 +285,9 @@ For information about the governance of the Node.js project, see
|
|
|
285
285
|
* [addaleax](https://github.com/addaleax) -
|
|
286
286
|
**Anna Henningsen** <<anna@addaleax.net>> (she/her)
|
|
287
287
|
* [aduh95](https://github.com/aduh95) -
|
|
288
|
-
**Antoine du Hamel** <<duhamelantoine1995@gmail.com>> (he/him)
|
|
288
|
+
**Antoine du Hamel** <<duhamelantoine1995@gmail.com>> (he/him) - [Support me](https://github.com/sponsors/aduh95)
|
|
289
289
|
* [anonrig](https://github.com/anonrig) -
|
|
290
|
-
**Yagiz Nizipli** <<yagiz@nizipli.com>> (he/him)
|
|
290
|
+
**Yagiz Nizipli** <<yagiz@nizipli.com>> (he/him) - [Support me](https://github.com/sponsors/anonrig)
|
|
291
291
|
* [apapirovski](https://github.com/apapirovski) -
|
|
292
292
|
**Anatoli Papirovski** <<apapirovski@mac.com>> (he/him)
|
|
293
293
|
* [atlowChemi](https://github.com/atlowChemi) -
|
|
@@ -385,13 +385,13 @@ For information about the governance of the Node.js project, see
|
|
|
385
385
|
* [Lxxyx](https://github.com/Lxxyx) -
|
|
386
386
|
**Zijian Liu** <<lxxyxzj@gmail.com>> (he/him)
|
|
387
387
|
* [marco-ippolito](https://github.com/marco-ippolito) -
|
|
388
|
-
**Marco Ippolito** <<marcoippolito54@gmail.com>> (he/him)
|
|
388
|
+
**Marco Ippolito** <<marcoippolito54@gmail.com>> (he/him) - [Support me](https://github.com/sponsors/marco-ippolito)
|
|
389
389
|
* [marsonya](https://github.com/marsonya) -
|
|
390
390
|
**Akhil Marsonya** <<akhil.marsonya27@gmail.com>> (he/him)
|
|
391
391
|
* [MattiasBuelens](https://github.com/MattiasBuelens) -
|
|
392
392
|
**Mattias Buelens** <<mattias@buelens.com>> (he/him)
|
|
393
393
|
* [mcollina](https://github.com/mcollina) -
|
|
394
|
-
**Matteo Collina** <<matteo.collina@gmail.com>> (he/him)
|
|
394
|
+
**Matteo Collina** <<matteo.collina@gmail.com>> (he/him) - [Support me](https://github.com/sponsors/mcollina)
|
|
395
395
|
* [meixg](https://github.com/meixg) -
|
|
396
396
|
**Xuguang Mei** <<meixuguang@gmail.com>> (he/him)
|
|
397
397
|
* [mhdawson](https://github.com/mhdawson) -
|
package/bin/node
CHANGED
|
Binary file
|
package/include/node/common.gypi
CHANGED
package/include/node/config.gypi
CHANGED
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
'napi_build_version': '9',
|
|
31
31
|
'node_builtin_shareable_builtins': [ 'deps/cjs-module-lexer/lexer.js',
|
|
32
32
|
'deps/cjs-module-lexer/dist/lexer.js',
|
|
33
|
-
'deps/undici/undici.js'
|
|
33
|
+
'deps/undici/undici.js',
|
|
34
|
+
'deps/amaro/dist/index.js'],
|
|
34
35
|
'node_byteorder': 'big',
|
|
35
36
|
'node_debug_lib': 'false',
|
|
36
37
|
'node_enable_d8': 'false',
|
|
@@ -78,6 +79,7 @@
|
|
|
78
79
|
'lib/internal/assert.js',
|
|
79
80
|
'lib/internal/assert/assertion_error.js',
|
|
80
81
|
'lib/internal/assert/calltracker.js',
|
|
82
|
+
'lib/internal/assert/utils.js',
|
|
81
83
|
'lib/internal/async_context_frame.js',
|
|
82
84
|
'lib/internal/async_hooks.js',
|
|
83
85
|
'lib/internal/async_local_storage/async_context_frame.js',
|
|
@@ -127,6 +129,7 @@
|
|
|
127
129
|
'lib/internal/crypto/webcrypto.js',
|
|
128
130
|
'lib/internal/crypto/webidl.js',
|
|
129
131
|
'lib/internal/crypto/x509.js',
|
|
132
|
+
'lib/internal/data_url.js',
|
|
130
133
|
'lib/internal/debugger/inspect.js',
|
|
131
134
|
'lib/internal/debugger/inspect_client.js',
|
|
132
135
|
'lib/internal/debugger/inspect_repl.js',
|
|
@@ -114,6 +114,10 @@ node_api_create_external_string_utf16(napi_env env,
|
|
|
114
114
|
|
|
115
115
|
#ifdef NAPI_EXPERIMENTAL
|
|
116
116
|
#define NODE_API_EXPERIMENTAL_HAS_PROPERTY_KEYS
|
|
117
|
+
NAPI_EXTERN napi_status NAPI_CDECL node_api_create_property_key_latin1(
|
|
118
|
+
napi_env env, const char* str, size_t length, napi_value* result);
|
|
119
|
+
NAPI_EXTERN napi_status NAPI_CDECL node_api_create_property_key_utf8(
|
|
120
|
+
napi_env env, const char* str, size_t length, napi_value* result);
|
|
117
121
|
NAPI_EXTERN napi_status NAPI_CDECL node_api_create_property_key_utf16(
|
|
118
122
|
napi_env env, const char16_t* str, size_t length, napi_value* result);
|
|
119
123
|
#endif // NAPI_EXPERIMENTAL
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
#include <stdint.h>
|
|
10
10
|
|
|
11
11
|
#include <memory>
|
|
12
|
+
#include <string>
|
|
12
13
|
#include <utility>
|
|
13
14
|
|
|
14
15
|
#include "cppgc/common.h"
|
|
@@ -1711,6 +1712,12 @@ class V8_EXPORT Isolate {
|
|
|
1711
1712
|
*/
|
|
1712
1713
|
void LocaleConfigurationChangeNotification();
|
|
1713
1714
|
|
|
1715
|
+
/**
|
|
1716
|
+
* Returns the default locale in a string if Intl support is enabled.
|
|
1717
|
+
* Otherwise returns an empty string.
|
|
1718
|
+
*/
|
|
1719
|
+
std::string GetDefaultLocale();
|
|
1720
|
+
|
|
1714
1721
|
Isolate() = delete;
|
|
1715
1722
|
~Isolate() = delete;
|
|
1716
1723
|
Isolate(const Isolate&) = delete;
|
package/package.json
CHANGED
package/share/man/man1/node.1
CHANGED
|
@@ -185,6 +185,9 @@ Enable the experimental node:sqlite module.
|
|
|
185
185
|
.It Fl -experimental-test-coverage
|
|
186
186
|
Enable code coverage in the test runner.
|
|
187
187
|
.
|
|
188
|
+
.It Fl -experimental-test-isolation Ns = Ns Ar mode
|
|
189
|
+
Configures the type of test isolation used in the test runner.
|
|
190
|
+
.
|
|
188
191
|
.It Fl -experimental-test-module-mocks
|
|
189
192
|
Enable module mocking in the test runner.
|
|
190
193
|
.
|
|
@@ -447,12 +450,21 @@ Starts the Node.js command line test runner.
|
|
|
447
450
|
The maximum number of test files that the test runner CLI will execute
|
|
448
451
|
concurrently.
|
|
449
452
|
.
|
|
453
|
+
.It Fl -test-coverage-branches Ns = Ns Ar threshold
|
|
454
|
+
Require a minimum threshold for branch coverage (0 - 100).
|
|
455
|
+
.
|
|
450
456
|
.It Fl -test-coverage-exclude
|
|
451
457
|
A glob pattern that excludes matching files from the coverage report
|
|
452
458
|
.
|
|
459
|
+
.It Fl -test-coverage-functions Ns = Ns Ar threshold
|
|
460
|
+
Require a minimum threshold for function coverage (0 - 100).
|
|
461
|
+
.
|
|
453
462
|
.It Fl -test-coverage-include
|
|
454
463
|
A glob pattern that only includes matching files in the coverage report
|
|
455
464
|
.
|
|
465
|
+
.It Fl -test-coverage-lines Ns = Ns Ar threshold
|
|
466
|
+
Require a minimum threshold for line coverage (0 - 100).
|
|
467
|
+
.
|
|
456
468
|
.It Fl -test-force-exit
|
|
457
469
|
Configures the test runner to exit the process once all known tests have
|
|
458
470
|
finished executing even if the event loop would otherwise remain active.
|