From 0be4f88028062bd3cab7b236837c8209f2a5affa Mon Sep 17 00:00:00 2001 From: ishabi Date: Tue, 5 May 2026 23:38:18 +0200 Subject: [PATCH] support Node.js 26 --- .github/workflows/tests.yml | 2 +- lib/download.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d06d9a9aad..de31613094 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -98,7 +98,7 @@ jobs: matrix: os: [macos-latest, ubuntu-latest, windows-latest] python: ["3.10", "3.12", "3.14"] - node: [20.x, 22.x, 24.x] + node: [20.x, 22.x, 24.x, 26.x] include: - os: macos-15-intel # macOS on Intel python: "3.14" diff --git a/lib/download.js b/lib/download.js index 0d9d2e32fa..dfaca798cf 100644 --- a/lib/download.js +++ b/lib/download.js @@ -1,5 +1,5 @@ const { Readable } = require('stream') -const { Agent, EnvHttpProxyAgent, RetryAgent } = require('undici') +const { Agent, EnvHttpProxyAgent, RetryAgent, fetch } = require('undici') const { promises: fs } = require('graceful-fs') const log = require('./log')