From e591a6ccd0f94088bc105ddd6e8e15fd5dc4f9e2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 15:17:22 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump typescript from 5.8.3 to 7.0.2 Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.8.3 to 7.0.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](https://github.com/microsoft/TypeScript/commits) --- updated-dependencies: - dependency-name: typescript dependency-version: 7.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 119e9e3..4be149c 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@docusaurus/tsconfig": "^3.7.0", "@docusaurus/types": "^3.7.0", "@types/react": "^19.0.0", - "typescript": "~5.8.0" + "typescript": "~7.0.2" }, "browserslist": { "production": [ From 9ff7a83ff8bdee1cc0e97a05c6d2836bfe400e8e Mon Sep 17 00:00:00 2001 From: Aldiwildan77 Date: Tue, 10 Nov 2026 22:59:02 +0900 Subject: [PATCH 2/2] fix(ts): typecheck on TypeScript 7 and run it in CI TS7 removed baseUrl, which @docusaurus/tsconfig sets, so inline its options without it. Replace the removed global JSX namespace with ReactNode and drop the search-local PluginOptions cast. Add a typecheck step to CI so type errors fail the build. --- .github/workflows/ci.yml | 3 +++ docusaurus.config.js | 5 ++--- src/components/HomepageFeatures/index.tsx | 6 +++--- src/pages/404.tsx | 4 ++-- tsconfig.json | 15 +++++++++++++-- 5 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4b2d0b..902ed60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,5 +24,8 @@ jobs: - name: Install dependencies run: yarn + - name: Typecheck + run: yarn typecheck + - name: Build run: yarn build diff --git a/docusaurus.config.js b/docusaurus.config.js index 0f2ff01..2d7151f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -186,8 +186,7 @@ const config = { plugins: [ [ require.resolve('@easyops-cn/docusaurus-search-local'), - /** @type {import('@easyops-cn/docusaurus-search-local').PluginOptions} */ - ({ + { hashed: true, language: ['en'], docsRouteBasePath: '/', @@ -196,7 +195,7 @@ const config = { highlightSearchTermsOnTargetPage: true, searchResultLimits: 10, searchBarShortcutHint: false, - }), + }, ], [ '@docusaurus/plugin-pwa', diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index 91ef460..4f63e9d 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -1,11 +1,11 @@ -import React from 'react'; +import React, {type ReactNode} from 'react'; import clsx from 'clsx'; import styles from './styles.module.css'; type FeatureItem = { title: string; Svg: React.ComponentType>; - description: JSX.Element; + description: ReactNode; }; const FeatureList: FeatureItem[] = [ @@ -55,7 +55,7 @@ function Feature({title, Svg, description}: FeatureItem) { ); } -export default function HomepageFeatures(): JSX.Element { +export default function HomepageFeatures(): ReactNode { return (
diff --git a/src/pages/404.tsx b/src/pages/404.tsx index c973143..1cd38c4 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,9 +1,9 @@ -import React from 'react'; +import React, {type ReactNode} from 'react'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import styles from './404.module.css'; -export default function NotFound(): JSX.Element { +export default function NotFound(): ReactNode { return (