Ruy Adorno
a86c2caea9
2023-09-28, Version 20.8.0 (Current)
...
Notable changes:
deps:
* add v8::Object::SetInternalFieldForNodeCore() (Joyee Cheung) https://github.com/nodejs/node/pull/49874
doc:
* deprecate `fs.F_OK`, `fs.R_OK`, `fs.W_OK`, `fs.X_OK` (Livia Medeiros) https://github.com/nodejs/node/pull/49683
* deprecate `util.toUSVString` (Yagiz Nizipli) https://github.com/nodejs/node/pull/49725
* deprecate calling `promisify` on a function that returns a promise (Antoine du Hamel) https://github.com/nodejs/node/pull/49647
esm:
* set all hooks as release candidate (Geoffrey Booth) https://github.com/nodejs/node/pull/49597
module:
* fix the leak in SourceTextModule and ContextifySript (Joyee Cheung) https://github.com/nodejs/node/pull/48510
* fix leak of vm.SyntheticModule (Joyee Cheung) https://github.com/nodejs/node/pull/48510
* use symbol in WeakMap to manage host defined options (Joyee Cheung) https://github.com/nodejs/node/pull/48510
src:
* (SEMVER-MINOR) allow embedders to override NODE_MODULE_VERSION (Cheng Zhao) https://github.com/nodejs/node/pull/49279
stream:
* use bitmap in writable state (Raz Luvaton) https://github.com/nodejs/node/pull/49834
* use bitmap in readable state (Benjamin Gruenbaum) https://github.com/nodejs/node/pull/49745
* improve webstream readable async iterator performance (Raz Luvaton) https://github.com/nodejs/node/pull/49662
test_runner:
* (SEMVER-MINOR) accept `testOnly` in `run` (Moshe Atlow) https://github.com/nodejs/node/pull/49753
* (SEMVER-MINOR) add junit reporter (Moshe Atlow) https://github.com/nodejs/node/pull/49614
PR-URL: https://github.com/nodejs/node/pull/49932
v20.8.0
2023-09-28 16:44:08 -04:00
Joyee Cheung
be211ef818
test: deflake test-vm-contextified-script-leak
...
Similar to the test-vm-source-text-module-leak fix, use a snapshot
to force a thorough GC in order to prevent false positives.
Backport-PR-URL: https://github.com/nodejs/node/pull/49874
PR-URL: https://github.com/nodejs/node/pull/49710
Refs: https://github.com/nodejs/reliability/issues/669
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2023-09-28 15:28:24 -04:00
Joyee Cheung
355f10dab2
test: use checkIfCollectable in vm leak tests
...
Previously we simply create a lot of the target objects and check
if the process crash due to OOM. Due to how we use emphemeron GC
to handle memory management, which is inefficient but necessary
for correctness, the tests can produce false positives as
the GC isn't efficient enough to catch up with a very fast
heap growth.
This patch uses a new checkIfCollectable() utility to terminate the
test early once we detect that any of the target object can actually
be garbage collected. This should lower the chance of false positives.
As a drive-by this also allows us to use setImmediate() to grow the
heap even faster to make the tests run faster.
Backport-PR-URL: https://github.com/nodejs/node/pull/49874
PR-URL: https://github.com/nodejs/node/pull/49671
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2023-09-28 15:28:24 -04:00
Joyee Cheung
17cfc531aa
test: add checkIfCollectable to test/common/gc.js
...
Backport-PR-URL: https://github.com/nodejs/node/pull/49874
PR-URL: https://github.com/nodejs/node/pull/49671
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2023-09-28 15:28:24 -04:00
Joyee Cheung
b0ce78a75b
module: fix the leak in SourceTextModule and ContextifySript
...
Replace the persistent handles to v8::Module and
v8::UnboundScript with an internal reference that V8's GC is
aware of to fix the leaks.
Backport-PR-URL: https://github.com/nodejs/node/pull/49874
PR-URL: https://github.com/nodejs/node/pull/48510
Refs: https://github.com/nodejs/node/issues/44211
Refs: https://github.com/nodejs/node/issues/42080
Refs: https://github.com/nodejs/node/issues/47096
Refs: https://github.com/nodejs/node/issues/43205
Refs: https://github.com/nodejs/node/issues/38695
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2023-09-28 15:28:24 -04:00
Joyee Cheung
4e578f8ab1
module: fix leak of vm.SyntheticModule
...
Previously we maintain a strong persistent reference to the
ModuleWrap to retrieve the ID-to-ModuleWrap mapping from
the HostImportModuleDynamicallyCallback using the number ID
stored in the host-defined options. As a result the ModuleWrap
would be kept alive until the Environment is shut down, which
would be a leak for user code. With the new symbol-based
host-defined option we can just get the ModuleWrap from the
JS-land WeakMap so there's now no need to maintain this
strong reference. This would at least fix the leak for
vm.SyntheticModule. vm.SourceTextModule is still leaking
due to the strong persistent reference to the v8::Module.
Backport-PR-URL: https://github.com/nodejs/node/pull/49874
PR-URL: https://github.com/nodejs/node/pull/48510
Refs: https://github.com/nodejs/node/issues/44211
Refs: https://github.com/nodejs/node/issues/42080
Refs: https://github.com/nodejs/node/issues/47096
Refs: https://github.com/nodejs/node/issues/43205
Refs: https://github.com/nodejs/node/issues/38695
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2023-09-28 15:28:23 -04:00
Joyee Cheung
69e4218772
module: use symbol in WeakMap to manage host defined options
...
Previously when managing the importModuleDynamically callback of
vm.compileFunction(), we use an ID number as the host defined option
and maintain a per-Environment ID -> CompiledFnEntry map to retain
the top-level referrer function returned by vm.compileFunction() in
order to pass it back to the callback, but it would leak because with
how we used v8::Persistent to maintain this reference, V8 would not
be able to understand the cycle and would just think that the
CompiledFnEntry was supposed to live forever. We made an attempt
to make that reference known to V8 by making the CompiledFnEntry weak
and using a private symbol to make CompiledFnEntry strongly
references the top-level referrer function in
https://github.com/nodejs/node/pull/46785 , but that turned out to be
unsound, because the there's no guarantee that the top-level function
must be alive while import() can still be initiated from that
function, since V8 could discard the top-level function and only keep
inner functions alive, so relying on the top-level function to keep
the CompiledFnEntry alive could result in use-after-free which caused
a revert of that fix.
With this patch we use a symbol in the host defined options instead of
a number, because with the stage-3 symbol-as-weakmap-keys proposal
we could directly use that symbol to keep the referrer alive using a
WeakMap. As a bonus this also keeps the other kinds of referrers
alive as long as import() can still be initiated from that
Script/Module, so this also fixes the long-standing crash caused by
vm.Script being GC'ed too early when its importModuleDynamically
callback still needs it.
Backport-PR-URL: https://github.com/nodejs/node/pull/49874
PR-URL: https://github.com/nodejs/node/pull/48510
Refs: https://github.com/nodejs/node/issues/44211
Refs: https://github.com/nodejs/node/issues/42080
Refs: https://github.com/nodejs/node/issues/47096
Refs: https://github.com/nodejs/node/issues/43205
Refs: https://github.com/nodejs/node/issues/38695
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2023-09-28 15:28:23 -04:00
Joyee Cheung
32d4d29d02
deps: add v8::Object::SetInternalFieldForNodeCore()
...
This is a non-ABI breaking solution for
https://github.com/v8/v8/commit/b60a03df4cebafb4c92ee644d11617ad73889e5e
and
https://github.com/v8/v8/commit/0aa622e12893e9921c01a34ce9507b544e599c4a
which are necessary for backporting vm-related memory fixes to v20.x.
PR-URL: https://github.com/nodejs/node/pull/49874
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2023-09-28 15:24:47 -04:00
Wael
e49a573752
test: add os setPriority, getPriority test coverage
...
PR-URL: https://github.com/nodejs/node/pull/38771
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2023-09-28 10:02:33 -04:00
CanadaHonk
ec323bbd99
fs: replace SetMethodNoSideEffect in node_file
...
PR-URL: https://github.com/nodejs/node/pull/49857
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2023-09-28 10:02:33 -04:00
CanadaHonk
6acf800123
fs: improve error performance for unlinkSync
...
PR-URL: https://github.com/nodejs/node/pull/49856
Refs: https://github.com/nodejs/performance/issues/106
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-09-28 10:02:33 -04:00
Vinicius Lourenço
b931aeadfd
perf_hooks: reduce overhead of new performance_entries
...
PR-URL: https://github.com/nodejs/node/pull/49803
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2023-09-28 10:02:33 -04:00
Moshe Atlow
5f02711522
test: deflake test-runner-output
...
PR-URL: https://github.com/nodejs/node/pull/49878
Fixes: https://github.com/nodejs/node/issues/49853
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2023-09-28 10:02:33 -04:00
Raz Luvaton
9fd67fbff0
stream: use bitmap in writable state
...
PR-URL: https://github.com/nodejs/node/pull/49834
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-09-28 10:02:33 -04:00
Yagiz Nizipli
097b59807a
url: improve invalid url performance
...
PR-URL: https://github.com/nodejs/node/pull/49692
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-09-28 10:02:32 -04:00
Moshe Atlow
07a2e29bf3
tools: support updating @reporters/github manually
...
PR-URL: https://github.com/nodejs/node/pull/49871
Refs: https://github.com/nodejs/node/commit/fbe28e2f1da0a66a78164201048c0c60615bd0c8
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2023-09-28 10:02:32 -04:00
Yagiz Nizipli
31702c9403
fs: improve readFileSync with file descriptors
...
PR-URL: https://github.com/nodejs/node/pull/49691
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2023-09-28 10:02:32 -04:00
Joyee Cheung
cd9754d6a7
test: mark test-runner-output as flaky
...
This has been flaky on many platforms for months. Mark it as
flaky for now to avoid blocking the CI.
PR-URL: https://github.com/nodejs/node/pull/49854
Refs: https://github.com/nodejs/node/issues/49853
Refs: https://github.com/nodejs/reliability/issues/673
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-28 10:02:32 -04:00
LiviaMedeiros
4814872ddc
doc: fix DEP0176 number
...
PR-URL: https://github.com/nodejs/node/pull/49858
Refs: https://github.com/nodejs/node/pull/49683
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2023-09-28 10:02:32 -04:00
Livia Medeiros
0e686d096b
doc: deprecate fs.F_OK, fs.R_OK, fs.W_OK, fs.X_OK
...
PR-URL: https://github.com/nodejs/node/pull/49683
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-09-28 10:02:31 -04:00
Joyee Cheung
ad37cadc3f
deps: V8: backport de9a5de2274f
...
Original commit message:
Ignore flags implied by --predictable during hash computation
https://chromium-review.googlesource.com/c/v8/v8/+/4681766 added
code to ignore --predictable during hash computation of flags
in order to produce reproducible code cache. This turns out to
be not enough since the flags implied by --predictable also
need to be ignored for it to work. This patch makes sure that
they are ignored.
Change-Id: Ifa36641efe3ca105706fd293be46fc974055d2d4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4851287
Commit-Queue: Joyee Cheung <joyee@igalia.com >
Reviewed-by: Leszek Swirski <leszeks@chromium.org >
Reviewed-by: Patrick Thier <pthier@chromium.org >
Cr-Commit-Position: refs/heads/main@{#90022}
Refs: https://github.com/v8/v8/commit/de9a5de2274f483961a04a933d84abd81dee9c07
PR-URL: https://github.com/nodejs/node/pull/49703
Refs: https://github.com/v8/v8/commit/b33bf2dfd26131cd51640b618853f2dfcfe5f728
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2023-09-28 10:02:31 -04:00
Joyee Cheung
cdd1c66222
deps: V8: cherry-pick b33bf2dfd261
...
Original commit message:
Ignore --predictable when computing flag list hashes
This allows reproducible code cache generation.
Refs: https://github.com/nodejs/node/pull/48749
Change-Id: Ib4693de60ddff1fe41d95c10980f763463db3f95
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4681766
Reviewed-by: Leszek Swirski <leszeks@chromium.org >
Commit-Queue: Joyee Cheung <joyee@igalia.com >
Cr-Commit-Position: refs/heads/main@{#88943}
Refs: https://github.com/v8/v8/commit/b33bf2dfd26131cd51640b618853f2dfcfe5f728
PR-URL: https://github.com/nodejs/node/pull/49703
Refs: https://github.com/v8/v8/commit/de9a5de2274f483961a04a933d84abd81dee9c07
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2023-09-28 10:02:31 -04:00
SiddharthDevulapalli
5ad00424dd
test: use mustSucceed instead of mustCall
...
PR-URL: https://github.com/nodejs/node/pull/49788
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2023-09-28 10:02:31 -04:00
Michaël Zasso
f67433f666
doc,tools: switch to @node-core/utils
...
Refs: https://github.com/nodejs/node-core-utils/releases/tag/v4.0.0
PR-URL: https://github.com/nodejs/node/pull/49851
Refs: https://github.com/nodejs/node-core-utils/pull/700
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-09-28 10:02:30 -04:00
Chengzhong Wu
96874e8fbc
node-api: enable uncaught exceptions policy by default
...
This enables the option `--force-node-api-uncaught-exceptions-policy`
for a specific Node-API addon when it is compiled with
`NAPI_EXPERIMENTAL` (and this would be the default behavior when
`NAPI_VERSION` 10 releases). This would not break existing Node-API
addons.
PR-URL: https://github.com/nodejs/node/pull/49313
Refs: https://github.com/nodejs/node/pull/36510
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com >
2023-09-28 10:02:30 -04:00
mert.altin
5877c403a2
doc: add mertcanaltin as a triager
...
PR-URL: https://github.com/nodejs/node/pull/49826
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Qingyu Deng <i@ayase-lab.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
2023-09-28 10:02:30 -04:00
Yagiz Nizipli
835f9fe7b9
fs: fix file descriptor validator
...
PR-URL: https://github.com/nodejs/node/pull/49752
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-27 23:16:23 -04:00
Moshe Atlow
80b342cc38
test_runner: accept testOnly in run
...
PR-URL: https://github.com/nodejs/node/pull/49753
Fixes: https://github.com/nodejs/node/issues/49733
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Raz Luvaton <rluvaton@gmail.com >
2023-09-27 23:16:22 -04:00
Benjamin Gruenbaum
0ccd4638ac
stream: use bitmap in readable state
...
PR-URL: https://github.com/nodejs/node/pull/49745
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-27 23:16:22 -04:00
Raz Luvaton
864fe56432
doc: add git node backport way to the backporting guide
...
also updated 10.x to 20.x in backporting examples
PR-URL: https://github.com/nodejs/node/pull/49760
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-27 23:16:22 -04:00
Moshe Atlow
5ac6722031
tools: skip ruff on tools/node_modules
...
PR-URL: https://github.com/nodejs/node/pull/49838
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2023-09-27 23:16:22 -04:00
Jungku Lee
0ce1e94d12
lib: update encoding sets in WHATWG API
...
PR-URL: https://github.com/nodejs/node/pull/49610
Refs: https://encoding.spec.whatwg.org/#names-and-labels
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com >
2023-09-27 23:16:22 -04:00
Node.js GitHub Bot
61d18d6473
deps: update undici to 5.24.0
...
PR-URL: https://github.com/nodejs/node/pull/49559
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com >
2023-09-27 23:16:21 -04:00
Yagiz Nizipli
efd6815a7a
lib: fix internalBinding typings
...
PR-URL: https://github.com/nodejs/node/pull/49742
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-27 23:16:21 -04:00
Shubham Pandey
3db9b40081
test: refactor test-readline-async-iterators into a benchmark
...
PR-URL: https://github.com/nodejs/node/pull/49237
Fixes: https://github.com/nodejs/node/issues/49224
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-09-27 23:16:21 -04:00
Ben Noordhuis
b8a4fef393
deps: remove pthread-fixes.c from uv.gyp
...
The file was removed in the latest libuv upgrade. Remove it from the
build recipe as well.
Fixes: https://github.com/nodejs/node/issues/49739
PR-URL: https://github.com/nodejs/node/pull/49744
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com >
2023-09-27 23:16:21 -04:00
Jacob Smith
05f0fcb4c4
esm: identify parent importing a url with invalid host
...
PR-URL: https://github.com/nodejs/node/pull/49736
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
2023-09-27 23:16:21 -04:00
Node.js GitHub Bot
6c86c0683c
deps: update googletest to d1467f5
...
PR-URL: https://github.com/nodejs/node/pull/49676
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-27 23:15:42 -04:00
Joyee Cheung
e0f93492d5
doc: improve documentation about ICU data fallback
...
This patch:
- Documents `--with-icu-default-data-dir` and its precedence
- Elaborates a bit more about the format of the name of the expected
data file.
PR-URL: https://github.com/nodejs/node/pull/49666
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2023-09-27 23:15:42 -04:00
Joyee Cheung
10a2adeed5
src: improve error message when ICU data cannot be initialized
...
Previously when we fail to initialize ICU data, the error message is
```
could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir
parameters)
```
This patch updates it to something similar to:
```
U_FILE_ACCESS_ERROR: Could not initialize ICU. Check the directory
specified by NODE_ICU_DATA or --icu-data-dir contains icudt73l.dat
and it's readable
```
Where the expected data file name is the same as U_ICUDATA_NAME.
PR-URL: https://github.com/nodejs/node/pull/49666
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2023-09-27 23:15:42 -04:00
João Lenon
7c2060cfac
util: add getCwdSafe internal util fn
...
This function was first implemented in #46826 , but at some point
of the PR implementation this fn was no longer related to the PR.
Refs: https://github.com/nodejs/node/pull/46826#discussion_r1225431178
PR-URL: https://github.com/nodejs/node/pull/48434
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-09-27 23:15:41 -04:00
Debadree Chatterjee
1287d5b74e
lib: allow byob reader for 'blob.stream()'
...
Fixes: https://github.com/nodejs/node/issues/47993
PR-URL: https://github.com/nodejs/node/pull/49713
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-09-27 23:15:41 -04:00
Antoine du Hamel
8bfbe7079c
meta: fix linter error
...
PR-URL: https://github.com/nodejs/node/pull/49755
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-09-27 23:15:41 -04:00
Rafael Gonzaga
ce37688bac
src: remove unnecessary todo
...
PR-URL: https://github.com/nodejs/node/pull/49227
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2023-09-27 23:13:00 -04:00
a5dd057540
doc: deprecate util.toUSVString
...
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
Co-authored-by: Michaël Zasso <targos@protonmail.com >
PR-URL: https://github.com/nodejs/node/pull/49725
Refs: https://github.com/nodejs/node/pull/47342
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-27 23:12:12 -04:00
Benjamin Gruenbaum
58f7a9e096
meta: add primordials strategic initiative
...
PR-URL: https://github.com/nodejs/node/pull/49706
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2023-09-27 23:10:23 -04:00
Yagiz Nizipli
b618fe262f
fs: improve error performance of opendirSync
...
PR-URL: https://github.com/nodejs/node/pull/49705
Refs: https://github.com/nodejs/performance/issues/106
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-09-27 23:10:23 -04:00
Maël Nison
bbc710522d
lib: reset the cwd cache before execution
...
PR-URL: https://github.com/nodejs/node/pull/49684
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2023-09-27 23:10:23 -04:00
Jungku Lee
774c1cfd52
doc: add missing function call to example for util.promisify
...
PR-URL: https://github.com/nodejs/node/pull/49719
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2023-09-27 23:10:23 -04:00
Deokjin Kim
fe78a34845
doc: update output of example in mimeParams.set()
...
Actual output of example in `mimeParams.set()` is mismatched.
PR-URL: https://github.com/nodejs/node/pull/49718
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-27 23:10:22 -04:00