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:
ajnart committed 2026-06-23 18:04:42 +02:00
1 parent 55fb227305
commit 6e3045029c
7 files changed
+549 -345

No files matched your search

@@ -25,7 +25,7 @@ export class AxiosHttpErrorHandler extends HttpErrorHandler {
return new RequestError(requestErrorInput, {
cause: error,
});
}) as AnyRequestError;
}
handleResponseError(error: unknown): ResponseError | undefined {
if (!(error instanceof AxiosError)) return undefined;
@@ -20,7 +20,7 @@ export class FetchHttpErrorHandler extends HttpErrorHandler {
const result = matchErrorCode(error.cause.code);
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,
reason: found[0] as RequestErrorReason<typeof key>,
code: code as RequestErrorCode,
};
} as AnyRequestErrorInput;
}
return undefined;
@@ -30,7 +30,7 @@ export class NodeFetchHttpErrorHandler extends HttpErrorHandler {
return new RequestError(requestErrorInput, {
cause: error,
});
}) as AnyRequestError;
}
/**