Skip to content

Commit

Permalink
feat: Replace http(s) with node-fetch #93
Browse files Browse the repository at this point in the history
  • Loading branch information
shrink authored Nov 21, 2024
1 parent 6f0a3a3 commit 60d6279
Show file tree
Hide file tree
Showing 10 changed files with 1,806 additions and 2,886 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test

on:
push:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: [14, 16, 18, 20, 22, "latest"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
- run: npm ci
- run: npm test
env:
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## 4.0.0

Version 4 is a major version bump due to changing internals
(from http(s) to node-fetch) which consumers may depend on.

- Replace NodeJS http(s) with [node-fetch](https://www.npmjs.com/package/node-fetch) for communication with API
- Increases minimum Node engine version to 14

## 3.5.4 / 3.5.5

- Reject on timeout in lookupIP, lookupASN, and getMap
Expand Down
Loading

0 comments on commit 60d6279

Please sign in to comment.