From 6a03917f6e02d44c40003d22ef3dc825f1de7509 Mon Sep 17 00:00:00 2001 From: memoclaw <265580040+memoclaw@users.noreply.github.com> Date: Tue, 24 Mar 2026 08:45:56 +0800 Subject: [PATCH] chore: upgrade TypeScript to 6.0.2 --- web/package.json | 2 +- web/pnpm-lock.yaml | 24 ++++++++++++------------ web/tsconfig.json | 3 +-- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/web/package.json b/web/package.json index fdb5287c7..561114057 100644 --- a/web/package.json +++ b/web/package.json @@ -91,7 +91,7 @@ "long": "^5.3.2", "terser": "^5.46.1", "tw-animate-css": "^1.4.0", - "typescript": "^5.9.3", + "typescript": "^6.0.2", "vite": "^7.2.4" }, "pnpm": { diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index cdab6ac8a..39a13a1f3 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -85,7 +85,7 @@ importers: version: 11.11.1 i18next: specifier: ^25.8.18 - version: 25.8.18(typescript@5.9.3) + version: 25.8.18(typescript@6.0.2) katex: specifier: ^0.16.38 version: 0.16.38 @@ -127,7 +127,7 @@ importers: version: 2.6.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-i18next: specifier: ^15.7.4 - version: 15.7.4(i18next@25.8.18(typescript@5.9.3))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.9.3) + version: 15.7.4(i18next@25.8.18(typescript@6.0.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@6.0.2) react-leaflet: specifier: ^4.2.1 version: 4.2.1(leaflet@1.9.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -238,8 +238,8 @@ importers: specifier: ^1.4.0 version: 1.4.0 typescript: - specifier: ^5.9.3 - version: 5.9.3 + specifier: ^6.0.2 + version: 6.0.2 vite: specifier: ^7.2.4 version: 7.2.4(@types/node@24.10.1)(jiti@2.6.1)(lightningcss@1.31.1)(terser@5.46.1) @@ -2770,8 +2770,8 @@ packages: tw-animate-css@1.4.0: resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==} - typescript@5.9.3: - resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + typescript@6.0.2: + resolution: {integrity: sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==} engines: {node: '>=14.17'} hasBin: true @@ -4694,11 +4694,11 @@ snapshots: hyphenate-style-name@1.1.0: {} - i18next@25.8.18(typescript@5.9.3): + i18next@25.8.18(typescript@6.0.2): dependencies: '@babel/runtime': 7.28.6 optionalDependencies: - typescript: 5.9.3 + typescript: 6.0.2 iconv-lite@0.6.3: dependencies: @@ -5369,15 +5369,15 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - react-i18next@15.7.4(i18next@25.8.18(typescript@5.9.3))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.9.3): + react-i18next@15.7.4(i18next@25.8.18(typescript@6.0.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@6.0.2): dependencies: '@babel/runtime': 7.28.4 html-parse-stringify: 3.0.1 - i18next: 25.8.18(typescript@5.9.3) + i18next: 25.8.18(typescript@6.0.2) react: 18.3.1 optionalDependencies: react-dom: 18.3.1(react@18.3.1) - typescript: 5.9.3 + typescript: 6.0.2 react-is@16.13.1: {} @@ -5711,7 +5711,7 @@ snapshots: tw-animate-css@1.4.0: {} - typescript@5.9.3: {} + typescript@6.0.2: {} ufo@1.6.1: {} diff --git a/web/tsconfig.json b/web/tsconfig.json index 44b35c12d..6dcf3c2cb 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -5,14 +5,13 @@ "types": ["vite/client"], "allowJs": false, "skipLibCheck": false, - "esModuleInterop": false, "allowSyntheticDefaultImports": true, "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "forceConsistentCasingInFileNames": true, "module": "ESNext", - "moduleResolution": "Node", + "moduleResolution": "Bundler", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true,