From 212d24d2bb401fbbc1e74a5a468b3fb5f832a3ba Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 28 Apr 2026 09:01:12 +0000 Subject: [PATCH] deps: use npm undici@seven tag in update-undici.sh Signed-off-by: Matteo Collina --- 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 087038cfd45ed1..ff2c4d447918d7 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 )"