Skip to content

fix(deps): update dependency @astrojs/react to v7 - autoclosed - #1865

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-@astrojs-packages
Closed

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-@astrojs-packages

Conversation

@renovate

@renovate renovate Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@astrojs/react (source) 5.0.7 → 7.0.0 age confidence

Release Notes

withastro/astro (@​astrojs/react)

v7.0.0

Compare Source

Major Changes
  • #​17951 e5b0ac4 Thanks @​hanford! - Migrates the React integration to @vitejs/plugin-react v6, using Oxc for JSX and Fast Refresh. Removes the babel integration option; projects with custom Babel transforms must configure @rolldown/plugin-babel under vite.plugins instead.

    Adds an opt-in compiler option for the Oxc-based React Compiler. Install oxc-transform-react and enable it in your Astro config:

    import react from '@astrojs/react';
    
    export default {
      integrations: [react({ compiler: true })],
    };

    The compiler memoizes client components and hooks. Server rendering is not compiled. The target defaults to the installed React major version; React 17 and 18 projects also need react-compiler-runtime installed. Pass an options object to configure the compiler, for example compiler: { compilationMode: 'annotation' }. The integration's include and exclude options apply, and dependencies and Astro files are excluded.

v6.0.6

Compare Source

Patch Changes
  • #​17985 7a6e7f7 Thanks @​astro-factory! - Fixes Vue render-function components failing to build when @astrojs/react is also enabled. React's renderer check no longer crashes on non-React object components, and Vue's check now recognizes defineComponent() components that use a setup function returning a render function.

v6.0.5

Compare Source

Patch Changes

v6.0.4

Compare Source

Patch Changes

v6.0.3

Compare Source

Patch Changes

v6.0.2

Compare Source

Patch Changes

v6.0.1

Compare Source

Patch Changes

v6.0.0

Compare Source

Major Changes
Minor Changes
  • #​17093 4585fe5 Thanks @​Princesseuh! - Replaces the import entrypoint of getContainerRenderer()

    A new container-renderer entrypoint exporting getContainerRenderer() has been added to the following integrations: React, Preact, Svelte, SolidJS, Vue, and MDX. This prevents bundlers from trying to bundle unrelated exports from the package root when only the Container API is used.

    If you are using the Container API, update your import statements to use the new entrypoint. The following example updates the getContainerRenderer() import for React:

    - import { getContainerRenderer } from '@astrojs/react';
    + import { getContainerRenderer } from '@astrojs/react/container-renderer';

    Importing getContainerRenderer() from the package root still works, but is now deprecated and logs a warning.

Patch Changes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 49b0774 to 860cb7a Compare June 30, 2026 13:19
@renovate
renovate Bot temporarily deployed to development June 30, 2026 13:19 Inactive
@github-actions

github-actions Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Renovate PR Review Results

⚖️ Safety Assessment: ⚠️ Needs Manual Migration

🔍 Release Content Analysis

v6.0.0 (Breaking Changes):

  • Vite v8 upgrade: @astrojs/react v6 migrated to Vite v8 internally. This is a breaking change in the integration's underlying toolchain.
  • New container-renderer entrypoint: getContainerRenderer() can now be imported from @astrojs/react/container-renderer (root import deprecated with a warning, not removed).

v7.0.0 (Breaking Changes):

  • babel option removed: The integration dropped the babel config option. @vitejs/plugin-react was upgraded to v6 (Oxc-based) from v5 (Babel-based). Projects using custom Babel transforms must now use @rolldown/plugin-babel under vite.plugins instead.
  • New opt-in compiler option: Oxc-based React Compiler support via react({ compiler: true }) — opt-in, not required.
  • @vitejs/plugin-react upgraded: 5.2.0 (Babel + Vite 7) → 6.1.2 (Oxc + Vite 8).

🎯 Impact Scope Investigation

Direct API usage in this codebase:

  • astro.config.ts:1: import react from '@astrojs/react'
  • astro.config.ts:21: integrations: [sitemap(), react()] — called with no arguments
  • ✅ No babel option used → v7 breaking change does NOT apply
  • ✅ No getContainerRenderer import from @astrojs/react root → v6 deprecation does NOT apply

