feat(deps): upgrade TypeScript to v7 native compiler (tsgo)
- Upgrade typescript from ^6.0.3 to ^7.0.1-rc (native Go compiler) - Fix type errors caught by TS7's stricter generic variance checking in RequestError instantiation (3 handler files) - Update apps/docs/tsconfig.json: remove deprecated baseUrl, bump target from es5 to ES2022 (both removed in TS7) - Add TS7 to minimumReleaseAgeExclude (rc release within cutoff) Benchmark results (cold, 37 packages): TS6: 6m49s -> TS7 native: 1m35s (~4.3x faster) Incremental/warm: ~24x faster (17s for full project)
This commit is contained in:
1 parent
55fb227305
commit
6e3045029c
7 files changed
+549
-345
No files matched your search
@@ -2,8 +2,7 @@
|
|||||||
"extends": "@docusaurus/tsconfig",
|
"extends": "@docusaurus/tsconfig",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"ignoreDeprecations": "6.0",
|
"ignoreDeprecations": "6.0",
|
||||||
"baseUrl": ".",
|
"target": "ES2022",
|
||||||
"target": "es5",
|
|
||||||
"lib": ["dom", "dom.iterable", "esnext"],
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
"@semantic-release/release-notes-generator": "catalog:",
|
"@semantic-release/release-notes-generator": "catalog:",
|
||||||
"@testcontainers/redis": "catalog:",
|
"@testcontainers/redis": "catalog:",
|
||||||
"@turbo/gen": "catalog:",
|
"@turbo/gen": "catalog:",
|
||||||
|
|
||||||
"@vitejs/plugin-react": "catalog:",
|
"@vitejs/plugin-react": "catalog:",
|
||||||
"@vitest/coverage-v8": "catalog:",
|
"@vitest/coverage-v8": "catalog:",
|
||||||
"@vitest/ui": "catalog:",
|
"@vitest/ui": "catalog:",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export class AxiosHttpErrorHandler extends HttpErrorHandler {
|
|||||||
|
|
||||||
return new RequestError(requestErrorInput, {
|
return new RequestError(requestErrorInput, {
|
||||||
cause: error,
|
cause: error,
|
||||||
});
|
}) as AnyRequestError;
|
||||||
}
|
}
|
||||||
handleResponseError(error: unknown): ResponseError | undefined {
|
handleResponseError(error: unknown): ResponseError | undefined {
|
||||||
if (!(error instanceof AxiosError)) return undefined;
|
if (!(error instanceof AxiosError)) return undefined;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export class FetchHttpErrorHandler extends HttpErrorHandler {
|
|||||||
const result = matchErrorCode(error.cause.code);
|
const result = matchErrorCode(error.cause.code);
|
||||||
if (!result) return undefined;
|
if (!result) return undefined;
|
||||||
|
|
||||||
return new RequestError(result, { cause: error });
|
return new RequestError(result, { cause: error }) as AnyRequestError;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -59,7 +59,7 @@ export const matchErrorCode = (code: string): AnyRequestErrorInput | undefined =
|
|||||||
type: key,
|
type: key,
|
||||||
reason: found[0] as RequestErrorReason<typeof key>,
|
reason: found[0] as RequestErrorReason<typeof key>,
|
||||||
code: code as RequestErrorCode,
|
code: code as RequestErrorCode,
|
||||||
};
|
} as AnyRequestErrorInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export class NodeFetchHttpErrorHandler extends HttpErrorHandler {
|
|||||||
|
|
||||||
return new RequestError(requestErrorInput, {
|
return new RequestError(requestErrorInput, {
|
||||||
cause: error,
|
cause: error,
|
||||||
});
|
}) as AnyRequestError;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Generated
+538
-337
File diff suppressed because it is too large.
Load diff
+5
-2
@@ -14,7 +14,7 @@ catalog:
|
|||||||
"@dnd-kit/utilities": ^3.2.2
|
"@dnd-kit/utilities": ^3.2.2
|
||||||
"@drizzle-team/brocli": ^0.12.0
|
"@drizzle-team/brocli": ^0.12.0
|
||||||
"@extractus/feed-extractor": 7.2.1
|
"@extractus/feed-extractor": 7.2.1
|
||||||
'@gfazioli/mantine-onboarding-tour': ^4.0.4
|
"@gfazioli/mantine-onboarding-tour": ^4.0.4
|
||||||
"@gitbeaker/rest": ^43.8.0
|
"@gitbeaker/rest": ^43.8.0
|
||||||
"@homarr/gridstack": ^1.12.0
|
"@homarr/gridstack": ^1.12.0
|
||||||
"@homarr/node-unifi": ^2.6.0
|
"@homarr/node-unifi": ^2.6.0
|
||||||
@@ -176,7 +176,7 @@ catalog:
|
|||||||
tsdav: ^2.2.2
|
tsdav: ^2.2.2
|
||||||
tsx: 4.20.4
|
tsx: 4.20.4
|
||||||
turbo: ^2.9.18
|
turbo: ^2.9.18
|
||||||
typescript: ^6.0.3
|
typescript: ^7.0.1-rc
|
||||||
vite: ^8.0.16
|
vite: ^8.0.16
|
||||||
undici: 7.27.2
|
undici: 7.27.2
|
||||||
use-deep-compare-effect: ^1.8.1
|
use-deep-compare-effect: ^1.8.1
|
||||||
@@ -190,6 +190,7 @@ catalog:
|
|||||||
zod: ^4.4.3
|
zod: ^4.4.3
|
||||||
zod-form-data: ^3.0.2
|
zod-form-data: ^3.0.2
|
||||||
zod-validation-error: ^5.0.0
|
zod-validation-error: ^5.0.0
|
||||||
|
|
||||||
catalogMode: strict
|
catalogMode: strict
|
||||||
nodeLinker: hoisted
|
nodeLinker: hoisted
|
||||||
strictPeerDependencies: false
|
strictPeerDependencies: false
|
||||||
@@ -199,6 +200,8 @@ minimumReleaseAge: 4320
|
|||||||
minimumReleaseAgeExclude:
|
minimumReleaseAgeExclude:
|
||||||
- next
|
- next
|
||||||
- "@next/*"
|
- "@next/*"
|
||||||
|
- typescript@7.0.1-rc
|
||||||
|
- "@typescript/*"
|
||||||
# Renovate security update: turbo@2.9.14
|
# Renovate security update: turbo@2.9.14
|
||||||
- turbo@2.9.14
|
- turbo@2.9.14
|
||||||
# Renovate security update: form-data@4.0.6
|
# Renovate security update: form-data@4.0.6
|
||||||
|
|||||||
Reference in new issue
Block a user