Skip to content

Commit

Permalink
Require node>=18 and hapi>=21
Browse files Browse the repository at this point in the history
  • Loading branch information
kanongil committed Mar 15, 2024
1 parent 7f12fc9 commit dd632ad
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['*', 16, 14, 12]
hapi: [20, 19, 18, 17]
node-version: [18, 20, latest]
hapi: [21]

runs-on: ubuntu-latest
name: Test node@${{ matrix.node }} hapi@${{ matrix.hapi }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
check-latest: ${{ matrix.node-version == '*' }}
- run: npm install
check-latest: ${{ matrix.node-version == 'latest' }}
- run: npm ci
- run: npm install @hapi/hapi@${{ matrix.hapi }}
- run: npm test
- run: npm run build --if-present
- run: npm test
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as http from 'http';

// We can't use the DT @hapi/hapi typings, so declare something that matches what we use
// We can't rely on the @hapi/hapi typings, so declare something that matches what we use

interface HapiServerInterface {

Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,22 @@
"author": "Gil Pedersen <gpdev@gpost.dk>",
"license": "BSD-2-Clause",
"devDependencies": {
"@hapi/code": "^8.0.1",
"@hapi/hapi": "^20.2.1",
"@hapi/lab": "^24.5.1",
"@types/hapi__hapi": "^20.0.10",
"typescript": "^4.5.5"
"@hapi/code": "^9.0.3",
"@hapi/hapi": "^21.3.6",
"@hapi/lab": "^25.2.0",
"@types/node": "^18.19.24",
"joi": "^17.12.2",
"typescript": "~5.4.2"
},
"dependencies": {
"@hapi/bounce": "^2.0.0",
"@hapi/hoek": "^9.0.2"
"@hapi/bounce": "^3.0.1",
"@hapi/hoek": "^11.0.4"
},
"peerDependencies": {
"@hapi/hapi": ">=17.9.0"
"@hapi/hapi": ">=21.0.0"
},
"engines": {
"node": ">=12.13.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit dd632ad

Please sign in to comment.