Skip to content

Commit

Permalink
Require Node.js 14 and move to ESM (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 27, 2022
1 parent ab8d286 commit 5ce6a3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 13.x]
node-version: [18, 16, 14]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"version": "6.1.0",
"description": "A cacheable dns.lookup(…) that respects TTL",
"engines": {
"node": ">=10.6.0"
"node": ">=14.16"
},
"files": [
"source",
"index.d.ts"
],
"main": "source/index.js",
"types": "index.d.ts",
"type": "module",
"exports": "./source/index.js",
"types": "./index.d.ts",
"scripts": {
"test": "xo && nyc --reporter=lcovonly --reporter=text ava && tsd"
},
Expand Down

0 comments on commit 5ce6a3e

Please sign in to comment.