Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] v6.21.2 #4092

Closed
wants to merge 53 commits into from
Closed

[Release] v6.21.2 #4092

wants to merge 53 commits into from

Conversation

github-actions[bot]
Copy link
Contributor

What's Changed

New Contributors

Full Changelog: v6.21.1...v6.21.2

mcollina and others added 30 commits July 22, 2024 10:10
Signed-off-by: Matteo Collina <[email protected]>
Signed-off-by: Matteo Collina <[email protected]>
* fix: restore externalized Node.js dep compatibility

Restore the ability to build Undici compatible with Node.js'
`configure --shared-builtin-undici/undici-path ...` build option.

Scopes the `hasApk` conditional to only cover the part that requires
`apk`.

Makes the WASM optimizer (binaryen) optional to allow building on
Linux distributions that do not package `binaryen` and must be able
to rebuild everything (including tooling) from source.

* ci: add workflow for externalized Node.js dep

Add a workflow to test building Undici in a way compatible with Node.js
built with `configure --shared-builtin-undici/undici-path ...`.

This configuration is used by downstream Node.js packagers (e.g. Fedora)
who require the ability to be able to build everything from source.
Signed-off-by: Matteo Collina <[email protected]>
* fix: memory leak

Holding a reference to the stream in the finalization registry causes a memory leak, even when consuming the body.

* docs: add comment explaining the strong reference

* typo
Signed-off-by: Matteo Collina <[email protected]>
Signed-off-by: Matteo Collina <[email protected]>
* test: add test for memory leak

* lint
The wasm-opt binary may be available in different place than the local
directory (`./wasm-opt`) – for example, in /usr/bin/wasm-opt.
Similarly to the other parametrized WASM build options,
use WASM_OPT environment variable to identify the wanted binary,
with fallback to the previous value.

Even with the environment variable available,
the `hasOptimizer` is kept to make the optimization optional.

Signed-off-by: Jan Staněk <[email protected]>
Signed-off-by: Matteo Collina <[email protected]>
Co-authored-by: Mert Can Altin <[email protected]>
Co-authored-by: Carlos Fuentes <[email protected]>
(cherry picked from commit b725457)

Co-authored-by: Aras Abbasi <[email protected]>
…blocking (#3495) (#3673)

* fix: refactor fast timers, fix UND_ERR_CONNECT_TIMEOUT on event loop blocking

* also test native timers

* improve the commentary of fasttimers

* revert changes in client-h1.js

* make fasttimers independent from performance.now

* less flaky?

(cherry picked from commit 8a09d77)

Co-authored-by: Aras Abbasi <[email protected]>
(cherry picked from commit 3faf140)

Co-authored-by: Aras Abbasi <[email protected]>
* fix: use fasttimers for all connection timeouts

* Apply suggestions from code review

* activate some tests

* also use fastTimers in connect.js

* fix tests

* fix tests

* fix tests

* fix: use native timeouts for TIMEOUT_IDLE, rename TIMEOUT_IDLE to TIMEOUT_KEEP_ALIVE (#3554)

* fix: use native timeouts for TIMEOUT_IDLE, rename TIMEOUT_IDLE to TIMEOUT_KEEP_ALIVE

* ensure that fast timers and native timers are set properly

* .

* .

* rename import

* more informative connection error

* ignore request-timeout binary file, rename clearAll to reset

* fix

* add test

* use queueMicrotask earlier in the socket callbacks

(cherry picked from commit dca0aa0)

Co-authored-by: Aras Abbasi <[email protected]>
(cherry picked from commit 990df2c)

Co-authored-by: Aras Abbasi <[email protected]>
…ass them faster (#3656) (#3679)

* test: less flaky timers acceptance test

* use fake timers

* tick 10

* one tick

---------

Co-authored-by: Carlos Fuentes <[email protected]>
(cherry picked from commit 5308d29)

Co-authored-by: Aras Abbasi <[email protected]>
…onses (#3662) (#3689)

(cherry picked from commit 2d524cf)

Co-authored-by: Aras Abbasi <[email protected]>
Co-authored-by: Aras Abbasi <[email protected]>
(cherry picked from commit 862c035)

Co-authored-by: Khafra <[email protected]>
mcollina and others added 23 commits October 9, 2024 09:48
Signed-off-by: Matteo Collina <[email protected]>
(cherry picked from commit 3d0ce67)

Co-authored-by: Aras Abbasi <[email protected]>
(cherry picked from commit db8e642)

Co-authored-by: tsctx <[email protected]>
(cherry picked from commit d6c44f3)

Co-authored-by: Carlos Fuentes <[email protected]>
…mise (#3716) (#3723)

(cherry picked from commit cda5f94)

Co-authored-by: Aras Abbasi <[email protected]>
* web: mark as uncloneable when possible

This tells node that the marked instances from undici are not cloneable,
so that attempts to cloning those throw `DataCloneError`.

* test: add test cases for platform objects uncloneable

* fix: move to webidl

* fix: move it under webidl

* fixup: rename it to markAsUncloneable

* fix: mark more web instances uncloneable

* fixup

---------

Co-authored-by: Khafra <[email protected]>
(cherry picked from commit 1ab2382)
(cherry picked from commit e5c242d)

Co-authored-by: tsctx <[email protected]>
* fix: handle undefined deref of weakref socket

* exit early

---------

Co-authored-by: Aras Abbasi <[email protected]>
(cherry picked from commit f98fbef)

Co-authored-by: hochoy <[email protected]>
* fix: range end is zero-indexed

* tests: update tests for retry handler

(cherry picked from commit 2b81fbc)

Co-authored-by: D Trombett <[email protected]>
Signed-off-by: Matteo Collina <[email protected]>
* fix(#3736): back-port 183f8e9 to v6.x

* Backport #3769: fix http2 test
* fix(#3817): send servername for SNI on TLS (#3821)

* fix(#3817): send servername for SNI on TLS

* fix: set host header to servername

* refactor: attach regardless

(cherry picked from commit b93a834)

* feat: missing interceptor

* fix: lint
* fix: sending formdata bodies with http2 (#3863)

(cherry picked from commit e49b575)

* fix: bad merge

---------

Co-authored-by: Khafra <[email protected]>
* Update return type

* add type tests

(cherry picked from commit a1fb2cc)

Co-authored-by: Qayyuum Harun <[email protected]>
* Use crypto.randomInt()

Signed-off-by: Matteo Collina <[email protected]>

* fixup

Signed-off-by: Matteo Collina <[email protected]>

---------

Signed-off-by: Matteo Collina <[email protected]>
Signed-off-by: Matteo Collina <[email protected]>
@mcollina
Copy link
Member

Nope, this didn't work. I'll release manually.

@mcollina mcollina closed this Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.