Transitive dependency impact (significant concern):

  • @vitejs/plugin-react: 5.2.0 (Vite 7) → 6.1.2 (Vite 8) — internal to @astrojs/react
  • vite@8.3.3 is added to the lockfile; vite@7.3.2 remains (still required by astro@6.4.8)
  • @tailwindcss/vite@4.3.3 peer dep resolution: vite@7.3.2 → vite@8.3.3
  • vitest@4.1.11 peer dep resolution: vite@7.3.2 → vite@8.3.3
  • All @babel/* packages removed from lockfile (Oxc replaces Babel for JSX)

Risk: Vite 7/8 coexistence
After this PR, both vite@7.3.2 (for astro@6.4.8 internals) and vite@8.3.3 (for @astrojs/react@7.0.0 and peer deps of @tailwindcss/vite, vitest) coexist. The @tailwindcss/vite plugin is registered in astro.config.ts under vite.plugins, meaning it runs in Astro's Vite context. If Astro 6.4.8 exposes a Vite 7 instance at runtime, but @tailwindcss/vite was resolved against Vite 8, there could be plugin API mismatches. This requires a real build to validate.

💡 Recommended Actions

  1. Run a full production build (pnpm build) to verify Astro + @tailwindcss/vite (on Vite 8 peer) works correctly inside Astro's Vite 7 context.
  2. Run all tests (pnpm test:tools && pnpm test:libs) — vitest now runs on Vite 8, which could expose test failures.
  3. Verify React component rendering — the move from Babel to Oxc for JSX transformation is transparent in most cases, but fast-refresh behavior and edge cases in JSX transforms should be smoke-tested in dev mode (pnpm dev).
  4. If build/tests pass, this PR can be merged without code changes — no babel option migration is needed.
  5. If @tailwindcss/vite or vitest encounter Vite version mismatch issues, consider pinning vite@8 explicitly in package.json to stabilize the peer dep resolution.

🔗 Reference Links

Generated by koki-develop/claude-renovate-review

@github-actions

github-actions Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Preview deployment ready!

✅ Preview URL: https://pr-1865---web-njpdbbjcea-an.a.run.app
📝 Commit SHA: de6302c (view commit)

This comment was automatically generated by the deploy-preview workflow.

@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 860cb7a to fba1920 Compare June 30, 2026 19:43
@renovate
renovate Bot temporarily deployed to development June 30, 2026 19:43 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from fba1920 to 05c246b Compare July 1, 2026 00:49
@renovate
renovate Bot temporarily deployed to development July 1, 2026 00:49 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 05c246b to ec708c3 Compare July 1, 2026 08:45
@renovate
renovate Bot temporarily deployed to development July 1, 2026 08:45 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from ec708c3 to 46f8193 Compare July 1, 2026 09:07
@renovate
renovate Bot temporarily deployed to development July 1, 2026 09:07 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 46f8193 to b6a0ff6 Compare July 1, 2026 20:51
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from b6a0ff6 to 53197c8 Compare July 1, 2026 20:54
@renovate
renovate Bot temporarily deployed to development July 1, 2026 20:54 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 53197c8 to 5cf488a Compare July 2, 2026 01:55
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 5cf488a to 22090d1 Compare July 2, 2026 01:57
@renovate
renovate Bot temporarily deployed to development July 2, 2026 01:57 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 22090d1 to f4bf570 Compare July 2, 2026 12:51
@renovate
renovate Bot temporarily deployed to development July 2, 2026 12:51 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from f4bf570 to ded25a5 Compare July 4, 2026 13:08
@renovate
renovate Bot temporarily deployed to development July 4, 2026 13:08 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from ded25a5 to 5a0e157 Compare July 4, 2026 16:16
@renovate
renovate Bot temporarily deployed to development July 4, 2026 16:16 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 5a0e157 to 34e0c7f Compare July 4, 2026 16:20
@renovate
renovate Bot temporarily deployed to development July 4, 2026 16:20 Inactive
@renovate
renovate Bot temporarily deployed to development July 6, 2026 16:55 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 4cfa0dc to d98727c Compare July 6, 2026 22:37
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from d98727c to cdf64a1 Compare July 6, 2026 22:40
@renovate
renovate Bot temporarily deployed to development July 6, 2026 22:41 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from cdf64a1 to 02fd971 Compare July 7, 2026 09:40
@renovate
renovate Bot temporarily deployed to development July 7, 2026 09:40 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 02fd971 to de6302c Compare July 7, 2026 16:52
@renovate
renovate Bot temporarily deployed to development July 7, 2026 16:52 Inactive
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from de6302c to c9def36 Compare July 7, 2026 21:09
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from c9def36 to 0e71205 Compare July 7, 2026 21:11
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 0e71205 to 393fcc7 Compare July 8, 2026 00:38
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 393fcc7 to 216c525 Compare July 8, 2026 09:33
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 216c525 to df3e5ad Compare July 8, 2026 20:57
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from df3e5ad to 6bf7b48 Compare July 8, 2026 21:01
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from 6bf7b48 to a0e19cd Compare July 9, 2026 01:19
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from a0e19cd to f3c5a41 Compare July 10, 2026 09:46
@renovate
renovate Bot force-pushed the renovate/major-@astrojs-packages branch from f3c5a41 to 1736b40 Compare July 11, 2026 09:05
@github-actions

Copy link
Copy Markdown
Contributor

コードレビュー失敗

自動レビューを実行できませんでした。人間のレビューが必要です。

This branch was successfully deployed

1 active deployment
development — 2a1986f4 Deployed Oct 11, 2026 by renovate[bot] via shutdown-preview #909
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants