From 24c41cd2e6ac2507f4dc34e6e9a547eb7a29eb5f Mon Sep 17 00:00:00 2001 From: Dominik Henneke Date: Fri, 4 Aug 2023 14:28:49 +0200 Subject: [PATCH] Upgrade to Node.js 20 Signed-off-by: Dominik Henneke --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- package.json | 6 +++++- yarn.lock | 20 +++++--------------- 4 files changed, 13 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 880ccc9..a798fdb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '20' cache: 'yarn' - name: yarn install @@ -122,7 +122,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '20' cache: 'yarn' - name: yarn install diff --git a/README.md b/README.md index aac56ac..24d1b7e 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Check the following steps to develop for the widget: ### Requirements -You need to install Node.js (`>= 16.0.0`, prefer using an LTS version) and run +You need to install Node.js (`>= 20.0.0`, prefer using an LTS version) and run `yarn` to work on this package. The minimal Element version to use this widget is `1.11.8`. diff --git a/package.json b/package.json index 902f272..190e554 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,10 @@ "semantic-ui-react": "^2.1.4", "styled-components": "^5.3.6" }, + "engines": { + "node": ">=20.0.0", + "yarn": ">=1.22.1 <2.0.0" + }, "scripts": { "start": "cross-env HTTPS=true BROWSER=none WDS_SOCKET_PORT=0 craco start", "dev": "cross-env BROWSER=none ESLINT_NO_DEV_ERRORS=true TSC_COMPILE_ON_ERROR=true WDS_SOCKET_PORT=0 craco start", @@ -93,7 +97,7 @@ "@types/jest": "^27.5.2", "@types/lodash": "^4.14.191", "@types/luxon": "^3.2.0", - "@types/node": "^16.18.14", + "@types/node": "^20.4.6", "@types/react": "^17.0.52", "@types/react-beautiful-dnd": "^13.1.2", "@types/react-dom": "^17.0.18", diff --git a/yarn.lock b/yarn.lock index f8ad3cf..c60e630 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2500,21 +2500,16 @@ resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c" integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ== -"@types/node@*": - version "17.0.21" - resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.21.tgz#864b987c0c68d07b4345845c3e63b75edd143644" - integrity sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ== +"@types/node@*", "@types/node@^20.4.6": + version "20.4.7" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.4.7.tgz#74d323a93f1391a63477b27b9aec56669c98b2ab" + integrity sha512-bUBrPjEry2QUTsnuEjzjbS7voGWCc30W0qzgMf90GPeDGFRakvrz47ju+oqDAKCXLUCe39u57/ORMl/O/04/9g== "@types/node@^12.7.1": version "12.20.52" resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.52.tgz#2fd2dc6bfa185601b15457398d4ba1ef27f81251" integrity sha512-cfkwWw72849SNYp3Zx0IcIs25vABmFh73xicxhCkTcvtZQeIez15PpwQN8fY3RD7gv1Wrxlc9MEtfMORZDEsGw== -"@types/node@^16.18.14": - version "16.18.14" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.14.tgz#5465ce598486a703caddbefe8603f8a2cffa3461" - integrity sha512-wvzClDGQXOCVNU4APPopC2KtMYukaF1MN/W3xAmslx22Z4/IF1/izDMekuyoUlwfnDHYCIZGaj7jMwnJKBTxKw== - "@types/normalize-package-data@^2.4.0": version "2.4.1" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" @@ -3052,12 +3047,7 @@ acorn@^7.0.0, acorn@^7.1.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -acorn@^8.2.4, acorn@^8.4.1, acorn@^8.5.0, acorn@^8.8.0: - version "8.8.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" - integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== - -acorn@^8.7.1: +acorn@^8.2.4, acorn@^8.4.1, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.8.0: version "8.8.2" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a" integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==