diff --git a/package.json b/package.json index 2f8d406dd2..2846b19720 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@typescript-eslint/parser": "^4.29.2", "eslint": "^7.32.0", "eslint-config-prettier": "^8.1.0", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "scripts": { "format": "prettier --write .", diff --git a/ui/@build/rollupProject/package.json b/ui/@build/rollupProject/package.json index 251b0a7aca..7c09aaf2d9 100644 --- a/ui/@build/rollupProject/package.json +++ b/ui/@build/rollupProject/package.json @@ -13,6 +13,6 @@ "rollup": "^2.56.2", "rollup-plugin-terser": "^7.0.2", "tslib": "^2.3.1", - "typescript": "^4.3.5" + "typescript": "^4.4.3" } } diff --git a/ui/analyse/package.json b/ui/analyse/package.json index 3f4051a368..ab8e46c5b4 100644 --- a/ui/analyse/package.json +++ b/ui/analyse/package.json @@ -22,7 +22,7 @@ "highcharts": "=4.2.5", "prop-types": "^15.7.2", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "@badrap/result": "^0.2", diff --git a/ui/ceval/package.json b/ui/ceval/package.json index 13c55833f3..c0211af516 100644 --- a/ui/ceval/package.json +++ b/ui/ceval/package.json @@ -22,7 +22,7 @@ "devDependencies": { "@types/cash": "8.0.0", "@types/lichess": "2.0.0", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "chessops": "^0.10.0", diff --git a/ui/challenge/package.json b/ui/challenge/package.json index fd7d3a037f..da62e5423a 100644 --- a/ui/challenge/package.json +++ b/ui/challenge/package.json @@ -13,7 +13,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "scripts": { "dev": "rollup --config", diff --git a/ui/chat/package.json b/ui/chat/package.json index 9be2c63129..f6f4ec2fe4 100644 --- a/ui/chat/package.json +++ b/ui/chat/package.json @@ -23,6 +23,6 @@ "@types/cash": "8.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" } } diff --git a/ui/chess/package.json b/ui/chess/package.json index d899a79e3b..26b67dd3c9 100644 --- a/ui/chess/package.json +++ b/ui/chess/package.json @@ -35,6 +35,6 @@ }, "devDependencies": { "@types/lichess": "2.0.0", - "typescript": "^4.3.5" + "typescript": "^4.4.3" } } diff --git a/ui/cli/package.json b/ui/cli/package.json index a31136737b..504517cec2 100644 --- a/ui/cli/package.json +++ b/ui/cli/package.json @@ -12,7 +12,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "scripts": { "dev": "rollup --config", diff --git a/ui/common/package.json b/ui/common/package.json index c8ee5cc0cd..4f7c2dcd75 100644 --- a/ui/common/package.json +++ b/ui/common/package.json @@ -36,6 +36,6 @@ "@types/cash": "8.0.0", "@types/dom-screen-wake-lock": "1.0.0", "@types/lichess": "2.0.0", - "typescript": "^4.3.5" + "typescript": "^4.4.3" } } diff --git a/ui/dasher/package.json b/ui/dasher/package.json index b529eb1e5b..4d56d9ae3b 100644 --- a/ui/dasher/package.json +++ b/ui/dasher/package.json @@ -14,7 +14,7 @@ "@types/cash": "8.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "scripts": { "dev": "rollup --config", diff --git a/ui/dgt/package.json b/ui/dgt/package.json index fb9665ea9d..472857b4ae 100644 --- a/ui/dgt/package.json +++ b/ui/dgt/package.json @@ -9,7 +9,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "chessops": "^0.10.0" diff --git a/ui/editor/package.json b/ui/editor/package.json index 613a51e860..170b778604 100644 --- a/ui/editor/package.json +++ b/ui/editor/package.json @@ -15,7 +15,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "chessground": "^8.1.7", diff --git a/ui/game/package.json b/ui/game/package.json index f23a81391a..acc329f39f 100644 --- a/ui/game/package.json +++ b/ui/game/package.json @@ -36,6 +36,6 @@ }, "devDependencies": { "@types/lichess": "2.0.0", - "typescript": "^4.3.5" + "typescript": "^4.4.3" } } diff --git a/ui/insight/package.json b/ui/insight/package.json index 16e5d791a2..09c85a0d53 100644 --- a/ui/insight/package.json +++ b/ui/insight/package.json @@ -20,7 +20,7 @@ "@types/lichess": "2.0.0", "highcharts": "=4.2.5", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "common": "2.0.0", diff --git a/ui/learn/package.json b/ui/learn/package.json index 3ecad84700..06c5527982 100644 --- a/ui/learn/package.json +++ b/ui/learn/package.json @@ -17,7 +17,7 @@ "@types/cash": "8.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "@types/chess.js": "=0.10.1", diff --git a/ui/lobby/package.json b/ui/lobby/package.json index ac3e4d1789..28f40dbde7 100644 --- a/ui/lobby/package.json +++ b/ui/lobby/package.json @@ -18,7 +18,7 @@ "@types/debounce-promise": "^3.1.4", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "chessground": "^8.1.7", diff --git a/ui/msg/package.json b/ui/msg/package.json index c44544776f..cfa83a89f3 100644 --- a/ui/msg/package.json +++ b/ui/msg/package.json @@ -10,7 +10,7 @@ "@types/cash": "8.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "common": "2.0.0", diff --git a/ui/notify/package.json b/ui/notify/package.json index 3ffe7cb588..944738d32a 100644 --- a/ui/notify/package.json +++ b/ui/notify/package.json @@ -13,7 +13,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "scripts": { "dev": "rollup --config", diff --git a/ui/nvui/package.json b/ui/nvui/package.json index a119f3208f..ab1acfdfc4 100644 --- a/ui/nvui/package.json +++ b/ui/nvui/package.json @@ -30,7 +30,7 @@ "devDependencies": { "@types/cash": "8.0.0", "@types/lichess": "2.0.0", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "chess": "2.0.0", diff --git a/ui/palantir/package.json b/ui/palantir/package.json index f0ab018fdd..6f87139a59 100644 --- a/ui/palantir/package.json +++ b/ui/palantir/package.json @@ -17,7 +17,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "@types/webrtc": "^0.0.27", diff --git a/ui/puz/package.json b/ui/puz/package.json index b3f267a8d0..19bb04c10e 100644 --- a/ui/puz/package.json +++ b/ui/puz/package.json @@ -32,6 +32,6 @@ }, "devDependencies": { "@types/lichess": "2.0.0", - "typescript": "^4.3.5" + "typescript": "^4.4.3" } } diff --git a/ui/puzzle/package.json b/ui/puzzle/package.json index 45135d136e..4a49156871 100644 --- a/ui/puzzle/package.json +++ b/ui/puzzle/package.json @@ -17,7 +17,7 @@ "@types/chart.js": "^2.9.29", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "ceval": "2.0.0", diff --git a/ui/racer/package.json b/ui/racer/package.json index 378fa74c55..5c522dde0f 100644 --- a/ui/racer/package.json +++ b/ui/racer/package.json @@ -16,7 +16,7 @@ "@types/cash": "8.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "chess": "2.0.0", diff --git a/ui/round/package.json b/ui/round/package.json index 5fc9d3d360..ce11c0a2b1 100644 --- a/ui/round/package.json +++ b/ui/round/package.json @@ -15,7 +15,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "ab": "https://github.com/lichess-org/ab-stub", diff --git a/ui/serviceWorker/package.json b/ui/serviceWorker/package.json index df319420c2..c3d22891bd 100644 --- a/ui/serviceWorker/package.json +++ b/ui/serviceWorker/package.json @@ -9,7 +9,7 @@ "@build/rollupProject": "2.0.0", "rollup": "^2.56.2", "types-serviceworker": "^0.0.1", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "scripts": { "dev": "rollup --config", diff --git a/ui/simul/package.json b/ui/simul/package.json index 9c2efa8c20..f26e3142f7 100644 --- a/ui/simul/package.json +++ b/ui/simul/package.json @@ -14,7 +14,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "chat": "2.0.0", diff --git a/ui/site/package.json b/ui/site/package.json index d328a8c6f0..fa14ca00d8 100644 --- a/ui/site/package.json +++ b/ui/site/package.json @@ -16,7 +16,7 @@ "chessground": "^8.1.7", "rollup": "^2.56.2", "rollup-plugin-copy": "^3.3.0", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "@fnando/sparkline": "^0.3.10", diff --git a/ui/site/src/component/functions.ts b/ui/site/src/component/functions.ts index 8eec90b59f..2832ade675 100644 --- a/ui/site/src/component/functions.ts +++ b/ui/site/src/component/functions.ts @@ -1,11 +1,3 @@ -// TODO: Remove this when TypeScript 4.4.3 gets released -// TS 4.4 introduced support for requestIdleCallback but 4.4.2 hangs rollup -declare global { - interface Window { - requestIdleCallback(callback: () => void, options?: { timeout: number }): void; - } -} - export const requestIdleCallback = (f: () => void, timeout?: number) => { if (window.requestIdleCallback) window.requestIdleCallback(f, timeout ? { timeout } : undefined); else requestAnimationFrame(f); diff --git a/ui/speech/package.json b/ui/speech/package.json index 89cabf4cd8..a255e01d23 100644 --- a/ui/speech/package.json +++ b/ui/speech/package.json @@ -16,7 +16,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "scripts": { "dev": "rollup --config", diff --git a/ui/storm/package.json b/ui/storm/package.json index 10a76016f8..87d1855638 100644 --- a/ui/storm/package.json +++ b/ui/storm/package.json @@ -16,7 +16,7 @@ "@types/cash": "8.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "chess": "2.0.0", diff --git a/ui/swiss/package.json b/ui/swiss/package.json index 62b1205fef..76566a2b09 100644 --- a/ui/swiss/package.json +++ b/ui/swiss/package.json @@ -16,7 +16,7 @@ "@types/cash": "8.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "chat": "2.0.0", diff --git a/ui/tournament/package.json b/ui/tournament/package.json index 7a57132a73..12a12d1391 100644 --- a/ui/tournament/package.json +++ b/ui/tournament/package.json @@ -15,7 +15,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "chat": "2.0.0", diff --git a/ui/tournamentCalendar/package.json b/ui/tournamentCalendar/package.json index b614f08bf7..f8807904fe 100644 --- a/ui/tournamentCalendar/package.json +++ b/ui/tournamentCalendar/package.json @@ -15,7 +15,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "common": "2.0.0", diff --git a/ui/tournamentSchedule/package.json b/ui/tournamentSchedule/package.json index fea6f26945..db72b370d7 100644 --- a/ui/tournamentSchedule/package.json +++ b/ui/tournamentSchedule/package.json @@ -15,7 +15,7 @@ "@build/rollupProject": "2.0.0", "@types/lichess": "2.0.0", "rollup": "^2.56.2", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "common": "2.0.0", diff --git a/ui/tree/package.json b/ui/tree/package.json index 9df23be141..ac2fc66a2b 100644 --- a/ui/tree/package.json +++ b/ui/tree/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "@types/lichess": "2.0.0", - "typescript": "^4.3.5" + "typescript": "^4.4.3" }, "dependencies": { "common": "2.0.0" diff --git a/yarn.lock b/yarn.lock index 2a14c60b4c..495817c382 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5462,10 +5462,10 @@ types-serviceworker@^0.0.1: resolved "https://registry.yarnpkg.com/types-serviceworker/-/types-serviceworker-0.0.1.tgz#3d356e176d3b987d2164b34e609c591e67d31f1c" integrity sha512-EKO/SZ3AsHEZsqv+bsdlTCz5k955riOksnYGlG6JhVwNTVsPWj/TScTbiNVZ5+mmX8TcEXF0C8aSxUw0jTDpIw== -typescript@^4.3.5: - version "4.3.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" - integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== +typescript@^4.4.3: + version "4.4.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324" + integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA== unc-path-regex@^0.1.2: version "0.1.2"