diff --git a/.circleci/config.yml b/.circleci/config.yml index 552aa3305509..88b08fb4a3df 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,13 +3,13 @@ version: 2.1 executors: node-browsers-small: docker: - - image: cimg/node:20.18-browsers + - image: cimg/node:22.12-browsers resource_class: small environment: NODE_OPTIONS: --max_old_space_size=2048 node-browsers-medium: docker: - - image: cimg/node:20.18-browsers + - image: cimg/node:22.12-browsers resource_class: medium environment: NODE_OPTIONS: --max_old_space_size=3072 @@ -21,7 +21,7 @@ executors: NODE_OPTIONS: --max_old_space_size=6144 node-browsers-medium-plus: docker: - - image: cimg/node:20.18-browsers + - image: cimg/node:22.12-browsers resource_class: medium+ environment: NODE_OPTIONS: --max_old_space_size=4096 diff --git a/.depcheckrc.yml b/.depcheckrc.yml index 5260be984692..66d4fdb5d5fd 100644 --- a/.depcheckrc.yml +++ b/.depcheckrc.yml @@ -24,7 +24,7 @@ ignores: - '@metamask/phishing-warning' # statically hosted as part of some e2e tests - '@metamask/test-dapp' - '@metamask/design-tokens' # Only imported in index.css - - '@tsconfig/node20' # required dynamically by TS, used in tsconfig.json + - '@tsconfig/node22' # required dynamically by TS, used in tsconfig.json - '@sentry/cli' # invoked as `sentry-cli` - 'chromedriver' - 'depcheck' # ooo meta diff --git a/.nvmrc b/.nvmrc index bd67975ba627..e85bf595bbfa 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.18 +v22.12 diff --git a/package.json b/package.json index c3e6ff9eac24..b2bff9035f87 100644 --- a/package.json +++ b/package.json @@ -503,7 +503,7 @@ "@testing-library/react": "^10.4.8", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.4.3", - "@tsconfig/node20": "^20.1.2", + "@tsconfig/node22": "^22.0.0", "@types/babelify": "^7.3.7", "@types/browserify": "^12.0.37", "@types/chrome": "^0.0.268", diff --git a/tsconfig.json b/tsconfig.json index 8b34fe02b4a2..820a583033f0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ // directories that make sense for their environment. // I think this would eliminate a lot of eslint overrides complexity // In the meantime, we need DOM libs and should target the ES version in - // "@tsconfig/node20/tsconfig.json" (`libs` here overwrites extends's `libs`) + // "@tsconfig/node22/tsconfig.json" (`libs` here overwrites extends's `libs`) "lib": ["DOM", "es2023"], // we only use tsc for type checking (yarn lint:tsc) "noEmit": true, @@ -30,7 +30,7 @@ "**/*.stories.ts" ], // this should match our node version in .nvmrc - "extends": "@tsconfig/node20/tsconfig.json", + "extends": "@tsconfig/node22/tsconfig.json", "include": [ "app", "development", diff --git a/yarn.lock b/yarn.lock index 0b959e498c51..a7af8139233f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10062,10 +10062,10 @@ __metadata: languageName: node linkType: hard -"@tsconfig/node20@npm:^20.1.2": - version: 20.1.2 - resolution: "@tsconfig/node20@npm:20.1.2" - checksum: 10/fc126e15f0817bd328c15bd6be7972f01ef4d55ceb493c7a83ccb9dd545e39f218711f330e3df4072b116b11180c07943da2b2bfcd7adc58414cb586db52a4c8 +"@tsconfig/node22@npm:^22.0.0": + version: 22.0.0 + resolution: "@tsconfig/node22@npm:22.0.0" + checksum: 10/9fc45789304640e1e37e1f1e04c02dca593c290d4f1cb55af7e9cab799fb2c6356e1cc15ee9f140185591a81f491a4c7f2d6c08c1e5a3d758658ba69f1afee6d languageName: node linkType: hard @@ -26691,7 +26691,7 @@ __metadata: "@testing-library/react-hooks": "npm:^8.0.1" "@testing-library/user-event": "npm:^14.4.3" "@trezor/connect-web": "npm:^9.4.0" - "@tsconfig/node20": "npm:^20.1.2" + "@tsconfig/node22": "npm:^22.0.0" "@types/babelify": "npm:^7.3.7" "@types/browserify": "npm:^12.0.37" "@types/chrome": "npm:^0.0.268"