Update Typescript to 4.4.3 for requestIdleCallback

pull/9803/head
Benedikt Werner 2021-09-15 02:06:51 +02:00
parent d083c5fd85
commit 8073dc43c7
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
36 changed files with 38 additions and 46 deletions

View File

@ -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 .",

View File

@ -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"
}
}

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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"
}
}

View File

@ -35,6 +35,6 @@
},
"devDependencies": {
"@types/lichess": "2.0.0",
"typescript": "^4.3.5"
"typescript": "^4.4.3"
}
}

View File

@ -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",

View File

@ -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"
}
}

View File

@ -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",

View File

@ -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"

View File

@ -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",

View File

@ -36,6 +36,6 @@
},
"devDependencies": {
"@types/lichess": "2.0.0",
"typescript": "^4.3.5"
"typescript": "^4.4.3"
}
}

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -32,6 +32,6 @@
},
"devDependencies": {
"@types/lichess": "2.0.0",
"typescript": "^4.3.5"
"typescript": "^4.4.3"
}
}

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -19,7 +19,7 @@
},
"devDependencies": {
"@types/lichess": "2.0.0",
"typescript": "^4.3.5"
"typescript": "^4.4.3"
},
"dependencies": {
"common": "2.0.0"

View File

@ -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"