Skip to content

Commit 60d6279

Browse files
authored
feat: Replace http(s) with node-fetch #93
1 parent 6f0a3a3 commit 60d6279

File tree

10 files changed

+1806
-2886
lines changed

10 files changed

+1806
-2886
lines changed

.github/workflows/test.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
version: [14, 16, 18, 20, 22, "latest"]
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: ${{ matrix.version }}
17+
- run: npm ci
18+
- run: npm test
19+
env:
20+
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## 4.0.0
4+
5+
Version 4 is a major version bump due to changing internals
6+
(from http(s) to node-fetch) which consumers may depend on.
7+
8+
- Replace NodeJS http(s) with [node-fetch](https://www.npmjs.com/package/node-fetch) for communication with API
9+
- Increases minimum Node engine version to 14
10+
311
## 3.5.4 / 3.5.5
412

513
- Reject on timeout in lookupIP, lookupASN, and getMap

0 commit comments

Comments
 (0)