From aa1e95ef268873be8c846a972b02446f3cad31a4 Mon Sep 17 00:00:00 2001 From: Radomir Stevanovic Date: Tue, 14 Jun 2022 07:07:16 -0700 Subject: [PATCH 1/3] Upgrade `ts-loader` to a version compatible with `typescript@4` --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 09fc3fd3870fd..667e2e35671c5 100644 --- a/package.json +++ b/package.json @@ -196,9 +196,9 @@ "source-map": "0.6.1", "source-map-support": "^0.3.2", "style-loader": "^1.0.0", - "ts-loader": "^6.2.1", + "ts-loader": "^8.0.0", "tsec": "0.1.4", - "typescript": "^4.4.0-dev.20210607", + "typescript": "^4.5.0", "typescript-formatter": "7.1.0", "underscore": "^1.12.1", "vinyl": "^2.0.0", From 20c8d514d8a931e600925203d23042270d1a53c5 Mon Sep 17 00:00:00 2001 From: Radomir Stevanovic Date: Tue, 14 Jun 2022 07:08:35 -0700 Subject: [PATCH 2/3] Update tsconfig (base) for `typescript>4.4.0-dev` `strictOptionalProperties` was renamed to `exactOptionalPropertyTypes` in 4.4.0. See: https://github.com/microsoft/TypeScript/pull/44626. --- extensions/tsconfig.base.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/tsconfig.base.json b/extensions/tsconfig.base.json index 88563a0d5a391..5bf396d4d39e5 100644 --- a/extensions/tsconfig.base.json +++ b/extensions/tsconfig.base.json @@ -6,7 +6,7 @@ ], "module": "commonjs", "strict": true, - "strictOptionalProperties": false, + "exactOptionalPropertyTypes": false, "useUnknownInCatchVariables": false, "alwaysStrict": true, "noImplicitAny": true, From 4d099b1c1215f828dfbf7cd9c0b7ca01bcb79c93 Mon Sep 17 00:00:00 2001 From: Radomir Stevanovic Date: Tue, 14 Jun 2022 07:16:33 -0700 Subject: [PATCH 3/3] Limit `typescript` to 4.6.x to support all bundled extensions For example, `typescript-language-features` is not compatible with 4.7.x. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 667e2e35671c5..c0ef7040c6f8a 100644 --- a/package.json +++ b/package.json @@ -198,7 +198,7 @@ "style-loader": "^1.0.0", "ts-loader": "^8.0.0", "tsec": "0.1.4", - "typescript": "^4.5.0", + "typescript": "~4.6.0", "typescript-formatter": "7.1.0", "underscore": "^1.12.1", "vinyl": "^2.0.0",