Skip to content

Commit 04be842

Browse files
committed
Upgrade dependency on Node.js 18 that has native fetch support
1 parent e475f9b commit 04be842

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- uses: actions/setup-node@v2
2323
with:
24-
node-version: '16.x'
24+
node-version: '18.x'
2525
registry-url: 'https://registry.npmjs.org'
2626

2727
- name: Variables

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: actions/setup-node@v2
2121
with:
22-
node-version: '16.x'
22+
node-version: '18.x'
2323
registry-url: 'https://registry.npmjs.org'
2424

2525
- name: Package Name

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lib/**/*"
1010
],
1111
"engines": {
12-
"node": ">=14.16"
12+
"node": ">=18.*"
1313
},
1414
"scripts": {
1515
"build": "tsc",
@@ -60,7 +60,6 @@
6060
},
6161
"dependencies": {
6262
"@blockcore/coininfo": "^5.2.2",
63-
"@blockcore/dns": "^0.0.5",
64-
"node-fetch": "^3.2.9"
63+
"@blockcore/dns": "^0.0.6"
6564
}
6665
}

src/Request.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import fetch, { Response } from 'node-fetch';
2-
31
export class WebRequest {
42
public static async fetchText(url: string): Promise<string> {
53
const response = await WebRequest.fetchUrl(url);

0 commit comments

Comments
 (0)