Commit Graph
38701 Commits
Author SHA1 Message Date
Filip Skokan fe9da9df0f benchmark: add crypto.create*Key
PR-URL: https://github.com/nodejs/node/pull/48284
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2023-08-29 16:42:32 -04:00
Livia Medeiros c728b8a29b test: fix test-net-autoselectfamily for kernel without IPv6 support
PR-URL: https://github.com/nodejs/node/pull/45856
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
2023-08-29 16:39:52 -04:00
Zack Newsham a00464ee06 esm: fix specifier resolution and symlinks
Ensure `--experimental-specifier-resolution=node` works when combined
with `--preserve-symlinks`.

PR-URL: https://github.com/nodejs/node/pull/47674
Refs: https://github.com/nodejs/node/issues/47649
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-08-17 17:51:33 -04:00
rogertyang 3eeca52db1 tls: fix bugs of double TLS
Fixs two issues in `TLSWrap`, one of them is reported in
https://github.com/nodejs/node/issues/30896.

1. `TLSWrap` has exactly one `StreamListener`, however,
that `StreamListener` can be replaced. We have not been
rigorous enough here: if an active write has not been
finished before the transition, the finish callback of it
will be wrongly fired the successor `StreamListener`.

2. A `TLSWrap` does not allow more than one active write,
as checked in the assertion about current_write in
`TLSWrap::DoWrite()`.

However, when users make use of an existing `tls.TLSSocket`
to establish double TLS, by
either
  tls.connect({socket: tlssock})
or
  tlsServer.emit('connection', tlssock)
we have both of the user provided `tls.TLSSocket`, tlssock and
a brand new created `TLSWrap` writing to the `TLSWrap` bound to
tlssock, which easily violates the constranint because two writers
have no idea of each other.

The design of the fix is:
when a `TLSWrap` is created on top of a user provided socket,
do not send any data to the socket until all existing writes
of the socket are done and ensure registered callbacks of
those writes can be fired.

PR-URL: https://github.com/nodejs/node/pull/48969
Backport-PR-URL: https://github.com/nodejs/node/pull/49183
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
2023-08-17 13:33:16 -04:00
Antoine du Hamel 6de7aa1d19 test: move test-tls-autoselectfamily-servername to test/internet
And switch from `google.com` to `nodejs.org`.

PR-URL: https://github.com/nodejs/node/pull/47029
Backport-PR-URL: https://github.com/nodejs/node/pull/49183
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2023-08-17 13:33:05 -04:00
Paolo Insogna b5f53d9a0b net: fix family autoselection SSL connection handling
PR-URL: https://github.com/nodejs/node/pull/48189
Backport-PR-URL: https://github.com/nodejs/node/pull/49183
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
2023-08-17 13:33:02 -04:00
Paolo Insogna 267439fc34 net: rework autoSelectFamily implementation
PR-URL: https://github.com/nodejs/node/pull/46587
Backport-PR-URL: https://github.com/nodejs/node/pull/49183
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2023-08-17 13:32:56 -04:00
Antoine du Hamel 0beb5ab93d url: ensure getter access do not mutate observable symbols
PR-URL: https://github.com/nodejs/node/pull/48897
Backport-PR-URL: https://github.com/nodejs/node/pull/48891
Refs: https://github.com/nodejs/node/pull/48891
Refs: https://github.com/nodejs/node/issues/48886
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
2023-08-16 11:27:58 -04:00
Yagiz Nizipli 69aaf8b1d1 lib: remove invalid parameter to toASCII
PR-URL: https://github.com/nodejs/node/pull/48878
Backport-PR-URL: https://github.com/nodejs/node/pull/48873
Refs: https://github.com/nodejs/node/pull/48873
Refs: https://github.com/nodejs/node/issues/48855
Refs: https://github.com/nodejs/node/issues/48850
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-08-15 20:38:59 -04:00
Yagiz Nizipli 2de9868292 test: validate host with commas on url.parse
PR-URL: https://github.com/nodejs/node/pull/48878
Backport-PR-URL: https://github.com/nodejs/node/pull/48873
Refs: https://github.com/nodejs/node/pull/48873
Refs: https://github.com/nodejs/node/issues/48855
Refs: https://github.com/nodejs/node/issues/48850
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-08-15 20:38:47 -04:00
Yagiz NizipliandDaniel Lemire e4261809b0 src: replace idna functions with ada::idna
Co-authored-by: Daniel Lemire <daniel@lemire.me>
PR-URL: https://github.com/nodejs/node/pull/47735
Backport-PR-URL: https://github.com/nodejs/node/pull/48873
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
2023-08-15 20:38:40 -04:00
Shi Pujin f4617a4f81 deps: add loongarch64 into openssl Makefile and gen openssl-loongarch64
Add linux64-loongarch64 into Makefile
And run make

