fix: performance issues with code renderer (#911)

This commit is contained in:
diced
2025-10-23 21:51:37 -07:00
parent 317e97e3a6
commit 2402c6f0ef
6 changed files with 106 additions and 46 deletions

32
pnpm-lock.yaml generated
View File

@@ -179,6 +179,9 @@ importers:
react-router-dom:
specifier: ^7.8.2
version: 7.8.2(react-dom@19.1.1(react@19.1.1))(react@19.1.1)
react-window:
specifier: 1.8.11
version: 1.8.11(react-dom@19.1.1(react@19.1.1))(react@19.1.1)
remark-gfm:
specifier: ^4.0.1
version: 4.0.1
@@ -228,6 +231,9 @@ importers:
'@types/react-dom':
specifier: ^19.1.9
version: 19.1.9(@types/react@19.1.12)
'@types/react-window':
specifier: ^1.8.8
version: 1.8.8
'@vitejs/plugin-react':
specifier: ^5.0.2
version: 5.0.2(vite@7.1.4(@types/node@24.3.0)(jiti@2.5.1)(sass@1.92.0)(sugarss@5.0.1(postcss@8.5.6))(tsx@4.20.5))
@@ -2058,6 +2064,9 @@ packages:
peerDependencies:
'@types/react': ^19.0.0
'@types/react-window@1.8.8':
resolution: {integrity: sha512-8Ls660bHR1AUA2kuRvVG9D/4XpRC6wjAaPT9dil7Ckc76eP9TKWZwwmgfq8Q1LANX3QNDnoU4Zp48A3w+zK69Q==}
'@types/react@19.1.12':
resolution: {integrity: sha512-cMoR+FoAf/Jyq6+Df2/Z41jISvGZZ2eTlnsaJRptmZ76Caldwy1odD4xTr/gNV9VLj0AWgg/nmkevIyUfIIq5w==}
@@ -3552,6 +3561,9 @@ packages:
resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==}
engines: {node: '>= 0.6'}
memoize-one@5.2.1:
resolution: {integrity: sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==}
merge2@1.4.1:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
@@ -4183,6 +4195,13 @@ packages:
react: '>=16.6.0'
react-dom: '>=16.6.0'
react-window@1.8.11:
resolution: {integrity: sha512-+SRbUVT2scadgFSWx+R1P754xHPEqvcfSfVX10QYg6POOz+WNgkN48pS+BtZNIMGiL1HYrSEiCkwsMS15QogEQ==}
engines: {node: '>8.0.0'}
peerDependencies:
react: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
react-dom: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
react@19.1.1:
resolution: {integrity: sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==}
engines: {node: '>=0.10.0'}
@@ -7150,6 +7169,10 @@ snapshots:
dependencies:
'@types/react': 19.1.12
'@types/react-window@1.8.8':
dependencies:
'@types/react': 19.1.12
'@types/react@19.1.12':
dependencies:
csstype: 3.1.3
@@ -8961,6 +8984,8 @@ snapshots:
media-typer@0.3.0: {}
memoize-one@5.2.1: {}
merge2@1.4.1: {}
micromark-core-commonmark@2.0.3:
@@ -9693,6 +9718,13 @@ snapshots:
react: 19.1.1
react-dom: 19.1.1(react@19.1.1)
react-window@1.8.11(react-dom@19.1.1(react@19.1.1))(react@19.1.1):
dependencies:
'@babel/runtime': 7.28.3
memoize-one: 5.2.1
react: 19.1.1
react-dom: 19.1.1(react@19.1.1)
react@19.1.1: {}
read-package-up@11.0.0: