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

Skip the creation of a transform stream in fetch #3093

Merged
merged 1 commit into from Apr 11, 2024
Merged

Conversation

mcollina
Copy link
Member

This skips the creation of a TransformStream, which showed up glowing in the following flamegraph:

Screenshot 2024-04-11 at 19 11 07

After this patch:

Screenshot 2024-04-11 at 19 12 05

Benchmarks

main:

[bench:run] ┌─────────┬───────────────────────┬─────────┬────────────────────┬────────────┬─────────────────────────┐
[bench:run] │ (index) │ Tests                 │ Samples │ Result             │ Tolerance  │ Difference with slowest │
[bench:run] ├─────────┼───────────────────────┼─────────┼────────────────────┼────────────┼─────────────────────────┤
[bench:run] │ 0       │ 'undici - fetch'      │ 30      │ '4571.92 req/sec'  │ '± 2.72 %' │ '-'                     │
[bench:run] │ 1       │ 'request'             │ 35      │ '5183.44 req/sec'  │ '± 2.90 %' │ '+ 13.38 %'             │
[bench:run] │ 2       │ 'node-fetch'          │ 10      │ '5405.14 req/sec'  │ '± 1.25 %' │ '+ 18.22 %'             │
[bench:run] │ 3       │ 'axios'               │ 35      │ '5423.29 req/sec'  │ '± 2.80 %' │ '+ 18.62 %'             │
[bench:run] │ 4       │ 'got'                 │ 25      │ '5672.87 req/sec'  │ '± 2.87 %' │ '+ 24.08 %'             │
[bench:run] │ 5       │ 'http - no keepalive' │ 10      │ '6407.75 req/sec'  │ '± 3.00 %' │ '+ 40.15 %'             │
[bench:run] │ 6       │ 'superagent'          │ 10      │ '9827.22 req/sec'  │ '± 1.69 %' │ '+ 114.95 %'            │
[bench:run] │ 7       │ 'http - keepalive'    │ 10      │ '11160.93 req/sec' │ '± 2.49 %' │ '+ 144.12 %'            │
[bench:run] │ 8       │ 'undici - pipeline'   │ 50      │ '12261.22 req/sec' │ '± 3.00 %' │ '+ 168.19 %'            │
[bench:run] │ 9       │ 'undici - stream'     │ 55      │ '19454.69 req/sec' │ '± 2.95 %' │ '+ 325.53 %'            │
[bench:run] │ 10      │ 'undici - request'    │ 20      │ '21013.26 req/sec' │ '± 2.50 %' │ '+ 359.62 %'            │
[bench:run] │ 11      │ 'undici - dispatch'   │ 60      │ '21457.64 req/sec' │ '± 2.93 %' │ '+ 369.34 %'            │
[bench:run] └─────────┴───────────────────────┴─────────┴────────────────────┴────────────┴─────────────────────────┘

this pr:

[bench:run] ┌─────────┬───────────────────────┬─────────┬────────────────────┬────────────┬─────────────────────────┐
[bench:run] │ (index) │ Tests                 │ Samples │ Result             │ Tolerance  │ Difference with slowest │
[bench:run] ├─────────┼───────────────────────┼─────────┼────────────────────┼────────────┼─────────────────────────┤
[bench:run] │ 0       │ 'undici - fetch'      │ 50      │ '5056.83 req/sec'  │ '± 2.78 %' │ '-'                     │
[bench:run] │ 1       │ 'axios'               │ 30      │ '5253.49 req/sec'  │ '± 2.92 %' │ '+ 3.89 %'              │
[bench:run] │ 2       │ 'node-fetch'          │ 10      │ '5467.21 req/sec'  │ '± 1.25 %' │ '+ 8.12 %'              │
[bench:run] │ 3       │ 'request'             │ 35      │ '5501.59 req/sec'  │ '± 2.92 %' │ '+ 8.80 %'              │
[bench:run] │ 4       │ 'got'                 │ 30      │ '5758.56 req/sec'  │ '± 2.67 %' │ '+ 13.88 %'             │
[bench:run] │ 5       │ 'http - no keepalive' │ 15      │ '6173.06 req/sec'  │ '± 2.81 %' │ '+ 22.07 %'             │
[bench:run] │ 6       │ 'superagent'          │ 10      │ '9717.62 req/sec'  │ '± 1.60 %' │ '+ 92.17 %'             │
[bench:run] │ 7       │ 'http - keepalive'    │ 10      │ '11309.90 req/sec' │ '± 2.53 %' │ '+ 123.66 %'            │
[bench:run] │ 8       │ 'undici - pipeline'   │ 50      │ '11740.51 req/sec' │ '± 2.95 %' │ '+ 132.17 %'            │
[bench:run] │ 9       │ 'undici - request'    │ 80      │ '17345.44 req/sec' │ '± 2.89 %' │ '+ 243.01 %'            │
[bench:run] │ 10      │ 'undici - stream'     │ 70      │ '20085.77 req/sec' │ '± 2.93 %' │ '+ 297.20 %'            │
[bench:run] │ 11      │ 'undici - dispatch'   │ 60      │ '21427.77 req/sec' │ '± 2.97 %' │ '+ 323.74 %'            │
[bench:run] └─────────┴───────────────────────┴─────────┴────────────────────┴────────────┴─────────────────────────┘

It improves our benchmark by 10%.

It also shortens the following:

import { fetch } from './index.js'

console.time('fetch')
for (let i = 0; i < 100000; i++) {
  const res = await fetch('http://localhost:3000')
  // console.log(await res.text())
  await res.text()
}
console.timeEnd('fetch')

from 20s to 16s. A nice 20% speedup.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Copy link
Member

@ronag ronag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we ask the spec people why this is there?

@mcollina
Copy link
Member Author

From the spec:

This TransformStream is needed for the purpose of receiving a notification when the stream reaches its end, and is otherwise an identity transform stream.

which we fulfill in https://github.com/nodejs/undici/pull/3093/files#diff-9cc53c7d17eaefd294df4a58f7406660dfe9e2b39feea783e824d33095cafedeR1106.


