From efde2540428cc49ed5c3a9421cde526c9737e4ba Mon Sep 17 00:00:00 2001 From: Kouadio Fabrice Nguessan Date: Sun, 22 Dec 2024 12:01:31 +0000 Subject: [PATCH] chore: update Node.js versions to v20 and v22 --- .github/workflows/estree-ast-utils.yml | 2 +- .github/workflows/node.js.yml | 4 ++-- .github/workflows/sec-literal.yml | 2 +- .github/workflows/ts-source-parser.yml | 2 +- package.json | 2 +- test/AstAnalyser.spec.js | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/estree-ast-utils.yml b/.github/workflows/estree-ast-utils.yml index 2ddb60f..681d4ca 100644 --- a/.github/workflows/estree-ast-utils.yml +++ b/.github/workflows/estree-ast-utils.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x, 22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b728aae..c165b19 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x, 22.x] fail-fast: false steps: - name: Harden Runner @@ -50,7 +50,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x, 22.x] fail-fast: false steps: - name: Harden Runner diff --git a/.github/workflows/sec-literal.yml b/.github/workflows/sec-literal.yml index 590c880..16272bf 100644 --- a/.github/workflows/sec-literal.yml +++ b/.github/workflows/sec-literal.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x, 22.x] fail-fast: false steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/ts-source-parser.yml b/.github/workflows/ts-source-parser.yml index 12d697e..9b42310 100644 --- a/.github/workflows/ts-source-parser.yml +++ b/.github/workflows/ts-source-parser.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x, 22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: diff --git a/package.json b/package.json index 5d58452..c656f9a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "exports": "./index.js", "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" }, "scripts": { "lint": "eslint src workspaces test", diff --git a/test/AstAnalyser.spec.js b/test/AstAnalyser.spec.js index 695f004..cf9505a 100644 --- a/test/AstAnalyser.spec.js +++ b/test/AstAnalyser.spec.js @@ -309,7 +309,7 @@ describe("AstAnalyser", (t) => { const url2 = new URL("parsingError.js", FIXTURE_URL); await new AstAnalyser().analyseFile( - url, + url2, { module: true, packageName: "foobar2" } );