PR-URL: https://github.com/nodejs/node/pull/46401
Backport-PR-URL: https://github.com/nodejs/node/pull/48135
Reviewed-By: Ben Noordhuis info@bnoordhuis.nl
Reviewed-By: James M Snell jasnell@gmail.com
Reviewed-By: Michael Dawson midawson@redhat.com
2023-08-15 19:42:52 -04:00
Fedor Indutny d3637cdbbf net: fix address iteration with autoSelectFamily
When `autoSelectFamily` is set to `true`, `net.connect` is supposed to
try connecting to both IPv4 and IPv6, interleaving the address types.
Instead, it appears that the array that holds the addresses in the order
they should be attempted was never used after being populated.

PR-URL: https://github.com/nodejs/node/pull/48258
Backport-PR-URL: https://github.com/nodejs/node/pull/49016
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
2023-08-14 17:42:19 -04:00
Paolo Insogna e8289a83f1 net: fix family autoselection timeout handling
PR-URL: https://github.com/nodejs/node/pull/47860
Backport-PR-URL: https://github.com/nodejs/node/pull/49016
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2023-08-14 17:41:59 -04:00
Paolo Insogna 863bdb785d net: add autoSelectFamily global getter and setter
PR-URL: https://github.com/nodejs/node/pull/45777
Backport-PR-URL: https://github.com/nodejs/node/pull/49016
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2023-08-14 17:41:27 -04:00
Michaël Zasso e7d2e8ef2a test: delete test-net-bytes-per-incoming-chunk-overhead
The test's assumptions about RSS are no longer valid, at least with
Fedora 38.

Closes: https://github.com/nodejs/node/issues/48490
PR-URL: https://github.com/nodejs/node/pull/48811
Fixes: https://github.com/nodejs/node/issues/48490
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
2023-08-09 13:58:52 -03:00
RafaelGSS 6dc441e0fe Working on v18.17.1
PR-URL: https://github.com/nodejs-private/node-private/pull/463
2023-08-09 13:57:32 -03:00
RafaelGSS 2e414d5d10 2023-08-09, Version 18.17.1 'Hydrogen' (LTS)
Notable changes:

Following CVEs are fixed in this release:

* CVE-2023-32002: Policies can be bypassed via Module._load (High)
* CVE-2023-32006: Policies can be bypassed by module.constructor.createRequire (Medium)
* CVE-2023-32559: Policies can be bypassed via process.binding (Medium)
* OpenSSL Security Releases
  * https://mta.openssl.org/pipermail/openssl-announce/2023-July/000264.html
  * https://mta.openssl.org/pipermail/openssl-announce/2023-July/000265.html
  * https://mta.openssl.org/pipermail/openssl-announce/2023-July/000267.html

PR-URL: https://github.com/nodejs-private/node-private/pull/463
v18.17.1
2023-08-08 19:24:08 -03:00
RafaelGSS 15bced0bde policy: handle Module.constructor and main.extensions bypass
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
PR-URL: https://github.com/nodejs-private/node-private/pull/417
Refs: https://hackerone.com/bugs?subject=nodejs&report_id=1960870
Refs: https://hackerone.com/bugs?subject=nodejs&report_id=2043807
CVE-ID: CVE-2023-32002,CVE-2023-32006
2023-08-08 10:11:49 -03:00
Tobias Nießen d4570fae35 policy: disable process.binding() when enabled
process.binding() can be used to trivially bypass restrictions imposed
through a policy. Since the function is deprecated already, simply
replace it with a stub when a policy is being enabled.

