From 8cc3bf7955abc50a7868109ddc55dd809ed474b4 Mon Sep 17 00:00:00 2001 From: sooniter Date: Mon, 21 Sep 2026 12:15:14 +0800 Subject: [PATCH 1/2] chore(deps): upgrade Rspress to 2.0.22 --- .../rspress-plugin-gh-pages/index.spec.ts | 3 +- .../index.spec.ts | 5 +- pnpm-lock.yaml | 371 ++++++++++++++---- pnpm-workspace.yaml | 2 +- 4 files changed, 306 insertions(+), 75 deletions(-) diff --git a/packages/rspress-plugin-gh-pages/index.spec.ts b/packages/rspress-plugin-gh-pages/index.spec.ts index db68ddd..9002d48 100644 --- a/packages/rspress-plugin-gh-pages/index.spec.ts +++ b/packages/rspress-plugin-gh-pages/index.spec.ts @@ -8,7 +8,8 @@ describe('rspress-plugin-gh-pages', () => { test('serves docs from the inferred repository base', async ({ page }) => { await page.goto(pageUrl('/rspress-plugins/')); - await expect(page).toHaveURL(/\/rspress-plugins\/$/); + // Rspress canonicalizes the index route while preserving the inferred base. + await expect(page).toHaveURL(pageUrl('/rspress-plugins/index.html')); await expect( page.getByRole('heading', { name: 'RSPress x GH Pages' }), ).toBeVisible(); diff --git a/packages/rspress-plugin-google-analytics/index.spec.ts b/packages/rspress-plugin-google-analytics/index.spec.ts index da5dd50..2955abc 100644 --- a/packages/rspress-plugin-google-analytics/index.spec.ts +++ b/packages/rspress-plugin-google-analytics/index.spec.ts @@ -36,6 +36,9 @@ describe('rspress-plugin-google-analytics', () => { test('configures every ID and reports the page view', async ({ page }) => { await page.goto(pageUrl()); + // Analytics should report the canonical pathname used by the router. + await expect(page).toHaveURL(pageUrl('/index.html')); + await expect .poll( () => @@ -51,7 +54,7 @@ describe('rspress-plugin-google-analytics', () => { expect.arrayContaining([ ['config', 'G-E2EPRIMARY', { anonymize_ip: true }], ['config', 'G-E2ESECONDARY', { anonymize_ip: true }], - ['set', 'page_path', '/'], + ['set', 'page_path', '/index.html'], ['event', 'page_view'], ]), ); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index add6923..73b89bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,8 +14,8 @@ catalogs: specifier: ^2.1.0 version: 2.1.0 '@rspress/core': - specifier: ^2.0.19 - version: 2.0.19 + specifier: ^2.0.22 + version: 2.0.22 '@types/node': specifier: ^24.13.3 version: 24.13.3 @@ -47,7 +47,7 @@ importers: version: 7.58.12(@types/node@24.13.3) '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@rstest/core': specifier: 0.11.5 version: 0.11.5 @@ -95,7 +95,7 @@ importers: version: 1.0.0(@rsbuild/core@2.1.8) rstack: specifier: ^0.6.4 - version: 0.6.4(@microsoft/api-extractor@7.58.12)(@rspress/core@2.0.19)(typescript@6.0.3) + version: 0.6.4(@microsoft/api-extractor@7.58.12)(@rspress/core@2.0.22)(typescript@6.0.3) tree-kill: specifier: ^1.2.2 version: 1.2.2 @@ -111,7 +111,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -133,10 +133,10 @@ importers: devDependencies: '@rsbuild/plugin-less': specifier: 'catalog:' - version: 2.0.1(@rsbuild/core@2.1.8)(@rspack/core@2.1.10)(supports-color@10.2.2) + version: 2.0.1(@rsbuild/core@2.1.8)(@rspack/core@2.2.6)(supports-color@10.2.2) '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(@rspack/core@2.2.6)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -203,7 +203,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -222,7 +222,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -241,13 +241,13 @@ importers: devDependencies: '@rsbuild/plugin-less': specifier: 'catalog:' - version: 2.0.1(@rsbuild/core@2.1.8)(@rspack/core@2.1.10)(supports-color@10.2.2) + version: 2.0.1(@rsbuild/core@2.1.8)(@rspack/core@2.2.6)(supports-color@10.2.2) '@rsbuild/plugin-react': specifier: 'catalog:' - version: 2.1.0(@rsbuild/core@2.1.8)(@rspack/core@2.1.10) + version: 2.1.0(@rsbuild/core@2.1.8)(@rspack/core@2.2.6) '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(@rspack/core@2.2.6)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -284,7 +284,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/gh-pages': specifier: ^6.1.0 version: 6.1.0 @@ -306,7 +306,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -340,7 +340,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -362,7 +362,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -387,7 +387,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -412,7 +412,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -434,7 +434,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -453,7 +453,7 @@ importers: devDependencies: '@rspress/core': specifier: 'catalog:' - version: 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + version: 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@types/node': specifier: 'catalog:' version: 24.13.3 @@ -700,8 +700,8 @@ packages: core-js: optional: true - '@rsbuild/core@2.1.9': - resolution: {integrity: sha512-yqf1hFZ3wbMYI431LqsxLH3r0VZkfyarVKTf7kMeIiGe0YLwsrgsfp+sKpIyVkQkq60J0qyp6l/CoqqsQZqEwQ==} + '@rsbuild/core@2.2.0-rc.0': + resolution: {integrity: sha512-f6orjv+wOR1u7KchE/vANGP0Eg7AP0UaiM0qn4n+5I0HOUdkVVbNCA1eZSpyX+TJ9bIdZtkbR6T47vBdoFr1MA==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -710,8 +710,8 @@ packages: core-js: optional: true - '@rsbuild/core@2.2.0-rc.0': - resolution: {integrity: sha512-f6orjv+wOR1u7KchE/vANGP0Eg7AP0UaiM0qn4n+5I0HOUdkVVbNCA1eZSpyX+TJ9bIdZtkbR6T47vBdoFr1MA==} + '@rsbuild/core@2.2.8': + resolution: {integrity: sha512-/htjYpZiqZFB/fELguE8nkqKDT/DqHXeXUgdf+X4UlP5BJc1EeolZ9ksDpCw9WNTlcn3zsPOj7UZ0dUUB4FAFA==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -817,6 +817,11 @@ packages: cpu: [arm64] os: [darwin] + '@rspack/binding-darwin-arm64@2.2.6': + resolution: {integrity: sha512-y8I8MAeKAOYuLqEKYQSmNFcW4dI1u5O+xYQcjT1L3Gby02KEt0YxlmSPvzElSQJUjsJ8PkKqU3U1suDjA6xvkg==} + cpu: [arm64] + os: [darwin] + '@rspack/binding-darwin-x64@2.1.10': resolution: {integrity: sha512-my/0h2LwxCRT6cg3oDDC2e0ZOxQLVajAdIcv0fqnQk5JRNvVuL89PuTutitnSqie1A0/JSL8OQz5XHwmoS3kow==} cpu: [x64] @@ -832,6 +837,11 @@ packages: cpu: [x64] os: [darwin] + '@rspack/binding-darwin-x64@2.2.6': + resolution: {integrity: sha512-+zhtUAP+nZON1lSlqOFJWW2VpIXRZ4/NQskYe0xohELI4Fr6xun/Oh8dIMt+Nviamvo7lbO9XURrFio1+Fziog==} + cpu: [x64] + os: [darwin] + '@rspack/binding-linux-arm64-gnu@2.1.10': resolution: {integrity: sha512-laevn9g+E5PAUEGqiKe6Ju5KApsuQYp+bPI17XS3Lkl8eqL5pS/BmHYU7QMlst4GzV8+wlruVTMh//+st6Vqzg==} cpu: [arm64] @@ -850,6 +860,12 @@ packages: os: [linux] libc: [glibc] + '@rspack/binding-linux-arm64-gnu@2.2.6': + resolution: {integrity: sha512-7GI9xlkzVMAp9dbNvynvAreMjQQNw01b+khYYfmoQOgWXTUwrtzR7/JhJ3tijVQTXkyiYAKJ0RPvz57yD+p1vQ==} + cpu: [arm64] + os: [linux] + libc: [glibc] + '@rspack/binding-linux-arm64-musl@2.1.10': resolution: {integrity: sha512-V71+Qz5G72+ROZXrJn5zxOszdG1AEbO8pcC/itXXtf4yRR6a3bVHKNKGhipBNxb8eI6cnD/01FH1h3ZG655jLw==} cpu: [arm64] @@ -868,6 +884,12 @@ packages: os: [linux] libc: [musl] + '@rspack/binding-linux-arm64-musl@2.2.6': + resolution: {integrity: sha512-klkjpGdeROzRiGSk2amfeZBAh0vWu0GjX5xKKQfRR4IqKQxURGCQafbvl3VX5XrHEUnKFzag89Lyv+ZVx5eTCw==} + cpu: [arm64] + os: [linux] + libc: [musl] + '@rspack/binding-linux-ppc64-gnu@2.1.10': resolution: {integrity: sha512-U7HlNzHcDtZ+LYOtOJmtx67kHEybZzUUAaP7aEXjGYO5WTCgh/176sW2UYP0rmZLrgUNFUuzn+B98RLaClNaVg==} cpu: [ppc64] @@ -880,6 +902,12 @@ packages: os: [linux] libc: [glibc] + '@rspack/binding-linux-ppc64-gnu@2.2.6': + resolution: {integrity: sha512-TpLZr49oU31EuEqVDczpbfLZ6c976zu8HspBuUWYj1Ra4SNeOHhINKE1i42OVw2DCEMpsz8Tv3tYyLVACGC8JA==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + '@rspack/binding-linux-riscv64-gnu@2.1.10': resolution: {integrity: sha512-GMGTJpy9/ecE+5F5IfxZH4bXv0Wx/b2TiehTlCbTksbL+pKpLHYy0rwGdjWDKbmBkhxMMqPiC7PDnn9LbdnnLA==} cpu: [riscv64] @@ -898,6 +926,12 @@ packages: os: [linux] libc: [glibc] + '@rspack/binding-linux-riscv64-gnu@2.2.6': + resolution: {integrity: sha512-gU3Ki8Lt6cE4qRM62959/28GG3XQUZsnvstgDULJpkHR5QFGYXUhOoPe2fpyWYrLw6+t9lWXBuI/gUez1zc8Sg==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + '@rspack/binding-linux-riscv64-musl@2.1.10': resolution: {integrity: sha512-rkurnAWc04vIbzG1QCrPBWSJadZvaOt1mazFH3EdiJO8VUiu0I1T9zdiwuDOPrd50lOKIZlcTXbd5aaAkWEnvQ==} cpu: [riscv64] @@ -916,6 +950,12 @@ packages: os: [linux] libc: [musl] + '@rspack/binding-linux-riscv64-musl@2.2.6': + resolution: {integrity: sha512-OQRvU8HT9rGmtgdpieO722IrGViDlR0D6yjqbt7S51b+saBPwJ8Nf3fwMtpZnBo1djV2BGXK00L34jYypeChrw==} + cpu: [riscv64] + os: [linux] + libc: [musl] + '@rspack/binding-linux-s390x-gnu@2.1.10': resolution: {integrity: sha512-X+DyxkriZEAF/wihI7ERDv+CAS0mbMv36aEuQ+vXzTlvS6cSmpou/r29AHbvIF3NlG1UeAbDVlOs9QrMBZjpUQ==} cpu: [s390x] @@ -928,6 +968,12 @@ packages: os: [linux] libc: [glibc] + '@rspack/binding-linux-s390x-gnu@2.2.6': + resolution: {integrity: sha512-pus4Z76+J1iRO5Gutc6pq1LkyVhXqi0Sw6o5Dxwtl3sSbVy+F5PJkxtAT+DEg07pQy5m3dCymz2CIpiFlwYLTQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + '@rspack/binding-linux-x64-gnu@2.1.10': resolution: {integrity: sha512-Fat09V6jUuyo9qG7Wyj9cQ31VDfLmokXyBtGqKxY5OvSWHereB7QUub5btbPXHwbp6Iq4aAQyUbbLTzvR1YaBw==} cpu: [x64] @@ -946,6 +992,12 @@ packages: os: [linux] libc: [glibc] + '@rspack/binding-linux-x64-gnu@2.2.6': + resolution: {integrity: sha512-M0Efi9ny2cJ6VdhHxsZbcwdRCQ0HqBAsnPxPB8Ulknj+VtRlWnTlX/DlqMaHFuCb0MOWS6DXGGEAZ8veEil0BA==} + cpu: [x64] + os: [linux] + libc: [glibc] + '@rspack/binding-linux-x64-musl@2.1.10': resolution: {integrity: sha512-lhHOnIJ4ClpIlA1f1L8aoxEZivYLjnjq5A6jKKz7BKsm+cHK8kqqEm6lO5KqA5xQT0Lonq1o28bmKHEj6JHInw==} cpu: [x64] @@ -964,6 +1016,12 @@ packages: os: [linux] libc: [musl] + '@rspack/binding-linux-x64-musl@2.2.6': + resolution: {integrity: sha512-614vRMr6VAqUXQm9TY7FCamcB08XJOv51WAwIlfEpoKTYxzNiQvrTYBYPgStUH20ywLwVoN6EJ++WCmHaebGWw==} + cpu: [x64] + os: [linux] + libc: [musl] + '@rspack/binding-wasm32-wasi@2.1.10': resolution: {integrity: sha512-KY5YbWbuvYcoaLXnV+vzZOvGRCeb6jt4EpVpKdph1h1IJjwX/ju15EQ+GOe3iecZEdf0OttQcNVcwBkLkFT9ag==} cpu: [wasm32] @@ -976,6 +1034,10 @@ packages: resolution: {integrity: sha512-2Vvtckz5DNghQKQKwghfM4j30MOu7t9J7mbUCCi7mTUccpy7Cnr0HPmSV9Jx4sUj6vgQEV+8lIAIxNDNtr0Vhg==} cpu: [wasm32] + '@rspack/binding-wasm32-wasi@2.2.6': + resolution: {integrity: sha512-p995VmOEcHWPKw/Eek0CYUjmXWhfyWOPoKtE51Dy0/jqHcs7uRy53igDd277yHTuKCHibmwU+cjSKUe6b/aBZg==} + cpu: [wasm32] + '@rspack/binding-win32-arm64-msvc@2.1.10': resolution: {integrity: sha512-z4GWzMLofaDGpAt9Z+MlN88LlUBDm+zM6R2GdOOPM6/4g/h3/+47OP7casmSL3AwTGYBEJqogwt08sRSosB6Cg==} cpu: [arm64] @@ -991,6 +1053,11 @@ packages: cpu: [arm64] os: [win32] + '@rspack/binding-win32-arm64-msvc@2.2.6': + resolution: {integrity: sha512-xC8nHMqVzQWqVW95HOcf9qTsM445ui7QNfUTDui6oTiHcBtsyfK1CEdXsc50bdi/FrJ2ueOps3M5gxbM8Ttl/A==} + cpu: [arm64] + os: [win32] + '@rspack/binding-win32-ia32-msvc@2.1.10': resolution: {integrity: sha512-7qcWdsZ+GuGtzKjqgy7wTN7Dso/ezIY8yhx1r2yIbcczdmXj4FhaEampMDp/25HwtKwIGBBoh6HHSt3JWxpTUg==} cpu: [ia32] @@ -1006,6 +1073,11 @@ packages: cpu: [ia32] os: [win32] + '@rspack/binding-win32-ia32-msvc@2.2.6': + resolution: {integrity: sha512-sfqP/LSnMwAHpTA+Cfbkhvx/IvUr23Z7S+miOkaMT/j2XJYCBrPZK0ZYm8+LUNDQ2ij8/XCJT4pVpQbtc/SMPw==} + cpu: [ia32] + os: [win32] + '@rspack/binding-win32-x64-msvc@2.1.10': resolution: {integrity: sha512-pgp23pLrzfhGnKycxzr7ifP17lAbWZEfnx1bX8gXtYrnpJ66DRNyTKSzxB6sa/HBWjS1L8PX5TjMZ44WfPydqQ==} cpu: [x64] @@ -1021,6 +1093,11 @@ packages: cpu: [x64] os: [win32] + '@rspack/binding-win32-x64-msvc@2.2.6': + resolution: {integrity: sha512-b1ERY5QydZWJKA13AYsoMPZycG5AGoUc3sOMqLszO0gs84aMnLbK7lBiyeZCvEcHEa7gSFQlLQr9p+Xk7HPO4Q==} + cpu: [x64] + os: [win32] + '@rspack/binding@2.1.10': resolution: {integrity: sha512-vnu/UP5HnrND15lO9+VeG6eUrbTyycHNQNQ3XEiRiFojuoiGZkIZC3Hbzr8qQH44C6vScPODEPvvIVvLcO2LpQ==} @@ -1030,6 +1107,9 @@ packages: '@rspack/binding@2.2.0-rc.0': resolution: {integrity: sha512-/Q9ysTd5ajEbIS+Sv61trElR7pWAa5LvcWNrYT+AKI9APsVwy4Y3CIPjEkd7jYeNHl1PJWSLCOUy+BzRUICDUg==} + '@rspack/binding@2.2.6': + resolution: {integrity: sha512-bCB4a7KKaQpPNlkExf27AmLJabeGjpjXlhnCdvmSIHHlT3YfpYz2CSKOLLLI/BcBez8zUBNDVmvswm3ggCCRqA==} + '@rspack/core@2.1.10': resolution: {integrity: sha512-YSS2/Xxz8uiG/KXDkqOoA3dTetNo/vysk7bAexQOrU8iuq7JuzDTTAwLKvWZnwmvME8M8m5wcM4YvfIwYmidHA==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1066,6 +1146,18 @@ packages: '@swc/helpers': optional: true + '@rspack/core@2.2.6': + resolution: {integrity: sha512-sqN75Fgf6v3tCmt8GAG/rdcYHOUDv/YZbQf24YCGDoMLmdNlXCosCHkBYWI8qdLs9IqSnGt7XgbcA39Zilg6UQ==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + '@module-federation/runtime-tools': ^0.24.1 || ^2.0.0 + '@swc/helpers': ^0.5.23 + peerDependenciesMeta: + '@module-federation/runtime-tools': + optional: true + '@swc/helpers': + optional: true + '@rspack/plugin-react-refresh@2.0.2': resolution: {integrity: sha512-dGNZiCxQxgAUI9sah7gd8u+O7OJZRCmqtEJNDOd8xW5RqcieC86F7p5qcShyw6onH5pKf57evpr2VjGbaFGkZg==} peerDependencies: @@ -1075,13 +1167,13 @@ packages: '@rspack/core': optional: true - '@rspress/core@2.0.19': - resolution: {integrity: sha512-m0KfQNNXxjP975652nIOwUTqrvbJapRp4NpnoQMc5heawGhkC4+F7zTHvxY+huvzGYnKtL2fMMTrgWhEjKkrug==} + '@rspress/core@2.0.22': + resolution: {integrity: sha512-mS/+xJYxVSR72GAjTz8GIGcJwwb2NSbbduq1fQOSv7k73EJ2aa0Q/o14nnnI4DRmRSEmK0t81vkVGcKHWQzPcA==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true - '@rspress/shared@2.0.19': - resolution: {integrity: sha512-INrETllWuR49lksqCz+xeLSO6rKtHA+5Ix2YQWcP9nerCuTSyGYwH8eBC0HrIacJkGHxB8wkkbV99tyzGtY8Wg==} + '@rspress/shared@2.0.22': + resolution: {integrity: sha512-1UXwG6gAhWBw5vClv3wb2Oy8hPXYNgQwQ5zWXEG8auY5ZcMywvHCBi6pFJtYNOgXe5327lNgiOG0S1R8l0OLeg==} '@rstackjs/cli-darwin-arm64@0.6.4': resolution: {integrity: sha512-mr+vVKE3uNzj9n7jzvWVDsEeDpoCCtk0pJN3evro1EVSsi703vzZuR0KNYI1VgjHvzO7re55cHCuQ0GhQHXPGw==} @@ -1334,8 +1426,8 @@ packages: '@types/react@18.3.31': resolution: {integrity: sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==} - '@types/react@19.2.17': - resolution: {integrity: sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==} + '@types/react@19.3.0': + resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==} '@types/throttle-debounce@5.0.2': resolution: {integrity: sha512-pDzSNulqooSKvSNcksnV72nk8p7gRqN8As71Sp28nov1IgmPKWbOEIwAWvBME5pPTtaXJAvG3O4oc76HlQ4kqQ==} @@ -1352,8 +1444,8 @@ packages: '@ungap/structured-clone@1.3.3': resolution: {integrity: sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==} - '@unhead/react@2.1.16': - resolution: {integrity: sha512-FhKVVHAsHbiD24yNAklQIAbjGmcVLTJjKFx1YEhOzGmiZaH2q6CzbwxboJYK6oasepio8Qap9UqHhudJ98wTbA==} + '@unhead/react@2.1.17': + resolution: {integrity: sha512-KmcYksDjlLozL0fxUjIDwH/0k6+Lg2HWHLUPlkRW8Gl08hdB1AbLB5iU9QxFvkaT8p0Q4dFEqZWnz3g6RMeiRA==} peerDependencies: react: '>=18.3.1' @@ -2836,15 +2928,15 @@ packages: peerDependencies: react: '>=19' - react-router-dom@7.18.2: - resolution: {integrity: sha512-AIKJ/jgGlFb3EbfCXk5Gzshiwt+l3mqbCrNjmEWMMjqQxNJ3svBa6bgzFyCC2Sw3RA0VWF1kg3uQf2OFhxb8hw==} + react-router-dom@7.18.4: + resolution: {integrity: sha512-yrfmJHIpDG7taCpqKjT1G5B6q3O2K+RN8/fgNf0lTjCwiPbQ0ei6vXX9ZjQR+7ld8Tr7Z5xmyMnZ8YJrphWQUw==} engines: {node: '>=20.0.0'} peerDependencies: react: '>=18' react-dom: '>=18' - react-router@7.18.2: - resolution: {integrity: sha512-aUVMjFm3GAPTTZL7oYr5E7ETiqfQCHRLH+B+5afnICvf0r7kkK4eR6SMuwbSTJw/7t+12khT/Kahij49fqOCIg==} + react-router@7.18.4: + resolution: {integrity: sha512-PUPQcMhMGRAslLcvtlPz/kmzBEWPhLdgLFrL7pLNepBL6dX0lWj4WD2cUYVgYCuT3jxvghYFg81cDTj44DhetQ==} engines: {node: '>=20.0.0'} peerDependencies: react: '>=18' @@ -3211,8 +3303,8 @@ packages: undici-types@7.24.6: resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==} - unhead@2.1.16: - resolution: {integrity: sha512-cD2Q4a6SQHhW9/bPp17NT4GJ1yS0DSLe75WEHKQ8bKa/wjB6cIki3KeL86hhllNBcpv8i6bxdwtwQunneXPqKQ==} + unhead@2.1.17: + resolution: {integrity: sha512-HLMKXOszRhAPBrr6VlqCeVeJq2kbC4kXwzGLEZvvojPLWNYTJw22xG7Bfwhsvs31+IBet3Wl8ADg9dwYdyphfQ==} unified@11.0.5: resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==} @@ -3605,10 +3697,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@mdx-js/react@3.1.1(@types/react@19.2.17)(react@19.2.8)': + '@mdx-js/react@3.1.1(@types/react@19.3.0)(react@19.2.8)': dependencies: '@types/mdx': 2.0.14 - '@types/react': 19.2.17 + '@types/react': 19.3.0 react: 19.2.8 '@microsoft/api-extractor-model@7.33.10(@types/node@24.13.3)': @@ -3690,25 +3782,25 @@ snapshots: transitivePeerDependencies: - '@module-federation/runtime-tools' - '@rsbuild/core@2.1.9': + '@rsbuild/core@2.2.0-rc.0': dependencies: - '@rspack/core': 2.1.7(@swc/helpers@0.5.23) + '@rspack/core': 2.2.0-rc.0(@swc/helpers@0.5.23) '@swc/helpers': 0.5.23 transitivePeerDependencies: - '@module-federation/runtime-tools' - '@rsbuild/core@2.2.0-rc.0': + '@rsbuild/core@2.2.8': dependencies: - '@rspack/core': 2.2.0-rc.0(@swc/helpers@0.5.23) + '@rspack/core': 2.2.6(@swc/helpers@0.5.23) '@swc/helpers': 0.5.23 transitivePeerDependencies: - '@module-federation/runtime-tools' - '@rsbuild/plugin-less@2.0.1(@rsbuild/core@2.1.8)(@rspack/core@2.1.10)(supports-color@10.2.2)': + '@rsbuild/plugin-less@2.0.1(@rsbuild/core@2.1.8)(@rspack/core@2.2.6)(supports-color@10.2.2)': dependencies: deepmerge: 4.3.1 less: 4.8.1(supports-color@10.2.2) - less-loader: 12.3.3(@rspack/core@2.1.10)(less@4.8.1) + less-loader: 12.3.3(@rspack/core@2.2.6)(less@4.8.1) reduce-configs: 2.0.1 optionalDependencies: '@rsbuild/core': 2.1.8 @@ -3717,15 +3809,33 @@ snapshots: - supports-color - webpack - '@rsbuild/plugin-react@2.1.0(@rsbuild/core@2.1.8)(@rspack/core@2.1.10)': + '@rsbuild/plugin-react@2.1.0(@rsbuild/core@2.1.8)(@rspack/core@2.2.6)': dependencies: - '@rspack/plugin-react-refresh': 2.0.2(@rspack/core@2.1.10)(react-refresh@0.18.0) + '@rspack/plugin-react-refresh': 2.0.2(@rspack/core@2.2.6)(react-refresh@0.18.0) react-refresh: 0.18.0 optionalDependencies: '@rsbuild/core': 2.1.8 transitivePeerDependencies: - '@rspack/core' + '@rsbuild/plugin-react@2.1.0(@rsbuild/core@2.2.8)': + dependencies: + '@rspack/plugin-react-refresh': 2.0.2(@rspack/core@2.2.6)(react-refresh@0.18.0) + react-refresh: 0.18.0 + optionalDependencies: + '@rsbuild/core': 2.2.8 + transitivePeerDependencies: + - '@rspack/core' + + '@rsbuild/plugin-react@2.1.0(@rsbuild/core@2.2.8)(@rspack/core@2.2.6)': + dependencies: + '@rspack/plugin-react-refresh': 2.0.2(@rspack/core@2.2.6)(react-refresh@0.18.0) + react-refresh: 0.18.0 + optionalDependencies: + '@rsbuild/core': 2.2.8 + transitivePeerDependencies: + - '@rspack/core' + '@rslib/core@1.0.0-rc.1(@microsoft/api-extractor@7.58.12)(typescript@6.0.3)': dependencies: '@rsbuild/core': 2.2.0-rc.0 @@ -3783,6 +3893,9 @@ snapshots: '@rspack/binding-darwin-arm64@2.2.0-rc.0': optional: true + '@rspack/binding-darwin-arm64@2.2.6': + optional: true + '@rspack/binding-darwin-x64@2.1.10': optional: true @@ -3792,6 +3905,9 @@ snapshots: '@rspack/binding-darwin-x64@2.2.0-rc.0': optional: true + '@rspack/binding-darwin-x64@2.2.6': + optional: true + '@rspack/binding-linux-arm64-gnu@2.1.10': optional: true @@ -3801,6 +3917,9 @@ snapshots: '@rspack/binding-linux-arm64-gnu@2.2.0-rc.0': optional: true + '@rspack/binding-linux-arm64-gnu@2.2.6': + optional: true + '@rspack/binding-linux-arm64-musl@2.1.10': optional: true @@ -3810,12 +3929,18 @@ snapshots: '@rspack/binding-linux-arm64-musl@2.2.0-rc.0': optional: true + '@rspack/binding-linux-arm64-musl@2.2.6': + optional: true + '@rspack/binding-linux-ppc64-gnu@2.1.10': optional: true '@rspack/binding-linux-ppc64-gnu@2.2.0-rc.0': optional: true + '@rspack/binding-linux-ppc64-gnu@2.2.6': + optional: true + '@rspack/binding-linux-riscv64-gnu@2.1.10': optional: true @@ -3825,6 +3950,9 @@ snapshots: '@rspack/binding-linux-riscv64-gnu@2.2.0-rc.0': optional: true + '@rspack/binding-linux-riscv64-gnu@2.2.6': + optional: true + '@rspack/binding-linux-riscv64-musl@2.1.10': optional: true @@ -3834,12 +3962,18 @@ snapshots: '@rspack/binding-linux-riscv64-musl@2.2.0-rc.0': optional: true + '@rspack/binding-linux-riscv64-musl@2.2.6': + optional: true + '@rspack/binding-linux-s390x-gnu@2.1.10': optional: true '@rspack/binding-linux-s390x-gnu@2.2.0-rc.0': optional: true + '@rspack/binding-linux-s390x-gnu@2.2.6': + optional: true + '@rspack/binding-linux-x64-gnu@2.1.10': optional: true @@ -3849,6 +3983,9 @@ snapshots: '@rspack/binding-linux-x64-gnu@2.2.0-rc.0': optional: true + '@rspack/binding-linux-x64-gnu@2.2.6': + optional: true + '@rspack/binding-linux-x64-musl@2.1.10': optional: true @@ -3858,6 +3995,9 @@ snapshots: '@rspack/binding-linux-x64-musl@2.2.0-rc.0': optional: true + '@rspack/binding-linux-x64-musl@2.2.6': + optional: true + '@rspack/binding-wasm32-wasi@2.1.10': dependencies: '@emnapi/core': 1.11.3 @@ -3879,6 +4019,13 @@ snapshots: '@napi-rs/wasm-runtime': 1.1.6(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3) optional: true + '@rspack/binding-wasm32-wasi@2.2.6': + dependencies: + '@emnapi/core': 1.11.3 + '@emnapi/runtime': 1.11.3 + '@napi-rs/wasm-runtime': 1.1.6(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3) + optional: true + '@rspack/binding-win32-arm64-msvc@2.1.10': optional: true @@ -3888,6 +4035,9 @@ snapshots: '@rspack/binding-win32-arm64-msvc@2.2.0-rc.0': optional: true + '@rspack/binding-win32-arm64-msvc@2.2.6': + optional: true + '@rspack/binding-win32-ia32-msvc@2.1.10': optional: true @@ -3897,6 +4047,9 @@ snapshots: '@rspack/binding-win32-ia32-msvc@2.2.0-rc.0': optional: true + '@rspack/binding-win32-ia32-msvc@2.2.6': + optional: true + '@rspack/binding-win32-x64-msvc@2.1.10': optional: true @@ -3906,6 +4059,9 @@ snapshots: '@rspack/binding-win32-x64-msvc@2.2.0-rc.0': optional: true + '@rspack/binding-win32-x64-msvc@2.2.6': + optional: true + '@rspack/binding@2.1.10': optionalDependencies: '@rspack/binding-darwin-arm64': 2.1.10 @@ -3955,6 +4111,23 @@ snapshots: '@rspack/binding-win32-ia32-msvc': 2.2.0-rc.0 '@rspack/binding-win32-x64-msvc': 2.2.0-rc.0 + '@rspack/binding@2.2.6': + optionalDependencies: + '@rspack/binding-darwin-arm64': 2.2.6 + '@rspack/binding-darwin-x64': 2.2.6 + '@rspack/binding-linux-arm64-gnu': 2.2.6 + '@rspack/binding-linux-arm64-musl': 2.2.6 + '@rspack/binding-linux-ppc64-gnu': 2.2.6 + '@rspack/binding-linux-riscv64-gnu': 2.2.6 + '@rspack/binding-linux-riscv64-musl': 2.2.6 + '@rspack/binding-linux-s390x-gnu': 2.2.6 + '@rspack/binding-linux-x64-gnu': 2.2.6 + '@rspack/binding-linux-x64-musl': 2.2.6 + '@rspack/binding-wasm32-wasi': 2.2.6 + '@rspack/binding-win32-arm64-msvc': 2.2.6 + '@rspack/binding-win32-ia32-msvc': 2.2.6 + '@rspack/binding-win32-x64-msvc': 2.2.6 + '@rspack/core@2.1.10(@swc/helpers@0.5.23)': dependencies: '@rspack/binding': 2.1.10 @@ -3973,23 +4146,29 @@ snapshots: optionalDependencies: '@swc/helpers': 0.5.23 - '@rspack/plugin-react-refresh@2.0.2(@rspack/core@2.1.10)(react-refresh@0.18.0)': + '@rspack/core@2.2.6(@swc/helpers@0.5.23)': + dependencies: + '@rspack/binding': 2.2.6 + optionalDependencies: + '@swc/helpers': 0.5.23 + + '@rspack/plugin-react-refresh@2.0.2(@rspack/core@2.2.6)(react-refresh@0.18.0)': dependencies: react-refresh: 0.18.0 optionalDependencies: - '@rspack/core': 2.1.10(@swc/helpers@0.5.23) + '@rspack/core': 2.2.6(@swc/helpers@0.5.23) - '@rspress/core@2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2)': + '@rspress/core@2.0.22(@rspack/core@2.2.6)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2)': dependencies: '@mdx-js/mdx': 3.1.1(supports-color@10.2.2) - '@mdx-js/react': 3.1.1(@types/react@19.2.17)(react@19.2.8) - '@rsbuild/core': 2.1.8 - '@rsbuild/plugin-react': 2.1.0(@rsbuild/core@2.1.8)(@rspack/core@2.1.10) - '@rspress/shared': 2.0.19(supports-color@10.2.2) + '@mdx-js/react': 3.1.1(@types/react@19.3.0)(react@19.2.8) + '@rsbuild/core': 2.2.8 + '@rsbuild/plugin-react': 2.1.0(@rsbuild/core@2.2.8)(@rspack/core@2.2.6) + '@rspress/shared': 2.0.22(supports-color@10.2.2) '@shikijs/rehype': 4.3.1 '@types/mdast': 4.0.4 - '@types/react': 19.2.17 - '@unhead/react': 2.1.16(react@19.2.8) + '@types/react': 19.3.0 + '@unhead/react': 2.1.17(react@19.2.8) body-scroll-lock: 4.0.0-beta.0 clsx: 2.1.1 copy-to-clipboard: 3.3.3 @@ -4004,7 +4183,7 @@ snapshots: react-dom: 19.2.8(react@19.2.8) react-lazy-with-preload: 2.2.1 react-render-to-markdown: 19.1.0(react@19.2.8) - react-router-dom: 7.18.2(react-dom@19.2.8)(react@19.2.8) + react-router-dom: 7.18.4(react-dom@19.2.8)(react@19.2.8) rehype-external-links: 3.0.0 rehype-raw: 7.0.0 remark-cjk-friendly: 2.3.1(@types/mdast@4.0.4)(micromark-util-types@2.0.2)(micromark@4.0.2)(unified@11.0.5) @@ -4027,11 +4206,59 @@ snapshots: - micromark-util-types - supports-color - '@rspress/shared@2.0.19(supports-color@10.2.2)': + '@rspress/core@2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2)': dependencies: - '@rsbuild/core': 2.1.9 + '@mdx-js/mdx': 3.1.1(supports-color@10.2.2) + '@mdx-js/react': 3.1.1(@types/react@19.3.0)(react@19.2.8) + '@rsbuild/core': 2.2.8 + '@rsbuild/plugin-react': 2.1.0(@rsbuild/core@2.2.8) + '@rspress/shared': 2.0.22(supports-color@10.2.2) '@shikijs/rehype': 4.3.1 - '@types/react': 19.2.17 + '@types/mdast': 4.0.4 + '@types/react': 19.3.0 + '@unhead/react': 2.1.17(react@19.2.8) + body-scroll-lock: 4.0.0-beta.0 + clsx: 2.1.1 + copy-to-clipboard: 3.3.3 + flexsearch: 0.8.212 + hast-util-heading-rank: 3.0.0 + hast-util-to-jsx-runtime: 2.3.6(supports-color@10.2.2) + mdast-util-mdx: 3.0.0(supports-color@10.2.2) + mdast-util-mdxjs-esm: 2.0.1(supports-color@10.2.2) + medium-zoom: 1.1.0 + nprogress: 0.2.0 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + react-lazy-with-preload: 2.2.1 + react-render-to-markdown: 19.1.0(react@19.2.8) + react-router-dom: 7.18.4(react-dom@19.2.8)(react@19.2.8) + rehype-external-links: 3.0.0 + rehype-raw: 7.0.0 + remark-cjk-friendly: 2.3.1(@types/mdast@4.0.4)(micromark-util-types@2.0.2)(micromark@4.0.2)(unified@11.0.5) + remark-cjk-friendly-gfm-strikethrough: 2.3.1(@types/mdast@4.0.4)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2)(unified@11.0.5) + remark-gfm: 4.0.1(supports-color@10.2.2) + remark-mdx: 3.1.1(supports-color@10.2.2) + remark-parse: 11.0.0(supports-color@10.2.2) + remark-stringify: 11.0.0 + scroll-into-view-if-needed: 3.1.0 + shiki: 4.3.1 + unified: 11.0.5 + unist-util-visit: 5.1.0 + unist-util-visit-children: 3.0.0 + vfile: 6.0.3 + transitivePeerDependencies: + - '@module-federation/runtime-tools' + - '@rspack/core' + - core-js + - micromark + - micromark-util-types + - supports-color + + '@rspress/shared@2.0.22(supports-color@10.2.2)': + dependencies: + '@rsbuild/core': 2.2.8 + '@shikijs/rehype': 4.3.1 + '@types/react': 19.3.0 mdast-util-mdx-jsx: 3.2.0(supports-color@10.2.2) unified: 11.0.5 transitivePeerDependencies: @@ -4273,7 +4500,7 @@ snapshots: '@types/prop-types': 15.7.15 csstype: 3.2.3 - '@types/react@19.2.17': + '@types/react@19.3.0': dependencies: csstype: 3.2.3 @@ -4288,10 +4515,10 @@ snapshots: '@ungap/structured-clone@1.3.3': {} - '@unhead/react@2.1.16(react@19.2.8)': + '@unhead/react@2.1.17(react@19.2.8)': dependencies: react: 19.2.8 - unhead: 2.1.16 + unhead: 2.1.17 '@vercel/analytics@1.6.1(react@18.3.1)': optionalDependencies: @@ -5202,11 +5429,11 @@ snapshots: layout-base@1.0.2: {} - less-loader@12.3.3(@rspack/core@2.1.10)(less@4.8.1): + less-loader@12.3.3(@rspack/core@2.2.6)(less@4.8.1): dependencies: less: 4.8.1(supports-color@10.2.2) optionalDependencies: - '@rspack/core': 2.1.10(@swc/helpers@0.5.23) + '@rspack/core': 2.2.6(@swc/helpers@0.5.23) less@4.8.1(supports-color@10.2.2): dependencies: @@ -6122,13 +6349,13 @@ snapshots: react: 19.2.8 react-reconciler: 0.33.0(react@19.2.8) - react-router-dom@7.18.2(react-dom@19.2.8)(react@19.2.8): + react-router-dom@7.18.4(react-dom@19.2.8)(react@19.2.8): dependencies: react: 19.2.8 react-dom: 19.2.8(react@19.2.8) - react-router: 7.18.2(react-dom@19.2.8)(react@19.2.8) + react-router: 7.18.4(react-dom@19.2.8)(react@19.2.8) - react-router@7.18.2(react-dom@19.2.8)(react@19.2.8): + react-router@7.18.4(react-dom@19.2.8)(react@19.2.8): dependencies: cookie: 1.1.1 react: 19.2.8 @@ -6350,7 +6577,7 @@ snapshots: optionalDependencies: '@rsbuild/core': 2.1.8 - rstack@0.6.4(@microsoft/api-extractor@7.58.12)(@rspress/core@2.0.19)(typescript@6.0.3): + rstack@0.6.4(@microsoft/api-extractor@7.58.12)(@rspress/core@2.0.22)(typescript@6.0.3): dependencies: '@rsbuild/core': 2.1.13 '@rslib/core': 1.0.0-rc.1(@microsoft/api-extractor@7.58.12)(typescript@6.0.3) @@ -6360,7 +6587,7 @@ snapshots: tinypool: 2.1.0 yuku-parser: 0.9.0 optionalDependencies: - '@rspress/core': 2.0.19(@rspack/core@2.1.10)(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) + '@rspress/core': 2.0.22(micromark-util-types@2.0.2)(micromark@4.0.2)(supports-color@10.2.2) '@rstackjs/cli-darwin-arm64': 0.6.4 '@rstackjs/cli-darwin-x64': 0.6.4 '@rstackjs/cli-linux-arm64-gnu': 0.6.4 @@ -6560,7 +6787,7 @@ snapshots: undici-types@7.24.6: {} - unhead@2.1.16: + unhead@2.1.17: dependencies: hookable: 6.1.1 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index bf8da90..88320de 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -9,7 +9,7 @@ cleanupUnusedCatalogs: true catalog: '@rsbuild/plugin-less': '^2.0.1' '@rsbuild/plugin-react': '^2.1.0' - '@rspress/core': '^2.0.19' + '@rspress/core': '^2.0.22' '@types/node': '^24.13.3' '@types/react': '^18.3.31' react: '^18.3.1' From dba3b06b07a6ea425b7ebcf935a2942e374a76d4 Mon Sep 17 00:00:00 2001 From: sooniter Date: Mon, 21 Sep 2026 13:04:32 +0800 Subject: [PATCH 2/2] test: visit canonical Rspress URLs directly --- packages/rspress-plugin-gh-pages/index.spec.ts | 3 +-- packages/rspress-plugin-gh-pages/rspress.config.ts | 3 +++ packages/rspress-plugin-google-analytics/index.spec.ts | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/rspress-plugin-gh-pages/index.spec.ts b/packages/rspress-plugin-gh-pages/index.spec.ts index 9002d48..f12ad8f 100644 --- a/packages/rspress-plugin-gh-pages/index.spec.ts +++ b/packages/rspress-plugin-gh-pages/index.spec.ts @@ -8,8 +8,7 @@ describe('rspress-plugin-gh-pages', () => { test('serves docs from the inferred repository base', async ({ page }) => { await page.goto(pageUrl('/rspress-plugins/')); - // Rspress canonicalizes the index route while preserving the inferred base. - await expect(page).toHaveURL(pageUrl('/rspress-plugins/index.html')); + await expect(page).toHaveURL(pageUrl('/rspress-plugins/')); await expect( page.getByRole('heading', { name: 'RSPress x GH Pages' }), ).toBeVisible(); diff --git a/packages/rspress-plugin-gh-pages/rspress.config.ts b/packages/rspress-plugin-gh-pages/rspress.config.ts index 29cd82c..9c3da8f 100644 --- a/packages/rspress-plugin-gh-pages/rspress.config.ts +++ b/packages/rspress-plugin-gh-pages/rspress.config.ts @@ -5,6 +5,9 @@ import ghpages from 'rspress-plugin-gh-pages'; export default defineConfig({ root: path.join(import.meta.dirname, 'docs'), title: 'Rspress x GHPages Example', + route: { + cleanUrls: true, + }, plugins: [ ghpages({ repo: 'https://github.com/linbudu599/rspress-plugins.git', diff --git a/packages/rspress-plugin-google-analytics/index.spec.ts b/packages/rspress-plugin-google-analytics/index.spec.ts index 2955abc..36f3907 100644 --- a/packages/rspress-plugin-google-analytics/index.spec.ts +++ b/packages/rspress-plugin-google-analytics/index.spec.ts @@ -18,7 +18,7 @@ describe('rspress-plugin-google-analytics', () => { // Covers injection of Google Analytics connection and loader tags. test('injects analytics tags for the primary ID', async ({ page }) => { - await page.goto(pageUrl()); + await page.goto(pageUrl('/index.html')); await expect( page.locator( @@ -34,7 +34,8 @@ describe('rspress-plugin-google-analytics', () => { // Covers multi-ID configuration, IP anonymization, and page-view reporting. test('configures every ID and reports the page view', async ({ page }) => { - await page.goto(pageUrl()); + // Use the canonical index URL for the default cleanUrls: false. + await page.goto(pageUrl('/index.html')); // Analytics should report the canonical pathname used by the router. await expect(page).toHaveURL(pageUrl('/index.html'));