From 9d441631e52ebbf8ff9adebcc881c453423756fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Apr 2026 04:38:38 +0000 Subject: [PATCH 1/4] Bump typescript from 5.9.3 to 6.0.3 Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.3. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...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 | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index f0ebfa0..c0ed666 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,7 +40,7 @@ "jest": "^30.1.3", "prettier": "3.8.1", "ts-jest": "^29.1.4", - "typescript": "~5.9.2", + "typescript": "~6.0.3", "typescript-eslint": "^8.58.0" }, "engines": { @@ -6403,9 +6403,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "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": { diff --git a/package.json b/package.json index 70d58e6..84fa408 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "jest": "^30.1.3", "prettier": "3.8.1", "ts-jest": "^29.1.4", - "typescript": "~5.9.2", + "typescript": "~6.0.3", "typescript-eslint": "^8.58.0" }, "homepage": "https://github.com/Azure/openapi-diff", From 0f0f3c72052624cecbd713495efa4eed0bda9761 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 1 May 2026 07:18:44 +0000 Subject: [PATCH 2/4] Add types field to tsconfig.json to fix TS2593 errors with TypeScript 6.0.3 Agent-Logs-Url: https://github.com/Azure/openapi-diff/sessions/885288ee-b516-455a-8983-b34d04453248 Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 12e1c91..92b33f1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -42,7 +42,7 @@ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */ - // "types": [], /* Type declaration files to be included in compilation. */ + "types": ["jest", "node"], /* Type declaration files to be included in compilation. */ // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ From 2595b14137b4bc9a6961e9bc3f42fde1801601fc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 1 May 2026 07:53:38 +0000 Subject: [PATCH 3/4] Add comment explaining why types field is needed in TypeScript >= v6 Agent-Logs-Url: https://github.com/Azure/openapi-diff/sessions/68c6b0f8-b273-452a-b898-6a63ba48f490 Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> --- tsconfig.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tsconfig.json b/tsconfig.json index 92b33f1..0dd7b19 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -42,6 +42,8 @@ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */ + // TypeScript >= v6 no longer auto-includes @types/* packages from node_modules/@types. + // Without this, test files fail with TS2593: "Cannot find name 'test'/'describe'/'it'". "types": ["jest", "node"], /* Type declaration files to be included in compilation. */ // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ From 47ce0f663c935421efb937a9eb3b7fd0cdf305aa Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 1 May 2026 01:04:49 -0700 Subject: [PATCH 4/4] Apply suggestion from @mikeharder --- tsconfig.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 0dd7b19..25699c1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -42,9 +42,7 @@ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */ - // TypeScript >= v6 no longer auto-includes @types/* packages from node_modules/@types. - // Without this, test files fail with TS2593: "Cannot find name 'test'/'describe'/'it'". - "types": ["jest", "node"], /* Type declaration files to be included in compilation. */ + "types": ["jest", "node"], /* required by typescript v6 */ // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */