From c54490b9f1405ab02c8251477e69bb02e009ef19 Mon Sep 17 00:00:00 2001 From: Aurora <5505558+duggalsu@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:11:53 +0530 Subject: [PATCH] Update node to current LTS - Updated node version in github actions - Updated node and npm version in readme - Updated node docker image - Pinned node and npm version in plugin and api-server package.json - Updated node and npm version in plugin and api-server package.json --- .github/workflows/build-pr-review-both-browsers.yml | 2 +- browser-extension/README.md | 4 ++-- browser-extension/api-server/Dockerfile | 2 +- browser-extension/api-server/package-lock.json | 4 ++-- browser-extension/api-server/package.json | 4 ++-- browser-extension/plugin/package-lock.json | 4 ++-- browser-extension/plugin/package.json | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-pr-review-both-browsers.yml b/.github/workflows/build-pr-review-both-browsers.yml index e30b3ebc..63ba0544 100644 --- a/.github/workflows/build-pr-review-both-browsers.yml +++ b/.github/workflows/build-pr-review-both-browsers.yml @@ -26,7 +26,7 @@ jobs: - name: "Setup Node version" uses: actions/setup-node@v3 with: - node-version: 18.18.2 + node-version: 20.8.1 - name: Get commit SHA shell: bash diff --git a/browser-extension/README.md b/browser-extension/README.md index 98662088..97d9d26c 100644 --- a/browser-extension/README.md +++ b/browser-extension/README.md @@ -25,8 +25,8 @@ Requirements : -- npm : v9.8.1 -- nodejs : v18.18.2 +- npm : v10.1.0 +- nodejs : v20.8.1 When you run `docker-compose up`, ensure to have a `development.env` file with the following variables in the `api-server` directory. diff --git a/browser-extension/api-server/Dockerfile b/browser-extension/api-server/Dockerfile index 2dbd309b..8a041d0a 100644 --- a/browser-extension/api-server/Dockerfile +++ b/browser-extension/api-server/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18.18.2-alpine3.18@sha256:0fe7402d11d8c85474c6ec6f9c9c8048cd0549c95535832b7f0735a4b47690a5 +FROM node:20.8.1-alpine3.18@sha256:002b6ee25b63b81dc4e47c9378ffe20915c3fa0e98e834c46584438468b1d0b5 ENV NODE_ENV production WORKDIR /app diff --git a/browser-extension/api-server/package-lock.json b/browser-extension/api-server/package-lock.json index 2b14f3e6..8ac2c26c 100644 --- a/browser-extension/api-server/package-lock.json +++ b/browser-extension/api-server/package-lock.json @@ -27,8 +27,8 @@ "husky": "8.0.3" }, "engines": { - "node": ">=18.18.2", - "npm": ">=9.8.1" + "node": "20.8.1", + "npm": "10.1.0" } }, "node_modules/@fastify/busboy": { diff --git a/browser-extension/api-server/package.json b/browser-extension/api-server/package.json index 3401fb69..a0a4bbfb 100644 --- a/browser-extension/api-server/package.json +++ b/browser-extension/api-server/package.json @@ -28,8 +28,8 @@ "uuid": "8.3.2" }, "engines": { - "node": ">=18.18.2", - "npm": ">=9.8.1" + "node": "20.8.1", + "npm": "10.1.0" }, "devDependencies": { "husky": "8.0.3" diff --git a/browser-extension/plugin/package-lock.json b/browser-extension/plugin/package-lock.json index c3bb3767..285c9057 100644 --- a/browser-extension/plugin/package-lock.json +++ b/browser-extension/plugin/package-lock.json @@ -43,8 +43,8 @@ }, "engines": { "browsers": "> 0.25%", - "node": ">=18.18.2", - "npm": ">=9.8.1" + "node": "20.8.1", + "npm": "10.1.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/browser-extension/plugin/package.json b/browser-extension/plugin/package.json index 683ffaaa..107a4814 100644 --- a/browser-extension/plugin/package.json +++ b/browser-extension/plugin/package.json @@ -56,8 +56,8 @@ }, "engines": { "browsers": "> 0.25%", - "node": ">=18.18.2", - "npm": ">=9.8.1" + "node": "20.8.1", + "npm": "10.1.0" }, "lint-staged": { "*.(js|jsx)": [