From ba42ed9562f208b909bd5108dd0d48c7a30ccd0c Mon Sep 17 00:00:00 2001 From: petruki <31597636+petruki@users.noreply.github.com> Date: Sat, 2 Dec 2023 17:14:50 -0800 Subject: [PATCH] Upgraded runtime to use Node 20 LTS --- .github/workflows/master.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- Dockerfile | 2 +- package.json | 16 ++++++++-------- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 94c7a53..1725cc4 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -19,10 +19,10 @@ jobs: with: fetch-depth: 0 - - name: Use Node.js 18.x + - name: Use Node.js 20.x uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: 20.x - name: Start MongoDB uses: supercharge/mongodb-github-action@1.9.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f69e93f..3f76212 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,10 +13,10 @@ jobs: - name: Git checkout uses: actions/checkout@v3 - - name: Use Node.js 18.x + - name: Use Node.js 20.x uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: 20.x - name: Start MongoDB uses: supercharge/mongodb-github-action@1.9.0 diff --git a/Dockerfile b/Dockerfile index 9533e95..60a18d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # ---------- Base ---------- -FROM node:hydrogen-alpine AS base +FROM node:20-alpine AS base WORKDIR /app diff --git a/package.json b/package.json index 310fb47..c6ac178 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "switcher-resolver-node", "version": "1.0.0", - "description": "Feature Flag/Toggle API", + "description": "Resolver API to be used with Switcher API", "main": "start.js", "author": { "name": "Roger Floriano", @@ -32,7 +32,7 @@ "cors": "^2.8.5", "express": "^4.18.2", "express-basic-auth": "^1.2.1", - "express-rate-limit": "^7.1.4", + "express-rate-limit": "^7.1.5", "express-validator": "^7.0.1", "graphql": "^16.8.1", "graphql-http": "^1.22.0", @@ -41,7 +41,7 @@ "jsonwebtoken": "^9.0.2", "moment": "^2.29.4", "mongodb": "^6.3.0", - "mongoose": "^8.0.1", + "mongoose": "^8.0.2", "pino": "^8.16.2", "pino-pretty": "^10.2.3", "swagger-ui-express": "^5.0.0", @@ -50,23 +50,23 @@ }, "devDependencies": { "@babel/cli": "^7.23.4", - "@babel/core": "^7.23.3", + "@babel/core": "^7.23.5", "@babel/node": "^7.22.19", - "@babel/preset-env": "^7.23.3", + "@babel/preset-env": "^7.23.5", "@babel/register": "^7.22.15", "babel-jest": "^29.7.0", "babel-polyfill": "^6.26.0", "env-cmd": "^10.1.0", - "eslint": "^8.54.0", + "eslint": "^8.55.0", "jest": "^29.7.0", "jest-sonar-reporter": "^2.0.0", "node-notifier": "^10.0.1", - "nodemon": "^3.0.1", + "nodemon": "^3.0.2", "sinon": "^17.0.1", "supertest": "^6.3.3" }, "repository": { "type": "git", - "url": "https://github.com/switcherapi/switcher-api" + "url": "https://github.com/switcherapi/switcher-resolver-node" } }