unstale

npm / @astrojs/react

@astrojs/react

What changed in @astrojs/react 3 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

15 breaking2 security2 deprecations7 new APIs and options1 performance3 behavior and defaults3 tooling8 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@astrojs/react 717 changes

Breaking changes 7

  • The minimum supported Node.js version is now 22.22.0, aligning support with StackBlitz and Astro's Node.js support policy.

    7.1.0release notes

  • The babel integration option was removed; custom Babel transforms must move to @rolldown/plugin-babel under vite.plugins.

    7.0.0release notes

  • The old babel callback is unsupported; conditional transforms must use the plugin's overrides and preset hooks.

    7.0.0release notes

  • The Babel plugin no longer loads babel.config.js or .babelrc; options must be passed directly to babel().

    7.0.0release notes

  • React 17 and 18 projects using the compiler must install react-compiler-runtime.

    7.0.0release notes

  • Custom Babel transforms now use @rolldown/plugin-babel and @babel/core configured in vite.plugins.

    7.0.0release notes

  • Babel plugins and presets move from react({ babel: ... }) to babel() in vite.plugins.

    7.0.0release notes

Security 1

  • Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js

    7.1.2security advisory

Deprecations 1

  • Importing getContainerRenderer() from the @astrojs/react package root is deprecated; use the dedicated container-renderer entrypoint instead.

    7.0.0upgrade guide

New APIs and options 3

  • A dedicated entrypoint for importing getContainerRenderer() is available to avoid pulling unrelated build-time exports from the package root.

    7.0.0upgrade guide

  • Adds an opt-in Oxc-based React Compiler that memoizes client components and hooks.

    7.0.0release notes

  • The compiler accepts an options object, including compilationMode, for configuring compilation behavior.

    7.0.0release notes

Behavior and default changes 1

  • Dependencies are no longer pinned, allowing versions matching the ^ range to be installed.

    7.1.9release notes

Tooling 1

  • The peer dependency version range expands from ^0.145.0 to >=0.145.0 <0.157.0, allowing a broader range of versions.

    7.1.5release notes

Fixes and other changes 3

  • Preserves component-rendered resource links, including stylesheets, preloads, and modulepreloads, as well as automatic React resource hints, during server rendering.

    7.1.3release notes

  • Fixes duplicate React.useId() values across components when experimentalDisableStreaming is enabled.

    7.1.2release notes

  • Do not enable babel-plugin-react-compiler on components also processed by the Oxc compiler.

    7.0.0release notes

@astrojs/react 64 changes

Breaking changes 1

  • Upgrades the integration to Vite v8, which may affect build tooling and project configuration.

    6.0.0release notes

Deprecations 1

  • Importing getContainerRenderer() from the package root is deprecated and logs a warning; use the container-renderer entrypoint instead.

    6.0.0release notes

New APIs and options 1

  • Adds a dedicated container-renderer entrypoint exporting getContainerRenderer() to avoid bundling unrelated package-root exports.

    6.0.0release notes

Fixes and other changes 1

  • React's renderer check no longer crashes on non-React object components when Vue render-function components are built with @astrojs/react enabled.

    6.0.6release notes

@astrojs/react 510 changes

Breaking changes 3

  • Temporary support for Node >=20.19.1 was removed because Stackblitz now uses Node 22 by default.

    5.0.1release notes

  • The minimum Node.js version is increased to 22.12.0.

    5.0.0release notes

  • Astro v6 upgrades Vite as the development server and production bundler.

    5.0.0release notes

Performance 1

  • Improves the performance of rendering static HTML content in React.

    5.0.2release notes

Behavior and default changes 1

  • The Node.js version requirement is lowered to support running on StackBlitz until it supports v22.

    5.0.0release notes

Tooling 1

Fixes and other changes 4

  • Filters auto-generated preload resources from Astro island HTML so React Float links are injected into the head and HTML remains valid.

    5.0.3release notes

  • Fixes React hydration errors when rendering slots conditionally.

    5.0.2release notes

  • Fixes hydration mismatches when using experimentalReactChildren.

    5.0.2release notes

  • React component identification improves when configuring include or exclude options alongside multiple JSX frameworks.

    5.0.0release notes

@astrojs/react 45 changes

Breaking changes 3

  • Form submissions using Actions now use _action instead of _astroAction as the generated URL query parameter, avoiding leaking the framework name into the URL bar.

    4.0.0release notes

  • Node 21 is no longer supported.

    4.0.0release notes

  • Updates the Vite dependency to match Astro v5.

    4.0.0release notes

Security 1

  • Updates the Vite version to fix a CVE, improving build-tool security for developers.

    4.4.1release notes

New APIs and options 1

  • Adds a client hydration entrypoint to the returned object, enabling client-side interactivity without manually calling container.addClientRenderer().

    4.4.2release notes

@astrojs/react 35 changes

Breaking changes 1

  • Node 16 is no longer supported; Astro and all integrations now require Node 18.14.1 or higher.

    3.0.0release notes

New APIs and options 2

  • Adds an exclude option to specify files not compiled for React when using React alongside another JSX framework.

    3.0.0release notes

  • Adds an include option to specify files compiled for React when using React alongside another JSX framework.

    3.0.0release notes

Behavior and default changes 1

  • React islands are now automatically unmounted when the astro:unmount event fires.

    3.0.0release notes

Tooling 1

  • The React integration now fully supports React Refresh, backed by @vitejs/plugin-react.

    3.0.0release notes