From 63f0d2a3b317d0aafecac27e069c59e5e333a195 Mon Sep 17 00:00:00 2001 From: jeroenpg Date: Sat, 14 Dec 2024 17:23:59 +0100 Subject: [PATCH] Upgraded dev dependency to react 19 --- packages/integrations/react/package.json | 8 +++--- .../react-component/src/pages/index.astro | 3 +-- pnpm-lock.yaml | 27 +++++++++++++++++++ 3 files changed, 32 insertions(+), 6 deletions(-) diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index 205f5b0377..2e826e127b 100644 --- a/packages/integrations/react/package.json +++ b/packages/integrations/react/package.json @@ -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", diff --git a/packages/integrations/react/test/fixtures/react-component/src/pages/index.astro b/packages/integrations/react/test/fixtures/react-component/src/pages/index.astro index d308cad3f3..2fe7a8ed5f 100644 --- a/packages/integrations/react/test/fixtures/react-component/src/pages/index.astro +++ b/packages/integrations/react/test/fixtures/react-component/src/pages/index.astro @@ -15,7 +15,6 @@ const someProps = { text: 'Hello world!', }; --- - @@ -38,6 +37,6 @@ const someProps = { - + diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 272bf9858a..3a88515f1b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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':