deps: update undici to 7.19.1 · nodejs/node@05e9a9f · GitHub
Skip to content

Commit 05e9a9f

Browse files
nodejs-github-botaduh95
authored andcommitted
deps: update undici to 7.19.1
PR-URL: #61514 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 3d41643 commit 05e9a9f

7 files changed

Lines changed: 33 additions & 27 deletions

File tree

deps/undici/src/lib/llhttp/wasm_build_env.txt

Lines changed: 1 addition & 1 deletion

deps/undici/src/lib/web/fetch/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,11 @@ async function httpNetworkOrCacheFetch (
16751675

16761676
// 4. Set the password given request’s current URL and password.
16771677
// requestCurrentURL(request).password = TODO
1678+
1679+
// In browsers, the user will be prompted to enter a username/password before the request
1680+
// is re-sent. To prevent an infinite 401 loop, return a network error for now.
1681+
// https://github.com/nodejs/undici/pull/4756
1682+
return makeNetworkError()
16781683
}
16791684

16801685
// 4. Set response to the result of running HTTP-network-or-cache fetch given

deps/undici/src/package-lock.json

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/undici/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "undici",
3-
"version": "7.19.0",
3+
"version": "7.19.1",
44
"description": "An HTTP/1.1 client, written from scratch for Node.js",
55
"homepage": "https://undici.nodejs.org",
66
"bugs": {

deps/undici/src/scripts/release.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Called from .github/workflows
44

5-
const generateReleaseNotes = async ({ github, owner, repo, versionTag, defaultBranch }) => {
5+
const generateReleaseNotes = async ({ github, owner, repo, versionTag, commitHash }) => {
66
const { data: releases } = await github.rest.repos.listReleases({
77
owner,
88
repo
@@ -14,7 +14,7 @@ const generateReleaseNotes = async ({ github, owner, repo, versionTag, defaultBr
1414
owner,
1515
repo,
1616
tag_name: versionTag,
17-
target_commitish: defaultBranch,
17+
target_commitish: commitHash,
1818
previous_tag_name: previousRelease?.tag_name
1919
})
2020

@@ -25,9 +25,9 @@ const generateReleaseNotes = async ({ github, owner, repo, versionTag, defaultBr
2525
return bodyWithoutReleasePr
2626
}
2727

28-
const generatePr = async ({ github, context, defaultBranch, versionTag }) => {
28+
const generatePr = async ({ github, context, defaultBranch, versionTag, commitHash }) => {
2929
const { owner, repo } = context.repo
30-
const releaseNotes = await generateReleaseNotes({ github, owner, repo, versionTag, defaultBranch })
30+
const releaseNotes = await generateReleaseNotes({ github, owner, repo, versionTag, commitHash })
3131

3232
await github.rest.pulls.create({
3333
owner,
@@ -39,15 +39,15 @@ const generatePr = async ({ github, context, defaultBranch, versionTag }) => {
3939
})
4040
}
4141

42-
const release = async ({ github, context, defaultBranch, versionTag }) => {
42+
const release = async ({ github, context, versionTag, commitHash }) => {
4343
const { owner, repo } = context.repo
44-
const releaseNotes = await generateReleaseNotes({ github, owner, repo, versionTag, defaultBranch })
44+
const releaseNotes = await generateReleaseNotes({ github, owner, repo, versionTag, commitHash })
4545

4646
await github.rest.repos.createRelease({
4747
owner,
4848
repo,
4949
tag_name: versionTag,
50-
target_commitish: defaultBranch,
50+
target_commitish: commitHash,
5151
name: versionTag,
5252
body: releaseNotes,
5353
draft: false,

deps/undici/undici.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12595,6 +12595,7 @@ var require_fetch = __commonJS({
1259512595
if (isCancelled(fetchParams)) {
1259612596
return makeAppropriateNetworkError(fetchParams);
1259712597
}
12598+
return makeNetworkError();
1259812599
}
1259912600
fetchParams.controller.connection.destroy();
1260012601
response = await httpNetworkOrCacheFetch(fetchParams, true);

src/undici_version.h

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)