Skip to content

Commit

Permalink
Upgrade to Node.js 20
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
  • Loading branch information
dhenneke committed Oct 17, 2023
1 parent da4d6b0 commit cabc33d
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 14 deletions.
9 changes: 9 additions & 0 deletions .changeset/dull-cougars-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@matrix-widget-toolkit/semantic-ui': patch
'@matrix-widget-toolkit/testing': patch
'@matrix-widget-toolkit/react': patch
'@matrix-widget-toolkit/api': patch
'@matrix-widget-toolkit/mui': patch
---

Switched Node.js version to 20. We encourage all consuming projects to also switch to this version.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'

Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Check the following steps to develop for the packages:

### 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.

### Installation
Expand Down
2 changes: 1 addition & 1 deletion example-widget-mui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^27.5.2",
"@types/jest-axe": "^3.5.5",
"@types/node": "^16.18.42",
"@types/node": "^20.8.6",
"@types/react": "^17.0.45",
"@types/react-dom": "^17.0.16",
"i18next-parser": "^8.6.0",
Expand Down
2 changes: 1 addition & 1 deletion example-widget-semantic-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.42",
"@types/node": "^20.8.6",
"@types/react": "^17.0.45",
"@types/react-dom": "^17.0.16",
"i18next-parser": "^8.6.0",
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@
"prettier --write"
]
},
"engines": {
"node": ">=20",
"yarn": ">=1.22.1 <2.0.0"
},
"dependencies": {}
}
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@craco/craco": "^7.1.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.42",
"@types/node": "^20.8.6",
"@types/qs": "^6.9.7",
"typescript": "^5.1.6"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@types/jest": "^27.5.2",
"@types/jest-axe": "^3.5.5",
"@types/lodash": "^4.14.197",
"@types/node": "^16.18.42",
"@types/node": "^20.8.6",
"@types/react": "^17.0.45",
"copyfiles": "^2.4.1",
"i18next-parser": "^8.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.42",
"@types/node": "^20.8.6",
"@types/react": "^17.0.45",
"react-scripts": "5.0.1",
"typescript": "^5.1.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/semantic-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.42",
"@types/node": "^20.8.6",
"@types/react": "^17.0.45",
"react": "^17.0.2",
"copyfiles": "^2.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@craco/craco": "^7.1.0",
"@types/jest": "^27.5.2",
"@types/lodash": "^4.14.197",
"@types/node": "^16.18.42",
"@types/node": "^20.8.6",
"typescript": "^5.1.6"
},
"scripts": {
Expand Down
15 changes: 11 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2790,10 +2790,12 @@
resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197"
integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==

"@types/node@*", "@types/node@^16.18.42":
version "16.18.42"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.42.tgz#3530c4e6e3f1d90e8494ef37d02fdfe5615ff4b3"
integrity sha512-IrFfX/1oxDFQNpQzgt/BoP/hbMuQT68DPsNwzJmw8y3K8lfnPp0XymVN9GLFz+LobFmJGZ/peRzq+9wXYfCCtw==
"@types/node@*", "@types/node@^20.8.6":
version "20.8.6"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.8.6.tgz#0dbd4ebcc82ad0128df05d0e6f57e05359ee47fa"
integrity sha512-eWO4K2Ji70QzKUqRy6oyJWUeB7+g2cRagT3T/nxYibYcT4y2BDL8lqolRXjTHmkZCdJfIPaY73KbJAZmcryxTQ==
dependencies:
undici-types "~5.25.1"

"@types/node@^12.7.1":
version "12.20.37"
Expand Down Expand Up @@ -11751,6 +11753,11 @@ underscore.string@~3.3.4:
sprintf-js "^1.0.3"
util-deprecate "^1.0.2"

undici-types@~5.25.1:
version "5.25.3"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.25.3.tgz#e044115914c85f0bcbb229f346ab739f064998c3"
integrity sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==

unicode-canonical-property-names-ecmascript@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc"
Expand Down

0 comments on commit cabc33d

Please sign in to comment.