diff --git a/.github/workflows/cli-ci.yml b/.github/workflows/cli-ci.yml index f393209..4882e0e 100644 --- a/.github/workflows/cli-ci.yml +++ b/.github/workflows/cli-ci.yml @@ -10,6 +10,10 @@ concurrency: jobs: ci: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: ["22.13.0", "24"] steps: - name: 🛎️ Checkout uses: actions/checkout@v4 @@ -22,7 +26,7 @@ jobs: - name: 🪢 Set up Node uses: actions/setup-node@v4 with: - node-version: "24" + node-version: ${{ matrix.node-version }} cache-dependency-path: "./pnpm-lock.yaml" cache: "pnpm" diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 010bb19..297eef9 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -22,6 +22,8 @@ jobs: strategy: fail-fast: false matrix: + node-version: ["22.13.0", "24"] + runner: [macos-latest, ubuntu-latest, windows-latest] include: - runner: macos-latest shell: bash @@ -48,7 +50,7 @@ jobs: - name: Set up Node uses: actions/setup-node@v4 with: - node-version: "24" + node-version: ${{ matrix.node-version }} cache-dependency-path: "./pnpm-lock.yaml" cache: "pnpm" diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c25f80..c69da02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# Unreleased + +- Change: The minimum supported Node.js version is now 22.13.0 (previously 24). ([#222](https://github.com/YoYoGames/gm-cli/issues/222)) + # 2.4.1 - Fix: When a cached runtime is missing a module, the module is now installed for that exact runtime version instead of resolving to the latest version from the feed. ([#243](https://github.com/YoYoGames/gm-cli/issues/243)) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b8c1440..fae1799 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,6 +6,8 @@ pnpm build pnpm link ``` +GM-CLI supports Node.js 22.13.0 and later. Note that `pnpm gen:ggbe-api` runs a TypeScript file directly, which requires Node.js 22.18.0+ (or `--experimental-strip-types` on older 22.x releases). + ## Versioning policy GM-CLI uses [semantic versioning](https://semver.org), i.e. `MAJOR.MINOR.PATCH`. The public API surface consists of, diff --git a/package.json b/package.json index 8d0cb05..4af1ab9 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "gm-cli": "dist/cli.js" }, "engines": { - "node": ">=24" + "node": ">=22.13.0" }, "scripts": { "prebuild": "tsc -p tsconfig.json", @@ -38,7 +38,7 @@ "@eslint/js": "^10.0.1", "@stricli/core": "^1.2.6", "@tony.ganchev/eslint-plugin-header": "3.4.3", - "@types/node": "24.x", + "@types/node": "22.x", "@types/semver": "^7.7.1", "chalk": "^5.6.2", "eslint": "^10.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9b14b33..650dc90 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,8 @@ importers: specifier: 3.4.3 version: 3.4.3(eslint@10.2.0(jiti@2.6.1)) '@types/node': - specifier: 24.x - version: 24.12.0 + specifier: 22.x + version: 22.20.5 '@types/semver': specifier: ^7.7.1 version: 7.7.1 @@ -368,8 +368,8 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - '@types/node@24.12.0': - resolution: {integrity: sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==} + '@types/node@22.20.5': + resolution: {integrity: sha512-U2+DNr+wSjpsTS/wZGYHq7GcwfuSmKiKvoPvK22zwTlRhU91yOniN4qRR5KhIjvif7ysw/dz/hKmfDH0Ris4aA==} '@types/semver@7.7.1': resolution: {integrity: sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==} @@ -1343,8 +1343,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.16.0: - resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} unicode-emoji-modifier-base@1.0.0: resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} @@ -1628,9 +1628,9 @@ snapshots: '@types/json-schema@7.0.15': {} - '@types/node@24.12.0': + '@types/node@22.20.5': dependencies: - undici-types: 7.16.0 + undici-types: 6.21.0 '@types/semver@7.7.1': {} @@ -2619,7 +2619,7 @@ snapshots: typescript@6.0.3: {} - undici-types@7.16.0: {} + undici-types@6.21.0: {} unicode-emoji-modifier-base@1.0.0: {}