From 838f4b2a2c35531ad09a2307c2ef0a11e094172e Mon Sep 17 00:00:00 2001 From: shreeraj Date: Wed, 28 Oct 2026 15:26:33 +0530 Subject: [PATCH] chore: raise the minimum supported Node.js version to 22 kysely 0.29 and chevrotain 12 (via langium) both require Node.js >= 22. Declare ">=22" in the engines field of the cli, orm and language packages and add Node.js 22.x to the build-test matrix so that the minimum supported version is tested. --- .github/workflows/build-test.yml | 2 +- packages/cli/package.json | 2 +- packages/language/package.json | 3 +++ packages/orm/package.json | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index f666a58e8..a902c6550 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -47,7 +47,7 @@ jobs: strategy: matrix: - node-version: [24.x] + node-version: [22.x, 24.x] provider: [sqlite, postgresql, mysql] steps: diff --git a/packages/cli/package.json b/packages/cli/package.json index d9c31c161..9b5d2565a 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -110,7 +110,7 @@ } }, "engines": { - "node": ">=20" + "node": ">=22" }, "funding": "https://github.com/sponsors/zenstackhq" } \ No newline at end of file diff --git a/packages/language/package.json b/packages/language/package.json index 9efef6ce4..ccf1766a0 100644 --- a/packages/language/package.json +++ b/packages/language/package.json @@ -92,5 +92,8 @@ "langium-cli": "catalog:", "tmp": "catalog:" }, + "engines": { + "node": ">=22" + }, "funding": "https://github.com/sponsors/zenstackhq" } diff --git a/packages/orm/package.json b/packages/orm/package.json index b1e37b86a..7a48f5d58 100644 --- a/packages/orm/package.json +++ b/packages/orm/package.json @@ -171,5 +171,8 @@ "tsx": "catalog:", "zod": "^4.1.0" }, + "engines": { + "node": ">=22" + }, "funding": "https://github.com/sponsors/zenstackhq" }