From 8d39fdf4ca74d10548344230df4d64b2fac70e83 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Wed, 31 Jul 2024 16:47:27 -0400 Subject: [PATCH 1/3] Bump `typescript` from `~5.0.4` to `~5.1.6` --- package.json | 2 +- packages/accounts-controller/package.json | 2 +- packages/address-book-controller/package.json | 2 +- packages/announcement-controller/package.json | 2 +- packages/approval-controller/package.json | 2 +- packages/assets-controllers/package.json | 2 +- packages/base-controller/package.json | 2 +- packages/build-utils/package.json | 2 +- packages/chain-controller/package.json | 2 +- packages/composable-controller/package.json | 2 +- packages/controller-utils/package.json | 2 +- packages/ens-controller/package.json | 2 +- packages/eth-json-rpc-provider/package.json | 2 +- packages/gas-fee-controller/package.json | 2 +- packages/json-rpc-engine/package.json | 2 +- .../json-rpc-middleware-stream/package.json | 2 +- packages/keyring-controller/package.json | 2 +- packages/logging-controller/package.json | 2 +- packages/message-manager/package.json | 2 +- packages/name-controller/package.json | 2 +- packages/network-controller/package.json | 2 +- packages/notification-controller/package.json | 2 +- .../package.json | 2 +- .../permission-log-controller/package.json | 2 +- packages/phishing-controller/package.json | 2 +- packages/polling-controller/package.json | 2 +- packages/preferences-controller/package.json | 2 +- packages/profile-sync-controller/package.json | 2 +- .../queued-request-controller/package.json | 2 +- packages/rate-limit-controller/package.json | 2 +- .../selected-network-controller/package.json | 2 +- packages/signature-controller/package.json | 2 +- packages/transaction-controller/package.json | 2 +- .../user-operation-controller/package.json | 2 +- .../package-template/package.json | 2 +- yarn.lock | 88 ++++++++++++------- 36 files changed, 89 insertions(+), 69 deletions(-) diff --git a/package.json b/package.json index 11b6ef1f0a9..a95b49a4155 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "simple-git-hooks": "^2.8.0", "ts-node": "^10.9.1", "tsup": "^8.0.2", - "typescript": "~5.0.4", + "typescript": "~5.1.6", "yargs": "^17.7.2" }, "packageManager": "yarn@4.2.2", diff --git a/packages/accounts-controller/package.json b/packages/accounts-controller/package.json index 6bdecbda85d..a5a5f140e30 100644 --- a/packages/accounts-controller/package.json +++ b/packages/accounts-controller/package.json @@ -63,7 +63,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/keyring-controller": "^17.0.0", diff --git a/packages/address-book-controller/package.json b/packages/address-book-controller/package.json index 261e6ff4782..79e7b92ef4d 100644 --- a/packages/address-book-controller/package.json +++ b/packages/address-book-controller/package.json @@ -53,7 +53,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/announcement-controller/package.json b/packages/announcement-controller/package.json index f09ef27127d..0109a1a9c2f 100644 --- a/packages/announcement-controller/package.json +++ b/packages/announcement-controller/package.json @@ -51,7 +51,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/approval-controller/package.json b/packages/approval-controller/package.json index 2d81c4195a0..d80653a8f8c 100644 --- a/packages/approval-controller/package.json +++ b/packages/approval-controller/package.json @@ -55,7 +55,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/assets-controllers/package.json b/packages/assets-controllers/package.json index 678df63f39e..c2cc5b3b8c1 100644 --- a/packages/assets-controllers/package.json +++ b/packages/assets-controllers/package.json @@ -86,7 +86,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/accounts-controller": "^18.0.0", diff --git a/packages/base-controller/package.json b/packages/base-controller/package.json index da3905bbb05..4d36b83a0ea 100644 --- a/packages/base-controller/package.json +++ b/packages/base-controller/package.json @@ -53,7 +53,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/build-utils/package.json b/packages/build-utils/package.json index efce007bdb7..43cc27a6729 100644 --- a/packages/build-utils/package.json +++ b/packages/build-utils/package.json @@ -53,7 +53,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/chain-controller/package.json b/packages/chain-controller/package.json index b02304f5c09..2ff22bea1b3 100644 --- a/packages/chain-controller/package.json +++ b/packages/chain-controller/package.json @@ -59,7 +59,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/composable-controller/package.json b/packages/composable-controller/package.json index e6ad7321526..40285168d85 100644 --- a/packages/composable-controller/package.json +++ b/packages/composable-controller/package.json @@ -54,7 +54,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/controller-utils/package.json b/packages/controller-utils/package.json index f53c85de070..6e5efa7d35d 100644 --- a/packages/controller-utils/package.json +++ b/packages/controller-utils/package.json @@ -60,7 +60,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/ens-controller/package.json b/packages/ens-controller/package.json index b9502b360c3..2e138e2171a 100644 --- a/packages/ens-controller/package.json +++ b/packages/ens-controller/package.json @@ -56,7 +56,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/network-controller": "^20.0.0" diff --git a/packages/eth-json-rpc-provider/package.json b/packages/eth-json-rpc-provider/package.json index 90ebce2c458..442c79fee96 100644 --- a/packages/eth-json-rpc-provider/package.json +++ b/packages/eth-json-rpc-provider/package.json @@ -64,7 +64,7 @@ "jest-it-up": "^2.0.2", "ts-jest": "^27.1.4", "typedoc": "^0.24.8", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/gas-fee-controller/package.json b/packages/gas-fee-controller/package.json index 72b377dfe73..117fc82ed95 100644 --- a/packages/gas-fee-controller/package.json +++ b/packages/gas-fee-controller/package.json @@ -65,7 +65,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/network-controller": "^20.0.0" diff --git a/packages/json-rpc-engine/package.json b/packages/json-rpc-engine/package.json index c40cf879ee6..05e8c8d3594 100644 --- a/packages/json-rpc-engine/package.json +++ b/packages/json-rpc-engine/package.json @@ -63,7 +63,7 @@ "jest-it-up": "^2.0.2", "ts-jest": "^27.1.4", "typedoc": "^0.24.8", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/json-rpc-middleware-stream/package.json b/packages/json-rpc-middleware-stream/package.json index 30224db6d54..8a2eb7a6b40 100644 --- a/packages/json-rpc-middleware-stream/package.json +++ b/packages/json-rpc-middleware-stream/package.json @@ -57,7 +57,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4", + "typescript": "~5.1.6", "webextension-polyfill-ts": "^0.26.0" }, "engines": { diff --git a/packages/keyring-controller/package.json b/packages/keyring-controller/package.json index ac7f7357c86..074cce99f33 100644 --- a/packages/keyring-controller/package.json +++ b/packages/keyring-controller/package.json @@ -70,7 +70,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4", + "typescript": "~5.1.6", "uuid": "^8.3.2" }, "engines": { diff --git a/packages/logging-controller/package.json b/packages/logging-controller/package.json index b7b6f548073..d7ad99fb136 100644 --- a/packages/logging-controller/package.json +++ b/packages/logging-controller/package.json @@ -53,7 +53,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/message-manager/package.json b/packages/message-manager/package.json index c08174e11fd..8f0a441c94e 100644 --- a/packages/message-manager/package.json +++ b/packages/message-manager/package.json @@ -57,7 +57,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/name-controller/package.json b/packages/name-controller/package.json index 4fb59544044..937a3de4e0a 100644 --- a/packages/name-controller/package.json +++ b/packages/name-controller/package.json @@ -55,7 +55,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/network-controller/package.json b/packages/network-controller/package.json index e0033dfdb05..55cf7be05e3 100644 --- a/packages/network-controller/package.json +++ b/packages/network-controller/package.json @@ -72,7 +72,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/notification-controller/package.json b/packages/notification-controller/package.json index 7b7edce1a84..3cb9bcaa718 100644 --- a/packages/notification-controller/package.json +++ b/packages/notification-controller/package.json @@ -53,7 +53,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/notification-services-controller/package.json b/packages/notification-services-controller/package.json index 1fe81246908..0ef6b2be7f1 100644 --- a/packages/notification-services-controller/package.json +++ b/packages/notification-services-controller/package.json @@ -64,7 +64,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/keyring-controller": "^17.0.0", diff --git a/packages/permission-log-controller/package.json b/packages/permission-log-controller/package.json index 84eb8d880c4..4572d2d3f96 100644 --- a/packages/permission-log-controller/package.json +++ b/packages/permission-log-controller/package.json @@ -56,7 +56,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/phishing-controller/package.json b/packages/phishing-controller/package.json index a215d7eed4b..93980b0d323 100644 --- a/packages/phishing-controller/package.json +++ b/packages/phishing-controller/package.json @@ -58,7 +58,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/polling-controller/package.json b/packages/polling-controller/package.json index 77daddd97dd..559b891c57a 100644 --- a/packages/polling-controller/package.json +++ b/packages/polling-controller/package.json @@ -58,7 +58,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/network-controller": "^20.0.0" diff --git a/packages/preferences-controller/package.json b/packages/preferences-controller/package.json index 73d1347ae2d..a542adb6399 100644 --- a/packages/preferences-controller/package.json +++ b/packages/preferences-controller/package.json @@ -54,7 +54,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/keyring-controller": "^17.0.0" diff --git a/packages/profile-sync-controller/package.json b/packages/profile-sync-controller/package.json index e81dc89cedc..1b1c0daa917 100644 --- a/packages/profile-sync-controller/package.json +++ b/packages/profile-sync-controller/package.json @@ -64,7 +64,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/keyring-controller": "^17.0.0", diff --git a/packages/queued-request-controller/package.json b/packages/queued-request-controller/package.json index cbbd4b199c4..fec74e9656b 100644 --- a/packages/queued-request-controller/package.json +++ b/packages/queued-request-controller/package.json @@ -62,7 +62,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/network-controller": "^20.0.0", diff --git a/packages/rate-limit-controller/package.json b/packages/rate-limit-controller/package.json index 04109709a2e..6046f74415f 100644 --- a/packages/rate-limit-controller/package.json +++ b/packages/rate-limit-controller/package.json @@ -53,7 +53,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "^18.18 || >=20" diff --git a/packages/selected-network-controller/package.json b/packages/selected-network-controller/package.json index 9b4582e14a8..fb836c0ac50 100644 --- a/packages/selected-network-controller/package.json +++ b/packages/selected-network-controller/package.json @@ -60,7 +60,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/network-controller": "^20.0.0", diff --git a/packages/signature-controller/package.json b/packages/signature-controller/package.json index 3131eaf7d10..2b182e8c65f 100644 --- a/packages/signature-controller/package.json +++ b/packages/signature-controller/package.json @@ -59,7 +59,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/approval-controller": "^7.0.0", diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index 1346adcdb8c..df26eacc5a5 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -82,7 +82,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@babel/runtime": "^7.23.9", diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index 3dde35b9147..70f21db5e91 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -67,7 +67,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/approval-controller": "^7.0.0", diff --git a/scripts/create-package/package-template/package.json b/scripts/create-package/package-template/package.json index c3dd0810926..f9c715776f3 100644 --- a/scripts/create-package/package-template/package.json +++ b/scripts/create-package/package-template/package.json @@ -47,7 +47,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "engines": { "node": "NODE_VERSIONS" diff --git a/yarn.lock b/yarn.lock index 4a0966e2cdf..de4c5e34ae2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2218,7 +2218,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" peerDependencies: "@metamask/keyring-controller": ^17.0.0 @@ -2251,7 +2251,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -2267,7 +2267,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -2299,7 +2299,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -2349,7 +2349,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" peerDependencies: "@metamask/accounts-controller": ^18.0.0 @@ -2415,7 +2415,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -2442,7 +2442,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -2475,7 +2475,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" languageName: unknown linkType: soft @@ -2495,7 +2495,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -2544,7 +2544,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -2597,7 +2597,7 @@ __metadata: simple-git-hooks: "npm:^2.8.0" ts-node: "npm:^10.9.1" tsup: "npm:^8.0.2" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" yargs: "npm:^17.7.2" languageName: unknown linkType: soft @@ -2641,7 +2641,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" peerDependencies: "@metamask/network-controller": ^20.0.0 languageName: unknown @@ -2794,7 +2794,7 @@ __metadata: jest-it-up: "npm:^2.0.2" ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" languageName: unknown linkType: soft @@ -3023,7 +3023,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" peerDependencies: "@metamask/network-controller": ^20.0.0 @@ -3067,7 +3067,7 @@ __metadata: jest-it-up: "npm:^2.0.2" ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -3101,7 +3101,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" webextension-polyfill-ts: "npm:^0.26.0" languageName: unknown linkType: soft @@ -3166,7 +3166,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" languageName: unknown linkType: soft @@ -3184,7 +3184,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" languageName: unknown linkType: soft @@ -3206,7 +3206,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" languageName: unknown linkType: soft @@ -3233,7 +3233,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -3269,7 +3269,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" languageName: unknown linkType: soft @@ -3300,7 +3300,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -3328,7 +3328,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" peerDependencies: "@metamask/keyring-controller": ^17.0.0 @@ -3448,7 +3448,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -3471,7 +3471,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -3506,7 +3506,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" peerDependencies: "@metamask/network-controller": ^20.0.0 @@ -3538,7 +3538,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" peerDependencies: "@metamask/keyring-controller": ^17.0.0 languageName: unknown @@ -3569,7 +3569,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" peerDependencies: "@metamask/keyring-controller": ^17.0.0 "@metamask/snaps-controllers": ^9.3.0 @@ -3620,7 +3620,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" peerDependencies: "@metamask/network-controller": ^20.0.0 "@metamask/selected-network-controller": ^17.0.0 @@ -3641,7 +3641,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" languageName: unknown linkType: soft @@ -3693,7 +3693,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" peerDependencies: "@metamask/network-controller": ^20.0.0 "@metamask/permission-controller": ^11.0.0 @@ -3720,7 +3720,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" peerDependencies: "@metamask/approval-controller": ^7.0.0 "@metamask/keyring-controller": ^17.0.0 @@ -3967,7 +3967,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" peerDependencies: "@babel/runtime": ^7.23.9 @@ -4004,7 +4004,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" uuid: "npm:^8.3.2" peerDependencies: "@metamask/approval-controller": ^7.0.0 @@ -13004,6 +13004,16 @@ __metadata: languageName: node linkType: hard +"typescript@npm:~5.1.6": + version: 5.1.6 + resolution: "typescript@npm:5.1.6" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10/f347cde665cf43dc4c1c7d9821c7d9bbec3c3914f4bdd82ee490e9fb9f6d99036ed8666463b6a192dd005eeef333c5087d5931bdd51ec853436ff9a670a7417e + languageName: node + linkType: hard + "typescript@patch:typescript@npm%3A~5.0.4#optional!builtin": version: 5.0.4 resolution: "typescript@patch:typescript@npm%3A5.0.4#optional!builtin::version=5.0.4&hash=b5f058" @@ -13014,6 +13024,16 @@ __metadata: languageName: node linkType: hard +"typescript@patch:typescript@npm%3A~5.1.6#optional!builtin": + version: 5.1.6 + resolution: "typescript@patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10/f5481fa3ba0eee8970f46708d13c05650a865ad093b586fc9573f425c64c57ca97e3308e110bb528deb3ccebe83f6fd7b5a8ac90018038da96326a9ccdf8e77c + languageName: node + linkType: hard + "unbox-primitive@npm:^1.0.2": version: 1.0.2 resolution: "unbox-primitive@npm:1.0.2" From 703d3c438042bcac5644c0a5f7e169fa6381df34 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Wed, 31 Jul 2024 16:48:27 -0400 Subject: [PATCH 2/3] Fix regression --- packages/rate-limit-controller/src/RateLimitController.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/rate-limit-controller/src/RateLimitController.ts b/packages/rate-limit-controller/src/RateLimitController.ts index 0753ab346b5..7ac65c5b55f 100644 --- a/packages/rate-limit-controller/src/RateLimitController.ts +++ b/packages/rate-limit-controller/src/RateLimitController.ts @@ -164,15 +164,15 @@ export class RateLimitController< } this.recordRequest(type, origin); - const implementation = this.implementations[type].method; + const implementation = this.implementations[type].method as ( + ...args: Parameters + ) => ReturnType; if (!implementation) { throw new Error('Invalid api type'); } - return implementation(...args) as ReturnType< - RateLimitedApis[ApiType]['method'] - >; + return implementation(...args); } /** From 13b94cc71a53210bc9af8230c75e310c48d245d9 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Thu, 1 Aug 2024 11:02:31 -0400 Subject: [PATCH 3/3] Fix missing typescript version bump in permission-controller --- packages/permission-controller/package.json | 2 +- yarn.lock | 22 +-------------------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/packages/permission-controller/package.json b/packages/permission-controller/package.json index 394a4f632a1..1605b87a516 100644 --- a/packages/permission-controller/package.json +++ b/packages/permission-controller/package.json @@ -60,7 +60,7 @@ "ts-jest": "^27.1.4", "typedoc": "^0.24.8", "typedoc-plugin-missing-exports": "^2.0.0", - "typescript": "~5.0.4" + "typescript": "~5.1.6" }, "peerDependencies": { "@metamask/approval-controller": "^7.0.0" diff --git a/yarn.lock b/yarn.lock index de4c5e34ae2..829fbfa2064 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3406,7 +3406,7 @@ __metadata: ts-jest: "npm:^27.1.4" typedoc: "npm:^0.24.8" typedoc-plugin-missing-exports: "npm:^2.0.0" - typescript: "npm:~5.0.4" + typescript: "npm:~5.1.6" peerDependencies: "@metamask/approval-controller": ^7.0.0 languageName: unknown @@ -12994,16 +12994,6 @@ __metadata: languageName: node linkType: hard -"typescript@npm:~5.0.4": - version: 5.0.4 - resolution: "typescript@npm:5.0.4" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10/e5c3adff09a138c0e27d13b5bb2b106ca17a162ffa945d66161669c265c65436309c5817358a2af1abb69d07440d358f8c1ed7cbb63a2c8680e19b9c268fe4ef - languageName: node - linkType: hard - "typescript@npm:~5.1.6": version: 5.1.6 resolution: "typescript@npm:5.1.6" @@ -13014,16 +13004,6 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A~5.0.4#optional!builtin": - version: 5.0.4 - resolution: "typescript@patch:typescript@npm%3A5.0.4#optional!builtin::version=5.0.4&hash=b5f058" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10/b1b62606c7ec75efe9edc61e195d9e69f0440cac1bcd111dfa864f839255f0d9a7b79869f2823559c608826fc0c9894d2917ae4063e0aa06f5d0784a35170497 - languageName: node - linkType: hard - "typescript@patch:typescript@npm%3A~5.1.6#optional!builtin": version: 5.1.6 resolution: "typescript@patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"