diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index d0fb4023..65959c9b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [16.x, 18.x, 19.x] os: [ubuntu-latest, macOS-latest, windows-latest] runs-on: ${{ matrix.os }} steps: diff --git a/lib/request.js b/lib/request.js index 6002da6f..e15d3904 100644 --- a/lib/request.js +++ b/lib/request.js @@ -1,6 +1,6 @@ import fs from 'node:fs'; -import fetch from 'node-fetch'; +import { fetch } from 'undici'; import { CI_DOMAIN } from './ci/ci_type_parser.js'; import proxy from './proxy.js'; diff --git a/package.json b/package.json index 63728c34..b419bd43 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "version": "2.1.3", "description": "Utilities for Node.js core collaborators", "type": "module", + "engines": { + "node": ">=16.8.0" + }, "bin": { "get-metadata": "./bin/get-metadata.js", "git-node": "./bin/git-node.js", @@ -46,11 +49,11 @@ "listr2": "^4.0.5", "lodash": "^4.17.21", "log-symbols": "^5.1.0", - "node-fetch": "^3.2.4", "ora": "^6.1.0", "proxy-agent": "^5.0.0", "replace-in-file": "^6.3.2", "rimraf": "^3.0.2", + "undici": "^5.20.0", "which": "^2.0.2", "yargs": "^17.5.0" },