From 2f0bf99da380b930e409ea8e7d07971a20e74c61 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Mon, 30 Aug 2021 21:14:10 +0000 Subject: [PATCH 1/2] chore: bump typescript to ~4.4.2 --- .../software/amazon/smithy/typescript/codegen/base-package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json index 4629f6cf240..1146d0eb6dc 100644 --- a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json +++ b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json @@ -33,7 +33,7 @@ "rimraf": "^3.0.0", "ts-jest": "^26.4.1", "typedoc": "^0.19.2", - "typescript": "~4.3.2" + "typescript": "~4.4.2" }, "engines": { "node": ">=10.0.0" From 6f569e5811c3d2ea6feb051a7e972b3957e11aaa Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Mon, 30 Aug 2021 21:44:22 +0000 Subject: [PATCH 2/2] fix(tsconfig): turn off useUnknownInCatchVariables Breaking change in TypeScript 4.4 https://bit.ly/3BpabnR --- .../software/amazon/smithy/typescript/codegen/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.json b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.json index 15ef55fbb76..b5ae4c1ecba 100644 --- a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.json +++ b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.json @@ -13,7 +13,8 @@ "resolveJsonModule": true, "esModuleInterop": true, "declarationDir": "dist/types", - "outDir": "dist/cjs" + "outDir": "dist/cjs", + "useUnknownInCatchVariables": false, }, "typedocOptions": { "exclude": [