Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [22, 24, 25]
node: [22, 24, 26]
permissions:
contents: read
steps:
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
node-version: 24
- runtime: node
script: test-runtime-node
node-version: 25
node-version: 26
- runtime: fetch
script: test-runtime-fetch
node-version: 22
Expand All @@ -119,7 +119,7 @@ jobs:
node-version: 24
- runtime: fetch
script: test-runtime-fetch
node-version: 25
node-version: 26
- runtime: cloudflare
script: test-runtime-cloudflare
- runtime: bun
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: 20
node-version: 22
- uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
with:
deno-version: v2.4.2
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: ${{ matrix.node-version || '20' }}
node-version: ${{ matrix.node-version || '22' }}
- run: npm ci && npm run build
- run: npm ci
working-directory: "examples/${{matrix.folder}}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: 20
node-version: 22
- uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
with:
deno-version: v2.4.2
Expand All @@ -72,9 +72,9 @@ jobs:
fail-fast: false
matrix:
node:
- 20
- 22
- 24
- 26
os: [ubuntu-latest]
permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions analyze-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"url": "https://arcjet.com"
},
"engines": {
"node": ">=20"
"node": ">=22.21.0 <23 || >=24.5.0"
},
"type": "module",
"main": "./index.js",
Expand Down Expand Up @@ -65,7 +65,7 @@
"@arcjet/rollup-config": "1.5.0",
"@bytecodealliance/jco": "1.5.0",
"@rollup/wasm-node": "4.61.0",
"@types/node": "24.12.4",
"@types/node": "22.19.21",
"eslint": "9.39.4",
"typescript": "5.9.3"
},
Expand Down
4 changes: 2 additions & 2 deletions analyze/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"url": "https://arcjet.com"
},
"engines": {
"node": ">=20"
"node": ">=22.21.0 <23 || >=24.5.0"
},
"type": "module",
"main": "./index.js",
Expand All @@ -52,7 +52,7 @@
"@arcjet/rollup-config": "1.5.0",
"@bytecodealliance/jco": "1.5.0",
"@rollup/wasm-node": "4.61.0",
"@types/node": "24.12.4",
"@types/node": "22.19.21",
"eslint": "9.39.4",
"typescript": "5.9.3"
},
Expand Down
7 changes: 3 additions & 4 deletions arcjet-fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"url": "https://arcjet.com"
},
"engines": {
"node": ">=20"
"node": ">=22.21.0 <23 || >=24.5.0"
},
"type": "module",
"exports": "./index.js",
Expand All @@ -52,8 +52,7 @@
"lint": "eslint .",
"prepublishOnly": "npm run build",
"test-api": "node --test -- test/*.test.js",
"test-coverage#": "TODO: after node 20, use: ` --test-coverage-branches=100 --test-coverage-exclude \"../{analyze-wasm,analyze,arcjet,cache,duration,env,headers,ip,logger,protocol,runtime,sprintf,stable-hash,transport}/**/*.{js,ts}\" --test-coverage-exclude \"test/**/*.{js,ts}\" --test-coverage-functions=100 --test-coverage-lines=100`",
"test-coverage": "node --experimental-test-coverage --test -- test/*.test.js",
"test-coverage": "node --experimental-test-coverage --test --test-coverage-branches=80 --test-coverage-exclude \"../{analyze-wasm,analyze,arcjet,cache,duration,env,headers,ip,logger,protocol,runtime,sprintf,stable-hash,transport}/**/*.{js,ts}\" --test-coverage-exclude \"test/**/*.{js,ts}\" --test-coverage-functions=100 --test-coverage-lines=90 -- test/*.test.js",
"test": "npm run build && npm run lint && npm run test-coverage"
},
"dependencies": {
Expand All @@ -73,7 +72,7 @@
"@arcjet/eslint-config": "1.5.0",
"@arcjet/rollup-config": "1.5.0",
"@rollup/wasm-node": "4.61.0",
"@types/node": "24.12.4",
"@types/node": "22.19.21",
"eslint": "9.39.4",
"fastify": "5.8.5",
"typescript": "5.9.3"
Expand Down
2 changes: 1 addition & 1 deletion arcjet-guard/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prerequisites

- Node.js >= 22.18.0
- Node.js >= 22.21.0 (`>=22.21.0 <23 || >=24.5.0`)
- npm

Optional for runtime tests:
Expand Down
8 changes: 7 additions & 1 deletion arcjet-guard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,17 @@ You can also manage sites and keys with the CLI: `npx @arcjet/cli`.

| Runtime | Minimum version |
| ------------------ | ------------------------ |
| Node.js | 22.18.0 |
| Node.js | 22.21.0 [^node] |
| Bun | 1.3.0 |
| Deno | `stable` / `lts` |
| Cloudflare Workers | compat date `2025-09-01` |

[^node]:
Requires `>=22.21.0 <23 || >=24.5.0`. Node.js 20 is end-of-life and Node.js
23 is not supported; on the 24 line the built-in HTTP agent proxy support
used for the API transport landed in 24.5.0. Anyone tracking an active LTS
release is unaffected.

> [!TIP]
> Import from `@arcjet/guard` — the correct transport is selected
> automatically via conditional exports (HTTP/2 on Node.js and Bun,
Expand Down
Loading
Loading