Fixes: https://hackerone.com/bugs?report_id=1946470
PR-URL: https://github.com/nodejs-private/node-private/pull/460
CVE-ID: CVE-2023-32559
2023-08-08 10:10:53 -03:00
Node.js GitHub Bot fe3abdf82e deps: update archs files for openssl-3.0.10+quic1
PR-URL: https://github.com/nodejs/node/pull/49036
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2023-08-08 10:10:53 -03:00
Node.js GitHub Bot 2c5a522d9c deps: upgrade openssl sources to quictls/openssl-3.0.10+quic1
PR-URL: https://github.com/nodejs/node/pull/49036
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2023-08-08 10:10:53 -03:00
Danielle Adams 6378377403 Working on v18.17.1
PR-URL: https://github.com/nodejs/node/pull/48694
2023-07-18 15:12:30 -04:00
Danielle Adams a39b8a2a3e 2023-07-18, Version 18.17.0 'Hydrogen' (LTS)
Notable changes:

Ada 2.0
Node.js v18.17.0 comes with the latest version of the URL parser, Ada. This
update brings significant performance improvements to URL parsing, including
enhancements to the url.domainToASCII and url.domainToUnicode functions
in node:url.

Ada 2.0 has been integrated into the Node.js codebase, ensuring that all
parts of the application can benefit from the improved performance. Additionally,
Ada 2.0 features a significant performance boost over its predecessor, Ada 1.0.4,
while also eliminating the need for the ICU requirement for URL hostname parsing.

Contributed by Yagiz Nizipli and Daniel Lemire in https://github.com/nodejs/node/pull/47339

Web Crypto API
Web Crypto API functions' arguments are now coerced and validated as per
their WebIDL definitions like in other Web Crypto API implementations. This
further improves interoperability with other implementations of Web Crypto API.

Contributed by Filip Skokan in https://github.com/nodejs/node/pull/46067

crypto:
  * update root certificates to NSS 3.89 (Node.js GitHub Bot) https://github.com/nodejs/node/pull/47659
dns:
  * (SEMVER-MINOR) expose getDefaultResultOrder (btea) https://github.com/nodejs/node/pull/46973
doc:
  * add ovflowd to collaborators (Claudio Wunder) https://github.com/nodejs/node/pull/47844
  * add KhafraDev to collaborators (Matthew Aitken) https://github.com/nodejs/node/pull/47510
* events:
  * (SEMVER-MINOR) add getMaxListeners method (Matthew Aitken) https://github.com/nodejs/node/pull/47039
fs:
  * (SEMVER-MINOR) add support for mode flag to specify the copy behavior (Tetsuharu Ohzeki) https://github.com/nodejs/node/pull/47084
  * (SEMVER-MINOR) add recursive option to readdir and opendir (Ethan Arrowood) https://github.com/nodejs/node/pull/41439
  * (SEMVER-MINOR) add support for mode flag to specify the copy behavior (Tetsuharu Ohzeki) https://github.com/nodejs/node/pull/47084
  * (SEMVER-MINOR) implement byob mode for readableWebStream() (Debadree Chatterjee) https://github.com/nodejs/node/pull/46933
http:
  * (SEMVER-MINOR) prevent writing to the body when not allowed by HTTP spec (Gerrard Lindsay) https://github.com/nodejs/node/pull/47732
  * (SEMVER-MINOR) remove internal error in assignSocket (Matteo Collina) https://github.com/nodejs/node/pull/47723
  * (SEMVER-MINOR) add highWaterMark opt in http.createServer (HinataKah0) https://github.com/nodejs/node/pull/47405
