tools: unpin ngtcp2 version updates

It was pinned to 1.15.1 in https://github.com/nodejs/node/pull/59946
without any explanation.

PR-URL: https://github.com/nodejs/node/pull/61155
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Michaël Zasso
2025-12-23 14:39:44 +01:00
committed by GitHub
parent 55600e6153
commit a385bb1d70

View File

@@ -10,20 +10,19 @@ DEPS_DIR="$BASE_DIR/deps"
# shellcheck disable=SC1091
. "$BASE_DIR/tools/dep_updaters/utils.sh"
NEW_VERSION="1.15.1"
# NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
# const res = await fetch('https://api.github.com/repos/ngtcp2/ngtcp2/releases',
# process.env.GITHUB_TOKEN && {
# headers: {
# "Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
# },
# });
# if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
# const releases = await res.json()
# const { tag_name } = releases.at(0);
# console.log(tag_name.replace('v', ''));
# EOF
# )"
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
const res = await fetch('https://api.github.com/repos/ngtcp2/ngtcp2/releases',
process.env.GITHUB_TOKEN && {
headers: {
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
},
});
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
const releases = await res.json()
const { tag_name } = releases.at(0);
console.log(tag_name.replace('v', ''));
EOF
)"
NGTCP2_VERSION_H="$DEPS_DIR/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h"