From cb67a925e9ac761208dfba9cbef9f9e5e94d4ebe Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 28 Apr 2026 16:12:49 +0200 Subject: [PATCH] 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 PR-URL: https://github.com/nodejs/node/pull/62739 Reviewed-By: Antoine du Hamel --- tools/dep_updaters/update-undici.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tools/dep_updaters/update-undici.sh b/tools/dep_updaters/update-undici.sh index 087038cfd45..ff2c4d44791 100755 --- a/tools/dep_updaters/update-undici.sh +++ b/tools/dep_updaters/update-undici.sh @@ -17,15 +17,11 @@ NPM="$ROOT/deps/npm/bin/npm-cli.js" . "$ROOT/tools/dep_updaters/utils.sh" NEW_VERSION="$("$NODE" --input-type=module <<'EOF' -const res = await fetch('https://api.github.com/repos/nodejs/undici/releases/latest', - process.env.GITHUB_TOKEN && { - headers: { - "Authorization": `Bearer ${process.env.GITHUB_TOKEN}` - }, - }); +const res = await fetch('https://registry.npmjs.org/undici/seven'); if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res }); -const { tag_name } = await res.json(); -console.log(tag_name.replace('v', '')); +const { version } = await res.json(); +if (!version) throw new Error('No "seven" dist-tag found'); +console.log(version); EOF )"