diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 239c81b22..3b51f3814 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -21,10 +21,10 @@ jobs: - name: Checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - name: Use Node.js 18 - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 + - name: Use Node.js 20 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: - node-version: 18 + node-version: 20 - name: Populate env file run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a9aac2709..942102a88 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x] + node-version: [20.x] steps: - name: Checkout repository @@ -32,7 +32,7 @@ jobs: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} - name: Use Node.js ${{matrix.node-version}} - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: ${{ matrix.node-version }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 14df36ac4..f30a64ee4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. The format ## [UNRELEASED] +### Changed + +- Node.js 20 is now the default runtime for all Cloud Functions and when running + the app locally. + +### Removed + +- Dropped support for Node.js 18 and below. + ### Security - Updated dependencies. diff --git a/README.md b/README.md index 3d853ff3a..ee70b75de 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ If you would like to check out how the application works, you can go to the demo ## Project requirements -- Node 18.x +- Node 20.x - Firebase 10.x - Firebase tools >9.x - Firebase Blaze plan - Pay as you go diff --git a/functions/package-lock.json b/functions/package-lock.json index 4ee7b9569..acf4767b2 100644 --- a/functions/package-lock.json +++ b/functions/package-lock.json @@ -22,7 +22,7 @@ "firebase-functions-test": "^0.3.3" }, "engines": { - "node": "18" + "node": "20" } }, "node_modules/@babel/runtime": { diff --git a/functions/package.json b/functions/package.json index a35c49a6e..a3b84f409 100644 --- a/functions/package.json +++ b/functions/package.json @@ -11,7 +11,7 @@ "logs": "firebase functions:log" }, "engines": { - "node": "18" + "node": "20" }, "dependencies": { "cors": "^2.8.5", diff --git a/package-lock.json b/package-lock.json index 61eb8bcf2..7b052389a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -72,7 +72,7 @@ "vite": "^4.5.5" }, "engines": { - "node": "18" + "node": "20" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index bcdcb30a5..34562d7aa 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "export_mock_data": "firebase emulators:export ./mock_data" }, "engines": { - "node": "18" + "node": "20" }, "dependencies": { "@oslokommune/punkt-vue2": "^9.2.6",