unstale

npm / @astrojs/react

@astrojs/react

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

11 breaking1 security1 deprecations4 new APIs and options1 performance1 behavior and defaults1 tooling6 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

@astrojs/react 710 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

New APIs and options 2

  • 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

Fixes and other changes 1

  • 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 42 changes

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