π Patch Changes
- #17249
02b73b0Thanks @ematipico! - Fixes an issue where thepeerDependenciesfield used incorrect dependencies.
02b73b0 Thanks @ematipico! - Fixes an issue where the peerDependencies field used incorrect dependencies.#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.
#16549 9d9d516 Thanks @ocavue! - Updates @sveltejs/vite-plugin-svelte to v7. No user action is necessary.
#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.
4d79750 Thanks @fkatsuhiro! - Fixed an issue where type errors occurred during testing library type checks because Astro overrides Svelte 5 component types.31b6198 Thanks @fkatsuhiro! - This change updates the Svelte integrationβs type shims to treat non-children
snippet props and any-typed props as optional. Previously, these were
incorrectly marked as required in Astro files, causing false-positive type
errors when using Svelte 5 components.
HandleSnippetProps to make Snippets optional in Astro.#15604 3e1ac66 Thanks @pierreeurope! - Adds a temporary workaround for a Svelte bug causing empty class attributes in SSR output.
#16050 89a7250 Thanks @seroperson! - Using a Svelte component with generic type parameters now correctly infer props in .astro files
d3c7de9 Thanks @florian-lefebvre! - Removes temporary support for Node >=20.19.1 because Stackblitz now uses Node 22 by default6f8f0bc Thanks @ematipico! - Updates the Astro peerDependencies#astro to be 6.0.0.#14427 e131261 Thanks @florian-lefebvre! - Increases minimum Node.js version to 22.12.0 - (v6 upgrade guidance)
#14445 ecb0b98 Thanks @florian-lefebvre! - Astro v6.0 upgrades to Vite v7.0 as the development server and production bundler - (v6 upgrade guidance)
#15125 6feb0d7 Thanks @florian-lefebvre! - Improve Svelte children prop type checking
#15264 11efb05 Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22
#15581 2851f10 Thanks @renovate! - Updates svelte to v5.51.5
11efb05 Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v226feb0d7 Thanks @florian-lefebvre! - Improve Svelte children prop type checkingfa9c464 Thanks @antonyfaris! - Improve Svelte children prop type checking