Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb67a92

Browse filesBrowse files
authored
deps: use npm undici@seven tag in update-undici.sh
Node.js 24 is using Undici 7 rather than the latest version. Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: #62739 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 9fe7634 commit cb67a92
Copy full SHA for cb67a92

1 file changed

+4-8Lines changed: 4 additions & 8 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/dep_updaters/update-undici.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-undici.sh
+4-8Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ NPM="$ROOT/deps/npm/bin/npm-cli.js"
1717
. "$ROOT/tools/dep_updaters/utils.sh"
1818

1919
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
20-
const res = await fetch('https://api.github.com/repos/nodejs/undici/releases/latest',
21-
process.env.GITHUB_TOKEN && {
22-
headers: {
23-
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
24-
},
25-
});
20+
const res = await fetch('https://registry.npmjs.org/undici/seven');
2621
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
27-
const { tag_name } = await res.json();
28-
console.log(tag_name.replace('v', ''));
22+
const { version } = await res.json();
23+
if (!version) throw new Error('No "seven" dist-tag found');
24+
console.log(version);
2925
EOF
3026
)"
3127

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.