# What changed in @astrojs/solid-js

> 106 changes in @astrojs/solid-js 5 to 7 from its official release notes, upgrade guides and advisories: 81 breaking, 9 deprecations, 1 security, 6 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@astrojs/solid-js/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @astrojs/solid-js 7

### Breaking changes

- The minimum supported Node.js version is now 22.23.4, including fixes from the October 2026 Node.js security releases. (7.1.1) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%407.1.1)
- The minimum supported Node.js version is now 22.22.0. (7.1.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%407.1.0)

### Security

- Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js (7.1.2) — [security advisory](https://github.com/advisories/GHSA-JMV2-QGXF-F995)

### New APIs and options

- Import getContainerRenderer from this dedicated entrypoint instead of the @astrojs/solid-js package root to avoid bundling unrelated build-time exports. (7.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v7)
- 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. (7.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%407.0.0)

### Fixes and other changes

- Unpins @astrojs/* dependencies so versions matching the ^ range can be installed. (7.1.6) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%407.1.6)
- Slot names are escaped when rendering slot wrapper elements for Solid components. (7.1.2) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%407.1.2)
- 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. (7.0.2) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%407.0.2)
- 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. (7.0.1) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%407.0.1)

## @astrojs/solid-js 6

### Breaking changes

- Temporary support for Node >=20.19.1 was removed because Stackblitz now uses Node 22 by default. (6.0.1) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%406.0.1)
- Route filenames can no longer contain the percent-encoded percent sign %25, preventing encoding-based security bypasses. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The signature accepting routeData and locals as separate arguments is removed. Pass them as properties of the renderOptions object instead. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This App and NodeApp method is removed; create a new App instance if you need to update the manifest. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- 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. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The listed internal functions, classes, and types are no longer exported from the virtual module; use getActionContext() for serializeActionResult() and deserializeActionResult(). (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- 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. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Remove uses of params.entryPoints in this hook; the value is no longer available. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The virtual module is removed. Use astro:config/server for configuration values and the astro:build:ssr integration hook for build-specific manifest data. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- CommonJS Astro config files with the .cjs extension are no longer supported; use a supported extension such as .mjs, .js, .ts, or .mts. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- CommonJS Astro config files with the .cts extension are no longer supported; use a supported extension such as .mjs, .js, .ts, or .mts. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- 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. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- 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. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Remove the handleForms prop. Form submit-event handling is built in by default, and the prop provided no additional functionality. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Collection entries no longer have a render() method; import render() from astro:content and call render(entry). (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- 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. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This function is removed from the astro:transitions and astro:transitions/client virtual module exports and can no longer be imported. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Adapters should use createApp() in place of NodeApp to create the application instance. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Adapters should provide required exports directly from their server entrypoint instead of using createExports(). (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The default image service applies cropping by default without requiring the fit option. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- With transforms, Zod 4 requires default values to match the output type and short-circuits parsing when input is undefined. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The default image service no longer upscales images. Adjust requested dimensions or use manual upscaling or a custom image service if upscaling is needed. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- emitESMImage() is removed; use emitImageMetadata() and remove the unused arguments. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Custom endpoints whose URL ends in a file extension are accessible only without a trailing slash, regardless of build.trailingSlash. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The entryPoints map is removed from the astro:build:ssr hook. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Zod 4 uses the error option for custom error messages in place of message. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Zod 4 drops support for a custom errorsMap, so projects using it to redefine or translate error messages must update their handling. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This experimental flag is removed because the feature is now stable; remove it from Astro config. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This experimental flag is removed because the feature is now stable; the new prerenderConflictBehavior configuration option is available. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This experimental flag is removed because the feature is now stable; remove it from Astro config. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The experimental flag was removed because compatible heading ID generation is now the default. Remove it from configuration. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This experimental flag is removed because the feature is now stable; remove it from Astro config. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The experimental flag is removed; scripts and styles are now rendered in the order defined in source code by default. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- 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. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Replace this legacy collection query method with getEntry(). (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Replace this legacy collection query method with getEntry(). (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Calling getImage() on the client now throws a runtime error. Call it on the server and pass the resulting src to the client. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- getStaticPaths() params values must now be strings or undefined. Convert numeric params to strings. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The rehypeHeadingIds plugin option no longer exists. Remove it from plugin configuration. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The default changes from true to false. This option can now only be used when i18n.routing.prefixDefaultLocale is true. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Values are always inlined and never coerced; non-public values are no longer transformed into process.env references. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This export is removed from the astro:transitions and astro:transitions/client virtual modules. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This export is removed from the astro:transitions and astro:transitions/client virtual modules. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Astro removes the legacy.collections flag and automatic legacy content collections support; all content collections must use the Content Layer API. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The legacy collections flag and legacy Content Collections support are removed. All collections must use the Content Layer API. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Content collections must define a loader; use Astro’s built-in glob() loader with pattern and base for file-based entries. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Heading IDs now retain trailing hyphens when headings end in special characters. Update manual anchor links if needed. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Astro v6 drops Node 18 and Node 20 support. Development and deployment environments must use Node 22.12.0 or higher. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Use prefault for the old behavior where default values are parsed. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- 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(). (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- ActionAPIContext.rewrite() is removed; custom endpoints should be used instead of rewrites. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- RouteData.generate() is removed because Astro now handles route generation internally. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The routes array is removed from astro:build:done; use astro:routes:resolved and access distURL through the assets map. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Raises the minimum Node.js version to 22.12.0. (6.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%406.0.0)
- Content loaders can no longer define schema as a function; use createSchema() to dynamically define a schema. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Use this path instead of server.hot.send() to access HMR from dev toolbar and integration code. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The internal session test driver is removed and can no longer be used. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Use the newly exported sessionDrivers to configure session drivers with the new object shape. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Astro upgrades to Shiki 4.0 for syntax highlighting; projects using Shiki-specific APIs may need migration changes. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- CollectionEntry ids are now slugs; replace uses of slug with id, and use filePath to access the filename previously represented by id. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Move the legacy content configuration file to src/content.config.ts for the Content Layer API. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Path properties such as srcDir are now URL objects rather than URL strings. Access href when the string URL representation is needed. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The hrefRoot property is no longer available on the manifest. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- serverIslandMappings is now an async method; await its result. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- sessionDriver is now an async method; await its result. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Adapters providing start() should move its code directly into the server entrypoint. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This export is removed from the astro:transitions and astro:transitions/client virtual modules. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This export is removed from the astro:transitions and astro:transitions/client virtual modules. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This export is removed from the astro:transitions and astro:transitions/client virtual modules. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This export is removed from the astro:transitions and astro:transitions/client virtual modules. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This export is removed from the astro:transitions and astro:transitions/client virtual modules. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Collection definitions no longer accept type: 'content' or type: 'data'; remove the field. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The ViewTransitions component is removed; use ClientRouter to continue using these features. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- 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. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Configure client asset output filenames under this path instead of vite.build.rollupOptions.output. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Astro components can no longer be rendered in Vitest client environments such as jsdom or happy-dom. Run those tests in the node environment. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Zod 4 moves string format APIs such as email validation to the top-level z namespace; replace z.string().email() with z.email(). (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Astro upgrades to Zod 4, which may require changes to custom schemas, validation formats, error messages, and transformed defaults. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)

### Deprecations

- The astro:schema module is deprecated in favor of astro/zod. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The explicit adapter entrypoint behavior is deprecated. Set entrypointResolution to "auto" and remove exports and args when migrating to the new adapter API. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This environment variable is deprecated in favor of build.assetsPrefix from astro:config/server. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- loadApp() from astro/app/node is deprecated; adapters should replace it with createApp(). (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- loadManifest() from astro/app/node is deprecated for adapters. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- NodeApp from astro/app/node is deprecated in favor of createApp(), createRequest(), and writeResponse(). (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The NodeAppHeadersJson type is deprecated. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The session driver string signature is deprecated in favor of the object shape provided by sessionDrivers. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- The z export from astro:content is deprecated; import z from astro/zod instead. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)

### New APIs and options

- This utility is provided for adapters to create a request when replacing NodeApp. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- A temporary migration flag preserves some legacy v4 content collections features while projects migrate to the Content Layer API. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- This utility is provided for adapters to write a response when replacing NodeApp. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)

### Behavior and default changes

- 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. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)
- Astro now uses Vite’s Environments API to manage client, server, and prerender runtime environments, affecting integration and adapter APIs. (6.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v6/)

### Tooling

- Upgrades to Vite v7.0 as the development server and production bundler. (6.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%406.0.0)

### Fixes and other changes

- Lowers the Node version requirement to allow running on Stackblitz until it supports v22. (6.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%406.0.0)

## @astrojs/solid-js 5

### Breaking changes

- Node 21 is no longer supported. (5.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%405.0.0)

### New APIs and options

- The returned object now includes the client hydration entrypoint, enabling client-side interactivity without manually calling container.addClientRenderer(). (5.1.3) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%405.1.3)

### Fixes and other changes

- vite-plugin-solid is updated to handle Vite 6. (5.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/solid-js%405.0.0)
