0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-10 22:38:53 -05:00

Upgraded dev dependency to react 19

This commit is contained in:
jeroenpg 2024-12-14 17:23:59 +01:00
parent b46efd141f
commit 63f0d2a3b3
3 changed files with 32 additions and 6 deletions

View file

@ -54,13 +54,13 @@
"vite": "^6.0.1"
},
"devDependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"astro": "workspace:*",
"astro-scripts": "workspace:*",
"cheerio": "1.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"peerDependencies": {
"@types/react": "^17.0.50 || ^18.0.21 || ^19.0.0",

View file

@ -15,7 +15,6 @@ const someProps = {
text: 'Hello world!',
};
---
<html>
<head>
<!-- Head Stuff -->
@ -38,6 +37,6 @@ const someProps = {
<WithChildren client:load children="test" />
<WithId client:idle />
<WithId client:idle />
<GreetingsSolid name="load" client:load />
<GreetingsSolid name="sir" client:load />
</body>
</html>

27
pnpm-lock.yaml generated
View file

@ -5041,6 +5041,33 @@ importers:
specifier: ^19.0.0
version: 19.0.0(react@19.0.0)
packages/integrations/react/test/fixtures/react-18-component:
dependencies:
'@astrojs/react':
specifier: workspace:*
version: link:../../..
'@astrojs/solid-js':
specifier: workspace:*
version: link:../../../../solid
'@astrojs/vue':
specifier: workspace:*
version: link:../../../../vue
astro:
specifier: workspace:*
version: link:../../../../../astro
react:
specifier: ^18.3.1
version: 18.3.1
react-dom:
specifier: ^18.3.1
version: 18.3.1(react@18.3.1)
solid-js:
specifier: ^1.9.3
version: 1.9.3
vue:
specifier: ^3.5.13
version: 3.5.13(typescript@5.7.2)
packages/integrations/react/test/fixtures/react-component:
dependencies:
'@astrojs/react':