From f25787e7fa6eb47acf42815fd373b7bb5efc215f Mon Sep 17 00:00:00 2001 From: John Rassa Date: Wed, 21 Feb 2024 08:32:16 -0500 Subject: [PATCH] build: update to node 18 --- .github/workflows/main.yml | 4 ++-- .gitlab-ci.yml | 4 ++-- package.json | 4 ++-- tsconfig.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f4a4f64..9ced9111 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,8 +18,8 @@ jobs: strategy: matrix: - node-version: [16.x, 18.x] - mongodb-version: [4.0, 4.2] + node-version: [18.x, 20.x] + mongodb-version: [4.2, 4.4] steps: - name: Git checkout diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab695fdd..7f7dc4b8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: node:16.17 +image: node:18.19 stages: - build @@ -15,7 +15,7 @@ build: test: stage: test services: - - mongo:4.1.2 + - mongo:4.4.15 script: - npm run test:gitlab coverage: '/^Statements\s*:\s*([^%]+)/' diff --git a/package.json b/package.json index 851c1a73..270be3c3 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "url": "https://github.com:Asymmetrik/node-rest-starter.git" }, "engines": { - "node": ">=16.17.0", - "npm": ">=8.15.0", + "node": ">=18.19.1", + "npm": ">=10.2.4", "yarn": ">=1.5.1" }, "scripts": { diff --git a/tsconfig.json b/tsconfig.json index 02a1cc99..efcfbf8e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ - "target": "es2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ + "target": "es2022", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ // "lib": [], /* Specify library files to be included in the compilation. */ "allowJs": true, /* Allow javascript files to be compiled. */