From 5d3a456ffef20932a51d71f44a46cf4a9fc4c238 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Wed, 15 Feb 2023 20:38:14 +0000 Subject: [PATCH] Update to TypeScript 5 --- buildutils/package.json | 2 +- package.json | 2 +- packages/_metapackage/package.json | 2 +- packages/application-extension/package.json | 2 +- packages/application/package.json | 2 +- packages/console-extension/package.json | 2 +- packages/docmanager-extension/package.json | 2 +- .../documentsearch-extension/package.json | 2 +- packages/help-extension/package.json | 2 +- packages/lab-extension/package.json | 2 +- packages/notebook-extension/package.json | 2 +- packages/terminal-extension/package.json | 2 +- packages/tree-extension/package.json | 2 +- packages/tree/package.json | 2 +- packages/ui-components/package.json | 2 +- yarn.lock | 49 ++++++++++--------- 16 files changed, 42 insertions(+), 37 deletions(-) diff --git a/buildutils/package.json b/buildutils/package.json index 63618251e6e..54efbbdf558 100644 --- a/buildutils/package.json +++ b/buildutils/package.json @@ -33,7 +33,7 @@ "@jupyterlab/buildutils": "^4.0.0-alpha.19", "commander": "^6.2.0", "fs-extra": "^9.1.0", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "devDependencies": { "@types/fs-extra": "^9.0.10", diff --git a/package.json b/package.json index 8db275b18a9..34e07798deb 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,6 @@ "npm-run-all": "^4.1.5", "prettier": "^1.19.0", "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" } } diff --git a/packages/_metapackage/package.json b/packages/_metapackage/package.json index 6eedbcdf07f..f0201d96d37 100644 --- a/packages/_metapackage/package.json +++ b/packages/_metapackage/package.json @@ -34,6 +34,6 @@ "@jupyter-notebook/ui-components": "file:../ui-components" }, "devDependencies": { - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" } } diff --git a/packages/application-extension/package.json b/packages/application-extension/package.json index 6bc5b4ea30d..ff747c396f9 100644 --- a/packages/application-extension/package.json +++ b/packages/application-extension/package.json @@ -58,7 +58,7 @@ }, "devDependencies": { "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/application/package.json b/packages/application/package.json index 583ed9747e7..036696f5442 100644 --- a/packages/application/package.json +++ b/packages/application/package.json @@ -63,7 +63,7 @@ "jest": "^29.3.1", "rimraf": "^3.0.2", "ts-jest": "^29.0.3", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/console-extension/package.json b/packages/console-extension/package.json index 682ce69b1e2..94ca552c2ff 100644 --- a/packages/console-extension/package.json +++ b/packages/console-extension/package.json @@ -46,7 +46,7 @@ }, "devDependencies": { "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/docmanager-extension/package.json b/packages/docmanager-extension/package.json index 1b5cbbef7dc..960431aaafc 100644 --- a/packages/docmanager-extension/package.json +++ b/packages/docmanager-extension/package.json @@ -49,7 +49,7 @@ }, "devDependencies": { "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/documentsearch-extension/package.json b/packages/documentsearch-extension/package.json index 4611c8c22cb..0d39862132c 100644 --- a/packages/documentsearch-extension/package.json +++ b/packages/documentsearch-extension/package.json @@ -46,7 +46,7 @@ }, "devDependencies": { "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/help-extension/package.json b/packages/help-extension/package.json index 074b3957a2e..b8b72efda8f 100644 --- a/packages/help-extension/package.json +++ b/packages/help-extension/package.json @@ -49,7 +49,7 @@ }, "devDependencies": { "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/lab-extension/package.json b/packages/lab-extension/package.json index beed9f5ca3c..395b00b2e45 100644 --- a/packages/lab-extension/package.json +++ b/packages/lab-extension/package.json @@ -56,7 +56,7 @@ "devDependencies": { "@jupyterlab/builder": "^4.0.0-alpha.19", "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/notebook-extension/package.json b/packages/notebook-extension/package.json index eb0eeda0b87..d7a9c40b103 100644 --- a/packages/notebook-extension/package.json +++ b/packages/notebook-extension/package.json @@ -52,7 +52,7 @@ }, "devDependencies": { "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/terminal-extension/package.json b/packages/terminal-extension/package.json index 7b7c795d917..ffd700d254c 100644 --- a/packages/terminal-extension/package.json +++ b/packages/terminal-extension/package.json @@ -46,7 +46,7 @@ }, "devDependencies": { "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/tree-extension/package.json b/packages/tree-extension/package.json index 553021522e9..0e4fdd08141 100644 --- a/packages/tree-extension/package.json +++ b/packages/tree-extension/package.json @@ -59,7 +59,7 @@ }, "devDependencies": { "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/tree/package.json b/packages/tree/package.json index d5f01d93ba0..8706e54148d 100644 --- a/packages/tree/package.json +++ b/packages/tree/package.json @@ -58,7 +58,7 @@ }, "devDependencies": { "rimraf": "^3.0.2", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/packages/ui-components/package.json b/packages/ui-components/package.json index eae0f37ec27..852344cada4 100644 --- a/packages/ui-components/package.json +++ b/packages/ui-components/package.json @@ -56,7 +56,7 @@ "jest": "^29.3.1", "rimraf": "^3.0.2", "ts-jest": "^29.0.3", - "typescript": "~4.9.3" + "typescript": "5.0.0-beta" }, "publishConfig": { "access": "public" diff --git a/yarn.lock b/yarn.lock index 859858d03cb..76a475a7d9b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1459,10 +1459,10 @@ "@jridgewell/sourcemap-codec" "1.4.14" "@jupyter-notebook/application-extension@file:packages/application-extension": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: - "@jupyter-notebook/application" "^7.0.0-alpha.12" - "@jupyter-notebook/ui-components" "^7.0.0-alpha.12" + "@jupyter-notebook/application" "^7.0.0-alpha.13" + "@jupyter-notebook/ui-components" "^7.0.0-alpha.13" "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/apputils" "^4.0.0-alpha.19" "@jupyterlab/celltags" "^4.0.0-alpha.19" @@ -1479,7 +1479,7 @@ "@lumino/widgets" "^2.0.0-beta.1" "@jupyter-notebook/application@file:packages/application": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/coreutils" "^6.0.0-alpha.19" @@ -1494,7 +1494,7 @@ "@lumino/widgets" "^2.0.0-beta.1" "@jupyter-notebook/console-extension@file:packages/console-extension": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/console" "^4.0.0-alpha.19" @@ -1502,7 +1502,7 @@ "@lumino/algorithm" "^2.0.0-beta.0" "@jupyter-notebook/docmanager-extension@file:packages/docmanager-extension": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/coreutils" "^6.0.0-alpha.19" @@ -1513,17 +1513,17 @@ "@lumino/signaling" "^2.0.0-beta.1" "@jupyter-notebook/documentsearch-extension@file:packages/documentsearch-extension": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: - "@jupyter-notebook/application" "^7.0.0-alpha.12" + "@jupyter-notebook/application" "^7.0.0-alpha.13" "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/documentsearch" "^4.0.0-alpha.19" "@lumino/widgets" "^2.0.0-beta.1" "@jupyter-notebook/help-extension@file:packages/help-extension": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: - "@jupyter-notebook/ui-components" "^7.0.0-alpha.12" + "@jupyter-notebook/ui-components" "^7.0.0-alpha.13" "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/apputils" "^4.0.0-alpha.19" "@jupyterlab/mainmenu" "^4.0.0-alpha.19" @@ -1532,9 +1532,9 @@ react-dom "^18.2.0" "@jupyter-notebook/lab-extension@file:packages/lab-extension": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: - "@jupyter-notebook/application" "^7.0.0-alpha.12" + "@jupyter-notebook/application" "^7.0.0-alpha.13" "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/apputils" "^4.0.0-alpha.19" "@jupyterlab/coreutils" "^6.0.0-alpha.19" @@ -1545,9 +1545,9 @@ "@lumino/disposable" "^2.0.0-beta.1" "@jupyter-notebook/notebook-extension@file:packages/notebook-extension": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: - "@jupyter-notebook/application" "^7.0.0-alpha.12" + "@jupyter-notebook/application" "^7.0.0-alpha.13" "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/apputils" "^4.0.0-alpha.19" "@jupyterlab/cells" "^4.0.0-alpha.19" @@ -1559,7 +1559,7 @@ "@lumino/widgets" "^2.0.0-beta.1" "@jupyter-notebook/terminal-extension@file:packages/terminal-extension": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/coreutils" "^6.0.0-alpha.19" @@ -1567,10 +1567,10 @@ "@lumino/algorithm" "^2.0.0-beta.0" "@jupyter-notebook/tree-extension@file:packages/tree-extension": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: - "@jupyter-notebook/application" "^7.0.0-alpha.12" - "@jupyter-notebook/tree" "^7.0.0-alpha.12" + "@jupyter-notebook/application" "^7.0.0-alpha.13" + "@jupyter-notebook/tree" "^7.0.0-alpha.13" "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/apputils" "^4.0.0-alpha.19" "@jupyterlab/coreutils" "^6.0.0-alpha.19" @@ -1588,9 +1588,9 @@ "@lumino/widgets" "^2.0.0-beta.1" "@jupyter-notebook/tree@file:packages/tree": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: - "@jupyter-notebook/application" "^7.0.0-alpha.12" + "@jupyter-notebook/application" "^7.0.0-alpha.13" "@jupyterlab/application" "^4.0.0-alpha.19" "@jupyterlab/apputils" "^4.0.0-alpha.19" "@jupyterlab/coreutils" "^6.0.0-alpha.19" @@ -1608,7 +1608,7 @@ "@lumino/widgets" "^2.0.0-beta.1" "@jupyter-notebook/ui-components@file:packages/ui-components": - version "7.0.0-alpha.12" + version "7.0.0-alpha.13" dependencies: "@jupyterlab/ui-components" "^4.0.0-alpha.34" react "^18.2.0" @@ -12449,7 +12449,12 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== -"typescript@^3 || ^4", typescript@~4.9.3: +typescript@5.0.0-beta: + version "5.0.0-beta" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.0-beta.tgz#791fa95411d6ff64ee77d677ed1e6f32a2eaabaf" + integrity sha512-+SSabbSXG5mtF+QGdV9uXXt9Saq1cSyI6hSG7znhaLoquleJpnmfkwSxFngK9c2fWWi1W/263TuzXQOsIcdjjA== + +"typescript@^3 || ^4": version "4.9.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==