From a42c2dc43c1ffea748f6e41905074033591817f8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 02:52:39 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump typescript from 4.9.5 to 6.0.3 Bumps [typescript](https://github.com/microsoft/TypeScript) from 4.9.5 to 6.0.3. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](https://github.com/microsoft/TypeScript/compare/v4.9.5...v6.0.3) --- updated-dependencies: - dependency-name: typescript dependency-version: 6.0.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 17 +++++++++-------- package.json | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index dfc9e6b2..43be5fa3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,7 +35,7 @@ "mocha": "^11.7.5", "ts-loader": "^9.6.2", "tslint": "^6.1.3", - "typescript": "^4.9.4", + "typescript": "^6.0.3", "webpack": "^5.109.0", "webpack-cli": "^7.2.2" }, @@ -3710,16 +3710,17 @@ } }, "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/undici-types": { @@ -6663,9 +6664,9 @@ } }, "typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true }, "undici-types": { diff --git a/package.json b/package.json index 089085af..424549ef 100644 --- a/package.json +++ b/package.json @@ -1211,7 +1211,7 @@ "mocha": "^11.7.5", "ts-loader": "^9.6.2", "tslint": "^6.1.3", - "typescript": "^4.9.4", + "typescript": "^6.0.3", "webpack": "^5.109.0", "webpack-cli": "^7.2.2" }, From 84a98e4f540632e902af9ed5b4391fb373ec8d45 Mon Sep 17 00:00:00 2001 From: GitHub Copilot <223556219+Copilot@users.noreply.github.com> Date: Thu, 10 Sep 2026 07:51:05 +0000 Subject: [PATCH 2/2] fix(deps): migrate configuration for TypeScript 6 Make the changed TypeScript 6 defaults explicit and update Mocha imports for ES module interoperability. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- test/gradle-suite/index.ts | 2 +- test/invisible-suite/index.ts | 2 +- test/maven-suite/index.ts | 2 +- test/multi-module-suite/index.ts | 2 +- test/multiple-suite/index.ts | 2 +- test/non-java-gradle-suite/index.ts | 2 +- test/simple-suite/index.ts | 2 +- test/suite/index.ts | 2 +- tsconfig.json | 4 ++++ 9 files changed, 12 insertions(+), 8 deletions(-) diff --git a/test/gradle-suite/index.ts b/test/gradle-suite/index.ts index 3b2fee47..e0819357 100644 --- a/test/gradle-suite/index.ts +++ b/test/gradle-suite/index.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { glob } from "glob"; -import * as Mocha from "mocha"; +import Mocha from "mocha"; import * as path from "path"; export function run(): Promise { diff --git a/test/invisible-suite/index.ts b/test/invisible-suite/index.ts index 3b2fee47..e0819357 100644 --- a/test/invisible-suite/index.ts +++ b/test/invisible-suite/index.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { glob } from "glob"; -import * as Mocha from "mocha"; +import Mocha from "mocha"; import * as path from "path"; export function run(): Promise { diff --git a/test/maven-suite/index.ts b/test/maven-suite/index.ts index 3b2fee47..e0819357 100644 --- a/test/maven-suite/index.ts +++ b/test/maven-suite/index.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { glob } from "glob"; -import * as Mocha from "mocha"; +import Mocha from "mocha"; import * as path from "path"; export function run(): Promise { diff --git a/test/multi-module-suite/index.ts b/test/multi-module-suite/index.ts index 3b2fee47..e0819357 100644 --- a/test/multi-module-suite/index.ts +++ b/test/multi-module-suite/index.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { glob } from "glob"; -import * as Mocha from "mocha"; +import Mocha from "mocha"; import * as path from "path"; export function run(): Promise { diff --git a/test/multiple-suite/index.ts b/test/multiple-suite/index.ts index fc444ea7..d51a40fa 100644 --- a/test/multiple-suite/index.ts +++ b/test/multiple-suite/index.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { glob } from "glob"; -import * as Mocha from "mocha"; +import Mocha from "mocha"; import * as path from "path"; export function run(): Promise { diff --git a/test/non-java-gradle-suite/index.ts b/test/non-java-gradle-suite/index.ts index 3b2fee47..e0819357 100644 --- a/test/non-java-gradle-suite/index.ts +++ b/test/non-java-gradle-suite/index.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { glob } from "glob"; -import * as Mocha from "mocha"; +import Mocha from "mocha"; import * as path from "path"; export function run(): Promise { diff --git a/test/simple-suite/index.ts b/test/simple-suite/index.ts index 3b2fee47..e0819357 100644 --- a/test/simple-suite/index.ts +++ b/test/simple-suite/index.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { glob } from "glob"; -import * as Mocha from "mocha"; +import Mocha from "mocha"; import * as path from "path"; export function run(): Promise { diff --git a/test/suite/index.ts b/test/suite/index.ts index 3b2fee47..e0819357 100644 --- a/test/suite/index.ts +++ b/test/suite/index.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { glob } from "glob"; -import * as Mocha from "mocha"; +import Mocha from "mocha"; import * as path from "path"; export function run(): Promise { diff --git a/tsconfig.json b/tsconfig.json index 98f55334..f9700ed7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,11 @@ "noImplicitReturns": true, "noUnusedParameters": true, "strictNullChecks": true, + "strictFunctionTypes": false, + "strictPropertyInitialization": false, + "useUnknownInCatchVariables": false, "alwaysStrict": true, + "esModuleInterop": true, "skipLibCheck": true }, "exclude": [