Skip to content

Commit

Permalink
chore(repo): upgrade to latest Node 22 LTS (#15749)
Browse files Browse the repository at this point in the history
* chore(repo): upgrade to latest Node 22 LTS

* fix(connect-explorer): workaround for lottie ssr in new node

---------

Co-authored-by: Tomas Martykan <[email protected]>
  • Loading branch information
Nodonisko and martykan authored Dec 6, 2024
1 parent 7d8aac6 commit 370c46e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.12.2
22.11.0
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"repository": "https://github.com/trezor/trezor-suite.git",
"license": "SEE LICENSE IN LICENSE.md",
"engines": {
"node": "18",
"node": "22",
"yarn": ">=4"
},
"workspaces": {
Expand Down Expand Up @@ -94,7 +94,7 @@
"bcrypto": "5.4.0",
"react": "18.2.0",
"electron": "33.1.0",
"@types/node": "20.12.7",
"@types/node": "22.10.1",
"@types/react": "18.2.55",
"bn.js": "5.2.1",
"node-gyp": "10.2.0",
Expand All @@ -114,7 +114,7 @@
"@suite-common/wallet-types": "workspace:*",
"@trezor/eslint": "workspace:*",
"@types/jest": "29.5.12",
"@types/node": "20.12.7",
"@types/node": "22.10.1",
"@types/prettier": "^3.0.0",
"@types/semver": "^7.5.6",
"@types/tar": "^6.1.11",
Expand Down
6 changes: 3 additions & 3 deletions packages/connect-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "concurrently \"next -p 8088\" \"PORT=8089 NO_HTTPS=true yarn workspace @trezor/connect-web dev\"",
"dev:explorer": "next -p 8088",
"build": "next build && rm -rf build && mv out build",
"dev": "concurrently \"yarn dev:explorer\" \"PORT=8089 NO_HTTPS=true yarn workspace @trezor/connect-web dev\"",
"dev:explorer": "NODE_OPTIONS=\"--no-experimental-global-navigator\" next -p 8088",
"build": "NODE_OPTIONS=\"--no-experimental-global-navigator\" next build && rm -rf build && mv out build",
"build:webextension": "BUILD_TARGET=webextension yarn build && yarn g:rimraf build-webextension && TS_NODE_PROJECT=\"tsconfig.json\" yarn webpack --config ./webpack/webextension.webpack.config.ts && bash ./webpack/replace-next-filenames.sh",
"lint:styles": "npx stylelint './src/**/*{.ts,.tsx}' --cache --config ../../.stylelintrc",
"type-check": "yarn g:tsc --build tsconfig.json"
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let
# ATTENTION: this does not match the actual required version defined in packages/suite-desktop/package.json
# (the required version is not yet in NixOS repository)
electron = electron_31;
nodejs = nodejs_20;
nodejs = nodejs_22;
# use older gcc. 10.2.0 with glibc 2.32 for node_modules bindings.
# electron-builder is packing the app with glibc 2.32, bindings should not be compiled with newer version.
gccPkgs = import (builtins.fetchTarball {
Expand Down
2 changes: 1 addition & 1 deletion suite-native/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"@suite-common/test-utils": "workspace:^",
"@trezor/connect-mobile": "workspace:^",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.24",
"@types/node": "22.10.1",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"babel-plugin-transform-remove-console": "^6.9.4",
"detox": "^20.25.6",
Expand Down
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9910,7 +9910,7 @@ __metadata:
"@trezor/theme": "workspace:*"
"@trezor/trezor-user-env-link": "workspace:*"
"@types/jest": "npm:^29.5.12"
"@types/node": "npm:^20.11.24"
"@types/node": "npm:22.10.1"
"@whatwg-node/events": "npm:0.1.2"
abortcontroller-polyfill: "npm:1.7.6"
babel-plugin-transform-inline-environment-variables: "npm:^0.4.4"
Expand Down Expand Up @@ -13810,12 +13810,12 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:20.12.7":
version: 20.12.7
resolution: "@types/node@npm:20.12.7"
"@types/node@npm:22.10.1":
version: 22.10.1
resolution: "@types/node@npm:22.10.1"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 10/b4a28a3b593a9bdca5650880b6a9acef46911d58cf7cfa57268f048e9a7157a7c3196421b96cea576850ddb732e3b54bc982c8eb5e1e5ef0635d4424c2fce801
undici-types: "npm:~6.20.0"
checksum: 10/c802a526da2f3fa3ccefd00a71244e7cb825329951719e79e8fec62b1dbc2855388c830489770611584665ce10be23c05ed585982038b24924e1ba2c2cce03fd
languageName: node
linkType: hard

Expand Down Expand Up @@ -40254,7 +40254,7 @@ __metadata:
"@suite-common/wallet-types": "workspace:*"
"@trezor/eslint": "workspace:*"
"@types/jest": "npm:29.5.12"
"@types/node": "npm:20.12.7"
"@types/node": "npm:22.10.1"
"@types/prettier": "npm:^3.0.0"
"@types/semver": "npm:^7.5.6"
"@types/tar": "npm:^6.1.11"
Expand Down Expand Up @@ -40870,10 +40870,10 @@ __metadata:
languageName: node
linkType: hard

"undici-types@npm:~5.26.4":
version: 5.26.5
resolution: "undici-types@npm:5.26.5"
checksum: 10/0097779d94bc0fd26f0418b3a05472410408877279141ded2bd449167be1aed7ea5b76f756562cb3586a07f251b90799bab22d9019ceba49c037c76445f7cddd
"undici-types@npm:~6.20.0":
version: 6.20.0
resolution: "undici-types@npm:6.20.0"
checksum: 10/583ac7bbf4ff69931d3985f4762cde2690bb607844c16a5e2fbb92ed312fe4fa1b365e953032d469fa28ba8b224e88a595f0b10a449332f83fa77c695e567dbe
languageName: node
linkType: hard

Expand Down

0 comments on commit 370c46e

Please sign in to comment.