chore: update React type definitions in resolutions and overrides

- Update resolutions @types/react from ~19.2.1 to ~19.2.7
- Update resolutions @types/react-dom from ~19.2.1 to ~19.2.3
- Update overrides @types/react from 19.0.11 to 19.2.7
- Update overrides @types/react-dom from 19.0.4 to 19.2.3
- Remove old React 18 type definitions from pnpm-lock.yaml
- Ensure all dependencies use React 19.2.7 type definitions
This commit is contained in:
NFish 2025-12-08 16:19:33 +08:00
parent 8899c717fa
commit d760862e8d
2 changed files with 16 additions and 34 deletions

View File

@ -217,8 +217,8 @@
"uglify-js": "^3.19.3"
},
"resolutions": {
"@types/react": "~19.2.1",
"@types/react-dom": "~19.2.1",
"@types/react": "~19.2.7",
"@types/react-dom": "~19.2.3",
"string-width": "4.2.3"
},
"lint-staged": {
@ -230,8 +230,8 @@
]
},
"overrides": {
"@types/react": "19.0.11",
"@types/react-dom": "19.0.4",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@storybook/test": "8.5.0"
},
"pnpm": {

View File

@ -5,8 +5,8 @@ settings:
excludeLinksFromLockfile: false
overrides:
'@types/react': ~18.2.0
'@types/react-dom': ~18.2.0
'@types/react': ~19.2.7
'@types/react-dom': ~19.2.3
string-width: 4.2.3
esbuild@<0.25.0: 0.25.0
pbkdf2@<3.1.3: 3.1.3
@ -2256,7 +2256,7 @@ packages:
'@mdx-js/react@3.1.0':
resolution: {integrity: sha512-QjHtSaoameoalGnKDT3FoIl4+9RwyTmo9ZJGBdLOks/YOiWHoRDI3PUwEzOE7kEmGcV3AFcp9K6dYu9rEuKLAQ==}
peerDependencies:
'@types/react': ~18.2.0
'@types/react': ~19.2.7
react: '>=16'
'@mermaid-js/parser@0.3.0':
@ -3060,8 +3060,8 @@ packages:
engines: {node: '>=18'}
peerDependencies:
'@testing-library/dom': ^10.0.0
'@types/react': ~18.2.0
'@types/react-dom': ~18.2.0
'@types/react': ~19.2.7
'@types/react-dom': ~19.2.3
react: ^18.0.0 || ^19.0.0
react-dom: ^18.0.0 || ^19.0.0
peerDependenciesMeta:
@ -3307,16 +3307,13 @@ packages:
'@types/parse-json@4.0.2':
resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==}
'@types/prop-types@15.7.14':
resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==}
'@types/qs@6.9.18':
resolution: {integrity: sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==}
'@types/react-dom@19.2.3':
resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==}
peerDependencies:
'@types/react': ~18.2.0
'@types/react': ~19.2.7
'@types/react-slider@1.3.6':
resolution: {integrity: sha512-RS8XN5O159YQ6tu3tGZIQz1/9StMLTg/FCIPxwqh2gwVixJnlfIodtVx+fpXVMZHe7A58lAX1Q4XTgAGOQaCQg==}
@ -3330,9 +3327,6 @@ packages:
'@types/react-window@1.8.8':
resolution: {integrity: sha512-8Ls660bHR1AUA2kuRvVG9D/4XpRC6wjAaPT9dil7Ckc76eP9TKWZwwmgfq8Q1LANX3QNDnoU4Zp48A3w+zK69Q==}
'@types/react@18.2.79':
resolution: {integrity: sha512-RwGAGXPl9kSXwdNTafkOEuFrTBD5SA2B3iEB96xi8+xu5ddUa/cpvyVCSNn+asgLCTHkb5ZxN8gbuibYJi4s1w==}
'@types/react@19.2.7':
resolution: {integrity: sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg==}
@ -4562,9 +4556,6 @@ packages:
engines: {node: '>=4'}
hasBin: true
csstype@3.1.3:
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
csstype@3.2.3:
resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
@ -7675,7 +7666,7 @@ packages:
react-markdown@9.1.0:
resolution: {integrity: sha512-xaijuJB0kzGiUdG7nc2MOMDUDBWPyGAjZtUrow9XxUeua8IqeP+VlIfAZ3bphpcLTnSZXz6z9jcVC/TCwbfgdw==}
peerDependencies:
'@types/react': ~18.2.0
'@types/react': ~19.2.7
react: '>=18'
react-multi-email@1.0.25:
@ -9128,7 +9119,7 @@ packages:
resolution: {integrity: sha512-ibr/n1hBzLLj5Y+yUcU7dYw8p6WnIVzdJbnX+1YpaScvZVF2ziugqHs+LAmHw4lWO9c/zRj+K1ncgWDQuthEdQ==}
engines: {node: '>=12.7.0'}
peerDependencies:
'@types/react': ~18.2.0
'@types/react': ~19.2.7
immer: '>=9.0.6'
react: '>=16.8'
peerDependenciesMeta:
@ -12373,8 +12364,6 @@ snapshots:
'@types/parse-json@4.0.2': {}
'@types/prop-types@15.7.14': {}
'@types/qs@6.9.18': {}
'@types/react-dom@19.2.3(@types/react@19.2.7)':
@ -12383,25 +12372,20 @@ snapshots:
'@types/react-slider@1.3.6':
dependencies:
'@types/react': 18.2.79
'@types/react': 19.2.7
'@types/react-syntax-highlighter@15.5.13':
dependencies:
'@types/react': 18.2.79
'@types/react': 19.2.7
'@types/react-window-infinite-loader@1.0.9':
dependencies:
'@types/react': 18.2.79
'@types/react': 19.2.7
'@types/react-window': 1.8.8
'@types/react-window@1.8.8':
dependencies:
'@types/react': 18.2.79
'@types/react@18.2.79':
dependencies:
'@types/prop-types': 15.7.14
csstype: 3.1.3
'@types/react': 19.2.7
'@types/react@19.2.7':
dependencies:
@ -13795,8 +13779,6 @@ snapshots:
cssesc@3.0.0: {}
csstype@3.1.3: {}
csstype@3.2.3: {}
cytoscape-cose-bilkent@4.1.0(cytoscape@3.31.2):