From c0c655038fdc47c9f51a882a7247618ca39dae93 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Mon, 3 Jun 2024 15:13:33 -0700 Subject: [PATCH] deps(node-fetch): Removed, using native fetch instead. --- package.json | 2 +- packages/generator/package.json | 2 -- packages/generator/src/loaders/fetchAndCache.ts | 1 - yarn.lock | 14 +------------- 4 files changed, 2 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 1bce328f..348d07fb 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "type": "tsc --build" }, "engines": { - "node": ">=16.12.0" + "node": ">=20.0.0" }, "devDependencies": { "@moonrepo/dev": "^3.0.1", diff --git a/packages/generator/package.json b/packages/generator/package.json index 58af4bd6..450be4d2 100644 --- a/packages/generator/package.json +++ b/packages/generator/package.json @@ -25,14 +25,12 @@ "@types/cheerio": "^0.22.35", "@types/fs-extra": "^11.0.4", "@types/node": "^20.14.0", - "@types/node-fetch": "^2.6.11", "chalk": "^5.3.0", "cheerio": "^1.0.0-rc.12", "emojibase": "workspace:*", "fs-extra": "^11.2.0", "kuroshiro": "^1.2.0", "kuroshiro-analyzer-kuromoji": "^1.1.0", - "node-fetch": "^2.7.0", "pofile": "^1.1.4", "regexgen": "^1.3.0", "transliteration": "^2.3.5" diff --git a/packages/generator/src/loaders/fetchAndCache.ts b/packages/generator/src/loaders/fetchAndCache.ts index c55fcb0e..4376c51d 100644 --- a/packages/generator/src/loaders/fetchAndCache.ts +++ b/packages/generator/src/loaders/fetchAndCache.ts @@ -1,7 +1,6 @@ import fs from 'node:fs'; import { fileURLToPath } from 'node:url'; import chalk from 'chalk'; -import fetch, { type RequestInit } from 'node-fetch'; import { log } from '../helpers/log'; import { readCache } from '../helpers/readCache'; import { writeCache } from '../helpers/writeCache'; diff --git a/yarn.lock b/yarn.lock index 2c46dacb..d39d9904 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4499,16 +4499,6 @@ __metadata: languageName: node linkType: hard -"@types/node-fetch@npm:^2.6.11": - version: 2.6.11 - resolution: "@types/node-fetch@npm:2.6.11" - dependencies: - "@types/node": "*" - form-data: ^4.0.0 - checksum: 180e4d44c432839bdf8a25251ef8c47d51e37355ddd78c64695225de8bc5dc2b50b7bb855956d471c026bb84bd7295688a0960085e7158cbbba803053492568b - languageName: node - linkType: hard - "@types/node@npm:*, @types/node@npm:^17.0.5": version: 17.0.21 resolution: "@types/node@npm:17.0.21" @@ -8263,14 +8253,12 @@ __metadata: "@types/cheerio": ^0.22.35 "@types/fs-extra": ^11.0.4 "@types/node": ^20.14.0 - "@types/node-fetch": ^2.6.11 chalk: ^5.3.0 cheerio: ^1.0.0-rc.12 emojibase: "workspace:*" fs-extra: ^11.2.0 kuroshiro: ^1.2.0 kuroshiro-analyzer-kuromoji: ^1.1.0 - node-fetch: ^2.7.0 pofile: ^1.1.4 regexgen: ^1.3.0 transliteration: ^2.3.5 @@ -14599,7 +14587,7 @@ __metadata: languageName: node linkType: hard -"node-fetch@npm:^2.6.7, node-fetch@npm:^2.7.0": +"node-fetch@npm:^2.6.7": version: 2.7.0 resolution: "node-fetch@npm:2.7.0" dependencies: