diff --git a/.changeset/six-eagles-accept.md b/.changeset/six-eagles-accept.md new file mode 100644 index 0000000..9b0ac6e --- /dev/null +++ b/.changeset/six-eagles-accept.md @@ -0,0 +1,5 @@ +--- +"every-ts": major +--- + +Update minimum node version to v18 diff --git a/package.json b/package.json index 071f0f6..f013075 100644 --- a/package.json +++ b/package.json @@ -18,12 +18,11 @@ "adm-zip": "^0.5.10", "clipanion": "4.0.0-rc.3", "execa": "^8.0.1", - "node-fetch": "^3.3.2", "semver": "^7.5.4" }, "devDependencies": { "@changesets/cli": "^2.27.1", - "@tsconfig/node16": "^16.1.1", + "@tsconfig/node18": "^18.2.2", "@types/adm-zip": "^0.5.5", "@types/node": "^20.11.13", "@types/semver": "^7.5.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 90c9ef3..a343eb6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,9 +17,6 @@ dependencies: execa: specifier: ^8.0.1 version: 8.0.1 - node-fetch: - specifier: ^3.3.2 - version: 3.3.2 semver: specifier: ^7.5.4 version: 7.5.4 @@ -28,9 +25,9 @@ devDependencies: '@changesets/cli': specifier: ^2.27.1 version: 2.27.1 - '@tsconfig/node16': - specifier: ^16.1.1 - version: 16.1.1 + '@tsconfig/node18': + specifier: ^18.2.2 + version: 18.2.2 '@types/adm-zip': specifier: ^0.5.5 version: 0.5.5 @@ -457,8 +454,8 @@ packages: dev: true optional: true - /@tsconfig/node16@16.1.1: - resolution: {integrity: sha512-+pio93ejHN4nINX4pXqfnR/fPLRtJBaT4ORaa5RH0Oc1zoYmo2B2koG+M328CQhHKn1Wj6FcOxCDFXAot9NhvA==} + /@tsconfig/node18@18.2.2: + resolution: {integrity: sha512-d6McJeGsuoRlwWZmVIeE8CUA27lu6jLjvv1JzqmpsytOYYbVi1tHZEnwCNVOXnj4pyLvneZlFlpXUK+X9wBWyw==} dev: true /@types/adm-zip@0.5.5: @@ -981,11 +978,6 @@ packages: stream-transform: 2.1.3 dev: true - /data-uri-to-buffer@4.0.1: - resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} - engines: {node: '>= 12'} - dev: false - /debug@4.3.4: resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} engines: {node: '>=6.0'} @@ -1377,14 +1369,6 @@ packages: reusify: 1.0.4 dev: true - /fetch-blob@3.2.0: - resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} - engines: {node: ^12.20 || >= 14.13} - dependencies: - node-domexception: 1.0.0 - web-streams-polyfill: 3.3.2 - dev: false - /file-entry-cache@6.0.1: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} @@ -1449,13 +1433,6 @@ packages: signal-exit: 4.1.0 dev: true - /formdata-polyfill@4.0.10: - resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} - engines: {node: '>=12.20.0'} - dependencies: - fetch-blob: 3.2.0 - dev: false - /fs-extra@7.0.1: resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} engines: {node: '>=6 <7 || >=8'} @@ -2107,20 +2084,6 @@ packages: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: true - /node-domexception@1.0.0: - resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} - engines: {node: '>=10.5.0'} - dev: false - - /node-fetch@3.3.2: - resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dependencies: - data-uri-to-buffer: 4.0.1 - fetch-blob: 3.2.0 - formdata-polyfill: 4.0.10 - dev: false - /node-releases@2.0.14: resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} dev: true @@ -2899,11 +2862,6 @@ packages: defaults: 1.0.4 dev: true - /web-streams-polyfill@3.3.2: - resolution: {integrity: sha512-3pRGuxRF5gpuZc0W+EpwQRmCD7gRqcDOMt688KmdlDAgAyaB1XlN0zq2njfDNm44XVdIouE7pZ6GzbdyH47uIQ==} - engines: {node: '>= 8'} - dev: false - /which-boxed-primitive@1.0.2: resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} dependencies: diff --git a/src/fnm.ts b/src/fnm.ts index 0276e3a..9252669 100644 --- a/src/fnm.ts +++ b/src/fnm.ts @@ -43,7 +43,6 @@ export async function ensureFnm() { } console.log(`Downloading fnm...`); - const fetch = (await import(`node-fetch`)).default; const url = `https://github.com/Schniz/fnm/releases/latest/download/fnm-${getPlatform()}.zip`; const response = await fetch(url); const buffer = await response.arrayBuffer(); diff --git a/src/git.ts b/src/git.ts index 3113cd3..fbb6715 100644 --- a/src/git.ts +++ b/src/git.ts @@ -2,7 +2,6 @@ import fs from "node:fs"; import { Command, Option } from "clipanion"; import { execa } from "execa"; -import fetch from "node-fetch"; import semver from "semver"; import { diff --git a/tsconfig.json b/tsconfig.json index 2f04c2e..ac7e639 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@tsconfig/node16/tsconfig.json", + "extends": "@tsconfig/node18/tsconfig.json", "compilerOptions": { "module": "Node16", "moduleResolution": "Node16",