diff --git a/package.json b/package.json index 7d2cde8da..aeeb0529c 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@yarnpkg/sdks": "3.2.0", "eslint": "9.17.0", "prettier": "3.4.2", - "typescript": "5.6.3" + "typescript": "5.7.2" }, "resolutions": { "vite/esbuild": "0.24.2", diff --git a/packages/backend/package.json b/packages/backend/package.json index fe3419f6f..97e796aab 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -92,7 +92,7 @@ "prisma": "6.1.0", "prisma-json-types-generator": "3.2.2", "smtp-server": "3.13.6", - "typescript": "5.6.3", + "typescript": "5.7.2", "vite": "6.0.7", "vitest": "2.1.8", "xpath-ts2": "1.4.2", diff --git a/packages/commons/package.json b/packages/commons/package.json index 8ba7c1458..dde1ad67e 100644 --- a/packages/commons/package.json +++ b/packages/commons/package.json @@ -37,6 +37,6 @@ "eslint-plugin-prettier": "5.2.1", "globals": "15.14.0", "prettier": "3.4.2", - "typescript": "5.6.3" + "typescript": "5.7.2" } } diff --git a/packages/commons/src/lib/Fetch.test.ts b/packages/commons/src/lib/Fetch.test.ts index 8b6452d48..c859492b5 100644 --- a/packages/commons/src/lib/Fetch.test.ts +++ b/packages/commons/src/lib/Fetch.test.ts @@ -15,6 +15,7 @@ const mockedResponse: Pick< | "bodyUsed" | "arrayBuffer" | "blob" + | "bytes" | "formData" | "json" | "text" @@ -30,6 +31,7 @@ const mockedResponse: Pick< bodyUsed: false, arrayBuffer: () => Promise.resolve(new ArrayBuffer(0)), blob: () => Promise.resolve(new Blob()), + bytes: () => Promise.resolve(new Uint8Array()), formData: () => Promise.resolve(new FormData()), json: () => Promise.resolve({}), text: () => Promise.resolve(""), diff --git a/packages/frontend/package.json b/packages/frontend/package.json index e08aaafe7..a86ef08fe 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -69,6 +69,6 @@ "eslint-plugin-react": "7.37.3", "globals": "15.14.0", "prettier": "3.4.2", - "typescript": "5.6.3" + "typescript": "5.7.2" } } diff --git a/tsconfig.json b/tsconfig.json index 7740a655e..b544f4c0d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "baseUrl": ".", "rootDir": ".", - "target": "ESNext", - "lib": ["dom", "esnext"], + "target": "ES2023", + "lib": ["dom", "ES2023"], "allowJs": true, "strict": true, "noEmit": true, diff --git a/yarn.lock b/yarn.lock index 6a6e23308..11b386b23 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1472,7 +1472,7 @@ __metadata: prisma: "npm:6.1.0" prisma-json-types-generator: "npm:3.2.2" smtp-server: "npm:3.13.6" - typescript: "npm:5.6.3" + typescript: "npm:5.7.2" undici-types: "npm:7.2.0" vite: "npm:6.0.7" vitest: "npm:2.1.8" @@ -1500,7 +1500,7 @@ __metadata: globals: "npm:15.14.0" prettier: "npm:3.4.2" statuses: "npm:2.0.1" - typescript: "npm:5.6.3" + typescript: "npm:5.7.2" vite: "npm:6.0.7" vitest: "npm:2.1.8" languageName: unknown @@ -1553,7 +1553,7 @@ __metadata: react-router-dom: "npm:7.1.1" react-switch-selector: "npm:2.3.0" sainte-lague: "npm:3.0.0" - typescript: "npm:5.6.3" + typescript: "npm:5.7.2" vite: "npm:6.0.7" vite-plugin-compression2: "npm:1.3.3" vite-plugin-html: "npm:3.2.2" @@ -1570,7 +1570,7 @@ __metadata: concurrently: "npm:9.1.2" eslint: "npm:9.17.0" prettier: "npm:3.4.2" - typescript: "npm:5.6.3" + typescript: "npm:5.7.2" dependenciesMeta: "@prisma/engines": built: true @@ -7658,23 +7658,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:5.6.3": - version: 5.6.3 - resolution: "typescript@npm:5.6.3" +"typescript@npm:5.7.2": + version: 5.7.2 + resolution: "typescript@npm:5.7.2" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/44f61d3fb15c35359bc60399cb8127c30bae554cd555b8e2b46d68fa79d680354b83320ad419ff1b81a0bdf324197b29affe6cc28988cd6a74d4ac60c94f9799 + checksum: 10c0/a873118b5201b2ef332127ef5c63fb9d9c155e6fdbe211cbd9d8e65877283797cca76546bad742eea36ed7efbe3424a30376818f79c7318512064e8625d61622 languageName: node linkType: hard -"typescript@patch:typescript@npm%3A5.6.3#optional!builtin": - version: 5.6.3 - resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40" +"typescript@patch:typescript@npm%3A5.7.2#optional!builtin": + version: 5.7.2 + resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin::version=5.7.2&hash=5786d5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/7c9d2e07c81226d60435939618c91ec2ff0b75fbfa106eec3430f0fcf93a584bc6c73176676f532d78c3594fe28a54b36eb40b3d75593071a7ec91301533ace7 + checksum: 10c0/f3b8082c9d1d1629a215245c9087df56cb784f9fb6f27b5d55577a20e68afe2a889c040aacff6d27e35be165ecf9dca66e694c42eb9a50b3b2c451b36b5675cb languageName: node linkType: hard