Skip to content

Commit fcdd442

Browse files
committed
chore: bump minimum Node.js version to v24 (current LTS)
- Update package.json engines.node to >=24.x - Update GitHub Actions workflow matrix to 24.x - Update .travis.yml to test against 24.x - Update .devcontainer.json to typescript-node:1-24 - Update v6.0 changelog with new minimum requirement BREAKING CHANGE: Node.js >=24 is now required.
1 parent 335f376 commit fcdd442

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

.devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
2+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-24",
33
"forwardPorts": [3000, 8080]
44
}

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
node-version: [20.x, 22.x]
9+
node-version: [24.x]
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: Setup Environment (Using NodeJS ${{ matrix.node-version }})

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
language: node_js
22
node_js:
3-
- "10"
4-
- "12"
5-
- "14"
3+
- "24"
64

75
script:
86
- npx standard

docs/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ https://goo.gl/forms/qlBwrf5raqfQwteH3
487487
## 6.0
488488
> Restana version 6.0 focuses on security hardening and reducing attack surface.
489489
490+
Added:
491+
- Minimum Node.js version is now v24.x (current LTS).
492+
490493
Changed:
491494
- `TRACE` HTTP method is no longer supported by default. Removed from `methods.js` to prevent Cross-Site Tracing (XST) risks. Re-enable for debugging with `{ enableTrace: true }` in the service constructor.
492495
- `res.send(data, code, headers)` now validates the `headers` parameter. Security-sensitive and hop-by-hop headers (`transfer-encoding`, `content-length`, `connection`, `keep-alive`, `host`, `set-cookie`) are silently dropped. Invalid header key characters (CRLF, newlines) are caught and skipped instead of crashing with a 500 error.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"service"
2323
],
2424
"engines": {
25-
"node": ">=10.x"
25+
"node": ">=24.x"
2626
},
2727
"author": "Rolando Santamaria Maso <kyberneees@gmail.com>",
2828
"license": "MIT",

0 commit comments

Comments
 (0)