From bd478ce09c121ef7f0d3d0077265a3210488423a Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 10 Oct 2026 12:10:52 -0500 Subject: [PATCH] build!: require Node 22 Node 18 and Node 20 are end-of-life and receive no security patches, so supporting them before RC.1 would mean promising a runtime nobody can patch. Node 22 is the oldest line still maintained. engines.node moves to >=22, @types/node to ^22, the tsup target to node22, and CI's build job from Node 18 to 22, so every workflow now runs Node 22 only. The docs, the bug report example and the comments that stated 18 as the floor follow. The node:crypto fallback in the HTTP core existed only for Node 18, which lacked the global crypto; it goes with its regression test, which said as much. The ws fallback for the WebSocket client stays: Node 22 has the global, but it can still be switched off with a flag. Moving off Node 18 and 20 also unblocks vitest 4, which the remaining dev audit advisories need. BREAKING CHANGE: Node 18 and Node 20 are no longer supported. The minimum is Node 22. Signed-off-by: Diego Resendez --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/workflows/ci.yml | 2 +- CHANGELOG.md | 5 +++++ CONTRIBUTING.md | 2 +- README.md | 2 +- deno.lock | 2 +- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- src/app/index.ts | 4 ++-- src/deno.ts | 4 ++-- src/http/core.ts | 26 +++++--------------------- src/http/ws-adapter.ts | 6 ++++-- test/mesh/link.test.ts | 6 +++--- test/node-floor.test.ts | 27 --------------------------- test/shutdown-signals.test.ts | 2 +- tsup.config.ts | 2 +- 16 files changed, 39 insertions(+), 75 deletions(-) delete mode 100644 test/node-floor.test.ts diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 47efcbf..bfe08f0 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -19,7 +19,7 @@ The smallest module and route that shows it: ## Environment - green-tea version: -- Runtime and version: +- Runtime and version: - OS: