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" }, 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": [