lib:
  * (SEMVER-MINOR) add webstreams to Duplex.from() (Debadree Chatterjee) https://github.com/nodejs/node/pull/46190
  * (SEMVER-MINOR) implement AbortSignal.any() (Chemi Atlow) https://github.com/nodejs/node/pull/47821
module:
  * change default resolver to not throw on unknown scheme (Gil Tayar) https://github.com/nodejs/node/pull/47824
node-api:
  * (SEMVER-MINOR) define version 9 (Chengzhong Wu) https://github.com/nodejs/node/pull/48151
  * (SEMVER-MINOR) deprecate napi_module_register (Vladimir Morozov) https://github.com/nodejs/node/pull/46319
stream:
  * (SEMVER-MINOR) preserve object mode in compose (Raz Luvaton) https://github.com/nodejs/node/pull/47413
  * (SEMVER-MINOR) add setter & getter for default highWaterMark (#46929) (Robert Nagy) https://github.com/nodejs/node/pull/46929
test:
  * unflake test-vm-timeout-escape-nexttick (Santiago Gimeno) https://github.com/nodejs/node/pull/48078
test_runner:
  * (SEMVER-MINOR) add shorthands to `test` (Chemi Atlow) https://github.com/nodejs/node/pull/47909
  * (SEMVER-MINOR) support combining coverage reports (Colin Ihrig) https://github.com/nodejs/node/pull/47686
  * (SEMVER-MINOR) execute before hook on test (Chemi Atlow) https://github.com/nodejs/node/pull/47586
  * (SEMVER-MINOR) expose reporter for use in run api (Chemi Atlow) https://github.com/nodejs/node/pull/47238
tools:
  * update LICENSE and license-builder.sh (Santiago Gimeno) https://github.com/nodejs/node/pull/48078
url:
  * (SEMVER-MINOR) implement URL.canParse (Matthew Aitken) https://github.com/nodejs/node/pull/47179
wasi:
  * (SEMVER-MINOR) no longer require flag to enable wasi (Michael Dawson) https://github.com/nodejs/node/pull/47286

PR-URL: https://github.com/nodejs/node/pull/48694
v18.17.0
2023-07-17 22:47:21 -04:00
Chemi Atlow 156292d44a lib: create weakRef only if any signals provided
PR-URL: https://github.com/nodejs/node/pull/48448
Backport-PR-URL: https://github.com/nodejs/node/pull/48800
Fixes: https://github.com/nodejs/node/issues/48419
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2023-07-17 11:26:11 -04:00
Chemi Atlow efaa073303 lib: implement AbortSignal.any()
PR-URL: https://github.com/nodejs/node/pull/47821
Backport-PR-URL: https://github.com/nodejs/node/pull/48800
Fixes: https://github.com/nodejs/node/issues/47811
Refs: https://github.com/whatwg/dom/pull/1152
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2023-07-17 11:26:09 -04:00
Moshe Atlow d002f9b6e2 build: revert unkonwn ruff selector
PR-URL: https://github.com/nodejs/node/pull/48753
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com>
2023-07-16 21:29:49 -04:00
Rich Trott 7786d7cece tools: pin ruff version number
New versions have new rules and end up breaking builds unexpectedly.

PR-URL: https://github.com/nodejs/node/pull/48505
Backport-PR-URL: https://github.com/nodejs/node/pull/48753
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2023-07-16 21:28:54 -04:00
Node.js GitHub Bot 6f3a8b45a5 deps: update ada to 2.5.0
PR-URL: https://github.com/nodejs/node/pull/48223
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2023-07-12 11:12:55 -04:00
Node.js GitHub Bot 075b6db919 deps: update ada to 2.4.2
PR-URL: https://github.com/nodejs/node/pull/48092
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2023-07-12 11:12:53 -04:00
Node.js GitHub Bot a4ee1f652c deps: update ada to 2.4.1
PR-URL: https://github.com/nodejs/node/pull/48036
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2023-07-12 11:12:51 -04:00
Node.js GitHub Bot 81b514d3f0 deps: update ada to 2.4.0
PR-URL: https://github.com/nodejs/node/pull/47922
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
2023-07-12 11:12:49 -04:00
Node.js GitHub Bot 575ddf694f deps: update ada to 2.3.1
PR-URL: https://github.com/nodejs/node/pull/47893
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2023-07-12 11:12:47 -04:00
Node.js GitHub Bot 2d03d5f458 deps: update ada to 2.3.0
PR-URL: https://github.com/nodejs/node/pull/47737
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2023-07-12 11:12:46 -04:00
Node.js GitHub Bot 42e690f2d5 deps: update ada to 2.2.0
PR-URL: https://github.com/nodejs/node/pull/47678
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2023-07-12 11:12:44 -04:00
Node.js GitHub Bot 08dd271521 deps: update ada to 2.1.0
PR-URL: https://github.com/nodejs/node/pull/47598
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2023-07-12 11:12:42 -04:00
Yagiz Nizipli 889730512c url: handle URL.canParse without base parameter
PR-URL: https://github.com/nodejs/node/pull/47547
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2023-07-12 11:12:41 -04:00
Yagiz Nizipli 0dc485eb28 url: drop ICU requirement for parsing hostnames
PR-URL: https://github.com/nodejs/node/pull/47339
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2023-07-12 11:12:39 -04:00
Yagiz Nizipli b395b16c40 url: use ada::url_aggregator for parsing urls
PR-URL: https://github.com/nodejs/node/pull/47339
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2023-07-12 11:12:37 -04:00
Node.js GitHub Bot 96c50ba71f deps: update ada to 2.0.0
PR-URL: https://github.com/nodejs/node/pull/47339
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2023-07-12 11:12:35 -04:00
Khafra 11f48e02a8 url: implement URL.canParse
PR-URL: https://github.com/nodejs/node/pull/47179
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
2023-07-12 11:12:32 -04:00
Anna Henningsen 1f2c91f98a src: use std::array for passing argv in node::url
Implements a review suggestion from 72e971ee2e.

Refs: https://github.com/nodejs/node/pull/47001#issuecomment-1462999332
PR-URL: https://github.com/nodejs/node/pull/47035
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2023-07-12 11:12:29 -04:00
Yagiz Nizipli 977a8bad35 url: fix array overrun in node:url::SetArgs()
PR-URL: https://github.com/nodejs/node/pull/47001
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
2023-07-12 11:12:26 -04:00
Antoine du Hamel 4784e64850 url: allow extension of user provided URL objects
PR-URL: https://github.com/nodejs/node/pull/46989
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Fixes: https://github.com/nodejs/node/issues/46981
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2023-07-12 11:12:21 -04:00
Yagiz Nizipli f495cb6bf4 url: backport non-major changes from #46904
PR-URL: https://github.com/nodejs/node/pull/46904
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2023-07-12 11:12:07 -04:00
Yagiz Nizipli aa4f485388 url: set formatUrl method as no side effect
PR-URL: https://github.com/nodejs/node/pull/46884
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2023-07-12 11:10:20 -04:00
Yagiz Nizipli c79e1b72f2 url: offload URLSearchParams initialization
PR-URL: https://github.com/nodejs/node/pull/46867
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2023-07-12 11:10:18 -04:00
Yagiz Nizipli 3db235b822 url: remove unused kFormat from url
PR-URL: https://github.com/nodejs/node/pull/46867
Backport-PR-URL: https://github.com/nodejs/node/pull/48345
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2023-07-12 11:10:09 -04:00
Moshe Atlow 5d910ca389 test_runner: add enqueue and dequeue events
PR-URL: https://github.com/nodejs/node/pull/48428
Backport-PR-URL: https://github.com/nodejs/node/pull/48684
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2023-07-12 07:58:08 -04:00
Moshe Atlow d795c0ab0c test_runner: dont split lines on test:stdout
PR-URL: https://github.com/nodejs/node/pull/48057
Backport-PR-URL: https://github.com/nodejs/node/pull/48684
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-07-12 07:57:59 -04:00