npm / @astrojs/solid-js
@astrojs/solid-js
What changed in @astrojs/solid-js 5 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
81 breaking1 security9 deprecations6 new APIs and options2 behavior and defaults1 tooling6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@astrojs/solid-js 79 changes
Breaking changes 2
The minimum supported Node.js version is now 22.23.4, including fixes from the October 2026 Node.js security releases.
The minimum supported Node.js version is now 22.22.0.
Security 1
Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js
New APIs and options 2
Import getContainerRenderer from this dedicated entrypoint instead of the @astrojs/solid-js package root to avoid bundling unrelated build-time exports.
Import getContainerRenderer() from this new entrypoint when using the Container API; importing it from the package root still works but is deprecated and logs a warning.
Fixes and other changes 4
Unpins @astrojs/* dependencies so versions matching the ^ range can be installed.
Slot names are escaped when rendering slot wrapper elements for Solid components.
Solid ecosystem packages are bundled in non-client environments so Vite resolves the correct export condition during prerendering, fixing build crashes involving pre-compiled browser artifacts.
The Solid renderer no longer incorrectly claims Svelte 5 components compiled with the newer $$renderer prop, preventing them from being silently rendered as empty strings.
@astrojs/solid-js 694 changes
Breaking changes 78
Temporary support for Node >=20.19.1 was removed because Stackblitz now uses Node 22 by default.
Route filenames can no longer contain the percent-encoded percent sign %25, preventing encoding-based security bypasses.
The signature accepting routeData and locals as separate arguments is removed. Pass them as properties of the renderOptions object instead.
This App and NodeApp method is removed; create a new App instance if you need to update the manifest.
The Astro object in getStaticPaths() is deprecated. Astro.site logs a warning, while accessing other unavailable properties throws a specific error; replace Astro.site with import.meta.env.SITE and remove Astro.generator.
The listed internal functions, classes, and types are no longer exported from the virtual module; use getActionContext() for serializeActionResult() and deserializeActionResult().
The hook is called once with all environments configured instead of separately for each build target. Remove the target parameter and use vite.environments to configure specific environments.
Remove uses of params.entryPoints in this hook; the value is no longer available.
The virtual module is removed. Use astro:config/server for configuration values and the astro:build:ssr integration hook for build-specific manifest data.
CommonJS Astro config files with the .cjs extension are no longer supported; use a supported extension such as .mjs, .js, .ts, or .mts.
CommonJS Astro config files with the .cts extension are no longer supported; use a supported extension such as .mjs, .js, .ts, or .mts.
Astro.glob() is removed; use getCollection() for collections or import.meta.glob() for other project source files. import.meta.glob() does not return a Promise.
Route pathnames may be partially decoded during normalization, so this value may differ from the pathname in Astro.request.url; route params are affected too.
Remove the handleForms prop. Form submit-event handling is built in by default, and the prop provided no additional functionality.
Collection entries no longer have a render() method; import render() from astro:content and call render(entry).
Content loader schema types are inferred instead of generated using zod-to-ts. When providing a schema in a content loader, use TypeScript's satisfies operator.
This function is removed from the astro:transitions and astro:transitions/client virtual module exports and can no longer be imported.
Adapters should use createApp() in place of NodeApp to create the application instance.
Adapters should provide required exports directly from their server entrypoint instead of using createExports().
The default image service applies cropping by default without requiring the fit option.
With transforms, Zod 4 requires default values to match the output type and short-circuits parsing when input is undefined.
The default image service no longer upscales images. Adjust requested dimensions or use manual upscaling or a custom image service if upscaling is needed.
emitESMImage() is removed; use emitImageMetadata() and remove the unused arguments.
Custom endpoints whose URL ends in a file extension are accessible only without a trailing slash, regardless of build.trailingSlash.
The entryPoints map is removed from the astro:build:ssr hook.
Zod 4 uses the error option for custom error messages in place of message.
Zod 4 drops support for a custom errorsMap, so projects using it to redefine or translate error messages must update their handling.
This experimental flag is removed because the feature is now stable; remove it from Astro config.
This experimental flag is removed because the feature is now stable; the new prerenderConflictBehavior configuration option is available.
This experimental flag is removed because the feature is now stable; remove it from Astro config.
The experimental flag was removed because compatible heading ID generation is now the default. Remove it from configuration.
This experimental flag is removed because the feature is now stable; remove it from Astro config.
The experimental flag is removed; scripts and styles are now rendered in the order defined in source code by default.
When format is set, the default image service now attempts to convert SVG images to raster formats. Check image formats beforehand if SVGs should not be converted.
Replace this legacy collection query method with getEntry().
Replace this legacy collection query method with getEntry().
Calling getImage() on the client now throws a runtime error. Call it on the server and pass the resulting src to the client.
getStaticPaths() params values must now be strings or undefined. Convert numeric params to strings.
The rehypeHeadingIds plugin option no longer exists. Remove it from plugin configuration.
The default changes from true to false. This option can now only be used when i18n.routing.prefixDefaultLocale is true.
Values are always inlined and never coerced; non-public values are no longer transformed into process.env references.
This export is removed from the astro:transitions and astro:transitions/client virtual modules.
This export is removed from the astro:transitions and astro:transitions/client virtual modules.
Astro removes the legacy.collections flag and automatic legacy content collections support; all content collections must use the Content Layer API.
The legacy collections flag and legacy Content Collections support are removed. All collections must use the Content Layer API.
Content collections must define a loader; use Astro’s built-in glob() loader with pattern and base for file-based entries.
Heading IDs now retain trailing hyphens when headings end in special characters. Update manual anchor links if needed.
Astro v6 drops Node 18 and Node 20 support. Development and deployment environments must use Node 22.12.0 or higher.
Use prefault for the old behavior where default values are parsed.
The with option is removed, so prefetch priority can no longer be configured with it. Prefetching automatically uses link rel="prefetch" when supported, or falls back to fetch().
ActionAPIContext.rewrite() is removed; custom endpoints should be used instead of rewrites.
RouteData.generate() is removed because Astro now handles route generation internally.
The routes array is removed from astro:build:done; use astro:routes:resolved and access distURL through the assets map.
Raises the minimum Node.js version to 22.12.0.
Content loaders can no longer define schema as a function; use createSchema() to dynamically define a schema.
Use this path instead of server.hot.send() to access HMR from dev toolbar and integration code.
The internal session test driver is removed and can no longer be used.
Use the newly exported sessionDrivers to configure session drivers with the new object shape.
Astro upgrades to Shiki 4.0 for syntax highlighting; projects using Shiki-specific APIs may need migration changes.
CollectionEntry ids are now slugs; replace uses of slug with id, and use filePath to access the filename previously represented by id.
Move the legacy content configuration file to src/content.config.ts for the Content Layer API.
Path properties such as srcDir are now URL objects rather than URL strings. Access href when the string URL representation is needed.
The hrefRoot property is no longer available on the manifest.
serverIslandMappings is now an async method; await its result.
sessionDriver is now an async method; await its result.
Adapters providing start() should move its code directly into the server entrypoint.
This export is removed from the astro:transitions and astro:transitions/client virtual modules.
This export is removed from the astro:transitions and astro:transitions/client virtual modules.
This export is removed from the astro:transitions and astro:transitions/client virtual modules.
This export is removed from the astro:transitions and astro:transitions/client virtual modules.
This export is removed from the astro:transitions and astro:transitions/client virtual modules.
Collection definitions no longer accept type: 'content' or type: 'data'; remove the field.
The ViewTransitions component is removed; use ClientRouter to continue using these features.
Astro v6 upgrades to Vite 7.0 as the development server and production bundler; projects using Vite-specific plugins, configuration, or APIs may need updates.
Configure client asset output filenames under this path instead of vite.build.rollupOptions.output.
Astro components can no longer be rendered in Vitest client environments such as jsdom or happy-dom. Run those tests in the node environment.
Zod 4 moves string format APIs such as email validation to the top-level z namespace; replace z.string().email() with z.email().
Astro upgrades to Zod 4, which may require changes to custom schemas, validation formats, error messages, and transformed defaults.
Deprecations 9
The astro:schema module is deprecated in favor of astro/zod.
The explicit adapter entrypoint behavior is deprecated. Set entrypointResolution to "auto" and remove exports and args when migrating to the new adapter API.
This environment variable is deprecated in favor of build.assetsPrefix from astro:config/server.
loadApp() from astro/app/node is deprecated; adapters should replace it with createApp().
loadManifest() from astro/app/node is deprecated for adapters.
NodeApp from astro/app/node is deprecated in favor of createApp(), createRequest(), and writeResponse().
The NodeAppHeadersJson type is deprecated.
The session driver string signature is deprecated in favor of the object shape provided by sessionDrivers.
The z export from astro:content is deprecated; import z from astro/zod instead.
New APIs and options 3
This utility is provided for adapters to create a request when replacing NodeApp.
A temporary migration flag preserves some legacy v4 content collections features while projects migrate to the Content Layer API.
This utility is provided for adapters to write a response when replacing NodeApp.
Behavior and default changes 2
Responsive image styles are generated in a build-time virtual module and applied using a hash class and data-* attributes instead of inline style attributes.
Astro now uses Vite’s Environments API to manage client, server, and prerender runtime environments, affecting integration and adapter APIs.
Tooling 1
Upgrades to Vite v7.0 as the development server and production bundler.
Fixes and other changes 1
Lowers the Node version requirement to allow running on Stackblitz until it supports v22.
@astrojs/solid-js 53 changes
Breaking changes 1
Node 21 is no longer supported.
New APIs and options 1
The returned object now includes the client hydration entrypoint, enabling client-side interactivity without manually calling container.addClientRenderer().
Fixes and other changes 1
vite-plugin-solid is updated to handle Vite 6.