From 000097fa6f2bc45cd3cb5e7921d9bb33e4bbad21 Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:26:58 +0700 Subject: [PATCH 01/11] ci: replace unsupported cache and artifact actions --- .github/workflows/analyze.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 87dcfdc73..92752230c 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -11,10 +11,10 @@ jobs: analyze: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up node - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: '20.x' @@ -22,7 +22,7 @@ jobs: uses: bahmutov/npm-install@v1.7.10 - name: Restore next build - uses: actions/cache@v2 + uses: actions/cache@v4 id: restore-build-cache env: cache-name: cache-next-build @@ -41,7 +41,7 @@ jobs: run: npx -p nextjs-bundle-analysis@0.5.0 report - name: Upload bundle - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: .next/analyze/__bundle_analysis.json name: bundle_analysis.json @@ -73,7 +73,7 @@ jobs: run: ls -laR .next/analyze/base && npx -p nextjs-bundle-analysis compare - name: Upload analysis comment - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: analysis_comment.txt path: .next/analyze/__bundle_analysis_comment.txt @@ -82,7 +82,7 @@ jobs: run: echo ${{ github.event.number }} > ./pr_number - name: Upload PR number - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pr_number path: ./pr_number From 842a7fa1ac6af501f407c55600ab412c75723cfe Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:27:00 +0700 Subject: [PATCH 02/11] ci: update checkout and setup-node actions --- .github/workflows/site_lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/site_lint.yml b/.github/workflows/site_lint.yml index 34ca6d7b8..3ac47dba7 100644 --- a/.github/workflows/site_lint.yml +++ b/.github/workflows/site_lint.yml @@ -14,9 +14,9 @@ jobs: name: Lint on node 20.x and ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Use Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.x From c0a978d6487b137d327d8a523405fef5a637917f Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:27:02 +0700 Subject: [PATCH 03/11] build: remove incompatible Next.js 13 patch after Next.js 15 upgrade --- patches/next+13.4.1.patch | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 patches/next+13.4.1.patch diff --git a/patches/next+13.4.1.patch b/patches/next+13.4.1.patch deleted file mode 100644 index 6de490aa4..000000000 --- a/patches/next+13.4.1.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/node_modules/next/dist/server/render.js b/node_modules/next/dist/server/render.js -index a1f8648..1b3d608 100644 ---- a/node_modules/next/dist/server/render.js -+++ b/node_modules/next/dist/server/render.js -@@ -758,9 +758,14 @@ async function renderToHTML(req, res, pathname, query, renderOpts) { - // Always using react concurrent rendering mode with required react version 18.x - const renderShell = async (EnhancedApp, EnhancedComponent)=>{ - const content = renderContent(EnhancedApp, EnhancedComponent); -- return await (0, _nodewebstreamshelper.renderToInitialStream)({ -- ReactDOMServer: _serverbrowser.default, -- element: content -+ return new Promise((resolve, reject) => { -+ (0, _nodewebstreamshelper.renderToInitialStream)({ -+ ReactDOMServer: _serverbrowser.default, -+ element: content, -+ streamOptions: { -+ onError: reject -+ } -+ }).then(resolve, reject); - }); - }; - const createBodyResult = (0, _tracer.getTracer)().wrap(_constants2.RenderSpan.createBodyResult, (initialStream, suffix)=>{ From 560d736fe6513224dcd529bc72902275770effdf Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:28:38 +0700 Subject: [PATCH 04/11] ci: replace obsolete third-party Yarn installer --- .github/workflows/analyze.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 92752230c..c21f9a981 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -19,7 +19,7 @@ jobs: node-version: '20.x' - name: Install dependencies - uses: bahmutov/npm-install@v1.7.10 + run: yarn install --frozen-lockfile - name: Restore next build uses: actions/cache@v4 From 7c7a5caa409c266fc632f69f1abe54845601a6ea Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:30:44 +0700 Subject: [PATCH 05/11] build: resolve stale next.config.js merge markers --- next.config.js | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/next.config.js b/next.config.js index 9de7cf42d..302705d11 100644 --- a/next.config.js +++ b/next.config.js @@ -9,38 +9,7 @@ const nextConfig = { pageExtensions: ['jsx', 'js', 'ts', 'tsx', 'mdx', 'md'], reactStrictMode: true, experimental: { - // TODO: Remove after https://github.com/vercel/next.js/issues/49355 is fixed - appDir: false, scrollRestoration: true, -<<<<<<< HEAD - legacyBrowsers: false, -======= - reactCompiler: true, - }, - async rewrites() { - return { - beforeFiles: [ - // Explicit .md extension also serves markdown - { - source: '/:path*.md', - destination: '/api/md/:path*', - }, - // Serve markdown when Accept header prefers text/markdown - // Useful for LLM agents - https://www.skeptrune.com/posts/use-the-accept-header-to-serve-markdown-instead-of-html-to-llms/ - { - source: '/:path((?!llms\\.txt|api/md).*)', - has: [ - { - type: 'header', - key: 'accept', - value: '(.*text/markdown.*)', - }, - ], - destination: '/api/md/:path*', - }, - ], - }; ->>>>>>> 1207ee36e1c7e3f2737d8f1022015473ffa99adf }, env: {}, webpack: (config, {dev, isServer, ...options}) => { From 21a867f5d890e721c5bf7e8a9a1ca0c56fe76107 Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:32:48 +0700 Subject: [PATCH 06/11] ci: resolve existing ESLint configuration merge conflict --- .eslintrc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.eslintrc b/.eslintrc index 5731d2440..f963bda75 100644 --- a/.eslintrc +++ b/.eslintrc @@ -5,17 +5,8 @@ "plugins": ["@typescript-eslint"], "rules": { "no-unused-vars": "off", -<<<<<<< HEAD - "@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_" }], - "react-hooks/exhaustive-deps": "error" -======= "@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}], - "react-hooks/exhaustive-deps": "error", - "react/no-unknown-property": ["error", {"ignore": ["meta"]}], - "react-compiler/react-compiler": "error", - "local-rules/lint-markdown-code-blocks": "error", - "no-trailing-spaces": "error" ->>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a + "react-hooks/exhaustive-deps": "error" }, "env": { "node": true, From dae6ad0cc55236c4e8163c4ea09cfa06398acaaf Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:45:59 +0700 Subject: [PATCH 07/11] build: align TypeScript with Next.js 15 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 932ad2582..a8d71236c 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "retext-smartypants": "^4.0.0", "rss": "^1.2.2", "tailwindcss": "^3.4.1", - "typescript": "^4.0.2", + "typescript": "^5.7.2", "unist-util-visit": "^2.0.3", "webpack-bundle-analyzer": "^4.5.0" }, From 660541b845498e8f7ad9d499b1689d30b0b3176d Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:46:02 +0700 Subject: [PATCH 08/11] build: lock TypeScript 5.7.2 to verified upstream package --- yarn.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index f3b44d9d7..40c7e9629 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6432,10 +6432,10 @@ type@^2.7.2: resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== -typescript@^4.0.2: - version "4.5.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3" - integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA== +typescript@^5.7.2: + version "5.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" + integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== unbox-primitive@^1.0.1: version "1.0.1" From f10fa9ac77a3019c7ee12c3b5bf4ff0ecdc3ef83 Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:48:37 +0700 Subject: [PATCH 09/11] fix: parenthesize nullish fallback in team member error --- src/components/MDX/TeamMember.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/MDX/TeamMember.tsx b/src/components/MDX/TeamMember.tsx index c9e83ebc6..faa8ba7d6 100644 --- a/src/components/MDX/TeamMember.tsx +++ b/src/components/MDX/TeamMember.tsx @@ -37,10 +37,8 @@ export function TeamMember({ }: TeamMemberProps) { if (name == null || title == null || permalink == null || children == null) { throw new Error( - 'Expected name, title, permalink, and children for ' + name ?? - title ?? - permalink ?? - 'unknown' + 'Expected name, title, permalink, and children for ' + + (name ?? title ?? permalink ?? 'unknown') ); } return ( From 8e649253bfcda9f3593972475f7b11797c47fe19 Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:53:56 +0700 Subject: [PATCH 10/11] build: deduplicate React type definitions via explicit resolution --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index a8d71236c..88a47c736 100644 --- a/package.json +++ b/package.json @@ -107,5 +107,8 @@ "lint-staged": { "*.{js,ts,jsx,tsx,css}": "yarn prettier", "src/**/*.md": "yarn fix-headings" + }, + "resolutions": { + "@types/react": "18.0.9" } } From 555a966d8cd2644be2fdcf53fd16e009c2acdd50 Mon Sep 17 00:00:00 2001 From: Saleumsack Keoboualay Date: Tue, 10 Nov 2026 11:53:59 +0700 Subject: [PATCH 11/11] build: pin all React type declarations to 18.0.9 --- yarn.lock | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/yarn.lock b/yarn.lock index 40c7e9629..0d5784ffc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1200,16 +1200,8 @@ dependencies: "@types/react" "*" -"@types/react@*": - version "17.0.38" - resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.38.tgz#f24249fefd89357d5fa71f739a686b8d7c7202bd" - integrity sha512-SI92X1IA+FMnP3qM5m4QReluXzhcmovhZnLNm3pyeQlooi02qI7sLiepEYqT678uNiyc25XfCqxREFpy3W7YhQ== - dependencies: - "@types/prop-types" "*" - "@types/scheduler" "*" - csstype "^3.0.2" -"@types/react@^18.0.9": +"@types/react@*", "@types/react@^18.0.9": version "18.0.9" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.9.tgz#d6712a38bd6cd83469603e7359511126f122e878" integrity sha512-9bjbg1hJHUm4De19L1cHiW0Jvx3geel6Qczhjd0qY5VKVE2X5+x77YxAepuCwVh4vrgZJdgEJw48zrhRIeF4Nw==