From 11420c3d466461fb63f087d8ac46396efe93a2de Mon Sep 17 00:00:00 2001 From: team-tf-cdk Date: Wed, 18 Oct 2023 11:13:23 +0000 Subject: [PATCH] chore!: increase minimum supported Node.js version to 18 Signed-off-by: team-tf-cdk --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- .github/workflows/upgrade-main.yml | 2 +- .projen/deps.json | 2 +- .projenrc.ts | 2 +- package.json | 4 ++-- yarn.lock | 8 ++++---- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b65b4476..d1fe0aee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16.14.0 + node-version: 18.12.0 - name: Install dependencies run: yarn install --check-files - name: build @@ -95,7 +95,7 @@ jobs: steps: - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16.14.0 + node-version: 18.12.0 - name: Download build artifacts uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 38689d50..451f7f3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16.14.0 + node-version: 18.12.0 - name: Install dependencies run: yarn install --check-files --frozen-lockfile - name: release @@ -60,7 +60,7 @@ jobs: steps: - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16.14.0 + node-version: 18.12.0 - name: Download build artifacts uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a with: @@ -89,7 +89,7 @@ jobs: steps: - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16.14.0 + node-version: 18.12.0 - name: Download build artifacts uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a with: diff --git a/.github/workflows/upgrade-main.yml b/.github/workflows/upgrade-main.yml index 8888e6cc..24a21f69 100644 --- a/.github/workflows/upgrade-main.yml +++ b/.github/workflows/upgrade-main.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16.14.0 + node-version: 18.12.0 - name: Install dependencies run: yarn install --check-files --frozen-lockfile - name: Upgrade dependencies diff --git a/.projen/deps.json b/.projen/deps.json index 410ede22..cb8d3c59 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -11,7 +11,7 @@ }, { "name": "@types/node", - "version": "^16", + "version": "^18", "type": "build" }, { diff --git a/.projenrc.ts b/.projenrc.ts index 3d56d690..a2de8192 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -41,7 +41,7 @@ const project = new cdk.JsiiProject({ bundledDeps: ["change-case", "fs-extra"], defaultReleaseBranch: "main", releaseToNpm: true, - minNodeVersion: "16.14.0", + minNodeVersion: "18.12.0", mergify: false, scripts: { "eslint:fix": "eslint . --ext .ts --fix", diff --git a/package.json b/package.json index fd5553f8..900cff53 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "devDependencies": { "@types/fs-extra": "^9.0.13", "@types/jest": "^27", - "@types/node": "^16", + "@types/node": "^18", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "eslint": "^8", @@ -78,7 +78,7 @@ "@types/babel__traverse": "7.18.2" }, "engines": { - "node": ">= 16.14.0" + "node": ">= 18.12.0" }, "main": "lib/index.js", "license": "MPL-2.0", diff --git a/yarn.lock b/yarn.lock index f488795f..41dfcd84 100644 --- a/yarn.lock +++ b/yarn.lock @@ -960,10 +960,10 @@ dependencies: undici-types "~5.25.1" -"@types/node@^16": - version "16.18.59" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.59.tgz#4cdbd631be6d9be266a96fb17b5d0d7ad6bbe26c" - integrity sha512-PJ1w2cNeKUEdey4LiPra0ZuxZFOGvetswE8qHRriV/sUkL5Al4tTmPV9D2+Y/TPIxTHHgxTfRjZVKWhPw/ORhQ== +"@types/node@^18": + version "18.18.6" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.18.6.tgz#26da694f75cdb057750f49d099da5e3f3824cb3e" + integrity sha512-wf3Vz+jCmOQ2HV1YUJuCWdL64adYxumkrxtc+H1VUQlnQI04+5HtH+qZCOE21lBE7gIrt+CwX2Wv8Acrw5Ak6w== "@types/normalize-package-data@^2.4.0": version "2.4.2"