From 47ef55a35668454d369a792028ad6416e7cfa9d6 Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Sat, 23 Dec 2023 11:46:33 +0100 Subject: [PATCH] Upgrade NodeJS to 20 --- .github/workflows/ci_test.yml | 2 +- .github/workflows/deploy_development.yml | 2 +- .github/workflows/deploy_production.yml | 2 +- README.md | 2 +- package-lock.json | 33 +++++++++++++++++++----- package.json | 5 +++- 6 files changed, 34 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index 6f747d3..67051de 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -20,7 +20,7 @@ jobs: - name: Setup Node JS uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: 'npm' - name: Install dependencies run: npm install diff --git a/.github/workflows/deploy_development.yml b/.github/workflows/deploy_development.yml index ce9af2e..364ebc0 100644 --- a/.github/workflows/deploy_development.yml +++ b/.github/workflows/deploy_development.yml @@ -26,7 +26,7 @@ jobs: - name: Setup Node JS uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: 'npm' - name: Install dependencies run: npm install diff --git a/.github/workflows/deploy_production.yml b/.github/workflows/deploy_production.yml index 6447733..65f1d8f 100644 --- a/.github/workflows/deploy_production.yml +++ b/.github/workflows/deploy_production.yml @@ -26,7 +26,7 @@ jobs: - name: Setup Node JS uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: 'npm' - name: Install dependencies run: npm install diff --git a/README.md b/README.md index 91e7428..02b043d 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Status: One way to set up is: 1. Clone repo and open terminal in the project directory -2. Install Node version 18 or use [Node version manager](https://github.com/nvm-sh/nvm) +2. Install Node version 20 or use [Node version manager](https://github.com/nvm-sh/nvm) 3. Run `npm install` Second way is if you are using VS Code and have Docker installed you can use devContainer extension. diff --git a/package-lock.json b/package-lock.json index 04a0f35..be9e6f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ }, "devDependencies": { "@beyondtracks/spritezero-cli": "^2.3.1", - "@types/node": "^18.7.18", + "@types/node": "^20.10.5", "@types/react": "^18.0.20", "@types/react-dom": "^18.0.6", "@types/react-image-gallery": "^1.2.0", @@ -48,6 +48,9 @@ "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "node-sass": "^7.0.3" + }, + "engines": { + "node": ">=20.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -4139,9 +4142,12 @@ "devOptional": true }, "node_modules/@types/node": { - "version": "18.11.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.3.tgz", - "integrity": "sha512-fNjDQzzOsZeKZu5NATgXUPsaFaTxeRgFXoosrHivTl8RGeV733OLawXsGfEk9a8/tySyZUyiZ6E8LcjPFZ2y1A==" + "version": "20.10.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz", + "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==", + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -17938,6 +17944,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", @@ -22072,9 +22083,12 @@ "devOptional": true }, "@types/node": { - "version": "18.11.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.3.tgz", - "integrity": "sha512-fNjDQzzOsZeKZu5NATgXUPsaFaTxeRgFXoosrHivTl8RGeV733OLawXsGfEk9a8/tySyZUyiZ6E8LcjPFZ2y1A==" + "version": "20.10.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz", + "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==", + "requires": { + "undici-types": "~5.26.4" + } }, "@types/normalize-package-data": { "version": "2.4.1", @@ -32251,6 +32265,11 @@ "which-boxed-primitive": "^1.0.2" } }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", diff --git a/package.json b/package.json index a886ff8..2b2c348 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,9 @@ "store": "^2.0.12", "typescript": "^4.8.3" }, + "engines": { + "node": ">=20.0.0" + }, "scripts": { "start": "cross-env BROWSER=none react-scripts start", "build": "react-scripts build", @@ -57,7 +60,7 @@ }, "devDependencies": { "@beyondtracks/spritezero-cli": "^2.3.1", - "@types/node": "^18.7.18", + "@types/node": "^20.10.5", "@types/react": "^18.0.20", "@types/react-dom": "^18.0.6", "@types/react-image-gallery": "^1.2.0",