So in other terms, it seems they had no easy way to specify what we did in our implementation.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.03%. Comparing base (2e128c1) to head (db3594d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3093      +/-   ##
==========================================
- Coverage   94.03%   94.03%   -0.01%     
==========================================
  Files          89       89              
  Lines       24357    24356       -1     
==========================================
- Hits        22904    22903       -1     
  Misses       1453     1453              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@KhafraDev KhafraDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We definitely have a bug regarding internalResponse.body.stream, this can land in the meantime.

@mcollina mcollina merged commit 83a0fb3 into main Apr 11, 2024
27 of 28 checks passed
@metcoder95 metcoder95 deleted the skip-transform branch April 11, 2024 20:17
@KhafraDev
Copy link
Member

We can almost get rid of webstreams here entirely (only 4 WPTs fail):

diff --git a/lib/web/fetch/index.js b/lib/web/fetch/index.js
index 30f457df..21a7f0ae 100644
--- a/lib/web/fetch/index.js
+++ b/lib/web/fetch/index.js
@@ -1089,32 +1089,9 @@ function fetchFinale (fetchParams, response) {
     //    set to processResponseEndOfBody.
     // 4. Set internalResponse’s body’s stream to the result of internalResponse’s body’s stream piped through transformStream.

-    const byteStream = new ReadableStream({
-      readableStream: internalResponse.body.stream,
-      async start () {
-        this._bodyReader = this.readableStream.getReader()
-      },
-      async pull (controller) {
-        while (controller.desiredSize >= 0) {
-          const { done, value } = await this._bodyReader.read()
-
-          if (done) {
-            queueMicrotask(() => {
-              readableStreamClose(controller)
-
-              // Added to in lieu of steps 1-4 of the spec
-              processResponseEndOfBody()
-            })
-            break
-          }
-
-          controller.enqueue(value)
-        }
-      },
-      type: 'bytes'
+    require('node:stream').finished(internalResponse.body.stream, (err) => {
+      processResponseEndOfBody()
     })
-
-    internalResponse.body.stream = byteStream
   }
 }

@mcollina
Copy link
Member Author

I didn't want to lower the WPT coverage. PR for that change?

@KhafraDev
Copy link
Member

#3095, I managed to fix the failures

@KhafraDev
Copy link
Member

With the benchmarks, it was ~3.5% faster, but that's only the difference between a couple of promise allocations (from the stream) and a single one from stream.finished. The larger the body, the bigger the gains should be.

kodiakhq bot pushed a commit to X-oss-byte/Canary-nextjs that referenced this pull request Apr 15, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [undici](https://undici.nodejs.org) ([source](https://togithub.com/nodejs/undici)) | [`6.11.1` -> `6.13.0`](https://renovatebot.com/diffs/npm/undici/6.11.1/6.13.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/undici/6.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/undici/6.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/undici/6.11.1/6.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/undici/6.11.1/6.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>nodejs/undici (undici)</summary>

### [`v6.13.0`](https://togithub.com/nodejs/undici/releases/tag/v6.13.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.12.0...v6.13.0)

#### What's Changed

-   build(deps): bump node from `9696b26` to `ad255c6` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3073
-   test: remove only by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3077
-   fix: defer errors with setImmediate by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3081
-   improve DecoratorHandler by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3079
-   chore: removed unused escapeFormDataName by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3084
-   Mention option to pass streams into FormData by [@&#8203;JaoodxD](https://togithub.com/JaoodxD) in [nodejs/undici#3086
-   fetch: improve performance of isValidEncodedURL by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3090
-   optimize utf8Decode by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3085
-   refactor: h2 refactoring by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3082
-   Skip the creation of a transform stream in fetch by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3093
-   fetch: improve performance of urlHasHttpsScheme by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3094
-   fetch: avoid creation of an intermediary ReadableStream by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3095
-   test: duplicate jest unspecific tests to native runner by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3075
-   build(deps): bump node from `ad255c6` to `6d0f18a` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3096
-   fetch: improve performance of isValidHeaderValue by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3098
-   chore: automate releases with pr by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3089

#### New Contributors

-   [@&#8203;github-actions](https://togithub.com/github-actions) made their first contribution in [nodejs/undici#3099

**Full Changelog**: nodejs/undici@v6.12.0...v6.13.0

### [`v6.12.0`](https://togithub.com/nodejs/undici/releases/tag/v6.12.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.11.1...v6.12.0)

#### What's Changed

-   fix: broken test by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3045
-   fix: http2 header parsing by [@&#8203;climba03003](https://togithub.com/climba03003) in [nodejs/undici#3047
-   types: fix Request.refererPolicy and RequestInit.refererPolicy are incompatible by [@&#8203;zbinlin](https://togithub.com/zbinlin) in [nodejs/undici#3039
-   fix(types): onHeaders always takes headers as an array of buffer by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3050
-   fix: ProxyAgent causes request.headers.host to be forcibly reset by [@&#8203;1zilc](https://togithub.com/1zilc) in [nodejs/undici#3026
-   fallback to Buffer.isUtf8 on platforms without icu by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3006
-   build(deps): bump github/codeql-action from 3.24.6 to 3.24.9 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3037
-   build(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.5 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3035
-   build(deps): bump node from `577f8eb` to `87524df` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3055
-   build(deps): bump node from `87524df` to `9696b26` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3058
-   fetch: Block ports 4190 & 6679 by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3059
-   test: activate testing for interceptors and cache by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3061
-   cache: improve test coverage by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3063
-   feat: modernize fuzzing by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3060
-   fix: request abort by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3056
-   fix: signal handling by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3053
-   fix(H2): handle goaway properly by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3057
-   test: client, set body to null if bigger than CHUNK_LIMIT by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3064
-   mock: improve mock interceptor by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3062
-   fix: bad client destroy on servername change by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3066
-   perf: improve isBlobLike by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3070
-   test: add sanity check for llhttp wasm files by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3068

#### New Contributors

-   [@&#8203;zbinlin](https://togithub.com/zbinlin) made their first contribution in [nodejs/undici#3039
-   [@&#8203;1zilc](https://togithub.com/1zilc) made their first contribution in [nodejs/undici#3026

**Full Changelog**: nodejs/undici@v6.11.1...v6.12.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Canary-nextjs).
kodiakhq bot pushed a commit to X-oss-byte/Nextjs that referenced this pull request Apr 19, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [undici](https://undici.nodejs.org) ([source](https://togithub.com/nodejs/undici)) | [`6.11.1` -> `6.13.0`](https://renovatebot.com/diffs/npm/undici/6.11.1/6.13.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/undici/6.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/undici/6.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/undici/6.11.1/6.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/undici/6.11.1/6.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>nodejs/undici (undici)</summary>

### [`v6.13.0`](https://togithub.com/nodejs/undici/releases/tag/v6.13.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.12.0...v6.13.0)

#### What's Changed

-   build(deps): bump node from `9696b26` to `ad255c6` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3073
-   test: remove only by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3077
-   fix: defer errors with setImmediate by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3081
-   improve DecoratorHandler by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3079
-   chore: removed unused escapeFormDataName by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3084
-   Mention option to pass streams into FormData by [@&#8203;JaoodxD](https://togithub.com/JaoodxD) in [nodejs/undici#3086
-   fetch: improve performance of isValidEncodedURL by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3090
-   optimize utf8Decode by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3085
-   refactor: h2 refactoring by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3082
-   Skip the creation of a transform stream in fetch by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3093
-   fetch: improve performance of urlHasHttpsScheme by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3094
-   fetch: avoid creation of an intermediary ReadableStream by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3095
-   test: duplicate jest unspecific tests to native runner by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3075
-   build(deps): bump node from `ad255c6` to `6d0f18a` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3096
-   fetch: improve performance of isValidHeaderValue by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3098
-   chore: automate releases with pr by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3089

#### New Contributors

-   [@&#8203;github-actions](https://togithub.com/github-actions) made their first contribution in [nodejs/undici#3099

**Full Changelog**: nodejs/undici@v6.12.0...v6.13.0

### [`v6.12.0`](https://togithub.com/nodejs/undici/releases/tag/v6.12.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.11.1...v6.12.0)

#### What's Changed

-   fix: broken test by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3045
-   fix: http2 header parsing by [@&#8203;climba03003](https://togithub.com/climba03003) in [nodejs/undici#3047
-   types: fix Request.refererPolicy and RequestInit.refererPolicy are incompatible by [@&#8203;zbinlin](https://togithub.com/zbinlin) in [nodejs/undici#3039
-   fix(types): onHeaders always takes headers as an array of buffer by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3050
-   fix: ProxyAgent causes request.headers.host to be forcibly reset by [@&#8203;1zilc](https://togithub.com/1zilc) in [nodejs/undici#3026
-   fallback to Buffer.isUtf8 on platforms without icu by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3006
-   build(deps): bump github/codeql-action from 3.24.6 to 3.24.9 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3037
-   build(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.5 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3035
-   build(deps): bump node from `577f8eb` to `87524df` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3055
-   build(deps): bump node from `87524df` to `9696b26` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3058
-   fetch: Block ports 4190 & 6679 by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3059
-   test: activate testing for interceptors and cache by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3061
-   cache: improve test coverage by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3063
-   feat: modernize fuzzing by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3060
-   fix: request abort by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3056
-   fix: signal handling by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3053
-   fix(H2): handle goaway properly by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3057
-   test: client, set body to null if bigger than CHUNK_LIMIT by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3064
-   mock: improve mock interceptor by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3062
-   fix: bad client destroy on servername change by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3066
-   perf: improve isBlobLike by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3070
-   test: add sanity check for llhttp wasm files by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3068

#### New Contributors

-   [@&#8203;zbinlin](https://togithub.com/zbinlin) made their first contribution in [nodejs/undici#3039
-   [@&#8203;1zilc](https://togithub.com/1zilc) made their first contribution in [nodejs/undici#3026

**Full Changelog**: nodejs/undici@v6.11.1...v6.12.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
kodiakhq bot pushed a commit to X-oss-byte/Nextjs that referenced this pull request Apr 24, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [undici](https://undici.nodejs.org) ([source](https://togithub.com/nodejs/undici)) | [`6.13.0` -> `6.14.1`](https://renovatebot.com/diffs/npm/undici/6.11.1/6.14.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/undici/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/undici/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/undici/6.11.1/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/undici/6.11.1/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>nodejs/undici (undici)</summary>

### [`v6.14.1`](https://togithub.com/nodejs/undici/compare/v6.14.0...1c440555a0c25d6a2ee2b0bdf8c5afcd9636332f)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.14.0...v6.14.1)

### [`v6.14.0`](https://togithub.com/nodejs/undici/releases/tag/v6.14.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.13.0...v6.14.0)

#### What's Changed

-   bench: enable benchmarks for h2 by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3100
-   perf: improve performance of isomorphicEncode by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3101
-   util: remove isReadableAborted by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3104
-   fix(types): The second parameter of EventSource is optional by [@&#8203;zbinlin](https://togithub.com/zbinlin) in [nodejs/undici#3106
-   fix: onConnect types by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3116
-   add dispatcher option to EventSource by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3119
-   core: improve parseURL by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3102
-   test: increase coverage by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3121
-   docs: add directions to run docs and benchmarks by [@&#8203;FatumaA](https://togithub.com/FatumaA) in [nodejs/undici#3092
-   perf: avoid unnecessary clone by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3117
-   build(deps-dev): bump borp from 0.10.0 to 0.11.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3126
-   drop node support for < v18.17.0 by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3125
-   test: improve test and ci performance by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3135
-   Added EnvHttpProxyAgent to support HTTP_PROXY by [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) in [nodejs/undici#2994
-   fetch: Change wording of "Body is unusable" error by [@&#8203;nzakas](https://togithub.com/nzakas) in [nodejs/undici#3105
-   perf: use class instead of object literals with getters by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3138
-   fix: unhandled exception or failing error body by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3137
-   reuse realm for Request/Response by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3142
-   fix([H2-#&#8203;3140](https://togithub.com/H2-/undici/issues/3140)): abort requets upon GOAWAY by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3143
-   don't store realm on Request/Response by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3146
-   improve: wasm build by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3074

#### New Contributors

-   [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) made their first contribution in [nodejs/undici#2994
-   [@&#8203;nzakas](https://togithub.com/nzakas) made their first contribution in [nodejs/undici#3105

**Full Changelog**: nodejs/undici@v6.13.0...v6.14.0

### [`v6.13.0`](https://togithub.com/nodejs/undici/releases/tag/v6.13.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.12.0...v6.13.0)

#### What's Changed

-   build(deps): bump node from `9696b26` to `ad255c6` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3073
-   test: remove only by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3077
-   fix: defer errors with setImmediate by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3081
-   improve DecoratorHandler by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3079
-   chore: removed unused escapeFormDataName by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3084
-   Mention option to pass streams into FormData by [@&#8203;JaoodxD](https://togithub.com/JaoodxD) in [nodejs/undici#3086
-   fetch: improve performance of isValidEncodedURL by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3090
-   optimize utf8Decode by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3085
-   refactor: h2 refactoring by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3082
-   Skip the creation of a transform stream in fetch by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3093
-   fetch: improve performance of urlHasHttpsScheme by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3094
-   fetch: avoid creation of an intermediary ReadableStream by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3095
-   test: duplicate jest unspecific tests to native runner by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3075
-   build(deps): bump node from `ad255c6` to `6d0f18a` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3096
-   fetch: improve performance of isValidHeaderValue by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3098
-   chore: automate releases with pr by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3089

#### New Contributors

-   [@&#8203;github-actions](https://togithub.com/github-actions) made their first contribution in [nodejs/undici#3099

**Full Changelog**: nodejs/undici@v6.12.0...v6.13.0

### [`v6.12.0`](https://togithub.com/nodejs/undici/releases/tag/v6.12.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.11.1...v6.12.0)

#### What's Changed

-   fix: broken test by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3045
-   fix: http2 header parsing by [@&#8203;climba03003](https://togithub.com/climba03003) in [nodejs/undici#3047
-   types: fix Request.refererPolicy and RequestInit.refererPolicy are incompatible by [@&#8203;zbinlin](https://togithub.com/zbinlin) in [nodejs/undici#3039
-   fix(types): onHeaders always takes headers as an array of buffer by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3050
-   fix: ProxyAgent causes request.headers.host to be forcibly reset by [@&#8203;1zilc](https://togithub.com/1zilc) in [nodejs/undici#3026
-   fallback to Buffer.isUtf8 on platforms without icu by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3006
-   build(deps): bump github/codeql-action from 3.24.6 to 3.24.9 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3037
-   build(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.5 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3035
-   build(deps): bump node from `577f8eb` to `87524df` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3055
-   build(deps): bump node from `87524df` to `9696b26` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3058
-   fetch: Block ports 4190 & 6679 by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3059
-   test: activate testing for interceptors and cache by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3061
-   cache: improve test coverage by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3063
-   feat: modernize fuzzing by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3060
-   fix: request abort by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3056
-   fix: signal handling by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3053
-   fix(H2): handle goaway properly by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3057
-   test: client, set body to null if bigger than CHUNK_LIMIT by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3064
-   mock: improve mock interceptor by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3062
-   fix: bad client destroy on servername change by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3066
-   perf: improve isBlobLike by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3070
-   test: add sanity check for llhttp wasm files by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3068

#### New Contributors

-   [@&#8203;zbinlin](https://togithub.com/zbinlin) made their first contribution in [nodejs/undici#3039
-   [@&#8203;1zilc](https://togithub.com/1zilc) made their first contribution in [nodejs/undici#3026

**Full Changelog**: nodejs/undici@v6.11.1...v6.12.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
kodiakhq bot pushed a commit to X-oss-byte/Nextjs that referenced this pull request Apr 30, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [undici](https://undici.nodejs.org) ([source](https://togithub.com/nodejs/undici)) | [`6.14.1` -> `6.15.0`](https://renovatebot.com/diffs/npm/undici/6.11.1/6.15.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/undici/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/undici/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/undici/6.11.1/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/undici/6.11.1/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>nodejs/undici (undici)</summary>

### [`v6.15.0`](https://togithub.com/nodejs/undici/releases/tag/v6.15.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.14.1...v6.15.0)

#### What's Changed

-   Expose EnvHttpProxyAgent to Node.js core bundle, so it can be turned … by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3148
-   test: add headerslist copy check by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3156
-   chore: ensure automated v6 release compared to v6 by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3149
-   fetch: do not leak signal listeners by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3158
-   fix: request cache mode is not the same as request mode by [@&#8203;tsibley](https://togithub.com/tsibley) in [nodejs/undici#3151
-   fetch: don't re-lowercase HeadersList by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3159
-   fix casing issue when cloning Headers object by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3160
-   build(deps): bump node from `6d0f18a` to `db8772d` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3163
-   fix header cloning bug by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3162
-   chore: change bench naming for h2 by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3165
-   expose WebSocket related events in node bundle by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3167
-   feat: add support for if-match on retry handler by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3144
-   fix: correct firing order of abort events by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3169
-   create fast MessageEvent by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3170
-   chore: add explicitly [@&#8203;fastify/busboy](https://togithub.com/fastify/busboy) by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3172
-   chore: remove sinon as dev dependency by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3171
-   webidl changes by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3175
-   preserve dictionary key name in webidl errors by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3176

#### New Contributors

-   [@&#8203;tsibley](https://togithub.com/tsibley) made their first contribution in [nodejs/undici#3151

**Full Changelog**: nodejs/undici@v6.14.1...v6.15.0

### [`v6.14.1`](https://togithub.com/nodejs/undici/releases/tag/v6.14.1)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.14.0...v6.14.1)

#### What's Changed

-   fix: tweak keep-alive timeout implementation by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3145
-   build(deps-dev): bump borp from 0.11.0 to 0.12.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3153
-   build(deps): bump node from `ad255c6` to `6d0f18a` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3154
-   fix(EnvHttpProxyAgent): prefer lowercase env vars by [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) in [nodejs/undici#3152

**Full Changelog**: nodejs/undici@v6.14.0...v6.14.1

### [`v6.14.0`](https://togithub.com/nodejs/undici/releases/tag/v6.14.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.13.0...v6.14.0)

#### What's Changed

-   bench: enable benchmarks for h2 by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3100
-   perf: improve performance of isomorphicEncode by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3101
-   util: remove isReadableAborted by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3104
-   fix(types): The second parameter of EventSource is optional by [@&#8203;zbinlin](https://togithub.com/zbinlin) in [nodejs/undici#3106
-   fix: onConnect types by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3116
-   add dispatcher option to EventSource by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3119
-   core: improve parseURL by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3102
-   test: increase coverage by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3121
-   docs: add directions to run docs and benchmarks by [@&#8203;FatumaA](https://togithub.com/FatumaA) in [nodejs/undici#3092
-   perf: avoid unnecessary clone by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3117
-   build(deps-dev): bump borp from 0.10.0 to 0.11.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3126
-   drop node support for < v18.17.0 by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3125
-   test: improve test and ci performance by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3135
-   Added EnvHttpProxyAgent to support HTTP_PROXY by [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) in [nodejs/undici#2994
-   fetch: Change wording of "Body is unusable" error by [@&#8203;nzakas](https://togithub.com/nzakas) in [nodejs/undici#3105
-   perf: use class instead of object literals with getters by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3138
-   fix: unhandled exception or failing error body by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3137
-   reuse realm for Request/Response by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3142
-   fix([H2-#&#8203;3140](https://togithub.com/H2-/undici/issues/3140)): abort requets upon GOAWAY by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3143
-   don't store realm on Request/Response by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3146
-   improve: wasm build by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3074

#### New Contributors

-   [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) made their first contribution in [nodejs/undici#2994
-   [@&#8203;nzakas](https://togithub.com/nzakas) made their first contribution in [nodejs/undici#3105

**Full Changelog**: nodejs/undici@v6.13.0...v6.14.0

### [`v6.13.0`](https://togithub.com/nodejs/undici/releases/tag/v6.13.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.12.0...v6.13.0)

#### What's Changed

-   build(deps): bump node from `9696b26` to `ad255c6` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3073
-   test: remove only by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3077
-   fix: defer errors with setImmediate by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3081
-   improve DecoratorHandler by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3079
-   chore: removed unused escapeFormDataName by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3084
-   Mention option to pass streams into FormData by [@&#8203;JaoodxD](https://togithub.com/JaoodxD) in [nodejs/undici#3086
-   fetch: improve performance of isValidEncodedURL by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3090
-   optimize utf8Decode by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3085
-   refactor: h2 refactoring by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3082
-   Skip the creation of a transform stream in fetch by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3093
-   fetch: improve performance of urlHasHttpsScheme by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3094
-   fetch: avoid creation of an intermediary ReadableStream by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3095
-   test: duplicate jest unspecific tests to native runner by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3075
-   build(deps): bump node from `ad255c6` to `6d0f18a` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3096
-   fetch: improve performance of isValidHeaderValue by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3098
-   chore: automate releases with pr by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3089

#### New Contributors

-   [@&#8203;github-actions](https://togithub.com/github-actions) made their first contribution in [nodejs/undici#3099

**Full Changelog**: nodejs/undici@v6.12.0...v6.13.0

### [`v6.12.0`](https://togithub.com/nodejs/undici/releases/tag/v6.12.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.11.1...v6.12.0)

#### What's Changed

-   fix: broken test by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3045
-   fix: http2 header parsing by [@&#8203;climba03003](https://togithub.com/climba03003) in [nodejs/undici#3047
-   types: fix Request.refererPolicy and RequestInit.refererPolicy are incompatible by [@&#8203;zbinlin](https://togithub.com/zbinlin) in [nodejs/undici#3039
-   fix(types): onHeaders always takes headers as an array of buffer by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3050
-   fix: ProxyAgent causes request.headers.host to be forcibly reset by [@&#8203;1zilc](https://togithub.com/1zilc) in [nodejs/undici#3026
-   fallback to Buffer.isUtf8 on platforms without icu by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3006
-   build(deps): bump github/codeql-action from 3.24.6 to 3.24.9 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3037
-   build(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.5 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3035
-   build(deps): bump node from `577f8eb` to `87524df` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3055
-   build(deps): bump node from `87524df` to `9696b26` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3058
-   fetch: Block ports 4190 & 6679 by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3059
-   test: activate testing for interceptors and cache by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3061
-   cache: improve test coverage by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3063
-   feat: modernize fuzzing by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3060
-   fix: request abort by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3056
-   fix: signal handling by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3053
-   fix(H2): handle goaway properly by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3057
-   test: client, set body to null if bigger than CHUNK_LIMIT by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3064
-   mock: improve mock interceptor by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3062
-   fix: bad client destroy on servername change by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3066
-   perf: improve isBlobLike by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3070
-   test: add sanity check for llhttp wasm files by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3068

#### New Contributors

-   [@&#8203;zbinlin](https://togithub.com/zbinlin) made their first contribution in [nodejs/undici#3039
-   [@&#8203;1zilc](https://togithub.com/1zilc) made their first contribution in [nodejs/undici#3026

**Full Changelog**: nodejs/undici@v6.11.1...v6.12.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
kodiakhq bot pushed a commit to X-oss-byte/Nextjs that referenced this pull request May 8, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [undici](https://undici.nodejs.org) ([source](https://togithub.com/nodejs/undici)) | [`6.15.0` -> `6.16.0`](https://renovatebot.com/diffs/npm/undici/6.11.1/6.16.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/undici/6.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/undici/6.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/undici/6.11.1/6.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/undici/6.11.1/6.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>nodejs/undici (undici)</summary>

### [`v6.16.0`](https://togithub.com/nodejs/undici/releases/tag/v6.16.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.15.0...v6.16.0)

#### What's Changed

-   add index to sequence converter errors by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3178
-   build(deps-dev): bump borp from 0.12.0 to 0.13.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3179
-   build(deps): bump node from 21-alpine3.19 to 22-alpine3.19 in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3180
-   build(deps): bump superagent from 8.1.2 to 9.0.2 in /benchmarks by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3181
-   fix: keep raw header name by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3183
-   fix(fetch): improve Headers and Request type-compatibility by [@&#8203;kettanaito](https://togithub.com/kettanaito) in [nodejs/undici#1964
-   fix 3 mimesniff tests by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3185
-   build(deps): bump hendrikmuhs/ccache-action from 1.2.12 to 1.2.13 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3187
-   build(deps): bump codecov/codecov-action from 4.1.1 to 4.3.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3191
-   build(deps): bump github/codeql-action from 3.24.9 to 3.25.3 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3192
-   build(deps): bump actions/dependency-review-action from 4.2.5 to 4.3.2 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3189
-   build(deps): bump step-security/harden-runner from 2.7.0 to 2.7.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3188
-   build(deps): bump actions/upload-artifact from 4.3.1 to 4.3.3 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3190
-   build(deps): bump node from `9459e24` to `487dc5d` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3195
-   perf: avoid spread in makeRequest() by [@&#8203;gunjam](https://togithub.com/gunjam) in [nodejs/undici#3193
-   refactor: code cleanup by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3194
-   fix parsing when receiving empty body websocket by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3205
-   fix: MockResponseCallbackOptions type by [@&#8203;merojosa](https://togithub.com/merojosa) in [nodejs/undici#2951
-   docs(proxy): fix typo by [@&#8203;kanadgupta](https://togithub.com/kanadgupta) in [nodejs/undici#3207
-   fix websocket receiving an invalid utf-8 in close frame by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3206
-   perf: avoid setImmediate if body is reading by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3210
-   fix: request abort signal by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3209
-   fix: remove abort handler on close by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3211
-   fix: pass abort function by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3212
-   websocket: 200x faster generate mask by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3204
-   use FinalizationRegistry to cancel the body if response is collected by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3199
-   websocket: don't clone buffer if it's not needed. by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3214
-   websocket: use FastBuffer by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3213

#### New Contributors

-   [@&#8203;kettanaito](https://togithub.com/kettanaito) made their first contribution in [nodejs/undici#1964
-   [@&#8203;gunjam](https://togithub.com/gunjam) made their first contribution in [nodejs/undici#3193
-   [@&#8203;merojosa](https://togithub.com/merojosa) made their first contribution in [nodejs/undici#2951
-   [@&#8203;kanadgupta](https://togithub.com/kanadgupta) made their first contribution in [nodejs/undici#3207

**Full Changelog**: nodejs/undici@v6.15.0...v6.16.0

### [`v6.15.0`](https://togithub.com/nodejs/undici/releases/tag/v6.15.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.14.1...v6.15.0)

#### What's Changed

-   Expose EnvHttpProxyAgent to Node.js core bundle, so it can be turned … by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3148
-   test: add headerslist copy check by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3156
-   chore: ensure automated v6 release compared to v6 by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3149
-   fetch: do not leak signal listeners by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3158
-   fix: request cache mode is not the same as request mode by [@&#8203;tsibley](https://togithub.com/tsibley) in [nodejs/undici#3151
-   fetch: don't re-lowercase HeadersList by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3159
-   fix casing issue when cloning Headers object by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3160
-   build(deps): bump node from `6d0f18a` to `db8772d` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3163
-   fix header cloning bug by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3162
-   chore: change bench naming for h2 by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3165
-   expose WebSocket related events in node bundle by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3167
-   feat: add support for if-match on retry handler by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3144
-   fix: correct firing order of abort events by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3169
-   create fast MessageEvent by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3170
-   chore: add explicitly [@&#8203;fastify/busboy](https://togithub.com/fastify/busboy) by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3172
-   chore: remove sinon as dev dependency by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3171
-   webidl changes by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3175
-   preserve dictionary key name in webidl errors by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3176

#### New Contributors

-   [@&#8203;tsibley](https://togithub.com/tsibley) made their first contribution in [nodejs/undici#3151

**Full Changelog**: nodejs/undici@v6.14.1...v6.15.0

### [`v6.14.1`](https://togithub.com/nodejs/undici/releases/tag/v6.14.1)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.14.0...v6.14.1)

#### What's Changed

-   fix: tweak keep-alive timeout implementation by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3145
-   build(deps-dev): bump borp from 0.11.0 to 0.12.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3153
-   build(deps): bump node from `ad255c6` to `6d0f18a` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3154
-   fix(EnvHttpProxyAgent): prefer lowercase env vars by [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) in [nodejs/undici#3152

**Full Changelog**: nodejs/undici@v6.14.0...v6.14.1

### [`v6.14.0`](https://togithub.com/nodejs/undici/releases/tag/v6.14.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.13.0...v6.14.0)

#### What's Changed

-   bench: enable benchmarks for h2 by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3100
-   perf: improve performance of isomorphicEncode by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3101
-   util: remove isReadableAborted by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3104
-   fix(types): The second parameter of EventSource is optional by [@&#8203;zbinlin](https://togithub.com/zbinlin) in [nodejs/undici#3106
-   fix: onConnect types by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3116
-   add dispatcher option to EventSource by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3119
-   core: improve parseURL by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3102
-   test: increase coverage by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3121
-   docs: add directions to run docs and benchmarks by [@&#8203;FatumaA](https://togithub.com/FatumaA) in [nodejs/undici#3092
-   perf: avoid unnecessary clone by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3117
-   build(deps-dev): bump borp from 0.10.0 to 0.11.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3126
-   drop node support for < v18.17.0 by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3125
-   test: improve test and ci performance by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3135
-   Added EnvHttpProxyAgent to support HTTP_PROXY by [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) in [nodejs/undici#2994
-   fetch: Change wording of "Body is unusable" error by [@&#8203;nzakas](https://togithub.com/nzakas) in [nodejs/undici#3105
-   perf: use class instead of object literals with getters by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3138
-   fix: unhandled exception or failing error body by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3137
-   reuse realm for Request/Response by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3142
-   fix([H2-#&#8203;3140](https://togithub.com/H2-/undici/issues/3140)): abort requets upon GOAWAY by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3143
-   don't store realm on Request/Response by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3146
-   improve: wasm build by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3074

#### New Contributors

-   [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) made their first contribution in [nodejs/undici#2994
-   [@&#8203;nzakas](https://togithub.com/nzakas) made their first contribution in [nodejs/undici#3105

**Full Changelog**: nodejs/undici@v6.13.0...v6.14.0

### [`v6.13.0`](https://togithub.com/nodejs/undici/releases/tag/v6.13.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.12.0...v6.13.0)

#### What's Changed

-   build(deps): bump node from `9696b26` to `ad255c6` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3073
-   test: remove only by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3077
-   fix: defer errors with setImmediate by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3081
-   improve DecoratorHandler by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3079
-   chore: removed unused escapeFormDataName by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3084
-   Mention option to pass streams into FormData by [@&#8203;JaoodxD](https://togithub.com/JaoodxD) in [nodejs/undici#3086
-   fetch: improve performance of isValidEncodedURL by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3090
-   optimize utf8Decode by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3085
-   refactor: h2 refactoring by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3082
-   Skip the creation of a transform stream in fetch by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3093
-   fetch: improve performance of urlHasHttpsScheme by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3094
-   fetch: avoid creation of an intermediary ReadableStream by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3095
-   test: duplicate jest unspecific tests to native runner by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3075
-   build(deps): bump node from `ad255c6` to `6d0f18a` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3096
-   fetch: improve performance of isValidHeaderValue by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3098
-   chore: automate releases with pr by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3089

#### New Contributors

-   [@&#8203;github-actions](https://togithub.com/github-actions) made their first contribution in [nodejs/undici#3099

**Full Changelog**: nodejs/undici@v6.12.0...v6.13.0

### [`v6.12.0`](https://togithub.com/nodejs/undici/releases/tag/v6.12.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.11.1...v6.12.0)

#### What's Changed

-   fix: broken test by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3045
-   fix: http2 header parsing by [@&#8203;climba03003](https://togithub.com/climba03003) in [nodejs/undici#3047
-   types: fix Request.refererPolicy and RequestInit.refererPolicy are incompatible by [@&#8203;zbinlin](https://togithub.com/zbinlin) in [nodejs/undici#3039
-   fix(types): onHeaders always takes headers as an array of buffer by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3050
-   fix: ProxyAgent causes request.headers.host to be forcibly reset by [@&#8203;1zilc](https://togithub.com/1zilc) in [nodejs/undici#3026
-   fallback to Buffer.isUtf8 on platforms without icu by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3006
-   build(deps): bump github/codeql-action from 3.24.6 to 3.24.9 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3037
-   build(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.5 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3035
-   build(deps): bump node from `577f8eb` to `87524df` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3055
-   build(deps): bump node from `87524df` to `9696b26` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3058
-   fetch: Block ports 4190 & 6679 by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3059
-   test: activate testing for interceptors and cache by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3061
-   cache: improve test coverage by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3063
-   feat: modernize fuzzing by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3060
-   fix: request abort by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3056
-   fix: signal handling by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3053
-   fix(H2): handle goaway properly by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3057
-   test: client, set body to null if bigger than CHUNK_LIMIT by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3064
-   mock: improve mock interceptor by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3062
-   fix: bad client destroy on servername change by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3066
-   perf: improve isBlobLike by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3070
-   test: add sanity check for llhttp wasm files by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3068

#### New Contributors

-   [@&#8203;zbinlin](https://togithub.com/zbinlin) made their first contribution in [nodejs/undici#3039
-   [@&#8203;1zilc](https://togithub.com/1zilc) made their first contribution in [nodejs/undici#3026

**Full Changelog**: nodejs/undici@v6.11.1...v6.12.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
kodiakhq bot pushed a commit to X-oss-byte/Nextjs that referenced this pull request May 10, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [undici](https://undici.nodejs.org) ([source](https://togithub.com/nodejs/undici)) | [`6.16.0` -> `6.16.1`](https://renovatebot.com/diffs/npm/undici/6.11.1/6.16.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/undici/6.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/undici/6.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/undici/6.11.1/6.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/undici/6.11.1/6.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>nodejs/undici (undici)</summary>

### [`v6.16.1`](https://togithub.com/nodejs/undici/compare/v6.16.0...a613753c03b78ea11dbf884aaafc067895a580e1)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.16.0...v6.16.1)

### [`v6.16.0`](https://togithub.com/nodejs/undici/releases/tag/v6.16.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.15.0...v6.16.0)

#### What's Changed

-   add index to sequence converter errors by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3178
-   build(deps-dev): bump borp from 0.12.0 to 0.13.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3179
-   build(deps): bump node from 21-alpine3.19 to 22-alpine3.19 in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3180
-   build(deps): bump superagent from 8.1.2 to 9.0.2 in /benchmarks by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3181
-   fix: keep raw header name by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3183
-   fix(fetch): improve Headers and Request type-compatibility by [@&#8203;kettanaito](https://togithub.com/kettanaito) in [nodejs/undici#1964
-   fix 3 mimesniff tests by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3185
-   build(deps): bump hendrikmuhs/ccache-action from 1.2.12 to 1.2.13 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3187
-   build(deps): bump codecov/codecov-action from 4.1.1 to 4.3.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3191
-   build(deps): bump github/codeql-action from 3.24.9 to 3.25.3 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3192
-   build(deps): bump actions/dependency-review-action from 4.2.5 to 4.3.2 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3189
-   build(deps): bump step-security/harden-runner from 2.7.0 to 2.7.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3188
-   build(deps): bump actions/upload-artifact from 4.3.1 to 4.3.3 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3190
-   build(deps): bump node from `9459e24` to `487dc5d` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3195
-   perf: avoid spread in makeRequest() by [@&#8203;gunjam](https://togithub.com/gunjam) in [nodejs/undici#3193
-   refactor: code cleanup by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3194
-   fix parsing when receiving empty body websocket by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3205
-   fix: MockResponseCallbackOptions type by [@&#8203;merojosa](https://togithub.com/merojosa) in [nodejs/undici#2951
-   docs(proxy): fix typo by [@&#8203;kanadgupta](https://togithub.com/kanadgupta) in [nodejs/undici#3207
-   fix websocket receiving an invalid utf-8 in close frame by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3206
-   perf: avoid setImmediate if body is reading by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3210
-   fix: request abort signal by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3209
-   fix: remove abort handler on close by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3211
-   fix: pass abort function by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3212
-   websocket: 200x faster generate mask by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3204
-   use FinalizationRegistry to cancel the body if response is collected by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3199
-   websocket: don't clone buffer if it's not needed. by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3214
-   websocket: use FastBuffer by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3213

#### New Contributors

-   [@&#8203;kettanaito](https://togithub.com/kettanaito) made their first contribution in [nodejs/undici#1964
-   [@&#8203;gunjam](https://togithub.com/gunjam) made their first contribution in [nodejs/undici#3193
-   [@&#8203;merojosa](https://togithub.com/merojosa) made their first contribution in [nodejs/undici#2951
-   [@&#8203;kanadgupta](https://togithub.com/kanadgupta) made their first contribution in [nodejs/undici#3207

**Full Changelog**: nodejs/undici@v6.15.0...v6.16.0

### [`v6.15.0`](https://togithub.com/nodejs/undici/releases/tag/v6.15.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.14.1...v6.15.0)

#### What's Changed

-   Expose EnvHttpProxyAgent to Node.js core bundle, so it can be turned … by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3148
-   test: add headerslist copy check by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3156
-   chore: ensure automated v6 release compared to v6 by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3149
-   fetch: do not leak signal listeners by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3158
-   fix: request cache mode is not the same as request mode by [@&#8203;tsibley](https://togithub.com/tsibley) in [nodejs/undici#3151
-   fetch: don't re-lowercase HeadersList by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3159
-   fix casing issue when cloning Headers object by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3160
-   build(deps): bump node from `6d0f18a` to `db8772d` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3163
-   fix header cloning bug by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3162
-   chore: change bench naming for h2 by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3165
-   expose WebSocket related events in node bundle by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3167
-   feat: add support for if-match on retry handler by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3144
-   fix: correct firing order of abort events by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3169
-   create fast MessageEvent by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3170
-   chore: add explicitly [@&#8203;fastify/busboy](https://togithub.com/fastify/busboy) by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3172
-   chore: remove sinon as dev dependency by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3171
-   webidl changes by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3175
-   preserve dictionary key name in webidl errors by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3176

#### New Contributors

-   [@&#8203;tsibley](https://togithub.com/tsibley) made their first contribution in [nodejs/undici#3151

**Full Changelog**: nodejs/undici@v6.14.1...v6.15.0

### [`v6.14.1`](https://togithub.com/nodejs/undici/releases/tag/v6.14.1)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.14.0...v6.14.1)

#### What's Changed

-   fix: tweak keep-alive timeout implementation by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3145
-   build(deps-dev): bump borp from 0.11.0 to 0.12.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3153
-   build(deps): bump node from `ad255c6` to `6d0f18a` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3154
-   fix(EnvHttpProxyAgent): prefer lowercase env vars by [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) in [nodejs/undici#3152

**Full Changelog**: nodejs/undici@v6.14.0...v6.14.1

### [`v6.14.0`](https://togithub.com/nodejs/undici/releases/tag/v6.14.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.13.0...v6.14.0)

#### What's Changed

-   bench: enable benchmarks for h2 by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3100
-   perf: improve performance of isomorphicEncode by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3101
-   util: remove isReadableAborted by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3104
-   fix(types): The second parameter of EventSource is optional by [@&#8203;zbinlin](https://togithub.com/zbinlin) in [nodejs/undici#3106
-   fix: onConnect types by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3116
-   add dispatcher option to EventSource by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3119
-   core: improve parseURL by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3102
-   test: increase coverage by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3121
-   docs: add directions to run docs and benchmarks by [@&#8203;FatumaA](https://togithub.com/FatumaA) in [nodejs/undici#3092
-   perf: avoid unnecessary clone by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3117
-   build(deps-dev): bump borp from 0.10.0 to 0.11.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3126
-   drop node support for < v18.17.0 by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3125
-   test: improve test and ci performance by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3135
-   Added EnvHttpProxyAgent to support HTTP_PROXY by [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) in [nodejs/undici#2994
-   fetch: Change wording of "Body is unusable" error by [@&#8203;nzakas](https://togithub.com/nzakas) in [nodejs/undici#3105
-   perf: use class instead of object literals with getters by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3138
-   fix: unhandled exception or failing error body by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3137
-   reuse realm for Request/Response by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3142
-   fix([H2-#&#8203;3140](https://togithub.com/H2-/undici/issues/3140)): abort requets upon GOAWAY by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3143
-   don't store realm on Request/Response by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3146
-   improve: wasm build by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3074

#### New Contributors

-   [@&#8203;10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) made their first contribution in [nodejs/undici#2994
-   [@&#8203;nzakas](https://togithub.com/nzakas) made their first contribution in [nodejs/undici#3105

**Full Changelog**: nodejs/undici@v6.13.0...v6.14.0

### [`v6.13.0`](https://togithub.com/nodejs/undici/releases/tag/v6.13.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.12.0...v6.13.0)

#### What's Changed

-   build(deps): bump node from `9696b26` to `ad255c6` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3073
-   test: remove only by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3077
-   fix: defer errors with setImmediate by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3081
-   improve DecoratorHandler by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3079
-   chore: removed unused escapeFormDataName by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3084
-   Mention option to pass streams into FormData by [@&#8203;JaoodxD](https://togithub.com/JaoodxD) in [nodejs/undici#3086
-   fetch: improve performance of isValidEncodedURL by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3090
-   optimize utf8Decode by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3085
-   refactor: h2 refactoring by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3082
-   Skip the creation of a transform stream in fetch by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3093
-   fetch: improve performance of urlHasHttpsScheme by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3094
-   fetch: avoid creation of an intermediary ReadableStream by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3095
-   test: duplicate jest unspecific tests to native runner by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3075
-   build(deps): bump node from `ad255c6` to `6d0f18a` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3096
-   fetch: improve performance of isValidHeaderValue by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3098
-   chore: automate releases with pr by [@&#8203;mweberxyz](https://togithub.com/mweberxyz) in [nodejs/undici#3089

#### New Contributors

-   [@&#8203;github-actions](https://togithub.com/github-actions) made their first contribution in [nodejs/undici#3099

**Full Changelog**: nodejs/undici@v6.12.0...v6.13.0

### [`v6.12.0`](https://togithub.com/nodejs/undici/releases/tag/v6.12.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.11.1...v6.12.0)

#### What's Changed

-   fix: broken test by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3045
-   fix: http2 header parsing by [@&#8203;climba03003](https://togithub.com/climba03003) in [nodejs/undici#3047
-   types: fix Request.refererPolicy and RequestInit.refererPolicy are incompatible by [@&#8203;zbinlin](https://togithub.com/zbinlin) in [nodejs/undici#3039
-   fix(types): onHeaders always takes headers as an array of buffer by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3050
-   fix: ProxyAgent causes request.headers.host to be forcibly reset by [@&#8203;1zilc](https://togithub.com/1zilc) in [nodejs/undici#3026
-   fallback to Buffer.isUtf8 on platforms without icu by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3006
-   build(deps): bump github/codeql-action from 3.24.6 to 3.24.9 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3037
-   build(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.5 by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3035
-   build(deps): bump node from `577f8eb` to `87524df` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3055
-   build(deps): bump node from `87524df` to `9696b26` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3058
-   fetch: Block ports 4190 & 6679 by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3059
-   test: activate testing for interceptors and cache by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3061
-   cache: improve test coverage by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3063
-   feat: modernize fuzzing by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3060
-   fix: request abort by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3056
-   fix: signal handling by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3053
-   fix(H2): handle goaway properly by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3057
-   test: client, set body to null if bigger than CHUNK_LIMIT by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3064
-   mock: improve mock interceptor by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3062
-   fix: bad client destroy on servername change by [@&#8203;ronag](https://togithub.com/ronag) in [nodejs/undici#3066
-   perf: improve isBlobLike by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3070
-   test: add sanity check for llhttp wasm files by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3068

#### New Contributors

-   [@&#8203;zbinlin](https://togithub.com/zbinlin) made their first contribution in [nodejs/undici#3039
-   [@&#8203;1zilc](https://togithub.com/1zilc) made their first contribution in [nodejs/undici#3026

**Full Changelog**: nodejs/undici@v6.11.1...v6.12.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
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.

None yet

4 participants