Skip to content

Commit

Permalink
deps(node-fetch): Removed, using native fetch instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Jun 3, 2024
1 parent 9cb9452 commit c0c6550
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"type": "tsc --build"
},
"engines": {
"node": ">=16.12.0"
"node": ">=20.0.0"
},
"devDependencies": {
"@moonrepo/dev": "^3.0.1",
Expand Down
2 changes: 0 additions & 2 deletions packages/generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion packages/generator/src/loaders/fetchAndCache.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
14 changes: 1 addition & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c0c6550

Please sign in to comment.