Skip to content

Commit 68a620e

Browse files
committed
feat: drop support for Node < 24 and test on Node 24 and 26
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
1 parent dd59376 commit 68a620e

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2626
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2727
with:
28-
node-version: 24
28+
node-version: 26
2929
registry-url: https://registry.npmjs.org/
3030
package-manager-cache: false
3131

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest, macOS-latest]
13-
node: [18, 20]
13+
node: [24, 26]
1414

1515
steps:
1616
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3434
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
3535
with:
36-
node-version: 20
36+
node-version: 26
3737
- run: |
3838
npm install
3939
npm test

index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
const path = require("path")
44
const fs = require("fs")
55
const http = require("http")
6-
// spdy allows http2, while waiting express to support the http2 module
7-
const https = process.env.NODE_ENV === "production"
8-
? require("spdy")
9-
: require("https")
6+
const https = require("https")
107
const express = require("express")
118
const cors = require("cors")
129
const getCerts = require(path.resolve(__dirname, "certs.js")).getCerts

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "4.7.2",
44
"description": "HTTPS server running on localhost",
55
"main": "index.js",
6+
"engines": {
7+
"node": ">=24"
8+
},
69
"scripts": {
710
"pretest": "eslint --ignore-path .gitignore .",
811
"test": "node node_modules/nyc/bin/nyc.js node_modules/mocha/bin/_mocha --exit",
@@ -46,8 +49,7 @@
4649
"compression": "^1.7.4",
4750
"cors": "^2.8.5",
4851
"express": "^4.17.1",
49-
"uglify-js": "^3.15.1",
50-
"spdy": "^4.0.2"
52+
"uglify-js": "^3.15.1"
5153
},
5254
"devDependencies": {
5355
"eslint": "^7.25.0",

0 commit comments

Comments
 (0)