@astrojs/react
7.1.9 · 13 Nov 2026MIT4M / weekRepositoryHomepagenpmAtom feed
6.0.6 is the newest release of 6.x.
In short
1 breaking1 new1 fixed
- Breaking
Upgrade to Vite v8
Release note
Major Changes
- Breaking
Upgrade to Vite v8
Minor Changes
Replaces the import entrypoint of
getContainerRenderer()A new
container-rendererentrypoint exportinggetContainerRenderer()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
Triggers beta prereleases for packages that are still on alpha
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.